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
f7357d54
Commit
f7357d54
authored
Aug 10, 2021
by
王晓倩
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
2ed66b2a
b0a5815a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
219 additions
and
322 deletions
+219
-322
alarmdetail.vue
...-web/src/views/dataMonitoring/deviceAlarm/alarmdetail.vue
+110
-79
index.vue
gassafety-web/src/views/dataMonitoring/deviceAlarm/index.vue
+1
-0
index.vue
...y-web/src/views/deviceInspection/inspectionPlan/index.vue
+3
-2
inspectiondetail.vue
...iews/deviceInspection/inspectionPlan/inspectiondetail.vue
+105
-241
No files found.
gassafety-web/src/views/dataMonitoring/deviceAlarm/alarmdetail.vue
View file @
f7357d54
...
...
@@ -12,6 +12,51 @@
</div>
</div>
<div
style=
"width: 100%;height: 200px;"
>
<!--
<div
style=
"color: #31EAEA;width: 30%;height: 30px;"
>
<ul><li>
详细信息
</li></ul>
</div>
-->
<el-form
ref=
"form"
v-model=
"form"
:rules=
"rules"
label-width=
"100px"
style=
"float: left;margin-left: 50px;"
>
<el-form-item
label=
"设备类型:"
prop=
"deviceType"
>
<font
v-if=
"form.deviceType == 0"
>
管道
</font>
<font
v-if=
"form.deviceType == 1"
>
调压阀
</font>
<font
v-if=
"form.deviceType == 2"
>
阀门井
</font>
<font
v-if=
"form.deviceType == 3"
>
流量计
</font>
<font
v-if=
"form.deviceType == 4"
>
压力表
</font>
</el-form-item>
<el-form-item
label=
"设备编号:"
prop=
"deviceCode"
>
<font>
{{
form
.
deviceCode
}}
</font>
</el-form-item>
</el-form>
<el-form
ref=
"form"
v-model=
"form"
:rules=
"rules"
label-width=
"100px"
style=
"float: left;margin-left: 50px;"
>
<el-form-item
label=
"报警类型:"
prop=
"alarmType"
>
<font>
{{
form
.
alarmType
}}
</font>
</el-form-item>
<el-form-item
label=
"报警值:"
prop=
"alarmValue"
>
<font>
{{
form
.
alarmValue
}}
</font>
</el-form-item>
</el-form>
<el-form
ref=
"form"
v-model=
"form"
:rules=
"rules"
label-width=
"100px"
style=
"float: left;margin-left: 50px;"
>
<el-form-item
label=
"报警开始时间:"
prop=
"startTime"
>
<font>
{{
form
.
startTime
}}
</font>
</el-form-item>
<el-form-item
label=
"报警结束时间:"
prop=
"updateTime"
>
<font>
{{
form
.
endTime
}}
</font>
</el-form-item>
</el-form>
<el-form
ref=
"form"
v-model=
"form"
:rules=
"rules"
label-width=
"100px"
style=
"float: left;margin-left: 50px;"
>
<el-form-item
label=
"处理状态:"
prop=
"dealStatus"
>
<font
v-if=
"form.dealStatus == 1"
>
不需要处理
</font>
<font
v-if=
"form.dealStatus == 2"
>
已处理完成
</font>
<font
v-if=
"form.dealStatus == 3"
>
未处理完成
</font>
</el-form-item>
</el-form>
</div>
<el-divider></el-divider>
<div
style=
"width: 100%;height: 350px;padding: 10px;height: 300px;"
>
<div
style=
"width: 66.6%;float: left;height: 100%;"
>
<el-table
...
...
@@ -69,7 +114,7 @@
</el-table-column>
</el-table>
</div>
<div
id=
"marbox"
style=
"width: 33%;height: 3
50px; border: 1px solid rgb(218, 213, 213);float: right;margin-top: -45px
;"
>
<div
id=
"marbox"
style=
"width: 33%;height: 3
04px; border: 1px solid rgb(218, 213, 213);float: right
;"
>
<div
style=
"width: 100%;height: 100%"
id=
"container"
></div>
</div>
</div>
...
...
@@ -91,13 +136,13 @@
<
script
>
import
{
listBasicsInfo
,
getBasicsInfo
,
delBasicsInfo
,
addBasicsInfo
,
updateBasicsInfo
,
exportBasicsInfo
}
from
"@/api/workOrder/basicsInfo
"
;
import
{
listDeviceAlarm
,
getDeviceAlarm
}
from
"@/api/dataMonitoring/deviceAlarm
"
;
import
{
deviceTree
}
from
"@/api/device/deviceInfo"
;
import
gaodeMap
from
"utils/gaodeMap.js"
;
import
{
map
,
DEVICE_TYPE
}
from
"utils/gaodeMap.js"
;
import
{
inspectorList
}
from
"@/api/system/user"
;
import
echarts
from
'echarts'
;
// Vue.prototype.$echarts = echarts
;
import
{
addBasicsInfo
}
from
"@/api/workOrder/basicsInfo"
;
export
default
{
name
:
"BasicsInfo"
,
...
...
@@ -111,11 +156,6 @@ export default {
address
:
'上海市普陀区金沙江路 1518 弄'
},],
inspector
:
[],
isDisplay
:
false
,
dialogImageUrl
:
''
,
dialogVisible
:
false
,
disabled
:
false
,
imageUrl
:
''
,
// 遮罩层
loading
:
true
,
// 导出遮罩层
...
...
@@ -130,51 +170,42 @@ export default {
showSearch
:
true
,
// 总条数
total
:
0
,
// 工单基础信息表格数据
basicsInfoList
:
[],
// feedbackList: [],
rules
:{},
// 报警信息表格数据
deviceAlarmList
:
[],
// 报警类型字典
typeOptions
:
[],
// 设备级联
options
:
[],
props
:
{
multiple
:
true
,
value
:
"id"
,
label
:
"name"
,
level
:
"level"
,
children
:
"childList"
,
},
devices
:
null
,
// 巡检员列表
inspector
:
[],
// 弹出层标题
title
:
""
,
// 是否显示弹出层
open
:
false
,
// 工单状态字典
typeOptions
:
[],
pickerOptions
:[],
// 工单类型字典
ordertypeOptions
:
[],
// 设备树选项
deviceOptions
:
[
{
label
:
"设备列表"
,
childList
:
[]
}
],
defaultProps
:
{
children
:
"childList"
,
label
:
"label"
},
// 查询参数
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
orderType
:
null
,
orderName
:
null
,
orderStatus
:
null
,
appointInspector
:
null
,
allotTime
:
null
,
actualInspector
:
null
,
actualTime
:
null
,
remarks
:
null
deviceId
:
null
,
orderId
:
null
,
alarmType
:
null
,
alarmValue
:
null
,
startTime
:
null
,
endTime
:
null
,
dealStatus
:
null
},
// 表单参数
form
:
{},
activity
:
{},
// 表单校验
rules
:
{
},
active
:
0
,
orderId
:
""
,
showAndHide
:
false
form
:
{
},
};
},
...
...
@@ -189,12 +220,12 @@ export default {
this
.
getDicts
(
"t_order_type"
).
then
(
response
=>
{
this
.
ordertypeOptions
=
response
.
data
;
});
this
.
get
BasicsInfo
();
this
.
get
DeviceAlarm
();
},
mounted
(){
let
gaoMap
=
new
gaodeMap
(
"石家庄"
);
this
.
gaoMap
=
gaoMap
;
this
.
get
BasicsInfo
();
this
.
get
DeviceAlarm
();
this
.
initData
();
this
.
drawPieChart
();
this
.
main3
();
...
...
@@ -752,14 +783,14 @@ export default {
/** 查询工单基础信息列表 */
getList
()
{
this
.
loading
=
true
;
listBasicsInfo
(
this
.
queryParams
).
then
(
response
=>
{
this
.
basicsInfo
List
=
response
.
rows
;
listDeviceAlarm
(
this
.
queryParams
).
then
(
response
=>
{
this
.
deviceAlarm
List
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
});
},
getBasicsInfo
(){
getBasicsInfo
(
this
.
orderId
).
then
(
response
=>
{
getDeviceAlarm
(){
getDeviceAlarm
(
this
.
orderId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
active
=
parseInt
(
response
.
data
.
orderStatus
)
+
1
;
if
(
this
.
form
.
deviceInfoList
.
length
>
0
){
...
...
@@ -837,7 +868,7 @@ export default {
/** 归档按钮操作 */
handleFinish
(
res
)
{
// this.reset();
get
BasicsInfo
(
res
).
then
(
response
=>
{
get
DeviceAlarm
(
res
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"工单信息归档"
;
...
...
@@ -847,7 +878,7 @@ export default {
handleUpdate
(
res
)
{
// this.reset();
this
.
getInspectorList
();
get
BasicsInfo
(
this
.
orderId
).
then
(
response
=>
{
get
InspectorList
(
this
.
orderId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"工单信息修改"
;
...
...
gassafety-web/src/views/dataMonitoring/deviceAlarm/index.vue
View file @
f7357d54
...
...
@@ -243,6 +243,7 @@ export default {
this
.
deviceAlarmList
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
console
.
log
(
"this.deviceAlarmList"
,
this
.
deviceAlarmList
)
});
},
getInspectorList
(){
...
...
gassafety-web/src/views/deviceInspection/inspectionPlan/index.vue
View file @
f7357d54
...
...
@@ -283,7 +283,7 @@
// 表单校验
rules
:
{
planName
:
[
{
required
:
true
,
message
:
"计划名称不能为空"
,
trigger
:
"blur"
}
{
required
:
true
,
message
:
"
计划名称不能为空"
,
trigger
:
"blur"
}
],
orderName
:
[
{
required
:
true
,
message
:
"工单名称不能为空"
,
trigger
:
"blur"
}
...
...
@@ -321,6 +321,7 @@
this
.
inspectionPlanList
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
console
.
log
(
"this.inspectionPlanList"
,
this
.
inspectionPlanList
)
}
);
}
,
/** 详细信息跳转 */
...
...
@@ -328,7 +329,7 @@
this
.
$router
.
push
({
path
:
'/inspectionPlan/inspectiondetail'
,
query
:{
orderId
:
row
.
order
Id
planId
:
row
.
plan
Id
}
}
)
//带参跳转
}
,
...
...
gassafety-web/src/views/deviceInspection/inspectionPlan/inspectiondetail.vue
View file @
f7357d54
...
...
@@ -26,38 +26,22 @@
<ul><li>
详细信息
</li></ul>
</div>
<el-form
ref=
"form"
v-model=
"form"
:rules=
"rules"
label-width=
"100px"
style=
"float: left;margin-left: 50px;"
>
<!--
<el-form-item
label=
"工单类型:"
prop=
"orderType"
>
<font
v-if=
"form.orderType == 1"
>
巡检信息
</font>
<font
v-if=
"form.orderType == 2"
>
隐患信息
</font>
<font
v-if=
"form.orderType == 3"
>
报警信息
</font>
<el-form-item
label=
"巡检名称:"
prop=
"planName"
>
<font>
{{
form
.
planName
}}
</font>
</el-form-item>
<el-form-item
label=
"工单编号:"
prop=
"orderId"
>
<font>
{{
form
.
orderId
}}
</font>
</el-form-item>
-->
<el-form-item
label=
"巡检名称:"
prop=
"orderName"
>
<font>
{{
form
.
orderName
}}
</font>
</el-form-item>
<!--
<el-form-item
label=
"工单状态:"
prop=
"orderStatus"
>
<font
v-if=
"form.orderStatus == 0"
>
未接收
</font>
<font
v-if=
"form.orderStatus == 1"
>
已接收
</font>
<font
v-if=
"form.orderStatus == 2"
>
已反馈
</font>
<font
v-if=
"form.orderStatus == 3"
>
已归档
</font>
</el-form-item>
-->
<el-form-item
label=
"选择人员:"
prop=
"appointInspectorName"
>
<font>
{{
form
.
appointInspectorName
}}
</font>
<el-form-item
label=
"检测地点:"
prop=
"address"
>
<font>
{{
form
.
address
}}
</font>
</el-form-item>
<el-form-item
label=
"检测地点:"
prop=
"appointInspectorName"
>
<font>
{{
form
.
appointInspectorName
}}
</font>
<el-form-item
label=
"计划执行时间:"
prop=
"startTime"
>
<font>
{{
form
.
startTime
}}
至
{{
form
.
endTime
}}
</font>
</el-form-item>
<el-form-item
label=
"计划描述:"
prop=
"
appointInspectorName
"
>
<div
style=
"height: 90px;border: 1px solid rgb(187, 183, 183);margin-top: 10px;overflow-y: auto;padding: 5px;border-radius: 5px;"
>
<font>
{{
form
.
appointInspectorName
}}
<el-form-item
label=
"计划描述:"
prop=
"
remarks
"
>
<div
style=
"height: 90px;
width: 250px;
border: 1px solid rgb(187, 183, 183);margin-top: 10px;overflow-y: auto;padding: 5px;border-radius: 5px;"
>
<font>
{{
form
.
remarks
}}
</font>
</div>
</el-form-item>
<!--
<el-form-item
label=
"工单描述:"
prop=
"remarks"
>
<font>
{{
form
.
remarks
}}
</font>
</el-form-item>
-->
</el-form>
<el-form
ref=
"form"
v-model=
"form"
:rules=
"rules"
label-width=
"100px"
style=
"float: left;width: 25%;"
>
<el-form-item
label=
"设备类型:"
prop=
"deviceType"
v-if=
"form.orderType != 1"
>
...
...
@@ -68,211 +52,75 @@
<font
v-if=
"form.deviceType == 4"
>
压力表
</font>
</el-form-item>
<el-form-item
label=
"设备名称:"
prop=
"deviceName"
>
<
font
v-if=
"form.orderType != 1"
>
{{
form
.
deviceName
}}
</font
>
<
!--
<font
v-if=
"form.orderType != 1"
>
{{
form
.
deviceName
}}
</font>
--
>
<el-tree
:data=
"deviceOptions"
:props=
"defaultProps"
:expand-on-click-node=
"false"
ref=
"tree"
@
node-click=
"handleNodeClick"
v-if=
"form.orderType == 1"
/>
</el-form-item>
<!--
<el-form-item
label=
"设备位置:"
v-if=
"form.orderType != 1"
>
<font>
{{
form
.
address
}}
</font>
</el-form-item>
<el-form-item
label=
"工单进度:"
v-if=
"form.orderType == 1"
>
<font>
{{
form
.
finishNum
}}
/
{{
form
.
deviceNum
}}
</font>
</el-form-item>
-->
<el-form-item
label=
"计划执行时间:"
prop=
"allotTime"
>
<font>
{{
form
.
allotTime
}}
-
{{
form
.
allotTime
}}
</font>
</el-form-item>
<!--
<el-form-item
label=
"接收时间:"
prop=
"actualTime"
>
<font>
{{
form
.
actualTime
}}
</font>
</el-form-item>
-->
</el-form>
<div
id=
"marbox"
style=
"width: 700px;height: 250px;float: left;margin-top: -35px; border: 1px solid rgb(218, 213, 213);"
>
<div
style=
"width: 100%;height: 100%"
id=
"container"
></div>
</div>
</div>
<!-- 接单信息 -->
<div
v-if=
"form.actualTime != '' && form.actualTime != null"
>
<div>
<el-divider></el-divider>
<div
style=
"color: #31EAEA;width: 100%;height: 40px;"
>
<ul><li>
接单信息
</li></ul>
</div>
<el-form
ref=
"form"
v-model=
"form"
:rules=
"rules"
label-width=
"100px"
style=
"margin-left: 50px;height: 30px;width: 100%;"
>
<el-form-item
label=
"下发人员:"
prop=
"actualInspectorName"
style=
"float: left;width: 15%;"
>
<font>
{{
form
.
actualInspectorName
}}
</font>
</el-form-item>
<el-form-item
label=
"下发时间:"
prop=
"actualTime"
style=
"float: left;width: 20%;"
>
<font>
{{
form
.
actualTime
}}
</font>
</el-form-item>
<el-form-item
label=
"工单编号:"
prop=
"actualTime"
style=
"float: left;"
>
<font>
{{
form
.
actualTime
}}
</font>
</el-form-item>
</el-form>
</div>
<el-divider></el-divider>
<!-- 反馈信息 -->
<!--
<div
style=
"width: 100%;font-weight: 600;"
v-if=
"form.feedbackList != null"
>
<div
style=
"color: #31EAEA;width: 100%;height: 40px;"
>
<ul><li>
反馈信息
</li></ul>
</div>
<div
class=
"block"
style=
"width: 95%;margin-left: 2%;"
>
<el-timeline
ref=
"timeline"
>
<el-timeline-item
v-for=
"(activity, index) in form.feedbackList"
v-show=
'index>1?false:true'
:key=
"index"
:timestamp=
"activity.feedbackTime"
>
<el-card>
<div
style=
"width: 600px;float: left;"
>
<div
style=
" width: 600px;"
>
<div
style=
"float: left;margin-left: 50px; width: 250px;"
>
<p>
设备类型:
<span
v-if=
"activity.deviceType == 0"
>
管道
</span>
<span
v-if=
"activity.deviceType == 1"
>
调压箱
</span>
<span
v-if=
"activity.deviceType == 2"
>
阀门井
</span>
<span
v-if=
"activity.deviceType == 3"
>
流量计
</span>
<span
v-if=
"activity.deviceType == 4"
>
压力表
</span>
</p>
<p>
是否有隐患:
<span
v-if=
"activity.isHiddenDanger == 1"
>
是
</span>
<span
v-if=
"activity.isHiddenDanger == 2"
>
否
</span>
</p>
<p
v-if=
"activity.isHiddenDanger == 1"
>
处理状态:
<span
v-if=
"activity.dealStatus == 1"
>
不需要处理
</span>
<span
v-if=
"activity.dealStatus == 2"
>
已处理完成
</span>
<span
v-if=
"activity.dealStatus == 3"
>
未处理完成
</span>
</p>
<div
style=
"width: 600px;"
>
<p>
反馈信息:
<span>
{{
activity
.
contents
}}
</span>
</p>
</div>
</div>
<div
style=
"float: left;margin-left: 50px; width: 250px;"
>
<p>
设备名称:
{{
activity
.
deviceName
}}
</p>
<p>
反馈时间:
{{
activity
.
feedbackTime
}}
</p>
</div>
</div>
</div>
<div
class=
"feedbackTime-div"
>
<div
class=
"feedbackTime"
>
<el-image
:src=
"activity.pictureUrl1"
:preview-src-list=
"[activity.pictureUrl1]"
v-if=
"activity.pictureUrl1 != null && activity.pictureUrl1 != ''"
style=
"width: 90px;"
></el-image>
</div>
<div
class=
"feedbackTime"
>
<el-image
:src=
"activity.pictureUrl2"
:preview-src-list=
"[activity.pictureUrl2]"
v-if=
"activity.pictureUrl2 != null && activity.pictureUrl2 != ''"
style=
"width: 90px;"
></el-image>
</div>
<div
class=
"feedbackTime"
>
<el-image
:src=
"activity.pictureUrl3"
:preview-src-list=
"[activity.pictureUrl3]"
v-if=
"activity.pictureUrl3 != null && activity.pictureUrl3 != ''"
style=
"width: 90px;"
></el-image>
</div>
</div>
</el-card>
</el-timeline-item>
</el-timeline>
</div>
<div
style=
"width: 95%;position: relative;"
@
click=
"changeDisplay(scope)"
>
<i
class=
"el-icon-arrow-down"
v-if=
"isDisplay==false"
style=
"margin-left: 100px;color: #909399;font-size: 14px;"
>
<span
style=
"text-decoration:underline"
>
显示全部
</span>
</i>
<i
class=
"el-icon-arrow-up"
v-else
style=
"color: #909399;font-size: 14px;margin-left: 100px;"
>
<span
style=
"text-decoration:underline"
>
收起
</span>
</i>
</div>
<el-divider></el-divider>
</div>
-->
<!-- 归档 -->
<!--
<div
class=
""
style=
"width: 95%; height: 60px;margin-left: 50px;text-align: center;"
>
<el-button
type=
"primary"
size=
"normal"
icon=
"el-icon-edit"
@
click=
"handleUpdate(form.orderId)"
v-hasPermi=
"['workOrder:basicsInfo:edit']"
>
修改
</el-button>
<el-button
type=
"primary"
size=
"normal"
icon=
"el-icon-edit"
@
click=
"handleFinish(form.orderId)"
v-hasPermi=
"['workOrder:basicsInfo:editStatus']"
>
归档
</el-button>
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"800px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"100px"
>
<div
v-if=
"this.title == '工单信息修改'"
>
<el-form-item
label=
"工单名称"
prop=
"orderName"
>
<el-input
v-model=
"form.orderName"
placeholder=
"请输入工单名称"
/>
</el-form-item>
<el-form-item
label=
"指定执行人员"
prop=
"appointInspector"
>
<el-select
v-model=
"form.appointInspectorName"
placeholder=
"请选择执行人员"
clearable
size=
"small"
@
change=
"setUserId"
>
<el-option
v-for=
"item in inspector"
:key=
"item.userId"
:label=
"item.nickName"
:value=
"item.userId"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"工单描述"
prop=
"remarks"
>
<el-input
v-model=
"form.remarks"
type=
"textarea"
placeholder=
"请输入工单描述"
/>
</el-form-item>
</div>
<div
v-if=
"this.title == '工单信息归档'"
>
<el-form-item
label=
"工单名称"
prop=
"orderName"
>
<font>
{{
form
.
orderName
}}
</font>
<el-form-item
label=
"下发人员:"
prop=
"appointInspectorName"
style=
"float: left;width: 15%;"
>
<font>
{{
form
.
appointInspectorName
}}
</font>
</el-form-item>
<el-form-item
label=
"工单类型"
prop=
"orderType"
>
<span
type=
"primary"
v-if=
"form.orderType == 1"
>
巡检信息
</span>
<span
type=
"primary"
v-if=
"form.orderType == 2"
>
隐患信息
</span>
<span
type=
"primary"
v-if=
"form.orderType == 3"
>
报警信息
</span>
<el-form-item
label=
"下发时间:"
prop=
"allotTime"
style=
"float: left;width: 20%;"
>
<font>
{{
form
.
allotTime
}}
</font>
</el-form-item>
<el-form-item
label=
"工单编号"
prop=
"orderId
"
>
<el-form-item
label=
"工单编号:"
prop=
"orderId"
style=
"float: left;
"
>
<font>
{{
form
.
orderId
}}
</font>
</el-form-item>
<el-form-item
label=
"归档信息"
prop=
"archiving"
>
<el-input
v-model=
"form.archiving"
type=
"textarea"
placeholder=
"请输入归档信息"
/>
</el-form-item>
</div>
</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>
-->
<el-divider></el-divider>
</div>
</div>
</
template
>
<
script
>
import
{
listBasicsInfo
,
getBasicsInfo
,
delBasicsInfo
,
addBasicsInfo
,
updateBasicsInfo
,
exportBasicsInfo
}
from
"@/api/workOrder/basicsInfo"
;
import
{
deviceTree
}
from
"@/api/device/deviceInfo"
;
import
{
listInspectionPlan
,
getInspectionPlan
,
addInspectionPlan
,
updateInspectionPlan
}
from
"@/api/deviceInspection/inspectionPlan"
;
import
gaodeMap
from
"utils/gaodeMap.js"
;
import
{
map
,
DEVICE_TYPE
}
from
"utils/gaodeMap.js"
;
import
{
addBasicsInfo
}
from
"@/api/workOrder/basicsInfo"
;
import
{
inspectorList
}
from
"@/api/system/user"
;
import
{
deviceNodeTree
}
from
"@/api/device/deviceInfo"
;
export
default
{
name
:
"
BasicsInfo
"
,
name
:
"
InspectionPlan
"
,
components
:
{
},
data
()
{
return
{
inspector
:
[],
isDisplay
:
false
,
dialogImageUrl
:
''
,
dialogVisible
:
false
,
disabled
:
false
,
imageUrl
:
''
,
// 遮罩层
loading
:
true
,
// 导出遮罩层
exportLoading
:
false
,
// 选中数组
ids
:
[],
// 设备树选项
defaultProps
:
{
children
:
"childList"
,
label
:
"label"
},
deviceOptions
:
[
{
label
:
"设备列表"
,
childList
:
[]
}
],
// 非单个禁用
single
:
true
,
// 非多个禁用
...
...
@@ -281,57 +129,67 @@ export default {
showSearch
:
true
,
// 总条数
total
:
0
,
// 工单基础信息表格数据
basicsInfoList
:
[],
// feedbackList: [],
// 巡检计划表格数据
inspectionPlanList
:
[],
// 计划状态字典
typeOptions
:
[],
// 设备级联
options
:
[],
plansName
:
''
,
props
:
{
multiple
:
true
,
value
:
"id"
,
label
:
"name"
,
level
:
"level"
,
children
:
"childList"
,
},
devices
:
null
,
// 巡检员列表
inspector
:
[],
// 弹出层标题
title
:
""
,
// 是否显示弹出层
open
:
false
,
// 工单状态字典
typeOptions
:
[],
pickerOptions
:[],
// 工单类型字典
ordertypeOptions
:
[],
// 设备树选项
deviceOptions
:
[
{
label
:
"设备列表"
,
childList
:
[]
}
],
defaultProps
:
{
children
:
"childList"
,
label
:
"label"
},
// 查询参数
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
orderType
:
null
,
orderName
:
null
,
orderStatus
:
null
,
appointInspector
:
null
,
allotTime
:
null
,
actualInspector
:
null
,
actualTime
:
null
,
planName
:
null
,
orderId
:
null
,
startTime
:
null
,
endTime
:
null
,
planStatus
:
null
,
remarks
:
null
},
// 表单参数
form
:
{},
activity
:
{},
form
:
{
},
// 表单校验
rules
:
{
},
active
:
0
,
orderId
:
""
,
showAndHide
:
false
// planName: [
// { required: true, message: " 计划名称不能为空", trigger: "blur" }
// ],
// orderName: [
// { required: true, message: "工单名称不能为空", trigger: "blur" }
// ],
// devices: [
// { required: true, message: "请选择巡检设备", trigger: "blur" }
// ],
// startTime: [
// { required: true, message: "请选择开始时间", trigger: "blur" }
// ],
// endTime: [
// { required: true, message: "请选择结束时间", trigger: "blur" }
// ],
// appointInspector: [
// { required: true, message: "请选择巡检人员", trigger: "blur" }
// ],
}
};
},
created
()
{
// 如果是跳转来的,则接受初始化参数
// this.user_id = this.$route.query.id; //详细信息页接收参数
this
.
orderId
=
this
.
$route
.
query
.
order
Id
;
this
.
planId
=
this
.
$route
.
query
.
plan
Id
;
this
.
getList
();
this
.
getDicts
(
"t_order_status"
).
then
(
response
=>
{
this
.
typeOptions
=
response
.
data
;
...
...
@@ -339,12 +197,12 @@ export default {
this
.
getDicts
(
"t_order_type"
).
then
(
response
=>
{
this
.
ordertypeOptions
=
response
.
data
;
});
this
.
get
BasicsInfo
();
this
.
get
InspectionPlan
();
},
mounted
(){
let
gaoMap
=
new
gaodeMap
(
"石家庄"
);
this
.
gaoMap
=
gaoMap
;
this
.
get
BasicsInfo
();
this
.
get
InspectionPlan
();
},
methods
:
{
getInspectorList
(){
...
...
@@ -392,28 +250,29 @@ export default {
/** 查询工单基础信息列表 */
getList
()
{
this
.
loading
=
true
;
list
BasicsInfo
(
this
.
queryParams
).
then
(
response
=>
{
this
.
basicsInfo
List
=
response
.
rows
;
list
InspectionPlan
(
this
.
queryParams
).
then
(
response
=>
{
this
.
inspectionPlan
List
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
});
},
get
BasicsInfo
(){
get
BasicsInfo
(
this
.
order
Id
).
then
(
response
=>
{
get
InspectionPlan
(){
get
InspectionPlan
(
this
.
plan
Id
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
active
=
parseInt
(
response
.
data
.
orderStatus
)
+
1
;
if
(
this
.
form
.
deviceInfoList
.
length
>
0
){
this
.
gaoMap
.
resetMapCenter
([
this
.
form
.
deviceInfoList
[
0
].
longitude
,
this
.
form
.
deviceInfoList
[
0
].
latitude
]);
console
.
log
(
"this.form"
,
this
.
form
)
if
(
this
.
form
.
inspectionPlanList
.
length
>
0
){
this
.
gaoMap
.
resetMapCenter
([
this
.
form
.
inspectionPlanList
[
0
].
longitude
,
this
.
form
.
inspectionPlanList
[
0
].
latitude
]);
}
for
(
var
i
=
0
;
i
<
this
.
form
.
deviceInfo
List
.
length
;
i
++
){
let
obj
=
this
.
form
.
deviceInfo
List
[
i
];
for
(
var
i
=
0
;
i
<
this
.
form
.
inspectionPlan
List
.
length
;
i
++
){
let
obj
=
this
.
form
.
inspectionPlan
List
[
i
];
this
.
gaoMap
.
addMarker
(
DEVICE_TYPE
.
WORKORDER
,
obj
)
}
if
(
this
.
form
.
orderType
==
'1'
)
{
// 获取设备列表树
let
data
=
{
key1
:
this
.
form
.
deviceInfo
List
,
key1
:
this
.
form
.
inspectionPlan
List
,
key2
:
this
.
form
.
pipeList
};
deviceTree
(
data
).
then
(
response
=>
{
...
...
@@ -439,6 +298,7 @@ export default {
// 表单重置
reset
()
{
this
.
form
=
{
planId
:
null
,
orderId
:
null
,
orderType
:
null
,
orderName
:
null
,
...
...
@@ -477,20 +337,24 @@ export default {
/** 归档按钮操作 */
handleFinish
(
res
)
{
// this.reset();
get
BasicsInfo
(
res
).
then
(
response
=>
{
get
InspectionPlan
(
res
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"工单信息归档"
;
});
},
/** 修改按钮操作 */
handleUpdate
(
res
)
{
// this.reset();
this
.
getInspectorList
();
getBasicsInfo
(
res
).
then
(
response
=>
{
handleUpdate
(
row
)
{
this
.
reset
();
deviceNodeTree
().
then
(
response
=>
{
this
.
options
=
response
.
data
;
});
const
planId
=
row
.
planId
||
this
.
ids
getInspectionPlan
(
planId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
form
.
devices
=
eval
(
this
.
form
.
deviceIds
);
this
.
open
=
true
;
this
.
title
=
"工单信息修改
"
;
this
.
title
=
"修改巡检计划
"
;
});
},
/** 提交按钮 */
...
...
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