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
46b2acba
Commit
46b2acba
authored
Aug 02, 2021
by
yaqizhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
详情按钮
parent
ab3de9ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
124 additions
and
71 deletions
+124
-71
detail.vue
gassafety-web/src/views/workOrder/basicsInfo/detail.vue
+124
-71
No files found.
gassafety-web/src/views/workOrder/basicsInfo/detail.vue
View file @
46b2acba
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<el-steps
:active=
"active"
finish-status=
"success"
simple
prop=
"orderStatus"
style=
"margin-top: 5px"
>
<el-steps
:active=
"active"
finish-status=
"success"
simple
prop=
"orderStatus"
style=
"margin-top: 5px"
>
<el-step
title=
"未接收"
></el-step>
<el-step
title=
"未接收"
></el-step>
<el-step
title=
"已接收"
></el-step>
<el-step
title=
"已接收"
></el-step>
<!--
<el-step
title=
"进行中"
></el-step>
-->
<!--
<el-step
title=
"进行中"
></el-step>
-->
<el-step
title=
"已反馈"
></el-step>
<el-step
title=
"已反馈"
></el-step>
<el-step
title=
"已归档"
></el-step>
<el-step
title=
"已归档"
></el-step>
</el-steps>
</el-steps>
...
@@ -104,13 +104,13 @@
...
@@ -104,13 +104,13 @@
<el-divider></el-divider>
<el-divider></el-divider>
<!-- 反馈信息 -->
<!-- 反馈信息 -->
<!--
<div
style=
"width: 100%;font-weight: 600;"
v-if=
"activity.deviceType != '' && activity.deviceType != null"
>
-->
<!--
<div
style=
"width: 100%;font-weight: 600;"
v-if=
"activity.deviceType != '' && activity.deviceType != null"
>
-->
<div
style=
"width: 100%;font-weight: 600;"
>
<div
style=
"width: 100%;font-weight: 600;"
v-if=
"form.feedbackList != null"
>
<div
style=
"color: #31EAEA;width: 100%;height: 40px;"
>
<div
style=
"color: #31EAEA;width: 100%;height: 40px;"
>
<ul><li>
反馈信息
</li></ul>
<ul><li>
反馈信息
</li></ul>
</div>
</div>
<div
class=
"block"
style=
"width: 95%;margin-left: 2%;"
>
<div
class=
"block"
style=
"width: 95%;margin-left: 2%;"
>
<el-timeline
ref=
"timeline"
>
<el-timeline
ref=
"timeline"
>
<el-timeline-item
v-for=
"(activity, index) in form.feedbackList"
v-show=
'index>
2
?false:true'
:key=
"index"
:timestamp=
"activity.feedbackTime"
>
<el-timeline-item
v-for=
"(activity, index) in form.feedbackList"
v-show=
'index>
1
?false:true'
:key=
"index"
:timestamp=
"activity.feedbackTime"
>
<el-card>
<el-card>
<div
style=
"width: 600px;float: left;"
>
<div
style=
"width: 600px;float: left;"
>
<div
style=
" width: 600px;"
>
<div
style=
" width: 600px;"
>
...
@@ -160,15 +160,80 @@
...
@@ -160,15 +160,80 @@
</el-timeline-item>
</el-timeline-item>
</el-timeline>
</el-timeline>
</div>
</div>
<el-button
type=
"danger"
icon=
"el-icon-info"
@
click=
"changeDisplay(scope)"
>
<div
style=
"width: 95%;position: relative;"
@
click=
"changeDisplay(scope)"
>
<span
v-if=
"isDisplay==false"
>
点击展开
</span>
<!--
<el-button
type=
"primary"
>
-->
<span
v-else
>
点击隐藏
</span>
<i
class=
"el-icon-arrow-down"
v-if=
"isDisplay==false"
style=
"margin-left: 100px;color: #909399;font-size: 14px;"
>
</el-button>
<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>
<!--
</el-button>
-->
</div>
<el-divider></el-divider>
</div>
</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>
<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>
<el-form-item
label=
"工单编号"
prop=
"orderId"
>
<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>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -179,6 +244,7 @@
...
@@ -179,6 +244,7 @@
import
{
deviceTree
}
from
"@/api/device/deviceInfo"
;
import
{
deviceTree
}
from
"@/api/device/deviceInfo"
;
import
gaodeMap
from
"utils/gaodeMap.js"
;
import
gaodeMap
from
"utils/gaodeMap.js"
;
import
{
map
,
DEVICE_TYPE
}
from
"utils/gaodeMap.js"
;
import
{
map
,
DEVICE_TYPE
}
from
"utils/gaodeMap.js"
;
import
{
inspectorList
}
from
"@/api/system/user"
;
export
default
{
export
default
{
name
:
"BasicsInfo"
,
name
:
"BasicsInfo"
,
...
@@ -186,6 +252,7 @@ export default {
...
@@ -186,6 +252,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
inspector
:
[],
isDisplay
:
false
,
isDisplay
:
false
,
dialogImageUrl
:
''
,
dialogImageUrl
:
''
,
dialogVisible
:
false
,
dialogVisible
:
false
,
...
@@ -252,37 +319,6 @@ export default {
...
@@ -252,37 +319,6 @@ export default {
showAndHide
:
false
showAndHide
:
false
};
};
},
},
// mocData() {
// for (var i = 0; i
<
activity
.
length
;
i
++
)
{
// let item = {title: lists[i], name: activity[i]}
// this.detailList.push(activity)
// }
// console.log(this.detailList)
// },
// computed: {
// feedbackList: {
// get: function () {
// if (this.brandFold) {
// if (this.detailList.length
<
7
)
{
// return this.detailList
// }
// let newArr = []
// for (var i = 0; i
<
6
;
i
++
)
{
// let item = this.detailList[i]
// newArr.push(activity)
// }
// return newArr
// }
// return this.detailList
// },
// set: function (val) {
// this.form.feedbackList = val
// }
// }
// },
// changeFoldState() {
// this.brandFold = !this.brandFold
// },
created
()
{
created
()
{
// 如果是跳转来的,则接受初始化参数
// 如果是跳转来的,则接受初始化参数
// this.user_id = this.$route.query.id; //详细信息页接收参数
// this.user_id = this.$route.query.id; //详细信息页接收参数
...
@@ -302,20 +338,27 @@ export default {
...
@@ -302,20 +338,27 @@ export default {
this
.
getBasicsInfo
();
this
.
getBasicsInfo
();
},
},
methods
:
{
methods
:
{
getInspectorList
(){
this
.
loading
=
true
;
inspectorList
().
then
(
response
=>
{
this
.
inspector
=
response
.
data
;
this
.
loading
=
false
;
});
},
// 点击按钮显示隐藏
// 点击按钮显示隐藏
changeDisplay
(
e
){
changeDisplay
(
e
){
this
.
isDisplay
=
!
this
.
isDisplay
this
.
isDisplay
=
!
this
.
isDisplay
let
$timeline
=
this
.
$refs
.
timeline
;
let
$timeline
=
this
.
$refs
.
timeline
;
if
(
!
this
.
showAndHide
){
if
(
!
this
.
showAndHide
){
for
(
let
i
=
0
;
i
<
$timeline
.
$children
.
length
;
i
++
){
for
(
let
i
=
0
;
i
<
$timeline
.
$children
.
length
;
i
++
){
if
(
i
>
3
){
if
(
i
>
1
){
$timeline
.
$children
[
i
].
$el
.
style
.
display
=
"block"
;
$timeline
.
$children
[
i
].
$el
.
style
.
display
=
"block"
;
}
}
}
}
this
.
showAndHide
=
true
;
this
.
showAndHide
=
true
;
}
else
{
}
else
{
for
(
let
i
=
0
;
i
<
$timeline
.
$children
.
length
;
i
++
){
for
(
let
i
=
0
;
i
<
$timeline
.
$children
.
length
;
i
++
){
if
(
i
>
3
){
if
(
i
>
1
){
$timeline
.
$children
[
i
].
$el
.
style
.
display
=
"none"
;
$timeline
.
$children
[
i
].
$el
.
style
.
display
=
"none"
;
}
}
}
}
...
@@ -381,7 +424,7 @@ export default {
...
@@ -381,7 +424,7 @@ export default {
// 取消按钮
// 取消按钮
cancel
()
{
cancel
()
{
this
.
open
=
false
;
this
.
open
=
false
;
this
.
reset
();
//
this.reset();
},
},
// 表单重置
// 表单重置
reset
()
{
reset
()
{
...
@@ -421,36 +464,46 @@ export default {
...
@@ -421,36 +464,46 @@ export default {
this
.
open
=
true
;
this
.
open
=
true
;
this
.
title
=
"添加工单基础信息"
;
this
.
title
=
"添加工单基础信息"
;
},
},
/** 归档按钮操作 */
handleFinish
(
res
)
{
// this.reset();
getBasicsInfo
(
res
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"工单信息归档"
;
});
},
/** 修改按钮操作 */
/** 修改按钮操作 */
handleUpdate
(
r
ow
)
{
handleUpdate
(
r
es
)
{
this
.
reset
();
//
this.reset();
const
orderId
=
row
.
orderId
||
this
.
ids
this
.
getInspectorList
();
getBasicsInfo
(
orderId
).
then
(
response
=>
{
getBasicsInfo
(
res
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
open
=
true
;
this
.
title
=
"修改工单基础信息
"
;
this
.
title
=
"工单信息修改
"
;
});
});
},
},
/** 提交按钮 */
/** 提交按钮 */
submitForm
()
{
/** 提交按钮 */
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
submitForm
()
{
if
(
valid
)
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
this
.
form
.
orderId
!=
null
)
{
if
(
valid
)
{
updateBasicsInfo
(
this
.
form
).
then
(
response
=>
{
if
(
this
.
form
.
orderStatus
==
'0'
)
{
this
.
msgSuccess
(
"修改成功"
);
updateBasicsInfo
(
this
.
form
).
then
(
response
=>
{
this
.
open
=
false
;
this
.
msgSuccess
(
"修改成功"
)
;
this
.
getList
()
;
this
.
open
=
false
;
}
);
this
.
getList
(
);
}
else
{
}
);
addBasicsInfo
(
this
.
form
).
then
(
response
=>
{
}
else
if
(
this
.
form
.
orderStatus
==
'2'
)
{
this
.
msgSuccess
(
"新增成功"
);
updateOrderStatus
(
this
.
form
).
then
(
response
=>
{
this
.
open
=
false
;
this
.
msgSuccess
(
"操作成功"
)
;
this
.
getList
()
;
this
.
open
=
false
;
}
);
this
.
getList
(
);
}
}
);
}
}
});
}
},
});
},
/** 删除按钮操作 */
/** 删除按钮操作 */
handleDelete
(
row
)
{
handleDelete
(
row
)
{
const
orderIds
=
row
.
orderId
||
this
.
ids
;
const
orderIds
=
row
.
orderId
||
this
.
ids
;
...
...
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