Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
gassafety
Commits
d199f2ee
Commit
d199f2ee
authored
Jul 19, 2021
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工单基础信息、工单反馈信息
parent
d39acaf5
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
2585 additions
and
0 deletions
+2585
-0
TOrderFeedbackController.java
...ng/web/controller/workOrder/TOrderFeedbackController.java
+103
-0
TWorkOrderController.java
...zehong/web/controller/workOrder/TWorkOrderController.java
+126
-0
TOrderFeedback.java
...rc/main/java/com/zehong/system/domain/TOrderFeedback.java
+180
-0
TWorkOrder.java
...em/src/main/java/com/zehong/system/domain/TWorkOrder.java
+167
-0
TOrderFeedbackMapper.java
...n/java/com/zehong/system/mapper/TOrderFeedbackMapper.java
+61
-0
TWorkOrderMapper.java
.../main/java/com/zehong/system/mapper/TWorkOrderMapper.java
+68
-0
ITOrderFeedbackService.java
...ava/com/zehong/system/service/ITOrderFeedbackService.java
+61
-0
ITWorkOrderService.java
...in/java/com/zehong/system/service/ITWorkOrderService.java
+68
-0
TOrderFeedbackServiceImpl.java
...zehong/system/service/impl/TOrderFeedbackServiceImpl.java
+93
-0
TWorkOrderServiceImpl.java
...com/zehong/system/service/impl/TWorkOrderServiceImpl.java
+111
-0
TOrderFeedbackMapper.xml
...src/main/resources/mapper/system/TOrderFeedbackMapper.xml
+103
-0
TWorkOrderMapper.xml
...tem/src/main/resources/mapper/system/TWorkOrderMapper.xml
+104
-0
basicsInfo.js
gassafety-web/src/api/workOrder/basicsInfo.js
+62
-0
feedback.js
gassafety-web/src/api/workOrder/feedback.js
+53
-0
pk.png
gassafety-web/src/assets/mark/pk.png
+0
-0
index.vue
gassafety-web/src/components/Maplnglat/index.vue
+156
-0
search.vue
gassafety-web/src/components/Maplnglat/search.vue
+318
-0
index.vue
gassafety-web/src/views/workOrder/basicsInfo/index.vue
+382
-0
index.vue
gassafety-web/src/views/workOrder/feedback/index.vue
+369
-0
No files found.
gassafety-admin/src/main/java/com/zehong/web/controller/workOrder/TOrderFeedbackController.java
0 → 100644
View file @
d199f2ee
package
com
.
zehong
.
web
.
controller
.
workOrder
;
import
java.util.List
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
org.springframework.web.bind.annotation.DeleteMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.zehong.common.annotation.Log
;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.domain.AjaxResult
;
import
com.zehong.common.enums.BusinessType
;
import
com.zehong.system.domain.TOrderFeedback
;
import
com.zehong.system.service.ITOrderFeedbackService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
* 工单反馈信息Controller
*
* @author zehong
* @date 2021-07-19
*/
@RestController
@RequestMapping
(
"/workOrder/feedback"
)
public
class
TOrderFeedbackController
extends
BaseController
{
@Autowired
private
ITOrderFeedbackService
tOrderFeedbackService
;
/**
* 查询工单反馈信息列表
*/
@PreAuthorize
(
"@ss.hasPermi('workOrder:feedback:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TOrderFeedback
tOrderFeedback
)
{
startPage
();
List
<
TOrderFeedback
>
list
=
tOrderFeedbackService
.
selectTOrderFeedbackList
(
tOrderFeedback
);
return
getDataTable
(
list
);
}
/**
* 导出工单反馈信息列表
*/
@PreAuthorize
(
"@ss.hasPermi('workOrder:feedback:export')"
)
@Log
(
title
=
"工单反馈信息"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TOrderFeedback
tOrderFeedback
)
{
List
<
TOrderFeedback
>
list
=
tOrderFeedbackService
.
selectTOrderFeedbackList
(
tOrderFeedback
);
ExcelUtil
<
TOrderFeedback
>
util
=
new
ExcelUtil
<
TOrderFeedback
>(
TOrderFeedback
.
class
);
return
util
.
exportExcel
(
list
,
"工单反馈信息数据"
);
}
/**
* 获取工单反馈信息详细信息
*/
@PreAuthorize
(
"@ss.hasPermi('workOrder:feedback:query')"
)
@GetMapping
(
value
=
"/{feedbackId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"feedbackId"
)
Long
feedbackId
)
{
return
AjaxResult
.
success
(
tOrderFeedbackService
.
selectTOrderFeedbackById
(
feedbackId
));
}
/**
* 新增工单反馈信息
*/
@PreAuthorize
(
"@ss.hasPermi('workOrder:feedback:add')"
)
@Log
(
title
=
"工单反馈信息"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TOrderFeedback
tOrderFeedback
)
{
return
toAjax
(
tOrderFeedbackService
.
insertTOrderFeedback
(
tOrderFeedback
));
}
/**
* 修改工单反馈信息
*/
@PreAuthorize
(
"@ss.hasPermi('workOrder:feedback:edit')"
)
@Log
(
title
=
"工单反馈信息"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TOrderFeedback
tOrderFeedback
)
{
return
toAjax
(
tOrderFeedbackService
.
updateTOrderFeedback
(
tOrderFeedback
));
}
/**
* 删除工单反馈信息
*/
@PreAuthorize
(
"@ss.hasPermi('workOrder:feedback:remove')"
)
@Log
(
title
=
"工单反馈信息"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{feedbackIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
feedbackIds
)
{
return
toAjax
(
tOrderFeedbackService
.
deleteTOrderFeedbackByIds
(
feedbackIds
));
}
}
gassafety-admin/src/main/java/com/zehong/web/controller/workOrder/TWorkOrderController.java
0 → 100644
View file @
d199f2ee
package
com
.
zehong
.
web
.
controller
.
workOrder
;
import
java.util.List
;
import
com.zehong.common.utils.StringUtils
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
org.springframework.web.bind.annotation.DeleteMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.zehong.common.annotation.Log
;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.domain.AjaxResult
;
import
com.zehong.common.enums.BusinessType
;
import
com.zehong.system.domain.TWorkOrder
;
import
com.zehong.system.service.ITWorkOrderService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
* 工单基础信息Controller
*
* @author zehong
* @date 2021-07-19
*/
@RestController
@RequestMapping
(
"/workOrder/basicsInfo"
)
public
class
TWorkOrderController
extends
BaseController
{
@Autowired
private
ITWorkOrderService
tWorkOrderService
;
/**
* 查询工单基础信息列表
*/
@PreAuthorize
(
"@ss.hasPermi('workOrder:basicsInfo:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TWorkOrder
tWorkOrder
)
{
startPage
();
List
<
TWorkOrder
>
list
=
tWorkOrderService
.
selectTWorkOrderList
(
tWorkOrder
);
return
getDataTable
(
list
);
}
/**
* 导出工单基础信息列表
*/
@PreAuthorize
(
"@ss.hasPermi('workOrder:basicsInfo:export')"
)
@Log
(
title
=
"工单基础信息"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TWorkOrder
tWorkOrder
)
{
List
<
TWorkOrder
>
list
=
tWorkOrderService
.
selectTWorkOrderList
(
tWorkOrder
);
ExcelUtil
<
TWorkOrder
>
util
=
new
ExcelUtil
<
TWorkOrder
>(
TWorkOrder
.
class
);
return
util
.
exportExcel
(
list
,
"工单基础信息数据"
);
}
/**
* 获取工单基础信息详细信息
*/
@PreAuthorize
(
"@ss.hasPermi('workOrder:basicsInfo:query')"
)
@GetMapping
(
value
=
"/{orderId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"orderId"
)
String
orderId
)
{
return
AjaxResult
.
success
(
tWorkOrderService
.
selectTWorkOrderById
(
orderId
));
}
/**
* 新增工单基础信息
*/
@PreAuthorize
(
"@ss.hasPermi('workOrder:basicsInfo:add')"
)
@Log
(
title
=
"工单基础信息"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TWorkOrder
tWorkOrder
)
{
return
toAjax
(
tWorkOrderService
.
insertTWorkOrder
(
tWorkOrder
));
}
/**
* 修改工单基础信息
*/
@PreAuthorize
(
"@ss.hasPermi('workOrder:basicsInfo:edit')"
)
@Log
(
title
=
"工单基础信息"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TWorkOrder
tWorkOrder
)
throws
Exception
{
String
orderStatus
=
tWorkOrder
.
getOrderStatus
();
// 工单状态只有是0未下发或1已下发,才允许修改
if
(!
"0"
.
equals
(
orderStatus
)
&&
!
"1"
.
equals
(
orderStatus
)){
throw
new
Exception
(
StringUtils
.
format
(
"工单({})当前状态不允许修改。"
,
tWorkOrder
.
getOrderId
()));
}
return
toAjax
(
tWorkOrderService
.
updateTWorkOrder
(
tWorkOrder
));
}
/**
* 修改工单状态
*/
@PreAuthorize
(
"@ss.hasPermi('workOrder:basicsInfo:editStatus')"
)
@Log
(
title
=
"工单基础信息"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
(
"/editStatus"
)
public
AjaxResult
editStatus
(
@RequestBody
TWorkOrder
tWorkOrder
)
throws
Exception
{
String
orderStatus
=
tWorkOrder
.
getOrderStatus
();
if
(
"5"
.
equals
(
orderStatus
))
{
throw
new
Exception
(
StringUtils
.
format
(
"工单({})已归档,不允许更改状态。"
,
tWorkOrder
.
getOrderId
()));
}
return
AjaxResult
.
success
();
}
/**
* 删除工单基础信息
*/
@PreAuthorize
(
"@ss.hasPermi('workOrder:basicsInfo:remove')"
)
@Log
(
title
=
"工单基础信息"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{orderIds}"
)
public
AjaxResult
remove
(
@PathVariable
String
[]
orderIds
)
{
return
toAjax
(
tWorkOrderService
.
deleteTWorkOrderByIds
(
orderIds
));
}
}
gassafety-system/src/main/java/com/zehong/system/domain/TOrderFeedback.java
0 → 100644
View file @
d199f2ee
package
com
.
zehong
.
system
.
domain
;
import
java.util.Date
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
com.zehong.common.annotation.Excel
;
import
com.zehong.common.core.domain.BaseEntity
;
/**
* 工单反馈信息对象 t_order_feedback
*
* @author zehong
* @date 2021-07-19
*/
public
class
TOrderFeedback
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 工单反馈id */
private
Long
feedbackId
;
/** 工单id */
@Excel
(
name
=
"工单id"
)
private
String
orderId
;
/** 设备id */
@Excel
(
name
=
"设备id"
)
private
Long
deviceId
;
/** 反馈内容 */
@Excel
(
name
=
"反馈内容"
)
private
String
contents
;
/** 反馈时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"反馈时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
feedbackTime
;
/** 是否存在隐患(0正常,1存在隐患) */
@Excel
(
name
=
"是否存在隐患"
,
readConverterExp
=
"0=正常,1存在隐患"
)
private
String
isHiddenDanger
;
/** 处理状态(1不需处理,2已处理完成,3未处理完成) */
@Excel
(
name
=
"处理状态"
,
readConverterExp
=
"1=不需处理,2已处理完成,3未处理完成"
)
private
String
dealStatus
;
/** 图片地址1 */
@Excel
(
name
=
"图片地址1"
)
private
String
pictureUrl1
;
/** 图片地址2 */
@Excel
(
name
=
"图片地址2"
)
private
String
pictureUrl2
;
/** 图片地址3 */
@Excel
(
name
=
"图片地址3"
)
private
String
pictureUrl3
;
/** 备注 */
@Excel
(
name
=
"备注"
)
private
String
remarks
;
public
void
setFeedbackId
(
Long
feedbackId
)
{
this
.
feedbackId
=
feedbackId
;
}
public
Long
getFeedbackId
()
{
return
feedbackId
;
}
public
void
setOrderId
(
String
orderId
)
{
this
.
orderId
=
orderId
;
}
public
String
getOrderId
()
{
return
orderId
;
}
public
void
setDeviceId
(
Long
deviceId
)
{
this
.
deviceId
=
deviceId
;
}
public
Long
getDeviceId
()
{
return
deviceId
;
}
public
void
setContents
(
String
contents
)
{
this
.
contents
=
contents
;
}
public
String
getContents
()
{
return
contents
;
}
public
void
setFeedbackTime
(
Date
feedbackTime
)
{
this
.
feedbackTime
=
feedbackTime
;
}
public
Date
getFeedbackTime
()
{
return
feedbackTime
;
}
public
void
setIsHiddenDanger
(
String
isHiddenDanger
)
{
this
.
isHiddenDanger
=
isHiddenDanger
;
}
public
String
getIsHiddenDanger
()
{
return
isHiddenDanger
;
}
public
void
setDealStatus
(
String
dealStatus
)
{
this
.
dealStatus
=
dealStatus
;
}
public
String
getDealStatus
()
{
return
dealStatus
;
}
public
void
setPictureUrl1
(
String
pictureUrl1
)
{
this
.
pictureUrl1
=
pictureUrl1
;
}
public
String
getPictureUrl1
()
{
return
pictureUrl1
;
}
public
void
setPictureUrl2
(
String
pictureUrl2
)
{
this
.
pictureUrl2
=
pictureUrl2
;
}
public
String
getPictureUrl2
()
{
return
pictureUrl2
;
}
public
void
setPictureUrl3
(
String
pictureUrl3
)
{
this
.
pictureUrl3
=
pictureUrl3
;
}
public
String
getPictureUrl3
()
{
return
pictureUrl3
;
}
public
void
setRemarks
(
String
remarks
)
{
this
.
remarks
=
remarks
;
}
public
String
getRemarks
()
{
return
remarks
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"feedbackId"
,
getFeedbackId
())
.
append
(
"orderId"
,
getOrderId
())
.
append
(
"deviceId"
,
getDeviceId
())
.
append
(
"contents"
,
getContents
())
.
append
(
"feedbackTime"
,
getFeedbackTime
())
.
append
(
"isHiddenDanger"
,
getIsHiddenDanger
())
.
append
(
"dealStatus"
,
getDealStatus
())
.
append
(
"pictureUrl1"
,
getPictureUrl1
())
.
append
(
"pictureUrl2"
,
getPictureUrl2
())
.
append
(
"pictureUrl3"
,
getPictureUrl3
())
.
append
(
"remarks"
,
getRemarks
())
.
toString
();
}
}
gassafety-system/src/main/java/com/zehong/system/domain/TWorkOrder.java
0 → 100644
View file @
d199f2ee
package
com
.
zehong
.
system
.
domain
;
import
java.util.Date
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
com.zehong.common.annotation.Excel
;
import
com.zehong.common.core.domain.BaseEntity
;
/**
* 工单基础信息对象 t_work_order
*
* @author zehong
* @date 2021-07-19
*/
public
class
TWorkOrder
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 工单id */
private
String
orderId
;
/** 工单类型(1巡检信息,2隐患信息,3报警信息) */
@Excel
(
name
=
"工单类型"
,
readConverterExp
=
"1=巡检信息,2隐患信息,3报警信息"
)
private
String
orderType
;
/** 源id */
@Excel
(
name
=
"源id"
)
private
Long
resourceId
;
/** 工单名称 */
@Excel
(
name
=
"工单名称"
)
private
String
orderName
;
/** 工单状态(0未下发,1已下发,2已接受,3进行中,4已反馈,5已归档) */
@Excel
(
name
=
"工单状态"
,
readConverterExp
=
"0=未下发,1已下发,2已接受,3进行中,4已反馈,5已归档"
)
private
String
orderStatus
;
/** 指定执行人员(巡检员id) */
@Excel
(
name
=
"指定执行人员"
,
readConverterExp
=
"巡检员id"
)
private
Long
appointInspector
;
/** 下发时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@Excel
(
name
=
"下发时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
allotTime
;
/** 实际接收人员(巡检员id) */
@Excel
(
name
=
"实际接收人员"
,
readConverterExp
=
"巡检员id"
)
private
Long
actualInspector
;
/** 实际接收时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"实际接收时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
actualTime
;
/** 备注 */
@Excel
(
name
=
"备注"
)
private
String
remarks
;
public
void
setOrderId
(
String
orderId
)
{
this
.
orderId
=
orderId
;
}
public
String
getOrderId
()
{
return
orderId
;
}
public
void
setOrderType
(
String
orderType
)
{
this
.
orderType
=
orderType
;
}
public
String
getOrderType
()
{
return
orderType
;
}
public
Long
getResourceId
()
{
return
resourceId
;
}
public
void
setResourceId
(
Long
resourceId
)
{
this
.
resourceId
=
resourceId
;
}
public
void
setOrderName
(
String
orderName
)
{
this
.
orderName
=
orderName
;
}
public
String
getOrderName
()
{
return
orderName
;
}
public
void
setOrderStatus
(
String
orderStatus
)
{
this
.
orderStatus
=
orderStatus
;
}
public
String
getOrderStatus
()
{
return
orderStatus
;
}
public
void
setAppointInspector
(
Long
appointInspector
)
{
this
.
appointInspector
=
appointInspector
;
}
public
Long
getAppointInspector
()
{
return
appointInspector
;
}
public
void
setAllotTime
(
Date
allotTime
)
{
this
.
allotTime
=
allotTime
;
}
public
Date
getAllotTime
()
{
return
allotTime
;
}
public
void
setActualInspector
(
Long
actualInspector
)
{
this
.
actualInspector
=
actualInspector
;
}
public
Long
getActualInspector
()
{
return
actualInspector
;
}
public
void
setActualTime
(
Date
actualTime
)
{
this
.
actualTime
=
actualTime
;
}
public
Date
getActualTime
()
{
return
actualTime
;
}
public
void
setRemarks
(
String
remarks
)
{
this
.
remarks
=
remarks
;
}
public
String
getRemarks
()
{
return
remarks
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"orderId"
,
getOrderId
())
.
append
(
"orderType"
,
getOrderType
())
.
append
(
"orderName"
,
getOrderName
())
.
append
(
"orderStatus"
,
getOrderStatus
())
.
append
(
"createTime"
,
getCreateTime
())
.
append
(
"appointInspector"
,
getAppointInspector
())
.
append
(
"allotTime"
,
getAllotTime
())
.
append
(
"actualInspector"
,
getActualInspector
())
.
append
(
"actualTime"
,
getActualTime
())
.
append
(
"remarks"
,
getRemarks
())
.
toString
();
}
}
gassafety-system/src/main/java/com/zehong/system/mapper/TOrderFeedbackMapper.java
0 → 100644
View file @
d199f2ee
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TOrderFeedback
;
/**
* 工单反馈信息Mapper接口
*
* @author zehong
* @date 2021-07-19
*/
public
interface
TOrderFeedbackMapper
{
/**
* 查询工单反馈信息
*
* @param feedbackId 工单反馈信息ID
* @return 工单反馈信息
*/
public
TOrderFeedback
selectTOrderFeedbackById
(
Long
feedbackId
);
/**
* 查询工单反馈信息列表
*
* @param tOrderFeedback 工单反馈信息
* @return 工单反馈信息集合
*/
public
List
<
TOrderFeedback
>
selectTOrderFeedbackList
(
TOrderFeedback
tOrderFeedback
);
/**
* 新增工单反馈信息
*
* @param tOrderFeedback 工单反馈信息
* @return 结果
*/
public
int
insertTOrderFeedback
(
TOrderFeedback
tOrderFeedback
);
/**
* 修改工单反馈信息
*
* @param tOrderFeedback 工单反馈信息
* @return 结果
*/
public
int
updateTOrderFeedback
(
TOrderFeedback
tOrderFeedback
);
/**
* 删除工单反馈信息
*
* @param feedbackId 工单反馈信息ID
* @return 结果
*/
public
int
deleteTOrderFeedbackById
(
Long
feedbackId
);
/**
* 批量删除工单反馈信息
*
* @param feedbackIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTOrderFeedbackByIds
(
Long
[]
feedbackIds
);
}
gassafety-system/src/main/java/com/zehong/system/mapper/TWorkOrderMapper.java
0 → 100644
View file @
d199f2ee
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TWorkOrder
;
/**
* 工单基础信息Mapper接口
*
* @author zehong
* @date 2021-07-19
*/
public
interface
TWorkOrderMapper
{
/**
* 获取工单基础信息id
*
* @return 工单基础信息id
*/
public
String
getWorkOrderId
();
/**
* 查询工单基础信息
*
* @param orderId 工单基础信息ID
* @return 工单基础信息
*/
public
TWorkOrder
selectTWorkOrderById
(
String
orderId
);
/**
* 查询工单基础信息列表
*
* @param tWorkOrder 工单基础信息
* @return 工单基础信息集合
*/
public
List
<
TWorkOrder
>
selectTWorkOrderList
(
TWorkOrder
tWorkOrder
);
/**
* 新增工单基础信息
*
* @param tWorkOrder 工单基础信息
* @return 结果
*/
public
int
insertTWorkOrder
(
TWorkOrder
tWorkOrder
);
/**
* 修改工单基础信息
*
* @param tWorkOrder 工单基础信息
* @return 结果
*/
public
int
updateTWorkOrder
(
TWorkOrder
tWorkOrder
);
/**
* 删除工单基础信息
*
* @param orderId 工单基础信息ID
* @return 结果
*/
public
int
deleteTWorkOrderById
(
String
orderId
);
/**
* 批量删除工单基础信息
*
* @param orderIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTWorkOrderByIds
(
String
[]
orderIds
);
}
gassafety-system/src/main/java/com/zehong/system/service/ITOrderFeedbackService.java
0 → 100644
View file @
d199f2ee
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TOrderFeedback
;
/**
* 工单反馈信息Service接口
*
* @author zehong
* @date 2021-07-19
*/
public
interface
ITOrderFeedbackService
{
/**
* 查询工单反馈信息
*
* @param feedbackId 工单反馈信息ID
* @return 工单反馈信息
*/
public
TOrderFeedback
selectTOrderFeedbackById
(
Long
feedbackId
);
/**
* 查询工单反馈信息列表
*
* @param tOrderFeedback 工单反馈信息
* @return 工单反馈信息集合
*/
public
List
<
TOrderFeedback
>
selectTOrderFeedbackList
(
TOrderFeedback
tOrderFeedback
);
/**
* 新增工单反馈信息
*
* @param tOrderFeedback 工单反馈信息
* @return 结果
*/
public
int
insertTOrderFeedback
(
TOrderFeedback
tOrderFeedback
);
/**
* 修改工单反馈信息
*
* @param tOrderFeedback 工单反馈信息
* @return 结果
*/
public
int
updateTOrderFeedback
(
TOrderFeedback
tOrderFeedback
);
/**
* 批量删除工单反馈信息
*
* @param feedbackIds 需要删除的工单反馈信息ID
* @return 结果
*/
public
int
deleteTOrderFeedbackByIds
(
Long
[]
feedbackIds
);
/**
* 删除工单反馈信息信息
*
* @param feedbackId 工单反馈信息ID
* @return 结果
*/
public
int
deleteTOrderFeedbackById
(
Long
feedbackId
);
}
gassafety-system/src/main/java/com/zehong/system/service/ITWorkOrderService.java
0 → 100644
View file @
d199f2ee
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TWorkOrder
;
/**
* 工单基础信息Service接口
*
* @author zehong
* @date 2021-07-19
*/
public
interface
ITWorkOrderService
{
/**
* 获取工单基础信息id
*
* @return 工单基础信息id
*/
public
String
getWorkOrderId
();
/**
* 查询工单基础信息
*
* @param orderId 工单基础信息ID
* @return 工单基础信息
*/
public
TWorkOrder
selectTWorkOrderById
(
String
orderId
);
/**
* 查询工单基础信息列表
*
* @param tWorkOrder 工单基础信息
* @return 工单基础信息集合
*/
public
List
<
TWorkOrder
>
selectTWorkOrderList
(
TWorkOrder
tWorkOrder
);
/**
* 新增工单基础信息
*
* @param tWorkOrder 工单基础信息
* @return 结果
*/
public
int
insertTWorkOrder
(
TWorkOrder
tWorkOrder
);
/**
* 修改工单基础信息
*
* @param tWorkOrder 工单基础信息
* @return 结果
*/
public
int
updateTWorkOrder
(
TWorkOrder
tWorkOrder
)
throws
Exception
;
/**
* 批量删除工单基础信息
*
* @param orderIds 需要删除的工单基础信息ID
* @return 结果
*/
public
int
deleteTWorkOrderByIds
(
String
[]
orderIds
);
/**
* 删除工单基础信息信息
*
* @param orderId 工单基础信息ID
* @return 结果
*/
public
int
deleteTWorkOrderById
(
String
orderId
);
}
gassafety-system/src/main/java/com/zehong/system/service/impl/TOrderFeedbackServiceImpl.java
0 → 100644
View file @
d199f2ee
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TOrderFeedbackMapper
;
import
com.zehong.system.domain.TOrderFeedback
;
import
com.zehong.system.service.ITOrderFeedbackService
;
/**
* 工单反馈信息Service业务层处理
*
* @author zehong
* @date 2021-07-19
*/
@Service
public
class
TOrderFeedbackServiceImpl
implements
ITOrderFeedbackService
{
@Autowired
private
TOrderFeedbackMapper
tOrderFeedbackMapper
;
/**
* 查询工单反馈信息
*
* @param feedbackId 工单反馈信息ID
* @return 工单反馈信息
*/
@Override
public
TOrderFeedback
selectTOrderFeedbackById
(
Long
feedbackId
)
{
return
tOrderFeedbackMapper
.
selectTOrderFeedbackById
(
feedbackId
);
}
/**
* 查询工单反馈信息列表
*
* @param tOrderFeedback 工单反馈信息
* @return 工单反馈信息
*/
@Override
public
List
<
TOrderFeedback
>
selectTOrderFeedbackList
(
TOrderFeedback
tOrderFeedback
)
{
return
tOrderFeedbackMapper
.
selectTOrderFeedbackList
(
tOrderFeedback
);
}
/**
* 新增工单反馈信息
*
* @param tOrderFeedback 工单反馈信息
* @return 结果
*/
@Override
public
int
insertTOrderFeedback
(
TOrderFeedback
tOrderFeedback
)
{
return
tOrderFeedbackMapper
.
insertTOrderFeedback
(
tOrderFeedback
);
}
/**
* 修改工单反馈信息
*
* @param tOrderFeedback 工单反馈信息
* @return 结果
*/
@Override
public
int
updateTOrderFeedback
(
TOrderFeedback
tOrderFeedback
)
{
return
tOrderFeedbackMapper
.
updateTOrderFeedback
(
tOrderFeedback
);
}
/**
* 批量删除工单反馈信息
*
* @param feedbackIds 需要删除的工单反馈信息ID
* @return 结果
*/
@Override
public
int
deleteTOrderFeedbackByIds
(
Long
[]
feedbackIds
)
{
return
tOrderFeedbackMapper
.
deleteTOrderFeedbackByIds
(
feedbackIds
);
}
/**
* 删除工单反馈信息信息
*
* @param feedbackId 工单反馈信息ID
* @return 结果
*/
@Override
public
int
deleteTOrderFeedbackById
(
Long
feedbackId
)
{
return
tOrderFeedbackMapper
.
deleteTOrderFeedbackById
(
feedbackId
);
}
}
gassafety-system/src/main/java/com/zehong/system/service/impl/TWorkOrderServiceImpl.java
0 → 100644
View file @
d199f2ee
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.List
;
import
com.zehong.common.utils.DateUtils
;
import
com.zehong.common.utils.ExceptionUtil
;
import
com.zehong.common.utils.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TWorkOrderMapper
;
import
com.zehong.system.domain.TWorkOrder
;
import
com.zehong.system.service.ITWorkOrderService
;
/**
* 工单基础信息Service业务层处理
*
* @author zehong
* @date 2021-07-19
*/
@Service
public
class
TWorkOrderServiceImpl
implements
ITWorkOrderService
{
@Autowired
private
TWorkOrderMapper
tWorkOrderMapper
;
/**
* 获取工单基础信息id
*
* @return 工单基础信息id
*/
@Override
public
String
getWorkOrderId
()
{
return
tWorkOrderMapper
.
getWorkOrderId
();
}
/**
* 查询工单基础信息
*
* @param orderId 工单基础信息ID
* @return 工单基础信息
*/
@Override
public
TWorkOrder
selectTWorkOrderById
(
String
orderId
)
{
return
tWorkOrderMapper
.
selectTWorkOrderById
(
orderId
);
}
/**
* 查询工单基础信息列表
*
* @param tWorkOrder 工单基础信息
* @return 工单基础信息
*/
@Override
public
List
<
TWorkOrder
>
selectTWorkOrderList
(
TWorkOrder
tWorkOrder
)
{
return
tWorkOrderMapper
.
selectTWorkOrderList
(
tWorkOrder
);
}
/**
* 新增工单基础信息
*
* @param tWorkOrder 工单基础信息
* @return 结果
*/
@Override
public
int
insertTWorkOrder
(
TWorkOrder
tWorkOrder
)
{
String
orderId
=
tWorkOrderMapper
.
getWorkOrderId
();
tWorkOrder
.
setOrderId
(
orderId
);
tWorkOrder
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
tWorkOrderMapper
.
insertTWorkOrder
(
tWorkOrder
);
}
/**
* 修改工单基础信息
*
* @param tWorkOrder 工单基础信息
* @return 结果
*/
@Override
public
int
updateTWorkOrder
(
TWorkOrder
tWorkOrder
)
{
return
tWorkOrderMapper
.
updateTWorkOrder
(
tWorkOrder
);
}
/**
* 批量删除工单基础信息
*
* @param orderIds 需要删除的工单基础信息ID
* @return 结果
*/
@Override
public
int
deleteTWorkOrderByIds
(
String
[]
orderIds
)
{
return
tWorkOrderMapper
.
deleteTWorkOrderByIds
(
orderIds
);
}
/**
* 删除工单基础信息信息
*
* @param orderId 工单基础信息ID
* @return 结果
*/
@Override
public
int
deleteTWorkOrderById
(
String
orderId
)
{
return
tWorkOrderMapper
.
deleteTWorkOrderById
(
orderId
);
}
}
gassafety-system/src/main/resources/mapper/system/TOrderFeedbackMapper.xml
0 → 100644
View file @
d199f2ee
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.zehong.system.mapper.TOrderFeedbackMapper"
>
<resultMap
type=
"TOrderFeedback"
id=
"TOrderFeedbackResult"
>
<result
property=
"feedbackId"
column=
"feedback_id"
/>
<result
property=
"orderId"
column=
"order_id"
/>
<result
property=
"deviceId"
column=
"device_id"
/>
<result
property=
"contents"
column=
"contents"
/>
<result
property=
"feedbackTime"
column=
"feedback_time"
/>
<result
property=
"isHiddenDanger"
column=
"is_hidden_danger"
/>
<result
property=
"dealStatus"
column=
"deal_status"
/>
<result
property=
"pictureUrl1"
column=
"picture_url_1"
/>
<result
property=
"pictureUrl2"
column=
"picture_url_2"
/>
<result
property=
"pictureUrl3"
column=
"picture_url_3"
/>
<result
property=
"remarks"
column=
"remarks"
/>
</resultMap>
<sql
id=
"selectTOrderFeedbackVo"
>
select feedback_id, order_id, device_id, contents, feedback_time, is_hidden_danger, deal_status, picture_url_1, picture_url_2, picture_url_3, remarks from t_order_feedback
</sql>
<select
id=
"selectTOrderFeedbackList"
parameterType=
"TOrderFeedback"
resultMap=
"TOrderFeedbackResult"
>
<include
refid=
"selectTOrderFeedbackVo"
/>
<where>
<if
test=
"orderId != null and orderId != ''"
>
and order_id = #{orderId}
</if>
<if
test=
"deviceId != null "
>
and device_id = #{deviceId}
</if>
<if
test=
"contents != null and contents != ''"
>
and contents = #{contents}
</if>
<if
test=
"feedbackTime != null "
>
and feedback_time = #{feedbackTime}
</if>
<if
test=
"isHiddenDanger != null and isHiddenDanger != ''"
>
and is_hidden_danger = #{isHiddenDanger}
</if>
<if
test=
"dealStatus != null and dealStatus != ''"
>
and deal_status = #{dealStatus}
</if>
<if
test=
"pictureUrl1 != null and pictureUrl1 != ''"
>
and picture_url_1 = #{pictureUrl1}
</if>
<if
test=
"pictureUrl2 != null and pictureUrl2 != ''"
>
and picture_url_2 = #{pictureUrl2}
</if>
<if
test=
"pictureUrl3 != null and pictureUrl3 != ''"
>
and picture_url_3 = #{pictureUrl3}
</if>
<if
test=
"remarks != null and remarks != ''"
>
and remarks = #{remarks}
</if>
</where>
</select>
<select
id=
"selectTOrderFeedbackById"
parameterType=
"Long"
resultMap=
"TOrderFeedbackResult"
>
<include
refid=
"selectTOrderFeedbackVo"
/>
where feedback_id = #{feedbackId}
</select>
<insert
id=
"insertTOrderFeedback"
parameterType=
"TOrderFeedback"
>
insert into t_order_feedback
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"feedbackId != null"
>
feedback_id,
</if>
<if
test=
"orderId != null"
>
order_id,
</if>
<if
test=
"deviceId != null"
>
device_id,
</if>
<if
test=
"contents != null"
>
contents,
</if>
<if
test=
"feedbackTime != null"
>
feedback_time,
</if>
<if
test=
"isHiddenDanger != null"
>
is_hidden_danger,
</if>
<if
test=
"dealStatus != null"
>
deal_status,
</if>
<if
test=
"pictureUrl1 != null"
>
picture_url_1,
</if>
<if
test=
"pictureUrl2 != null"
>
picture_url_2,
</if>
<if
test=
"pictureUrl3 != null"
>
picture_url_3,
</if>
<if
test=
"remarks != null"
>
remarks,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"feedbackId != null"
>
#{feedbackId},
</if>
<if
test=
"orderId != null"
>
#{orderId},
</if>
<if
test=
"deviceId != null"
>
#{deviceId},
</if>
<if
test=
"contents != null"
>
#{contents},
</if>
<if
test=
"feedbackTime != null"
>
#{feedbackTime},
</if>
<if
test=
"isHiddenDanger != null"
>
#{isHiddenDanger},
</if>
<if
test=
"dealStatus != null"
>
#{dealStatus},
</if>
<if
test=
"pictureUrl1 != null"
>
#{pictureUrl1},
</if>
<if
test=
"pictureUrl2 != null"
>
#{pictureUrl2},
</if>
<if
test=
"pictureUrl3 != null"
>
#{pictureUrl3},
</if>
<if
test=
"remarks != null"
>
#{remarks},
</if>
</trim>
</insert>
<update
id=
"updateTOrderFeedback"
parameterType=
"TOrderFeedback"
>
update t_order_feedback
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"orderId != null"
>
order_id = #{orderId},
</if>
<if
test=
"deviceId != null"
>
device_id = #{deviceId},
</if>
<if
test=
"contents != null"
>
contents = #{contents},
</if>
<if
test=
"feedbackTime != null"
>
feedback_time = #{feedbackTime},
</if>
<if
test=
"isHiddenDanger != null"
>
is_hidden_danger = #{isHiddenDanger},
</if>
<if
test=
"dealStatus != null"
>
deal_status = #{dealStatus},
</if>
<if
test=
"pictureUrl1 != null"
>
picture_url_1 = #{pictureUrl1},
</if>
<if
test=
"pictureUrl2 != null"
>
picture_url_2 = #{pictureUrl2},
</if>
<if
test=
"pictureUrl3 != null"
>
picture_url_3 = #{pictureUrl3},
</if>
<if
test=
"remarks != null"
>
remarks = #{remarks},
</if>
</trim>
where feedback_id = #{feedbackId}
</update>
<delete
id=
"deleteTOrderFeedbackById"
parameterType=
"Long"
>
delete from t_order_feedback where feedback_id = #{feedbackId}
</delete>
<delete
id=
"deleteTOrderFeedbackByIds"
parameterType=
"String"
>
delete from t_order_feedback where feedback_id in
<foreach
item=
"feedbackId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{feedbackId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
gassafety-system/src/main/resources/mapper/system/TWorkOrderMapper.xml
0 → 100644
View file @
d199f2ee
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.zehong.system.mapper.TWorkOrderMapper"
>
<resultMap
type=
"TWorkOrder"
id=
"TWorkOrderResult"
>
<result
property=
"orderId"
column=
"order_id"
/>
<result
property=
"orderType"
column=
"order_type"
/>
<result
property=
"resourceId"
column=
"resource_id"
/>
<result
property=
"orderName"
column=
"order_name"
/>
<result
property=
"orderStatus"
column=
"order_status"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"appointInspector"
column=
"appoint_inspector"
/>
<result
property=
"allotTime"
column=
"allot_time"
/>
<result
property=
"actualInspector"
column=
"actual_inspector"
/>
<result
property=
"actualTime"
column=
"actual_time"
/>
<result
property=
"remarks"
column=
"remarks"
/>
</resultMap>
<select
id=
"getWorkOrderId"
resultType=
"String"
>
select nextval('seq_work_order_id') as id
</select>
<sql
id=
"selectTWorkOrderVo"
>
select order_id, order_type, resource_id, order_name, order_status, create_time, appoint_inspector, allot_time, actual_inspector, actual_time, remarks from t_work_order
</sql>
<select
id=
"selectTWorkOrderList"
parameterType=
"TWorkOrder"
resultMap=
"TWorkOrderResult"
>
<include
refid=
"selectTWorkOrderVo"
/>
<where>
<if
test=
"orderType != null and orderType != ''"
>
and order_type = #{orderType}
</if>
<if
test=
"orderName != null and orderName != ''"
>
and order_name like concat('%', #{orderName}, '%')
</if>
<if
test=
"orderStatus != null and orderStatus != ''"
>
and order_status = #{orderStatus}
</if>
<if
test=
"appointInspector != null "
>
and appoint_inspector = #{appointInspector}
</if>
<if
test=
"allotTime != null "
>
and allot_time = #{allotTime}
</if>
<if
test=
"actualInspector != null "
>
and actual_inspector = #{actualInspector}
</if>
<if
test=
"actualTime != null "
>
and actual_time = #{actualTime}
</if>
<if
test=
"remarks != null and remarks != ''"
>
and remarks = #{remarks}
</if>
</where>
</select>
<select
id=
"selectTWorkOrderById"
parameterType=
"String"
resultMap=
"TWorkOrderResult"
>
<include
refid=
"selectTWorkOrderVo"
/>
where order_id = #{orderId}
</select>
<insert
id=
"insertTWorkOrder"
parameterType=
"TWorkOrder"
>
insert into t_work_order
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"orderId != null"
>
order_id,
</if>
<if
test=
"orderType != null"
>
order_type,
</if>
<if
test=
"resourceId != null"
>
resource_id,
</if>
<if
test=
"orderName != null"
>
order_name,
</if>
<if
test=
"orderStatus != null"
>
order_status,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"appointInspector != null"
>
appoint_inspector,
</if>
<if
test=
"allotTime != null"
>
allot_time,
</if>
<if
test=
"actualInspector != null"
>
actual_inspector,
</if>
<if
test=
"actualTime != null"
>
actual_time,
</if>
<if
test=
"remarks != null"
>
remarks,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"orderId != null"
>
#{orderId},
</if>
<if
test=
"orderType != null"
>
#{orderType},
</if>
<if
test=
"resourceId != null"
>
#{resourceId},
</if>
<if
test=
"orderName != null"
>
#{orderName},
</if>
<if
test=
"orderStatus != null"
>
#{orderStatus},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"appointInspector != null"
>
#{appointInspector},
</if>
<if
test=
"allotTime != null"
>
#{allotTime},
</if>
<if
test=
"actualInspector != null"
>
#{actualInspector},
</if>
<if
test=
"actualTime != null"
>
#{actualTime},
</if>
<if
test=
"remarks != null"
>
#{remarks},
</if>
</trim>
</insert>
<update
id=
"updateTWorkOrder"
parameterType=
"TWorkOrder"
>
update t_work_order
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"orderType != null"
>
order_type = #{orderType},
</if>
<if
test=
"orderName != null"
>
order_name = #{orderName},
</if>
<if
test=
"orderStatus != null"
>
order_status = #{orderStatus},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"appointInspector != null"
>
appoint_inspector = #{appointInspector},
</if>
<if
test=
"allotTime != null"
>
allot_time = #{allotTime},
</if>
<if
test=
"actualInspector != null"
>
actual_inspector = #{actualInspector},
</if>
<if
test=
"actualTime != null"
>
actual_time = #{actualTime},
</if>
<if
test=
"remarks != null"
>
remarks = #{remarks},
</if>
</trim>
where order_id = #{orderId}
</update>
<delete
id=
"deleteTWorkOrderById"
parameterType=
"String"
>
delete from t_work_order where order_id = #{orderId}
</delete>
<delete
id=
"deleteTWorkOrderByIds"
parameterType=
"String"
>
delete from t_work_order where order_id in
<foreach
item=
"orderId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{orderId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
gassafety-web/src/api/workOrder/basicsInfo.js
0 → 100644
View file @
d199f2ee
import
request
from
'@/utils/request'
// 查询工单基础信息列表
export
function
listBasicsInfo
(
query
)
{
return
request
({
url
:
'/workOrder/basicsInfo/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询工单基础信息详细
export
function
getBasicsInfo
(
orderId
)
{
return
request
({
url
:
'/workOrder/basicsInfo/'
+
orderId
,
method
:
'get'
})
}
// 新增工单基础信息
export
function
addBasicsInfo
(
data
)
{
return
request
({
url
:
'/workOrder/basicsInfo'
,
method
:
'post'
,
data
:
data
})
}
// 修改工单基础信息
export
function
updateBasicsInfo
(
data
)
{
return
request
({
url
:
'/workOrder/basicsInfo'
,
method
:
'put'
,
data
:
data
})
}
// 修改工单状态
export
function
updateOrderStatus
(
data
)
{
return
request
({
url
:
'/workOrder/basicsInfo/editStatus'
,
method
:
'put'
,
data
:
data
})
}
// 删除工单基础信息
export
function
delBasicsInfo
(
orderId
)
{
return
request
({
url
:
'/workOrder/basicsInfo/'
+
orderId
,
method
:
'delete'
})
}
// 导出工单基础信息
export
function
exportBasicsInfo
(
query
)
{
return
request
({
url
:
'/workOrder/basicsInfo/export'
,
method
:
'get'
,
params
:
query
})
}
gassafety-web/src/api/workOrder/feedback.js
0 → 100644
View file @
d199f2ee
import
request
from
'@/utils/request'
// 查询工单反馈信息列表
export
function
listFeedback
(
query
)
{
return
request
({
url
:
'/workOrder/feedback/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询工单反馈信息详细
export
function
getFeedback
(
feedbackId
)
{
return
request
({
url
:
'/workOrder/feedback/'
+
feedbackId
,
method
:
'get'
})
}
// 新增工单反馈信息
export
function
addFeedback
(
data
)
{
return
request
({
url
:
'/workOrder/feedback'
,
method
:
'post'
,
data
:
data
})
}
// 修改工单反馈信息
export
function
updateFeedback
(
data
)
{
return
request
({
url
:
'/workOrder/feedback'
,
method
:
'put'
,
data
:
data
})
}
// 删除工单反馈信息
export
function
delFeedback
(
feedbackId
)
{
return
request
({
url
:
'/workOrder/feedback/'
+
feedbackId
,
method
:
'delete'
})
}
// 导出工单反馈信息
export
function
exportFeedback
(
query
)
{
return
request
({
url
:
'/workOrder/feedback/export'
,
method
:
'get'
,
params
:
query
})
}
\ No newline at end of file
gassafety-web/src/assets/mark/pk.png
0 → 100644
View file @
d199f2ee
4.32 KB
gassafety-web/src/components/Maplnglat/index.vue
0 → 100644
View file @
d199f2ee
<
template
>
<div
class=
"mapwrap"
>
<el-dialog
title=
"拾取坐标"
:visible
.
sync=
"dialogTableVisible"
:show-close=
"false"
:close-on-click-modal=
"false"
id=
"mapcnt"
>
<el-row
class=
"lt"
>
经纬度:
<el-input
placeholder=
"经度"
v-model
.
number=
"lnglat.lng"
type=
"number"
></el-input>
<el-input
placeholder=
"纬度"
v-model
.
number=
"lnglat.lat"
type=
"number"
></el-input>
<el-button
type=
"primary"
size=
"small"
@
click=
"confirmFun"
>
确定
</el-button
>
<el-button
size=
"small"
@
click=
"$emit('dialogcancelFun')"
>
取消
</el-button
>
</el-row>
<el-row>
<div
id=
"mapContainer"
>
<Search
:MAP=
"MAP"
:Mutil=
"Mutil"
v-if=
"mapLoadDone"
></Search>
</div>
</el-row>
</el-dialog>
</div>
</
template
>
<
script
>
import
Search
from
'@/components/Maplnglat/search.vue'
;
import
Mutil
from
'@/utils/mapUtil.js'
;
import
{
toLonLat
}
from
"ol/proj"
;
export
default
{
components
:
{
Search
},
data
()
{
return
{
MAP
:
Object
,
Mutil
:
Object
,
mapLoadDone
:
false
,
slat
:
0
,
slng
:
0
,
dialogTableVisible
:
false
,
zoom
:
12
,
lnglat
:
{
lng
:
0
,
lat
:
0
,
}
}
},
methods
:
{
mapClick
()
{
let
that
=
this
;
that
.
MAP
.
on
(
"click"
,
function
(
evt
)
{
let
lnglat
=
toLonLat
(
evt
.
coordinate
);
that
.
Mutil
.
removeSearchm
(
"pickLngLat"
);
that
.
Mutil
.
addMarkerToMap
(
"pickLngLat"
,
""
,
require
(
""
),
lnglat
,
0.5
);
that
.
lnglat
.
lng
=
Number
(
lnglat
[
0
].
toPrecision
(
10
));
that
.
lnglat
.
lat
=
Number
(
lnglat
[
1
].
toPrecision
(
10
));
});
},
confirmFun
()
{
this
.
$emit
(
"dialogcancelFun"
);
this
.
$emit
(
"confirm"
,
{
lng
:
this
.
lnglat
.
lng
,
lat
:
this
.
lnglat
.
lat
,
});
},
cancel
()
{
},
mounted
()
{
let
that
=
this
;
that
.
$nextTick
(()
=>
{
that
.
Mutil
=
new
Mutil
(
"mapContainer"
);
that
.
MAP
=
that
.
Mutil
.
MAP
;
that
.
mapLoadDone
=
true
;
if
(
typeof
that
.
slng
==
"number"
&&
that
.
slng
!=
0
)
{
that
.
lnglat
.
lng
=
that
.
slng
;
that
.
lnglat
.
lat
=
that
.
slat
;
that
.
Mutil
.
addMarkerToMap
(
"pickLngLat"
,
""
,
require
(
"@/assets/mark/pk.png"
),
[
that
.
slng
,
that
.
slat
],
0.5
);
that
.
Mutil
.
setViewF
({
center
:
[
that
.
slng
,
that
.
slat
],
zoom
:
16
,
});
}
that
.
mapClick
();
});
}
}
}
</
script
>
<
style
lang=
"scss"
>
#mapcnt
.el-dialog
{
width
:
90%
!
important
;
}
.el-cascader
{
width
:
100%
;
}
.lt
.el-input
{
width
:
180px
;
margin-right
:
15px
;
display
:
inline-block
;
}
#mapContainer
{
width
:
100%
;
height
:
450px
;
position
:
relative
;
margin-top
:
10px
;
overflow
:
hidden
;
}
.el-vue-amap-container
{
width
:
100%
;
height
:
100%
;
}
.search-box
{
position
:
absolute
!
important
;
top
:
10px
;
left
:
10px
;
}
#searchbar
input
{
padding
:
5px
;
border
:
1px
solid
royalblue
;
border-radius
:
5px
;
min-width
:
150px
;
}
</
style
>
gassafety-web/src/components/Maplnglat/search.vue
0 → 100644
View file @
d199f2ee
<
template
>
<div>
<div
class=
"funBox"
>
<div
class=
"funBox-item ser"
>
<input
type=
"text"
placeholder=
"输入地址"
v-model=
"serVal"
/><button
@
click=
"mapSearch()"
></button>
<div
class=
"serTip"
v-if=
"tipsShow"
>
<div
class=
"aimAdone"
>
<p>
您可以尝试:
</p>
<p>
1、检查输入是否正确
</p>
<p>
2、输入其他关键字进行搜索
</p>
</div>
</div>
<!-- 目标地点 -->
<div
class=
"serTip"
v-if=
"aimAdrsArr.length > 0"
>
<div
v-for=
"(i, inde) in aimAdrsArr"
:key=
"inde"
class=
"aimAdone"
@
click=
"mapSetView(i.lonlat)"
>
<p>
{{
inde
+
1
+
". "
+
i
.
name
}}
</p>
<p
class=
"grey"
>
地址:
{{
i
.
address
}}
</p>
</div>
</div>
<div
class=
"serTip"
v-if=
"serTipArr.length > 0"
>
<!-- 建议地点 -->
<ul>
<li
v-for=
"(i, ind) in serTipArr"
:key=
"ind"
@
click=
"toAimAdress(i.name)"
>
{{
i
.
name
}}
<span
class=
"addressTxt"
>
{{
i
.
address
}}
</span>
</li>
</ul>
</div>
</div>
</div>
</div>
</
template
>
<
script
>
import
{
fromLonLat
,
toLonLat
}
from
"ol/proj"
;
import
axios
from
"axios"
;
export
default
{
name
:
"search"
,
components
:
{
},
data
()
{
return
{
MAP
:
Object
,
Mutil
:
Object
,
serVal
:
""
,
mapStyleArr
:
[{
key
:
"gooleSatellite"
,
word
:
"谷歌卫星地图"
,
},
{
key
:
"amapSatellite"
,
word
:
"高德卫星地图"
,
},
{
key
:
"amapCity"
,
word
:
"高德城市地图"
,
},
],
serTipArr
:
[],
aimAdrsArr
:
[],
actInde
:
0
,
tipsShow
:
false
,
}
},
watch
:
{
serVal
(
newVal
){
if
(
newVal
==
""
)
{
this
.
Mutil
.
removeSearchm
(
'searchM'
);
this
.
tipsShow
=
false
;
this
.
serTipArr
=
[];
return
;
}
this
.
searchFun
(
"4"
,
newVal
);
}
},
methods
:
{
searchFun
(
type
,
newVal
)
{
let
that
=
this
,
url
=
"http://api.tianditu.gov.cn/search"
;
that
.
serTipArr
=
[];
that
.
aimAdrsArr
=
[];
that
.
tipsShow
=
false
;
axios
.
get
(
url
,
{
params
:
{
type
:
"query"
,
postStr
:
{
// specifyAdminCode: "130100000000",
keyWord
:
newVal
,
mapBound
:
"114.34193,37.92687,114.63753,38.16345"
,
level
:
"12"
,
queryType
:
type
,
//4:普通建议词搜索, 1:普通搜索,
start
:
"0"
,
count
:
10
,
},
tk
:
"c8df739f047ce17cfe41b63cbeae6997"
,
},
})
.
then
((
res
)
=>
{
if
(
type
==
4
&&
res
.
status
==
200
)
{
if
(
res
.
data
.
suggests
)
{
that
.
tipsShow
=
false
;
let
{
suggests
:
tipsData
}
=
res
.
data
;
that
.
serTipArr
=
tipsData
;
}
else
{
that
.
serTipArr
=
[];
that
.
tipsShow
=
true
;
}
}
if
(
type
==
1
&&
res
.
status
==
200
)
{
if
(
res
.
data
.
pois
)
{
that
.
tipsShow
=
false
;
let
{
pois
:
aimsData
}
=
res
.
data
;
that
.
aimAdrsArr
=
aimsData
;
that
.
Mutil
.
removeSearchm
(
'searchM'
);
//标注到地图
that
.
aimAdrsArr
.
forEach
((
ele
,
inde
)
=>
{
let
lnglat
=
ele
.
lonlat
.
split
(
" "
);
that
.
Mutil
.
addMarkerToMap
(
'searchM'
,
ele
.
name
,
require
(
"@/assets/mark/pick.png"
),
[
Number
(
lnglat
[
0
]),
Number
(
lnglat
[
1
])],
0.5
);
if
(
inde
==
0
)
{
that
.
MAP
.
getView
().
animate
({
center
:
fromLonLat
([
Number
(
lnglat
[
0
]),
Number
(
lnglat
[
1
])]),
zoom
:
17
,
duration
:
1000
,
});
}
});
}
else
{
that
.
aimAdrsArr
=
[];
that
.
tipsShow
=
true
;
}
}
})
.
catch
((
err
)
=>
{
that
.
$message
.
error
(
err
);
});
},
mapSetView
(
lnglat
)
{
let
that
=
this
,
lonlat
=
lnglat
.
split
(
" "
);
that
.
MAP
.
getView
().
animate
({
center
:
fromLonLat
([
Number
(
lonlat
[
0
]),
Number
(
lonlat
[
1
])]),
zoom
:
17
,
duration
:
1000
,
});
},
mapSearch
()
{
let
that
=
this
,
url
=
"https://restapi.amap.com/v3/place/text"
;
that
.
$axios
.
get
(
url
+
`?key=a827e19b0efcc8bf58afb4f23de188d9&keywords=
${
that
.
serVal
}
?city='河北省'`
)
.
then
((
res
)
=>
{
console
.
log
(
res
);
})
.
catch
((
err
)
=>
console
.
log
(
err
));
},
toAimAdress
(
name
)
{
this
.
serTipArr
=
[];
this
.
searchFun
(
"1"
,
name
);
},
changeMapStyle
(
inde
)
{
let
that
=
this
,
arr
=
[
0
,
1
,
2
,
3
];
console
.
log
(
inde
);
arr
.
forEach
((
ele
)
=>
{
if
(
ele
!=
inde
)
that
.
MAP
.
getLayers
().
getArray
()[
ele
].
setVisible
(
false
);
});
that
.
MAP
.
getLayers
().
getArray
()[
inde
].
setVisible
(
true
);
},
},
created
(){},
}
</
script
>
<
style
>
.funBox
{
position
:
absolute
;
top
:
10px
;
left
:
41px
;
z-index
:
2
;
}
.funBox-item
{
float
:
left
;
background
:
#fff
;
padding
:
5px
;
}
.funBox
.ser
{
width
:
265px
;
height
:
45px
;
box-sizing
:
border-box
;
z-index
:
2202
;
border-radius
:
2px
;
position
:
relative
;
}
.funBox
.ser
input
{
position
:
absolute
;
top
:
12.5px
;
box-sizing
:
border-box
;
text-indent
:
2px
;
z-index
:
2200
;
border
:
none
;
width
:
219px
;
height
:
20px
;
line-height
:
20px
;
padding
:
0
;
letter-spacing
:
0.5px
;
font-size
:
14px
;
}
.funBox
.ser
input
:focus
{
border
:
none
;
outline
:
none
;
}
.funBox
button
{
background
:
url("https://g.csdnimg.cn/common/csdn-toolbar/images/csdn-black-search.png")
no-repeat
center
;
background-size
:
80%
;
position
:
absolute
;
right
:
0
;
top
:
0
;
z-index
:
9308
;
box-sizing
:
border-box
;
width
:
45px
;
height
:
45px
;
outline
:
none
;
border
:
none
;
border-left
:
#eee
1px
solid
;
}
.funBox
.btn
{
line-height
:
25px
;
padding
:
10px
8px
;
border-right
:
#afc5ee
1px
dashed
;
font-size
:
14px
;
cursor
:
pointer
;
}
.funBox
.btn
:last-child
{
border
:
none
;
}
.serTip
{
overflow
:
hidden
;
position
:
absolute
;
top
:
47px
;
left
:
0
;
width
:
100%
;
height
:
auto
;
z-index
:
9
;
background
:
#fff
;
}
.serTip
ul
{
margin
:
0
;
padding
:
0
;
}
.serTip
li
{
line-height
:
2
;
list-style
:
none
;
font-size
:
14px
;
color
:
black
;
padding
:
0
10px
;
width
:
100%
;
overflow
:
hidden
;
height
:
2em
;
cursor
:
pointer
;
}
.serTip
li
:hover
{
background
:
#eee
;
}
.aimAdone
{
padding
:
0
10px
;
cursor
:
pointer
;
}
.aimAdone
:hover
{
background
:
burlywood
;
}
.addressTxt
{
margin-left
:
10px
;
margin-right
:
5px
;
color
:
#999
;
font-size
:
12px
;
}
.grey
{
font-size
:
12px
;
color
:
#999
;
}
.atc
{
color
:
blue
;
}
</
style
>
gassafety-web/src/views/workOrder/basicsInfo/index.vue
0 → 100644
View file @
d199f2ee
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"工单类型"
prop=
"orderType"
>
<el-select
v-model=
"queryParams.orderType"
placeholder=
"请选择工单类型"
clearable
size=
"small"
>
<el-option
label=
"请选择字典生成"
value=
""
/>
</el-select>
</el-form-item>
<el-form-item
label=
"工单名称"
prop=
"orderName"
>
<el-input
v-model=
"queryParams.orderName"
placeholder=
"请输入工单名称"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"工单状态"
prop=
"orderStatus"
>
<el-select
v-model=
"queryParams.orderStatus"
placeholder=
"请选择工单状态"
clearable
size=
"small"
>
<el-option
label=
"请选择字典生成"
value=
""
/>
</el-select>
</el-form-item>
<el-form-item
label=
"指定执行人员"
prop=
"appointInspector"
>
<el-input
v-model=
"queryParams.appointInspector"
placeholder=
"请输入指定执行人员"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"下发时间"
prop=
"allotTime"
>
<el-date-picker
clearable
size=
"small"
v-model=
"queryParams.allotTime"
type=
"date"
value-format=
"yyyy-MM-dd"
placeholder=
"选择下发时间"
>
</el-date-picker>
</el-form-item>
<el-form-item
label=
"实际接收人员"
prop=
"actualInspector"
>
<el-input
v-model=
"queryParams.actualInspector"
placeholder=
"请输入实际接收人员"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"实际接收时间"
prop=
"actualTime"
>
<el-date-picker
clearable
size=
"small"
v-model=
"queryParams.actualTime"
type=
"date"
value-format=
"yyyy-MM-dd"
placeholder=
"选择实际接收时间"
>
</el-date-picker>
</el-form-item>
<el-form-item
label=
"备注"
prop=
"remarks"
>
<el-input
v-model=
"queryParams.remarks"
placeholder=
"请输入备注"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
v-hasPermi=
"['workOrder:basicsInfo:add']"
>
新增
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"success"
plain
icon=
"el-icon-edit"
size=
"mini"
:disabled=
"single"
@
click=
"handleUpdate"
v-hasPermi=
"['workOrder:basicsInfo:edit']"
>
修改
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"danger"
plain
icon=
"el-icon-delete"
size=
"mini"
:disabled=
"multiple"
@
click=
"handleDelete"
v-hasPermi=
"['workOrder:basicsInfo:remove']"
>
删除
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"warning"
plain
icon=
"el-icon-download"
size=
"mini"
:loading=
"exportLoading"
@
click=
"handleExport"
v-hasPermi=
"['workOrder:basicsInfo:export']"
>
导出
</el-button>
</el-col>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
<el-table
v-loading=
"loading"
:data=
"basicsInfoList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"工单id"
align=
"center"
prop=
"orderId"
/>
<el-table-column
label=
"工单类型"
align=
"center"
prop=
"orderType"
/>
<el-table-column
label=
"工单名称"
align=
"center"
prop=
"orderName"
/>
<el-table-column
label=
"工单状态"
align=
"center"
prop=
"orderStatus"
/>
<el-table-column
label=
"指定执行人员"
align=
"center"
prop=
"appointInspector"
/>
<el-table-column
label=
"下发时间"
align=
"center"
prop=
"allotTime"
width=
"180"
>
<template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
allotTime
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"实际接收人员"
align
=
"center"
prop
=
"actualInspector"
/>
<
el
-
table
-
column
label
=
"实际接收时间"
align
=
"center"
prop
=
"actualTime"
width
=
"180"
>
<
template
slot
-
scope
=
"scope"
>
<
span
>
{{
parseTime
(
scope
.
row
.
actualTime
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"备注"
align
=
"center"
prop
=
"remarks"
/>
<
el
-
table
-
column
label
=
"操作"
align
=
"center"
class
-
name
=
"small-padding fixed-width"
>
<
template
slot
-
scope
=
"scope"
>
<
el
-
button
size
=
"mini"
type
=
"text"
icon
=
"el-icon-edit"
@
click
=
"handleUpdate(scope.row)"
v
-
hasPermi
=
"['workOrder:basicsInfo:edit']"
>
修改
<
/el-button
>
<
el
-
button
size
=
"mini"
type
=
"text"
icon
=
"el-icon-delete"
@
click
=
"handleDelete(scope.row)"
v
-
hasPermi
=
"['workOrder:basicsInfo:remove']"
>
删除
<
/el-button
>
<
/template
>
<
/el-table-column
>
<
/el-table
>
<
pagination
v
-
show
=
"total>0"
:
total
=
"total"
:
page
.
sync
=
"queryParams.pageNum"
:
limit
.
sync
=
"queryParams.pageSize"
@
pagination
=
"getList"
/>
<!--
添加或修改工单基础信息对话框
-->
<
el
-
dialog
:
title
=
"title"
:
visible
.
sync
=
"open"
width
=
"500px"
append
-
to
-
body
>
<
el
-
form
ref
=
"form"
:
model
=
"form"
:
rules
=
"rules"
label
-
width
=
"80px"
>
<
el
-
form
-
item
label
=
"工单类型"
prop
=
"orderType"
>
<
el
-
select
v
-
model
=
"form.orderType"
placeholder
=
"请选择工单类型"
>
<
el
-
option
label
=
"请选择字典生成"
value
=
""
/>
<
/el-select
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"工单名称"
prop
=
"orderName"
>
<
el
-
input
v
-
model
=
"form.orderName"
placeholder
=
"请输入工单名称"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"工单状态"
>
<
el
-
radio
-
group
v
-
model
=
"form.orderStatus"
>
<
el
-
radio
label
=
"1"
>
请选择字典生成
<
/el-radio
>
<
/el-radio-group
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"指定执行人员"
prop
=
"appointInspector"
>
<
el
-
input
v
-
model
=
"form.appointInspector"
placeholder
=
"请输入指定执行人员"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"下发时间"
prop
=
"allotTime"
>
<
el
-
date
-
picker
clearable
size
=
"small"
v
-
model
=
"form.allotTime"
type
=
"date"
value
-
format
=
"yyyy-MM-dd"
placeholder
=
"选择下发时间"
>
<
/el-date-picker
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"实际接收人员"
prop
=
"actualInspector"
>
<
el
-
input
v
-
model
=
"form.actualInspector"
placeholder
=
"请输入实际接收人员"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"实际接收时间"
prop
=
"actualTime"
>
<
el
-
date
-
picker
clearable
size
=
"small"
v
-
model
=
"form.actualTime"
type
=
"date"
value
-
format
=
"yyyy-MM-dd"
placeholder
=
"选择实际接收时间"
>
<
/el-date-picker
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"备注"
prop
=
"remarks"
>
<
el
-
input
v
-
model
=
"form.remarks"
placeholder
=
"请输入备注"
/>
<
/el-form-item
>
<
/el-form
>
<
div
slot
=
"footer"
class
=
"dialog-footer"
>
<
el
-
button
type
=
"primary"
@
click
=
"submitForm"
>
确
定
<
/el-button
>
<
el
-
button
@
click
=
"cancel"
>
取
消
<
/el-button
>
<
/div
>
<
/el-dialog
>
<
/div
>
<
/template
>
<
script
>
import
{
listBasicsInfo
,
getBasicsInfo
,
delBasicsInfo
,
addBasicsInfo
,
updateBasicsInfo
,
exportBasicsInfo
}
from
"@/api/workOrder/basicsInfo"
;
export
default
{
name
:
"BasicsInfo"
,
components
:
{
}
,
data
()
{
return
{
// 遮罩层
loading
:
true
,
// 导出遮罩层
exportLoading
:
false
,
// 选中数组
ids
:
[],
// 非单个禁用
single
:
true
,
// 非多个禁用
multiple
:
true
,
// 显示搜索条件
showSearch
:
true
,
// 总条数
total
:
0
,
// 工单基础信息表格数据
basicsInfoList
:
[],
// 弹出层标题
title
:
""
,
// 是否显示弹出层
open
:
false
,
// 查询参数
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
orderType
:
null
,
orderName
:
null
,
orderStatus
:
null
,
appointInspector
:
null
,
allotTime
:
null
,
actualInspector
:
null
,
actualTime
:
null
,
remarks
:
null
}
,
// 表单参数
form
:
{
}
,
// 表单校验
rules
:
{
}
}
;
}
,
created
()
{
this
.
getList
();
}
,
methods
:
{
/** 查询工单基础信息列表 */
getList
()
{
this
.
loading
=
true
;
listBasicsInfo
(
this
.
queryParams
).
then
(
response
=>
{
this
.
basicsInfoList
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
}
);
}
,
// 取消按钮
cancel
()
{
this
.
open
=
false
;
this
.
reset
();
}
,
// 表单重置
reset
()
{
this
.
form
=
{
orderId
:
null
,
orderType
:
null
,
orderName
:
null
,
orderStatus
:
"0"
,
createTime
:
null
,
appointInspector
:
null
,
allotTime
:
null
,
actualInspector
:
null
,
actualTime
:
null
,
remarks
:
null
}
;
this
.
resetForm
(
"form"
);
}
,
/** 搜索按钮操作 */
handleQuery
()
{
this
.
queryParams
.
pageNum
=
1
;
this
.
getList
();
}
,
/** 重置按钮操作 */
resetQuery
()
{
this
.
resetForm
(
"queryForm"
);
this
.
handleQuery
();
}
,
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
item
=>
item
.
orderId
)
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
}
,
/** 新增按钮操作 */
handleAdd
()
{
this
.
reset
();
this
.
open
=
true
;
this
.
title
=
"添加工单基础信息"
;
}
,
/** 修改按钮操作 */
handleUpdate
(
row
)
{
this
.
reset
();
const
orderId
=
row
.
orderId
||
this
.
ids
getBasicsInfo
(
orderId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"修改工单基础信息"
;
}
);
}
,
/** 提交按钮 */
submitForm
()
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
form
.
orderId
!=
null
)
{
updateBasicsInfo
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
"修改成功"
);
this
.
open
=
false
;
this
.
getList
();
}
);
}
else
{
addBasicsInfo
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
"新增成功"
);
this
.
open
=
false
;
this
.
getList
();
}
);
}
}
}
);
}
,
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
orderIds
=
row
.
orderId
||
this
.
ids
;
this
.
$confirm
(
'是否确认删除工单基础信息编号为"'
+
orderIds
+
'"的数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}
).
then
(
function
()
{
return
delBasicsInfo
(
orderIds
);
}
).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"删除成功"
);
}
).
catch
(()
=>
{
}
);
}
,
/** 导出按钮操作 */
handleExport
()
{
const
queryParams
=
this
.
queryParams
;
this
.
$confirm
(
'是否确认导出所有工单基础信息数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}
).
then
(()
=>
{
this
.
exportLoading
=
true
;
return
exportBasicsInfo
(
queryParams
);
}
).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
this
.
exportLoading
=
false
;
}
).
catch
(()
=>
{
}
);
}
}
}
;
<
/script
>
gassafety-web/src/views/workOrder/feedback/index.vue
0 → 100644
View file @
d199f2ee
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"工单id"
prop=
"orderId"
>
<el-input
v-model=
"queryParams.orderId"
placeholder=
"请输入工单id"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"设备id"
prop=
"deviceId"
>
<el-input
v-model=
"queryParams.deviceId"
placeholder=
"请输入设备id"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"反馈时间"
prop=
"feedbackTime"
>
<el-date-picker
clearable
size=
"small"
v-model=
"queryParams.feedbackTime"
type=
"date"
value-format=
"yyyy-MM-dd"
placeholder=
"选择反馈时间"
>
</el-date-picker>
</el-form-item>
<el-form-item
label=
"是否存在隐患"
prop=
"isHiddenDanger"
>
<el-input
v-model=
"queryParams.isHiddenDanger"
placeholder=
"请输入是否存在隐患"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"处理状态"
prop=
"dealStatus"
>
<el-select
v-model=
"queryParams.dealStatus"
placeholder=
"请选择处理状态"
clearable
size=
"small"
>
<el-option
label=
"请选择字典生成"
value=
""
/>
</el-select>
</el-form-item>
<el-form-item
label=
"备注"
prop=
"remarks"
>
<el-input
v-model=
"queryParams.remarks"
placeholder=
"请输入备注"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
v-hasPermi=
"['workOrder:feedback:add']"
>
新增
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"success"
plain
icon=
"el-icon-edit"
size=
"mini"
:disabled=
"single"
@
click=
"handleUpdate"
v-hasPermi=
"['workOrder:feedback:edit']"
>
修改
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"danger"
plain
icon=
"el-icon-delete"
size=
"mini"
:disabled=
"multiple"
@
click=
"handleDelete"
v-hasPermi=
"['workOrder:feedback:remove']"
>
删除
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"warning"
plain
icon=
"el-icon-download"
size=
"mini"
:loading=
"exportLoading"
@
click=
"handleExport"
v-hasPermi=
"['workOrder:feedback:export']"
>
导出
</el-button>
</el-col>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
<el-table
v-loading=
"loading"
:data=
"feedbackList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"工单反馈id"
align=
"center"
prop=
"feedbackId"
/>
<el-table-column
label=
"工单id"
align=
"center"
prop=
"orderId"
/>
<el-table-column
label=
"设备id"
align=
"center"
prop=
"deviceId"
/>
<el-table-column
label=
"反馈内容"
align=
"center"
prop=
"contents"
/>
<el-table-column
label=
"反馈时间"
align=
"center"
prop=
"feedbackTime"
width=
"180"
>
<template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
feedbackTime
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"是否存在隐患"
align
=
"center"
prop
=
"isHiddenDanger"
/>
<
el
-
table
-
column
label
=
"处理状态"
align
=
"center"
prop
=
"dealStatus"
/>
<
el
-
table
-
column
label
=
"图片地址1"
align
=
"center"
prop
=
"pictureUrl1"
/>
<
el
-
table
-
column
label
=
"图片地址2"
align
=
"center"
prop
=
"pictureUrl2"
/>
<
el
-
table
-
column
label
=
"图片地址3"
align
=
"center"
prop
=
"pictureUrl3"
/>
<
el
-
table
-
column
label
=
"备注"
align
=
"center"
prop
=
"remarks"
/>
<
el
-
table
-
column
label
=
"操作"
align
=
"center"
class
-
name
=
"small-padding fixed-width"
>
<
template
slot
-
scope
=
"scope"
>
<
el
-
button
size
=
"mini"
type
=
"text"
icon
=
"el-icon-edit"
@
click
=
"handleUpdate(scope.row)"
v
-
hasPermi
=
"['workOrder:feedback:edit']"
>
修改
<
/el-button
>
<
el
-
button
size
=
"mini"
type
=
"text"
icon
=
"el-icon-delete"
@
click
=
"handleDelete(scope.row)"
v
-
hasPermi
=
"['workOrder:feedback:remove']"
>
删除
<
/el-button
>
<
/template
>
<
/el-table-column
>
<
/el-table
>
<
pagination
v
-
show
=
"total>0"
:
total
=
"total"
:
page
.
sync
=
"queryParams.pageNum"
:
limit
.
sync
=
"queryParams.pageSize"
@
pagination
=
"getList"
/>
<!--
添加或修改工单反馈信息对话框
-->
<
el
-
dialog
:
title
=
"title"
:
visible
.
sync
=
"open"
width
=
"500px"
append
-
to
-
body
>
<
el
-
form
ref
=
"form"
:
model
=
"form"
:
rules
=
"rules"
label
-
width
=
"80px"
>
<
el
-
form
-
item
label
=
"工单id"
prop
=
"orderId"
>
<
el
-
input
v
-
model
=
"form.orderId"
placeholder
=
"请输入工单id"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"设备id"
prop
=
"deviceId"
>
<
el
-
input
v
-
model
=
"form.deviceId"
placeholder
=
"请输入设备id"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"反馈内容"
prop
=
"contents"
>
<
el
-
input
v
-
model
=
"form.contents"
type
=
"textarea"
placeholder
=
"请输入内容"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"反馈时间"
prop
=
"feedbackTime"
>
<
el
-
date
-
picker
clearable
size
=
"small"
v
-
model
=
"form.feedbackTime"
type
=
"date"
value
-
format
=
"yyyy-MM-dd"
placeholder
=
"选择反馈时间"
>
<
/el-date-picker
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"是否存在隐患"
prop
=
"isHiddenDanger"
>
<
el
-
input
v
-
model
=
"form.isHiddenDanger"
placeholder
=
"请输入是否存在隐患"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"处理状态"
>
<
el
-
radio
-
group
v
-
model
=
"form.dealStatus"
>
<
el
-
radio
label
=
"1"
>
请选择字典生成
<
/el-radio
>
<
/el-radio-group
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"图片地址1"
prop
=
"pictureUrl1"
>
<
el
-
input
v
-
model
=
"form.pictureUrl1"
type
=
"textarea"
placeholder
=
"请输入内容"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"图片地址2"
prop
=
"pictureUrl2"
>
<
el
-
input
v
-
model
=
"form.pictureUrl2"
type
=
"textarea"
placeholder
=
"请输入内容"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"图片地址3"
prop
=
"pictureUrl3"
>
<
el
-
input
v
-
model
=
"form.pictureUrl3"
type
=
"textarea"
placeholder
=
"请输入内容"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"备注"
prop
=
"remarks"
>
<
el
-
input
v
-
model
=
"form.remarks"
placeholder
=
"请输入备注"
/>
<
/el-form-item
>
<
/el-form
>
<
div
slot
=
"footer"
class
=
"dialog-footer"
>
<
el
-
button
type
=
"primary"
@
click
=
"submitForm"
>
确
定
<
/el-button
>
<
el
-
button
@
click
=
"cancel"
>
取
消
<
/el-button
>
<
/div
>
<
/el-dialog
>
<
/div
>
<
/template
>
<
script
>
import
{
listFeedback
,
getFeedback
,
delFeedback
,
addFeedback
,
updateFeedback
,
exportFeedback
}
from
"@/api/workOrder/feedback"
;
export
default
{
name
:
"Feedback"
,
components
:
{
}
,
data
()
{
return
{
// 遮罩层
loading
:
true
,
// 导出遮罩层
exportLoading
:
false
,
// 选中数组
ids
:
[],
// 非单个禁用
single
:
true
,
// 非多个禁用
multiple
:
true
,
// 显示搜索条件
showSearch
:
true
,
// 总条数
total
:
0
,
// 工单反馈信息表格数据
feedbackList
:
[],
// 弹出层标题
title
:
""
,
// 是否显示弹出层
open
:
false
,
// 查询参数
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
orderId
:
null
,
deviceId
:
null
,
contents
:
null
,
feedbackTime
:
null
,
isHiddenDanger
:
null
,
dealStatus
:
null
,
pictureUrl1
:
null
,
pictureUrl2
:
null
,
pictureUrl3
:
null
,
remarks
:
null
}
,
// 表单参数
form
:
{
}
,
// 表单校验
rules
:
{
}
}
;
}
,
created
()
{
this
.
getList
();
}
,
methods
:
{
/** 查询工单反馈信息列表 */
getList
()
{
this
.
loading
=
true
;
listFeedback
(
this
.
queryParams
).
then
(
response
=>
{
this
.
feedbackList
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
}
);
}
,
// 取消按钮
cancel
()
{
this
.
open
=
false
;
this
.
reset
();
}
,
// 表单重置
reset
()
{
this
.
form
=
{
feedbackId
:
null
,
orderId
:
null
,
deviceId
:
null
,
contents
:
null
,
feedbackTime
:
null
,
isHiddenDanger
:
null
,
dealStatus
:
"0"
,
pictureUrl1
:
null
,
pictureUrl2
:
null
,
pictureUrl3
:
null
,
remarks
:
null
}
;
this
.
resetForm
(
"form"
);
}
,
/** 搜索按钮操作 */
handleQuery
()
{
this
.
queryParams
.
pageNum
=
1
;
this
.
getList
();
}
,
/** 重置按钮操作 */
resetQuery
()
{
this
.
resetForm
(
"queryForm"
);
this
.
handleQuery
();
}
,
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
item
=>
item
.
feedbackId
)
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
}
,
/** 新增按钮操作 */
handleAdd
()
{
this
.
reset
();
this
.
open
=
true
;
this
.
title
=
"添加工单反馈信息"
;
}
,
/** 修改按钮操作 */
handleUpdate
(
row
)
{
this
.
reset
();
const
feedbackId
=
row
.
feedbackId
||
this
.
ids
getFeedback
(
feedbackId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"修改工单反馈信息"
;
}
);
}
,
/** 提交按钮 */
submitForm
()
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
form
.
feedbackId
!=
null
)
{
updateFeedback
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
"修改成功"
);
this
.
open
=
false
;
this
.
getList
();
}
);
}
else
{
addFeedback
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
"新增成功"
);
this
.
open
=
false
;
this
.
getList
();
}
);
}
}
}
);
}
,
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
feedbackIds
=
row
.
feedbackId
||
this
.
ids
;
this
.
$confirm
(
'是否确认删除工单反馈信息编号为"'
+
feedbackIds
+
'"的数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}
).
then
(
function
()
{
return
delFeedback
(
feedbackIds
);
}
).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"删除成功"
);
}
).
catch
(()
=>
{
}
);
}
,
/** 导出按钮操作 */
handleExport
()
{
const
queryParams
=
this
.
queryParams
;
this
.
$confirm
(
'是否确认导出所有工单反馈信息数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}
).
then
(()
=>
{
this
.
exportLoading
=
true
;
return
exportFeedback
(
queryParams
);
}
).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
this
.
exportLoading
=
false
;
}
).
catch
(()
=>
{
}
);
}
}
}
;
<
/script
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment