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
299f49eb
Commit
299f49eb
authored
Jun 10, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reorder list
parent
089e420c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
145 additions
and
46 deletions
+145
-46
dataGrid.vue
components/page/dataGrid.vue
+10
-0
zh-CN.js
i18n/locale/zh-CN.js
+26
-1
api.js
pages/produce/execute/api.js
+6
-0
index.vue
pages/produce/reorder/index.vue
+103
-45
No files found.
components/page/dataGrid.vue
View file @
299f49eb
...
...
@@ -146,6 +146,10 @@ export default {
type
:
Boolean
,
default
:
true
},
format
:{
type
:
Function
,
default
:
null
},
lazy
:
{
//懒加载设置,设置为真时候,默认不加载数据。
type
:
Boolean
,
...
...
@@ -286,7 +290,13 @@ export default {
}
if
(
this
.
action
)
{
this
.
$api
.
post
(
this
.
action
,
this
.
search
).
then
(
r
=>
{
if
(
this
.
format
){
this
.
list
=
this
.
format
(
r
.
result
.
items
);
}
else
{
this
.
list
=
r
.
result
.
items
;
}
this
.
search
.
total
=
r
.
result
.
totalCount
||
r
.
result
.
count
;
});
}
...
...
i18n/locale/zh-CN.js
View file @
299f49eb
...
...
@@ -1489,5 +1489,30 @@ export default {
description
:
'描述'
,
levelNum
:
'编码分类层数'
,
codeLength
:
'编码分类位数'
,
}
},
//转续列表
order_execute_handon
:{
dispatchId
:
'工单id'
,
currentUserId
:
'当前操作人'
,
handonUserId
:
'转序人'
,
status
:
'状态'
,
currentDetailId
:
'工序id'
,
nextDetailId
:
'下道工序id'
,
remark
:
'备注'
,
finishTime
:
'工单完成时间'
,
productIdStr
:
'交接判定产品id字符串'
,
actualHandonUser
:
'实际交接人'
,
handonCardNo
:
'交接人刷卡号'
,
currentDetailName
:
'工序名称'
,
nextDetailName
:
'下道工序名称'
,
productName
:
'产品名称'
,
drawnNumber
:
'图号'
,
batchNumber
:
'批次号'
,
handonTime
:
'接收时间'
,
handonNo
:
'交接单号'
,
handonCount
:
'交接数量'
,
qualifiedCount
:
'合格数量'
,
currentUserName
:
'交接人名称'
,
handonUserName
:
'接收人名称'
,
}
}
pages/produce/execute/api.js
View file @
299f49eb
...
...
@@ -33,6 +33,12 @@ export default {
confirmproductsandoperator
(
params
)
{
return
Api
.
post
(
`
${
PlanUrl
}
/orderexecutehandon/confirmproductsandoperator`
,
params
);
},
//转续列表
indexHandon
:
`
${
PlanUrl
}
/orderexecutehandon/handonpaged`
,
handonpaged
(
params
)
{
return
Api
.
post
(
`
${
PlanUrl
}
/orderexecutehandon/handonpaged`
,
params
);
},
}
\ No newline at end of file
pages/produce/reorder/index.vue
View file @
299f49eb
...
...
@@ -2,6 +2,7 @@
<
style
lang=
"less"
>
@import "../execute/execute.less";
</
style
>
<!--:action="action"-->
<
template
>
<div>
<DataGrid
...
...
@@ -13,6 +14,7 @@
:batch=
"true"
:border=
"false"
:high=
"false"
:format=
"formatFun"
>
<template
slot=
"easySearch"
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
...
...
@@ -20,7 +22,7 @@
<Input
search
enter-button
placeholder=
"请输入关键字
订单编号/项目
名称"
placeholder=
"请输入关键字
产品
名称"
v-model=
"easySearch.keys.value"
@
on-search=
"search"
v-width=
"300"
...
...
@@ -60,16 +62,16 @@
</div>
</template>
<
script
>
import
Api
from
"../api"
;
import
Api
from
"../
execute/
api"
;
export
default
{
name
:
"reOrder"
,
data
()
{
return
{
action
:
Api
.
index
,
action
:
Api
.
index
Handon
,
starmodal
:
false
,
easySearch
:
{
keys
:
{
op
:
"
mesCode,
productName"
,
op
:
"productName"
,
value
:
null
,
default
:
true
}
...
...
@@ -85,35 +87,18 @@ export default {
align
:
"center"
},
{
key
:
"quantity"
,
title
:
this
.
l
(
"quantity"
),
align
:
"right"
,
high
:
true
,
width
:
80
},
{
key
:
"taskRequire"
,
title
:
this
.
l
(
"taskRequire"
),
key
:
"handonNo"
,
title
:
this
.
l
(
"handonNo"
),
align
:
"left"
,
easy
:
true
,
high
:
true
,
hide
:
true
high
:
true
},
{
key
:
"status"
,
title
:
this
.
l
(
"status"
),
align
:
"center"
,
width
:
120
,
high
:
true
,
code
:
"plan.order.status"
,
width
:
100
},
{
key
:
"productCode"
,
title
:
this
.
l
(
"productCode"
),
align
:
"left"
,
easy
:
true
,
high
:
true
,
hide
:
true
code
:
"mes.order_execute_handon.status"
},
{
key
:
"productName"
,
...
...
@@ -126,30 +111,91 @@ export default {
key
:
"drawnNumber"
,
title
:
this
.
l
(
"drawnNumber"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"batchNumber"
,
title
:
this
.
l
(
"batchNumber"
),
align
:
"left"
,
high
:
true
},
{
key
:
"handonCount"
,
title
:
this
.
l
(
"handonCount"
),
align
:
"right"
,
high
:
true
},
{
key
:
"qualifiedCount"
,
title
:
this
.
l
(
"qualifiedCount"
),
align
:
"right"
,
high
:
true
,
hide
:
true
},
{
key
:
"finishTime"
,
title
:
this
.
l
(
"finishTime"
),
align
:
"center"
,
width
:
150
,
high
:
true
},
{
key
:
"currentDetailName"
,
title
:
this
.
l
(
"currentDetailName"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"
projectNumber
"
,
title
:
this
.
l
(
"
projectNumber
"
),
key
:
"
nextDetailName
"
,
title
:
this
.
l
(
"
nextDetailName
"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"urgencyLevel"
,
title
:
this
.
l
(
"urgencyLevel"
),
align
:
"center"
,
key
:
"handonUserId"
,
title
:
this
.
l
(
"handonUserId"
),
align
:
"left"
,
high
:
true
,
type
:
"user"
},
{
key
:
"actualHandonUser"
,
title
:
this
.
l
(
"actualHandonUser"
),
align
:
"left"
,
high
:
true
,
type
:
"user"
,
hide
:
true
},
{
key
:
"handonCardNo"
,
title
:
this
.
l
(
"handonCardNo"
),
align
:
"left"
,
high
:
true
,
code
:
"plan.order.urgencyLevel"
,
width
:
100
hide
:
true
},
{
key
:
"currentUserName"
,
title
:
this
.
l
(
"currentUserName"
),
align
:
"left"
,
easy
:
true
,
high
:
true
,
hide
:
true
},
{
key
:
"handonUserName"
,
title
:
this
.
l
(
"handonUserName"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"handonTime"
,
title
:
this
.
l
(
"handonTime"
),
high
:
true
,
align
:
"center"
,
width
:
150
},
{
title
:
"操作"
,
...
...
@@ -163,7 +209,7 @@ export default {
{
attrs
:
{
oprate
:
"edit"
},
on
:
{
click
:
()
=>
this
.
openTrans
(
params
.
row
.
id
)
},
style
:
params
.
row
.
status
==
1
?
"
display:none"
:
"
"
style
:
params
.
row
.
status
==
1
?
"
"
:
"display:none
"
},
"确认转续"
)
...
...
@@ -172,7 +218,7 @@ export default {
}
],
userId
:
""
,
userPwd
:
""
userPwd
:
""
,
};
},
created
()
{
...
...
@@ -195,7 +241,7 @@ export default {
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
},
openTrans
(
val
)
{
if
(
val
&&
val
>
0
)
{
if
(
val
&&
val
>
0
)
{
this
.
$refs
.
grid
.
selectAll
(
false
);
this
.
arrayIds
=
[];
this
.
arrayIds
.
push
(
val
);
...
...
@@ -203,12 +249,12 @@ export default {
this
.
transModal
=
true
;
},
transOk
()
{
let
params
=
{
ids
:
this
.
arrayIds
,
user
:
this
.
userId
,
pwd
:
this
.
userPwd
}
alert
(
JSON
.
stringify
(
params
));
let
params
=
{
ids
:
this
.
arrayIds
,
user
:
this
.
userId
,
pwd
:
this
.
userPwd
}
;
alert
(
JSON
.
stringify
(
params
));
},
onSelect
(
a
,
b
)
{
//批量选择
...
...
@@ -217,9 +263,21 @@ export default {
this
.
arrayIds
=
selectRows
.
map
(
e
=>
e
.
id
);
},
l
(
key
)
{
let
vkey
=
"
mes_pla
n"
+
"."
+
key
;
let
vkey
=
"
order_execute_hando
n"
+
"."
+
key
;
return
this
.
$t
(
vkey
)
||
key
;
},
//格式化原始数据
formatFun
(
data
)
{
data
.
map
(
e
=>
{
if
(
e
.
status
!=
1
)
{
e
.
_disabled
=
true
;
}
else
{
e
.
_disabled
=
false
;
}
})
return
data
;
}
}
},
computed
:
{}
};
</
script
>
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