Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit abffa521
authored
Feb 23, 2022
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
v1.4版本需求,新增工单进度组件
1 parent
c42d06ef
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
109 additions
and
10 deletions
package-lock.json
package.json
src/assets/styles/monitor.scss
src/services/order.js
src/views/work/order.vue
src/views/work/progress.vue
package-lock.json
View file @
abffa52
This diff is collapsed.
Click to expand it.
package.json
View file @
abffa52
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
"core-js"
:
"^3.6.5"
,
"core-js"
:
"^3.6.5"
,
"echarts"
:
"^5.2.2"
,
"echarts"
:
"^5.2.2"
,
"element-ui"
:
"^2.15.7"
,
"element-ui"
:
"^2.15.7"
,
"glsx-common"
:
"^1.4.9"
,
"moment"
:
"^2.29.1"
,
"moment"
:
"^2.29.1"
,
"sass"
:
"^1.45.1"
,
"sass"
:
"^1.45.1"
,
"vue"
:
"^2.6.11"
,
"vue"
:
"^2.6.11"
,
...
...
src/assets/styles/monitor.scss
View file @
abffa52
...
@@ -314,9 +314,6 @@
...
@@ -314,9 +314,6 @@
&
>
p
{
&
>
p
{
display
:
flex
;
display
:
flex
;
}
}
.lb
{
}
.des
{
.des
{
flex
:
1
;
flex
:
1
;
word-break
:
break-all
;
word-break
:
break-all
;
...
...
src/services/order.js
View file @
abffa52
...
@@ -75,3 +75,8 @@ export const GET_WORKORDER_OPERLOG = (params) => {
...
@@ -75,3 +75,8 @@ export const GET_WORKORDER_OPERLOG = (params) => {
export
const
GET_WORKORDER_STATUSOPTION
=
(
params
)
=>
{
export
const
GET_WORKORDER_STATUSOPTION
=
(
params
)
=>
{
return
request
(
params
,
"/trialdrive/workorder/status/option"
);
return
request
(
params
,
"/trialdrive/workorder/status/option"
);
};
};
// 工单管理-工单列表-工单详情-获取工单进度列表
export
const
GET_WORKORDER_PROGRESS
=
params
=>
{
return
request
(
params
,
"/trialdrive/workorder/getProgress"
);
}
src/views/work/order.vue
View file @
abffa52
...
@@ -59,8 +59,9 @@
...
@@ -59,8 +59,9 @@
<!--
<el-button
@
click=
"goCarDetail"
>
查看详情
</el-button>
<!--
<el-button
@
click=
"goCarDetail"
>
查看详情
</el-button>
<map-location></map-location>
-->
<map-location></map-location>
-->
<!-- 测试代码 end -->
<!--
<order-progress
id=
"glsx_1645009975009"
></order-progress>
-->
<!-- 测试代码 end -->
<!-- 操作区域 开始 -->
<!-- 操作区域 开始 -->
<div
class=
"links_group"
>
<div
class=
"links_group"
>
...
@@ -180,13 +181,15 @@ import store from "@/store";
...
@@ -180,13 +181,15 @@ import store from "@/store";
import
GlsxOrganization
from
"@/components/glsx-organization"
;
import
GlsxOrganization
from
"@/components/glsx-organization"
;
import
EditOrder
from
"./edit.vue"
;
import
EditOrder
from
"./edit.vue"
;
import
moment
from
"moment"
;
import
moment
from
"moment"
;
import
MapLocation
from
'@/components/amap'
import
MapLocation
from
"@/components/amap"
;
import
OrderProgress
from
"./progress"
;
export
default
{
export
default
{
components
:
{
components
:
{
GlsxDialog
,
GlsxDialog
,
GlsxOrganization
,
GlsxOrganization
,
EditOrder
,
EditOrder
,
MapLocation
MapLocation
,
OrderProgress
,
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -207,6 +210,7 @@ export default {
...
@@ -207,6 +210,7 @@ export default {
orderId
:
""
,
orderId
:
""
,
menus
:
[
menus
:
[
{
id
:
"orderInfo"
,
name
:
"工单信息"
},
{
id
:
"orderInfo"
,
name
:
"工单信息"
},
{
id
:
"orderProgress"
,
name
:
"工单进度"
},
{
id
:
"deviceInfo"
,
name
:
"设备信息"
},
{
id
:
"deviceInfo"
,
name
:
"设备信息"
},
{
id
:
"lesseeInfo"
,
name
:
"承租人信息"
},
{
id
:
"lesseeInfo"
,
name
:
"承租人信息"
},
{
id
:
"carInfo"
,
name
:
"车辆信息"
},
{
id
:
"carInfo"
,
name
:
"车辆信息"
},
...
@@ -487,13 +491,12 @@ export default {
...
@@ -487,13 +491,12 @@ export default {
},
},
// 查看车辆详情
// 查看车辆详情
goCarDetail
(){
goCarDetail
()
{
let
oParams
=
{};
let
oParams
=
{};
oParams
.
vin
=
'LGBF5AE08FR305952'
;
oParams
.
vin
=
"LGBF5AE08FR305952"
;
let
path
=
`/trialRun#/vehicleManage/vehicleList`
;
let
path
=
`/trialRun#/vehicleManage/vehicleList`
;
history
.
pushState
(
oParams
,
"车辆列表"
,
path
);
history
.
pushState
(
oParams
,
"车辆列表"
,
path
);
}
},
},
},
};
};
</
script
>
</
script
>
...
...
src/views/work/progress.vue
0 → 100644
View file @
abffa52
<
template
>
<div>
<el-timeline>
<el-timeline-item
v-for=
"(item, index) in list"
:key=
"index"
hide-timestamp
>
<el-card
class=
"el_card"
:body-style=
"
{ padding: '0px' }">
<h2
class=
"title"
>
<div
class=
"name"
>
【
{{
item
.
userName
?
item
.
userName
:
'--'
}}
】
{{
item
.
status
?
item
.
status
:
'--'
}}
</div>
<span
class=
"time"
>
{{
item
.
updateTime
?
item
.
updateTime
:
'--'
}}
</span>
</h2>
<template
v-if=
"item.activeStatus == 8"
>
<p
v-if=
"item.property1"
>
安装地址:
{{
item
.
property1
?
item
.
property1
:
'--'
}}
</p>
<p
v-if=
"item.property2"
>
激活地址:
{{
item
.
property2
?
item
.
property2
:
'--'
}}
</p>
</
template
>
<
template
v-if=
"item.activeStatus == 125"
>
<p>
打卡地址:
{{
item
.
property1
?
item
.
property1
:
'--'
}}
</p>
<p
v-if=
"item.property2"
>
超时打卡原因:
{{
item
.
property2
?
item
.
property2
:
'--'
}}
</p>
<p
v-if=
"item.property2"
>
超时备注:
{{
item
.
reason
?
item
.
reason
:
'--'
}}
</p>
</
template
>
<
template
v-if=
"item.activeStatus == 120 || item.activeStatus == 7"
>
<p>
联系人:
{{
item
.
property1
?
item
.
property1
+
' '
+
item
.
phone1
:
'--'
}}
</p>
<p>
预约上门时间:
{{
item
.
property2
?
item
.
property2
:
'--'
}}
</p>
<p>
预约原因:
{{
item
.
reason
?
item
.
reason
:
'--'
}}
</p>
</
template
>
<
template
v-if=
"item.activeStatus == 110"
>
<p>
原指派技工:
{{
item
.
property1
?
item
.
property1
+
' '
+
item
.
phone1
:
'--'
}}
</p>
<p>
新指派技工:
{{
item
.
property2
?
item
.
property2
+
' '
+
item
.
phone2
:
'--'
}}
</p>
</
template
>
<
template
v-if=
"item.activeStatus == 115"
>
<p>
原安装地址:
{{
item
.
property1
?
item
.
property1
:
'--'
}}
</p>
<p>
新安装地址:
{{
item
.
property2
?
item
.
property2
:
'--'
}}
</p>
</
template
>
</el-card>
</el-timeline-item>
</el-timeline>
</div>
</template>
<
script
>
import
{
GET_WORKORDER_PROGRESS
}
from
"@/services/order"
;
export
default
{
name
:
"OrderProgress"
,
props
:
{
id
:
{
type
:
[
String
,
Number
],
default
:
"1000013780"
,
},
},
data
()
{
return
{
list
:
[],
};
},
watch
:
{
id
:
{
handler
:
function
(
n
,
o
)
{
if
(
n
)
{
this
.
getList
();
}
},
immediate
:
true
,
},
},
mounted
()
{
this
.
getList
();
},
methods
:
{
// 获取工单进度
getList
()
{
let
oParams
=
{};
oParams
.
workOrderNo
=
this
.
id
;
GET_WORKORDER_PROGRESS
(
oParams
).
then
((
res
)
=>
{
this
.
list
=
res
.
data
||
[];
});
},
},
};
</
script
>
<
style
lang=
"scss"
scoped
>
.el_card
{
padding
:
0
10px
;
.title
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
font-weight
:
normal
;
font-size
:
14px
;
color
:
#999
;
.name
{
font-weight
:
bold
;
color
:
#333
;
}
}
}
</
style
>
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
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 post a comment