Commit 0311a71a authored by 沈翠玲's avatar 沈翠玲

包装

parent 16671823
...@@ -134,3 +134,11 @@ export function printInfo(workorderId) { ...@@ -134,3 +134,11 @@ export function printInfo(workorderId) {
method: 'get' method: 'get'
}) })
} }
// 指令表的包装类型
export function getWorkOrderSoDirectivePkgRequireTypeEnum(workorderId) {
return request({
url: '/common/enum/getWorkOrderSoDirectivePkgRequireTypeEnum',
method: 'get'
})
}
...@@ -333,7 +333,11 @@ ...@@ -333,7 +333,11 @@
align="center" align="center"
prop="packType" prop="packType"
width="120" 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 <el-table-column
label="包装单位" label="包装单位"
align="center" align="center"
...@@ -490,6 +494,32 @@ ...@@ -490,6 +494,32 @@
prop="purchaseOrg" prop="purchaseOrg"
width="120" 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 <!-- <el-table-column
label="包装数量" label="包装数量"
align="center" align="center"
...@@ -551,6 +581,9 @@ ...@@ -551,6 +581,9 @@
</template> </template>
<script> <script>
import {
getWorkOrderSoDirectivePkgRequireTypeEnum
} from "@/api/mes/pro/workorder";
export default { export default {
components: {}, components: {},
inject: ["mode"], inject: ["mode"],
...@@ -604,11 +637,24 @@ export default { ...@@ -604,11 +637,24 @@ export default {
packBySize: "", packBySize: "",
purchaseOrg: "", purchaseOrg: "",
}, },
packOption: [],
currentRowIdx: undefined, currentRowIdx: undefined,
}; };
}, },
created() {}, created() {
this.getWorkOrderSoDirectivePkgRequireTypeEnum()
},
methods: { 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) { handleSelectionChange(val) {
this.selection = val; this.selection = val;
......
...@@ -525,6 +525,7 @@ export default { ...@@ -525,6 +525,7 @@ export default {
{ prop: "can", label: "CAN" }, { prop: "can", label: "CAN" },
{ prop: "es", label: "ES" }, { prop: "es", label: "ES" },
{ prop: "kr", label: "KR" }, { prop: "kr", label: "KR" },
{ prop: "samples", label: "样品数" }
], ],
currentRowIdx: undefined, currentRowIdx: undefined,
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment