Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
L
laravelzh
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
冯超鹏
laravelzh
Commits
07cc3fe7
Commit
07cc3fe7
authored
Dec 18, 2020
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新工单
parent
dda57577
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
6 deletions
+27
-6
index.vue
resources/js/views/alarm-order/index.vue
+27
-6
No files found.
resources/js/views/alarm-order/index.vue
View file @
07cc3fe7
...
@@ -124,7 +124,14 @@
...
@@ -124,7 +124,14 @@
</el-tooltip>
</el-tooltip>
<el-dialog
title=
"工单详细信息"
:visible
.
sync=
"dialogTableVisible"
width=
"70%"
>
<el-dialog
title=
"工单详细信息"
:visible
.
sync=
"dialogTableVisible"
width=
"70%"
>
<el-steps
:active=
"order_content.isorderone"
align-center
style=
"margin-bottom: 40px;"
>
<el-steps
:active=
"order_content.isorderone"
align-center
style=
"margin-bottom: 40px;"
>
<el-step
v-for=
"(item, oindex) in order_step"
:key=
"oindex + '1o'"
:title=
"stepFilter(item.schedule)"
:description=
"item.created_at + item.content"
></el-step>
<el-step
v-for=
"(item, oindex) in order_step"
:key=
"oindex + '1o'"
:title=
"stepFilter(item.schedule)"
:description=
"item.created_at + item.content"
:finish-status=
"item.finish_status"
>
</el-step>
</el-steps>
</el-steps>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
...
@@ -176,6 +183,7 @@
...
@@ -176,6 +183,7 @@
<el-form-item
label=
"联系电话"
>
{{ order_content.phone_number }}
</el-form-item>
<el-form-item
label=
"联系电话"
>
{{ order_content.phone_number }}
</el-form-item>
<el-form-item
label=
"是否到达现场"
>
{{ isLiveFilter(order_content.is_live) }}
</el-form-item>
<el-form-item
label=
"是否到达现场"
>
{{ isLiveFilter(order_content.is_live) }}
</el-form-item>
<el-form-item
label=
"是否属实"
>
{{ isVerifiedFilter(order_content.is_verified) }}
</el-form-item>
<el-form-item
label=
"是否属实"
>
{{ isVerifiedFilter(order_content.is_verified) }}
</el-form-item>
<el-form-item
label=
"维修状态"
>
{{ isRepairedFilter(order_content.isrepaired) }}
</el-form-item>
<el-form-item
label=
"进度"
>
{{ isOrderOneFilter(order_content.isorderone) }}
</el-form-item>
<el-form-item
label=
"进度"
>
{{ isOrderOneFilter(order_content.isorderone) }}
</el-form-item>
<el-form-item
label=
"反馈内容"
>
{{ order_content.content }}
</el-form-item>
<el-form-item
label=
"反馈内容"
>
{{ order_content.content }}
</el-form-item>
<el-form-item
size=
"large"
>
<el-form-item
size=
"large"
>
...
@@ -377,7 +385,7 @@ export default {
...
@@ -377,7 +385,7 @@ export default {
const
data
=
{
const
data
=
{
state
:
2
,
state
:
2
,
schedule
:
JSON
.
stringify
({
schedule
:
JSON
.
stringify
({
'schedule'
:
1
,
'content'
:
'恭喜,你的工单完成啦!'
,
'schedule'
:
5
,
'content'
:
'恭喜,你的工单完成啦!'
,
}),
}),
};
};
alarmOrderUpdate
(
data
,
id
).
then
(
response
=>
{
alarmOrderUpdate
(
data
,
id
).
then
(
response
=>
{
...
@@ -402,6 +410,12 @@ export default {
...
@@ -402,6 +410,12 @@ export default {
steps
[
2
]
=
'不属实'
;
steps
[
2
]
=
'不属实'
;
return
steps
[
id
];
return
steps
[
id
];
},
},
isRepairedFilter
(
id
)
{
const
status
=
[];
status
[
1
]
=
'已修好'
;
status
[
2
]
=
'未修好'
;
return
status
[
id
];
},
isOrderOneFilter
(
id
)
{
isOrderOneFilter
(
id
)
{
const
steps
=
[];
const
steps
=
[];
steps
[
1
]
=
'开始'
;
steps
[
1
]
=
'开始'
;
...
@@ -416,6 +430,7 @@ export default {
...
@@ -416,6 +430,7 @@ export default {
steps
[
2
]
=
'已接单'
;
steps
[
2
]
=
'已接单'
;
steps
[
3
]
=
'进行中'
;
steps
[
3
]
=
'进行中'
;
steps
[
4
]
=
'已完成'
;
steps
[
4
]
=
'已完成'
;
steps
[
5
]
=
'审核'
;
return
steps
[
step
];
return
steps
[
step
];
},
},
alarmShow
(
data
)
{
alarmShow
(
data
)
{
...
@@ -433,6 +448,7 @@ export default {
...
@@ -433,6 +448,7 @@ export default {
status
[
1
]
=
{
content
:
'进行中'
,
type
:
'warning'
};
status
[
1
]
=
{
content
:
'进行中'
,
type
:
'warning'
};
status
[
2
]
=
{
content
:
'完成'
,
type
:
'success'
};
status
[
2
]
=
{
content
:
'完成'
,
type
:
'success'
};
status
[
3
]
=
{
content
:
'异常终止'
,
type
:
'info'
};
status
[
3
]
=
{
content
:
'异常终止'
,
type
:
'info'
};
status
[
4
]
=
{
content
:
'已提交未审核'
,
type
:
'warning'
};
if
(
type
===
'type'
)
{
if
(
type
===
'type'
)
{
return
status
[
state
].
type
;
return
status
[
state
].
type
;
}
}
...
@@ -444,13 +460,15 @@ export default {
...
@@ -444,13 +460,15 @@ export default {
orderDetail
(
id
)
{
orderDetail
(
id
)
{
alarmOrderDetail
(
id
).
then
(
response
=>
{
alarmOrderDetail
(
id
).
then
(
response
=>
{
const
all_steps
=
[{
const
all_steps
=
[{
schedule
:
1
,
content
:
''
,
created_at
:
''
,
schedule
:
1
,
content
:
''
,
created_at
:
''
,
finish_status
:
'finish'
,
},
{
},
{
schedule
:
2
,
content
:
''
,
created_at
:
''
,
schedule
:
2
,
content
:
''
,
created_at
:
''
,
finish_status
:
'finish'
,
},
{
},
{
schedule
:
3
,
content
:
''
,
created_at
:
''
,
schedule
:
3
,
content
:
''
,
created_at
:
''
,
finish_status
:
'finish'
,
},
{
},
{
schedule
:
4
,
content
:
''
,
created_at
:
''
,
schedule
:
4
,
content
:
''
,
created_at
:
''
,
finish_status
:
'finish'
,
},
{
schedule
:
5
,
content
:
''
,
created_at
:
''
,
finish_status
:
'finish'
,
}];
}];
if
(
response
.
code
===
200
)
{
if
(
response
.
code
===
200
)
{
console
.
log
(
response
.
data
);
console
.
log
(
response
.
data
);
...
@@ -467,6 +485,9 @@ export default {
...
@@ -467,6 +485,9 @@ export default {
}
}
}
}
this
.
order_step
=
all_steps
;
this
.
order_step
=
all_steps
;
if
(
response
.
data
.
state
===
2
)
{
this
.
order_content
.
isorderone
=
5
;
}
console
.
log
(
this
.
order_step
);
console
.
log
(
this
.
order_step
);
}
}
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
...
...
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