Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
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
mes
mes-ui
Commits
0311a71a
Commit
0311a71a
authored
Oct 14, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
包装
parent
16671823
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
2 deletions
+57
-2
workorder.js
src/api/mes/pro/workorder.js
+8
-0
WorkOrderSale.vue
src/views/mes/pro/workorder/components/WorkOrderSale.vue
+48
-2
WorkOrderSize.vue
src/views/mes/pro/workorder/components/WorkOrderSize.vue
+1
-0
No files found.
src/api/mes/pro/workorder.js
View file @
0311a71a
...
...
@@ -134,3 +134,11 @@ export function printInfo(workorderId) {
method
:
'get'
})
}
// 指令表的包装类型
export
function
getWorkOrderSoDirectivePkgRequireTypeEnum
(
workorderId
)
{
return
request
({
url
:
'/common/enum/getWorkOrderSoDirectivePkgRequireTypeEnum'
,
method
:
'get'
})
}
src/views/mes/pro/workorder/components/WorkOrderSale.vue
View file @
0311a71a
...
...
@@ -333,7 +333,11 @@
align=
"center"
prop=
"packType"
width=
"120"
/>
>
<template
slot-scope=
"scope"
>
{{
packOption
.
find
(
v
=>
v
.
value
===
scope
.
row
.
packType
)
?
packOption
.
find
(
v
=>
v
.
value
===
scope
.
row
.
packType
).
name
:
''
}}
</
template
>
</el-table-column>
<el-table-column
label=
"包装单位"
align=
"center"
...
...
@@ -490,6 +494,32 @@
prop=
"purchaseOrg"
width=
"120"
/>
<el-table-column
label=
"是否按组合单包装"
align=
"center"
prop=
"combinationPackstate"
width=
"150"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
combinationPackstate
?
'是'
:
'否'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"样品数"
align=
"center"
prop=
"samples"
width=
"80"
/>
<el-table-column
label=
"是否合并SIZE包装"
align=
"center"
prop=
"mergePackState"
width=
"150"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
mergePackState
?
'是'
:
'否'
}}
</
template
>
</el-table-column>
<!-- <el-table-column
label="包装数量"
align="center"
...
...
@@ -551,6 +581,9 @@
</template>
<
script
>
import
{
getWorkOrderSoDirectivePkgRequireTypeEnum
}
from
"@/api/mes/pro/workorder"
;
export
default
{
components
:
{},
inject
:
[
"mode"
],
...
...
@@ -604,11 +637,24 @@ export default {
packBySize
:
""
,
purchaseOrg
:
""
,
},
packOption
:
[],
currentRowIdx
:
undefined
,
};
},
created
()
{},
created
()
{
this
.
getWorkOrderSoDirectivePkgRequireTypeEnum
()
},
methods
:
{
getWorkOrderSoDirectivePkgRequireTypeEnum
(){
getWorkOrderSoDirectivePkgRequireTypeEnum
().
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
Object
.
keys
(
res
.
data
).
forEach
(
item
=>
{
this
.
packOption
.
push
({
name
:
res
.
data
[
item
],
value
:
item
})
})
}
})
},
/**多选 */
handleSelectionChange
(
val
)
{
this
.
selection
=
val
;
...
...
src/views/mes/pro/workorder/components/WorkOrderSize.vue
View file @
0311a71a
...
...
@@ -525,6 +525,7 @@ export default {
{
prop
:
"can"
,
label
:
"CAN"
},
{
prop
:
"es"
,
label
:
"ES"
},
{
prop
:
"kr"
,
label
:
"KR"
},
{
prop
:
"samples"
,
label
:
"样品数"
}
],
currentRowIdx
:
undefined
,
};
...
...
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