Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
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
周远喜
mes-ui
Commits
ff1dd932
Commit
ff1dd932
authored
Nov 02, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单监控,暂停记录bug
parent
fb442d69
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
683 additions
and
614 deletions
+683
-614
index.vue
pages/order/monitoring/index.vue
+681
-607
record.vue
pages/order/monitoring/record.vue
+2
-7
No files found.
pages/order/monitoring/index.vue
View file @
ff1dd932
<
template
>
<div
class=
"monitoring h100"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
:conditions=
"easySearch"
>
<div
class=
"monitoring h100"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
:conditions=
"easySearch"
>
<template
slot=
"easySearch"
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
style=
"margin-top:5px;"
>
<FormItem
prop=
"productingpreparationpeople"
style=
"width:200px"
>
<departmentSelect
v-model=
"easySearch.productingpreparationpeople.value"
:type=
"3"
></departmentSelect>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
style=
"margin-top: 5px"
>
<FormItem
prop=
"productingpreparationpeople"
style=
"width: 200px"
>
<departmentSelect
v-model=
"easySearch.productingpreparationpeople.value"
:type=
"3"
></departmentSelect>
</FormItem>
<FormItem
prop=
"keys"
>
<Input
placeholder=
"请输入订单编号"
v-model=
"easySearch.keys.value"
/>
<Input
placeholder=
"请输入订单编号"
v-model=
"easySearch.keys.value"
/>
</FormItem>
<FormItem>
<Button
type=
"primary"
@
click=
"search"
>
查询
</Button>
...
...
@@ -19,23 +35,62 @@
</
template
>
</DataGrid>
<Modal
v-model=
"suspendModal"
title=
"暂停原因"
footer-hide
class=
"suspend"
>
<Suspend
@
on-close=
"cancel"
@
on-ok=
"suspendOk"
ref=
"addBug"
:rowSuspend=
"rowSuspend"
/>
<Suspend
@
on-close=
"cancel"
@
on-ok=
"suspendOk"
ref=
"addBug"
:rowSuspend=
"rowSuspend"
/>
</Modal>
<Modal
v-model=
"recordModal"
title=
"暂停记录"
fullscreen
footer-hide
class=
"recordM"
>
<Record
:eid=
"recordId"
/>
<Modal
v-model=
"recordModal"
title=
"暂停记录"
fullscreen
footer-hide
class=
"recordM"
>
<component
:is=
"detail"
:eid=
"recordId"
@
on-close=
"cancel"
/>
<!-- <Record :eid="recordId" /> -->
</Modal>
<Modal
v-model=
"SpeedModal"
title=
"工单信息"
fullscreen
footer-hide
class=
"recordM"
>
<Speed
:result=
"result"
:load=
"loading"
@
on-close=
"clsoeSpeedModal"
:executeId=
"dispatchExecuteId"
:orderId=
"orderId"
/>
<Modal
v-model=
"SpeedModal"
title=
"工单信息"
fullscreen
footer-hide
class=
"recordM"
>
<Speed
:result=
"result"
:load=
"loading"
@
on-close=
"clsoeSpeedModal"
:executeId=
"dispatchExecuteId"
:orderId=
"orderId"
/>
</Modal>
<Modal
v-model=
"recycleModal"
title=
"确定回收订单"
width=
"600"
class=
"suspend"
>
<Form
ref=
"form"
:model=
"recovery"
:rules=
"rulesRecycle"
:label-width=
"120"
>
<Modal
v-model=
"recycleModal"
title=
"确定回收订单"
width=
"600"
class=
"suspend"
>
<Form
ref=
"form"
:model=
"recovery"
:rules=
"rulesRecycle"
:label-width=
"120"
>
<Row>
<Col
:span=
"24"
>
<FormItem
:label=
"l('mesCode')"
>
{{mesCode
}}
</FormItem>
<FormItem
:label=
"l('mesCode')"
>
{{ mesCode
}}
</FormItem>
</Col>
<Col
:span=
"24"
>
<FormItem
:label=
"l('demandFinishDate')"
prop=
"demandFinishDate"
>
<DatePicker
type=
"date"
placeholder=
"请选择日期"
style=
"width:240px"
v-model=
"recovery.demandFinishDate"
></DatePicker>
<DatePicker
type=
"date"
placeholder=
"请选择日期"
style=
"width: 240px"
v-model=
"recovery.demandFinishDate"
></DatePicker>
</FormItem>
</Col>
</Row>
...
...
@@ -45,26 +100,27 @@
<Button
type=
"primary"
@
click=
"changeFinishiDate"
>
确定
</Button>
</div>
</Modal>
</div>
</div>
</template>
<
script
>
import
Api
from
"./api"
;
import
Suspend
from
"./suspend"
;
import
Record
from
"./record"
;
//
import Record from "./record";
import
Search
from
"./search"
;
import
Speed
from
"./speed"
;
export
default
{
name
:
"index"
,
components
:
{
Record
,
//
Record,
Search
,
Suspend
,
Speed
,
},
data
()
{
return
{
detail
:
null
,
result
:
[],
dispatchExecuteId
:
null
,
//任务id
orderId
:
null
,
//订单id
...
...
@@ -76,11 +132,11 @@ export default {
easySearch
:
{
keys
:
{
op
:
"mesCode"
,
value
:
null
value
:
null
,
},
productingpreparationpeople
:
{
op
:
"Equal"
,
value
:
null
value
:
null
,
},
},
suspendModal
:
false
,
...
...
@@ -88,11 +144,12 @@ export default {
deletelModal
:
false
,
recycleModal
:
false
,
curId
:
0
,
columns
:
[{
columns
:
[
{
key
:
"id"
,
title
:
this
.
l
(
"id"
),
hide
:
true
,
align
:
"left"
align
:
"left"
,
},
{
title
:
"序号"
,
...
...
@@ -118,7 +175,8 @@ export default {
params
.
row
.
mesCode
,
[
h
(
"Poptip"
,
{
"Poptip"
,
{
props
:
{
content
:
"开工预警:"
+
params
.
row
.
startWarning
+
"条"
,
trigger
:
"hover"
,
...
...
@@ -129,7 +187,8 @@ export default {
},
[
h
(
params
.
row
.
startWarning
>
0
?
"Badge"
:
""
,
{
params
.
row
.
startWarning
>
0
?
"Badge"
:
""
,
{
props
:
{
type
:
"warning"
,
// count: 2,
...
...
@@ -155,7 +214,8 @@ export default {
]
),
h
(
"Poptip"
,
{
"Poptip"
,
{
props
:
{
content
:
"完工预警:"
+
params
.
row
.
finishWarning
+
"条"
,
trigger
:
"hover"
,
...
...
@@ -163,7 +223,8 @@ export default {
},
[
h
(
params
.
row
.
finishWarning
>
0
?
"Badge"
:
""
,
{
params
.
row
.
finishWarning
>
0
?
"Badge"
:
""
,
{
props
:
{
type
:
"info"
,
// count: 2,
...
...
@@ -239,9 +300,9 @@ export default {
return
h
(
"span"
,
// this.sliceStr(params.row.actualStartDate + ' ', 0, 10),
params
.
row
.
actualStartDate
==
"0001-01-01 00:00:00"
?
""
:
params
.
row
.
actualStartDate
params
.
row
.
actualStartDate
==
"0001-01-01 00:00:00"
?
""
:
params
.
row
.
actualStartDate
);
},
},
...
...
@@ -255,9 +316,9 @@ export default {
return
h
(
"span"
,
// this.sliceStr(params.row.actualFinishDate + ' ', 0, 10),
params
.
row
.
actualFinishDate
==
"0001-01-01 00:00:00"
?
""
:
params
.
row
.
actualFinishDate
params
.
row
.
actualFinishDate
==
"0001-01-01 00:00:00"
?
""
:
params
.
row
.
actualFinishDate
);
},
},
...
...
@@ -278,14 +339,16 @@ export default {
render
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
[
h
(
"ButtonGroup"
,
{
"ButtonGroup"
,
{
props
:
{
shape
:
"circle"
,
},
},
[
h
(
"Button"
,
{
"Button"
,
{
style
:
{
background
:
"#e4e6ed "
,
borderColor
:
"#e4e6ed "
,
...
...
@@ -299,7 +362,8 @@ export default {
params
.
row
.
unstartCount
//未开工数
),
h
(
"Button"
,
{
"Button"
,
{
style
:
{
background
:
"#ffc000"
,
borderColor
:
"#ffc000"
,
...
...
@@ -330,7 +394,8 @@ export default {
params
.
row
.
stopCount
//暂停数
),
h
(
"Button"
,
{
"Button"
,
{
style
:
{
background
:
"#27c149"
,
borderColor
:
"#27c149"
,
...
...
@@ -361,22 +426,27 @@ export default {
width
:
100
,
align
:
"center"
,
render
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
{
class
:
"action"
},
[
return
h
(
"div"
,
{
class
:
"action"
,
},
[
h
(
"op"
,
{
"op"
,
{
attrs
:
{
oprate
:
"record"
,
class
:
"edit"
class
:
"edit"
,
},
on
:
{
click
:
()
=>
this
.
record
(
params
.
row
.
id
)
click
:
()
=>
this
.
record
(
params
.
row
.
id
),
},
},
"暂停记录"
),
]);
]
);
},
},
{
...
...
@@ -385,16 +455,19 @@ export default {
width
:
100
,
align
:
"center"
,
render
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
{
class
:
"action"
},
[
return
h
(
"div"
,
{
class
:
"action"
,
},
[
h
(
(
params
.
row
.
status
==
5
&&
params
.
row
.
upSplitId
==
0
)
||
(
params
.
row
.
status
==
5
&&
params
.
row
.
upSplitId
>
0
&&
params
.
row
.
splitCardStatus
==
1
)
?
"Button"
:
""
,
//订单状态暂停,启动
params
.
row
.
splitCardStatus
==
1
)
?
"Button"
:
""
,
//订单状态暂停,启动
{
props
:
{
type
:
"error"
,
...
...
@@ -441,9 +514,9 @@ export default {
""
),
h
(
params
.
row
.
status
==
5
&&
params
.
row
.
splitCardStatus
==
0
?
"op"
:
""
,
//订单状态执行中,暂停
params
.
row
.
status
==
5
&&
params
.
row
.
splitCardStatus
==
0
?
"op"
:
""
,
//订单状态执行中,暂停
{
attrs
:
{
icon
:
"md-sync"
,
...
...
@@ -459,7 +532,8 @@ export default {
},
}
),
]);
]
);
},
},
],
...
...
@@ -470,20 +544,19 @@ export default {
},
mesCode
:
""
,
rulesRecycle
:
{
demandFinishDate
:
[{
demandFinishDate
:
[
{
required
:
true
,
message
:
"请选择计划完成时间"
,
trigger
:
"change"
,
type
:
"date"
,
},
],
},
],
},
};
},
mounted
()
{},
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
methods
:
{
...
...
@@ -491,6 +564,7 @@ export default {
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
},
record
(
id
)
{
this
.
detail
=
()
=>
import
(
"./record"
);
this
.
recordModal
=
true
;
this
.
recordId
=
id
;
},
...
...
@@ -529,7 +603,7 @@ export default {
// this.curId = 0
},
start
(
row
)
{
this
.
laster
=
this
.
$store
.
state
.
userInfo
.
userId
,
(
this
.
laster
=
this
.
$store
.
state
.
userInfo
.
userId
)
,
this
.
$Modal
.
confirm
({
title
:
"提示"
,
content
:
"<p>确定要启动,是否继续?</p>"
,
...
...
@@ -564,7 +638,7 @@ export default {
removeOk
()
{
Api
.
delete
({
id
:
this
.
curId
id
:
this
.
curId
,
}).
then
((
r
)
=>
{
if
(
r
.
success
)
{
this
.
$refs
.
grid
.
load
();
...
...
@@ -640,7 +714,7 @@ export default {
</
script
>
<
style
lang=
"less"
>
.ivu-btn-group
>
.ivu-btn {
.ivu-btn-group
>
.ivu-btn {
height: 21px !important;
}
...
...
pages/order/monitoring/record.vue
View file @
ff1dd932
...
...
@@ -105,7 +105,7 @@ export default {
type
:
"user"
,
},
{
key
:
"last
er
"
,
key
:
"last
ModifierUserId
"
,
title
:
this
.
l
(
"laster"
),
easy
:
true
,
high
:
true
,
...
...
@@ -192,10 +192,6 @@ export default {
eid
:
Number
,
},
mounted
()
{
// this.$refs.grid.reload(this.easySearch);
// if (this.eid) {
// this.loadList();
// }
window
.
onresize
=
()
=>
{
///浏览器窗口大小变化
return
(()
=>
{
...
...
@@ -214,9 +210,8 @@ export default {
//格式化原始数据
formatFun
(
data
)
{
data
.
map
((
e
)
=>
{
if
(
e
.
laster
)
{
if
(
e
.
laster
||
e
.
creator
)
{
e
.
laster
=
parseInt
(
e
.
laster
);
}
else
if
(
e
.
creator
)
{
e
.
creator
=
parseInt
(
e
.
creator
);
}
});
...
...
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