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
496e40a9
Commit
496e40a9
authored
Oct 26, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单暂停jil
parent
bcd8558b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
36 deletions
+47
-36
record.vue
pages/order/monitoring/record.vue
+47
-36
No files found.
pages/order/monitoring/record.vue
View file @
496e40a9
...
@@ -2,7 +2,14 @@
...
@@ -2,7 +2,14 @@
<div
class=
"record"
>
<div
class=
"record"
>
<Tabs
value=
"name1"
@
on-click=
"tabSwitch"
>
<Tabs
value=
"name1"
@
on-click=
"tabSwitch"
>
<TabPane
label=
"订单暂停记录"
name=
"name1"
>
<TabPane
label=
"订单暂停记录"
name=
"name1"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
:tool=
"false"
:height=
"tdHeight"
></DataGrid>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
:conditions=
"easySearch"
:tool=
"false"
:height=
"tdHeight"
></DataGrid>
</TabPane>
</TabPane>
<TabPane
label=
"工单暂停记录"
name=
"name2"
>
<TabPane
label=
"工单暂停记录"
name=
"name2"
>
<DataGrid
<DataGrid
...
@@ -25,16 +32,16 @@ import Detail from "./detail";
...
@@ -25,16 +32,16 @@ import Detail from "./detail";
export
default
{
export
default
{
name
:
"record"
,
name
:
"record"
,
components
:
{
components
:
{
Detail
Detail
,
},
},
data
()
{
data
()
{
return
{
return
{
detailModal
:
false
,
detailModal
:
false
,
action
:
Api
.
record
,
action
:
Api
.
record
,
tdHeight
:
""
,
tdHeight
:
""
,
condition
:
{
easySearch
:
{
orderId
:
{
op
:
"Equal"
,
value
:
this
.
eid
},
orderId
:
{
op
:
"Equal"
,
value
:
this
.
eid
},
keys
:
{
op
:
"pauseCause,"
,
value
:
null
}
keys
:
{
op
:
"pauseCause,"
,
value
:
null
}
,
},
},
data
:
[],
data
:
[],
curId
:
0
,
curId
:
0
,
...
@@ -44,7 +51,7 @@ export default {
...
@@ -44,7 +51,7 @@ export default {
title
:
"序号"
,
title
:
"序号"
,
type
:
"index"
,
type
:
"index"
,
width
:
70
,
width
:
70
,
align
:
"center"
align
:
"center"
,
},
},
{
{
key
:
"mesCode"
,
key
:
"mesCode"
,
...
@@ -56,17 +63,17 @@ export default {
...
@@ -56,17 +63,17 @@ export default {
"a"
,
"a"
,
{
{
attrs
:
{
attrs
:
{
oprate
:
"detail"
oprate
:
"detail"
,
},
},
on
:
{
click
:
()
=>
this
.
detail
(
params
.
row
.
id
)
}
on
:
{
click
:
()
=>
this
.
detail
(
params
.
row
.
id
)
}
,
},
},
params
.
row
.
mesCode
params
.
row
.
mesCode
)
)
,
},
},
{
{
key
:
"productName"
,
key
:
"productName"
,
title
:
this
.
l
(
"productName"
),
title
:
this
.
l
(
"productName"
),
align
:
"left"
align
:
"left"
,
},
},
// {
// {
// key: 'orderId',
// key: 'orderId',
...
@@ -78,14 +85,14 @@ export default {
...
@@ -78,14 +85,14 @@ export default {
key
:
"pauseCause"
,
key
:
"pauseCause"
,
title
:
this
.
l
(
"pauseCause"
),
title
:
this
.
l
(
"pauseCause"
),
align
:
"left"
,
align
:
"left"
,
code
:
"mes_xingchi_plan.order_material.pauseCause"
code
:
"mes_xingchi_plan.order_material.pauseCause"
,
},
},
{
{
key
:
"creationTime"
,
key
:
"creationTime"
,
title
:
this
.
l
(
"creationTime"
),
title
:
this
.
l
(
"creationTime"
),
easy
:
true
,
easy
:
true
,
high
:
true
,
high
:
true
,
align
:
"left"
align
:
"left"
,
},
},
{
{
...
@@ -93,14 +100,14 @@ export default {
...
@@ -93,14 +100,14 @@ export default {
title
:
this
.
l
(
"creator"
),
title
:
this
.
l
(
"creator"
),
easy
:
true
,
easy
:
true
,
high
:
true
,
high
:
true
,
align
:
"left"
align
:
"left"
,
},
},
{
{
key
:
"laster"
,
key
:
"laster"
,
title
:
this
.
l
(
"laster"
),
title
:
this
.
l
(
"laster"
),
easy
:
true
,
easy
:
true
,
high
:
true
,
high
:
true
,
align
:
"left"
align
:
"left"
,
},
},
{
{
key
:
"lastModificationTime"
,
key
:
"lastModificationTime"
,
...
@@ -115,7 +122,7 @@ export default {
...
@@ -115,7 +122,7 @@ export default {
?
""
?
""
:
params
.
row
.
lastModificationTime
:
params
.
row
.
lastModificationTime
);
);
}
}
,
},
},
{
{
...
@@ -123,8 +130,8 @@ export default {
...
@@ -123,8 +130,8 @@ export default {
type
:
"user"
,
type
:
"user"
,
title
:
this
.
l
(
"relatedPerson"
),
title
:
this
.
l
(
"relatedPerson"
),
align
:
"left"
,
align
:
"left"
,
high
:
true
high
:
true
,
}
}
,
],
],
columnsProcess
:
[
columnsProcess
:
[
{
{
...
@@ -132,33 +139,33 @@ export default {
...
@@ -132,33 +139,33 @@ export default {
title
:
"工艺文件编号"
,
title
:
"工艺文件编号"
,
align
:
"left"
,
align
:
"left"
,
width
:
200
,
width
:
200
,
tooltip
:
true
tooltip
:
true
,
},
},
{
{
key
:
"processname"
,
key
:
"processname"
,
title
:
"工艺名称"
,
title
:
"工艺名称"
,
align
:
"left"
,
align
:
"left"
,
tooltip
:
true
tooltip
:
true
,
},
},
{
{
key
:
"taskSeq"
,
key
:
"taskSeq"
,
title
:
"工序号"
,
title
:
"工序号"
,
align
:
"left"
,
align
:
"left"
,
width
:
90
width
:
90
,
},
},
{
{
key
:
"detailName"
,
key
:
"detailName"
,
title
:
"工序名称"
,
title
:
"工序名称"
,
align
:
"left"
,
align
:
"left"
,
width
:
350
,
width
:
350
,
tooltip
:
true
tooltip
:
true
,
},
},
{
{
key
:
"desc"
,
key
:
"desc"
,
title
:
"暂停原因"
,
title
:
"暂停原因"
,
align
:
"left"
,
align
:
"left"
,
tooltip
:
true
tooltip
:
true
,
},
},
{
{
key
:
"creatorUserId"
,
key
:
"creatorUserId"
,
...
@@ -166,24 +173,26 @@ export default {
...
@@ -166,24 +173,26 @@ export default {
align
:
"left"
,
align
:
"left"
,
high
:
true
,
high
:
true
,
width
:
180
,
width
:
180
,
type
:
"user"
type
:
"user"
,
},
},
{
{
key
:
"creationTime"
,
key
:
"creationTime"
,
title
:
"暂停时间"
,
title
:
"暂停时间"
,
align
:
"center"
,
align
:
"center"
,
width
:
180
width
:
180
,
}
}
,
],
],
list
:
[]
list
:
[]
,
};
};
},
},
props
:
{
props
:
{
eid
:
Number
eid
:
Number
,
},
},
mounted
()
{
mounted
()
{
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
this
.
loadList
();
// if (this.eid) {
// this.loadList();
// }
window
.
onresize
=
()
=>
{
window
.
onresize
=
()
=>
{
///浏览器窗口大小变化
///浏览器窗口大小变化
return
(()
=>
{
return
(()
=>
{
...
@@ -201,17 +210,17 @@ export default {
...
@@ -201,17 +210,17 @@ export default {
methods
:
{
methods
:
{
loadList
()
{
loadList
()
{
let
params
=
{
let
params
=
{
FilterText
:
'order_id="'
+
this
.
eid
+
'"'
FilterText
:
'order_id="'
+
this
.
eid
+
'"'
,
};
};
Api
.
pauseCauseGetpaged
(
params
)
Api
.
pauseCauseGetpaged
(
params
)
.
then
(
res
=>
{
.
then
(
(
res
)
=>
{
if
(
res
.
success
)
{
if
(
res
.
success
)
{
this
.
list
=
res
.
result
.
items
;
this
.
list
=
res
.
result
.
items
;
}
else
{
}
else
{
this
.
$Message
.
error
(
"获取数据失败"
);
this
.
$Message
.
error
(
"获取数据失败"
);
}
}
})
})
.
catch
(
err
=>
{
.
catch
(
(
err
)
=>
{
this
.
$Message
.
error
(
"连接失败"
);
this
.
$Message
.
error
(
"连接失败"
);
});
});
},
},
...
@@ -231,15 +240,17 @@ export default {
...
@@ -231,15 +240,17 @@ export default {
detail
(
id
)
{
detail
(
id
)
{
this
.
detailModal
=
true
;
this
.
detailModal
=
true
;
this
.
curId
=
id
;
this
.
curId
=
id
;
}
}
,
},
},
watch
:
{
watch
:
{
eid
(
v
)
{
eid
(
v
)
{
this
.
condition
.
orderId
.
value
=
v
;
if
(
v
)
{
this
.
$refs
.
grid
.
reload
(
this
.
condition
);
this
.
easySearch
.
orderId
.
value
=
v
;
this
.
loadList
();
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
}
// this.loadList();
}
}
},
},
};
};
</
script
>
</
script
>
<
style
lang=
'less'
>
<
style
lang=
'less'
>
...
...
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