diff --git a/src/views/bst/order/edit/components/orderProdList.vue b/src/views/bst/order/edit/components/orderProdList.vue index 5f607a5..0e19168 100644 --- a/src/views/bst/order/edit/components/orderProdList.vue +++ b/src/views/bst/order/edit/components/orderProdList.vue @@ -36,8 +36,19 @@ - - + + + + + @@ -146,6 +157,12 @@ export default { }, methods: { isEmpty, + // 装量改变时,生产数量改变 + handleContentNumChange(row, nv, ov) { + if (nv != null && nv != ov && ov != 0) { + row.num = row.num / ov * nv; + } + }, handleExpand(row) { // 展开行 this.$refs.table.toggleRowExpansion(row, true) @@ -174,6 +191,7 @@ export default { materialNo:null, picture:null, spec:null, + contentNum: 1, num: this.form.num, remark:null, isEnd: false, diff --git a/src/views/bst/orderProd/index.vue b/src/views/bst/orderProd/index.vue index 05b49e4..d79c0d1 100644 --- a/src/views/bst/orderProd/index.vue +++ b/src/views/bst/orderProd/index.vue @@ -237,6 +237,7 @@ export default { {key: 'effect', visible: true, label: '效果', minWidth: null, sortable: true, overflow: false, align: 'center', width: null}, {key: 'color', visible: true, label: '颜色', minWidth: null, sortable: true, overflow: false, align: 'center', width: null}, {key: 'coverColor', visible: true, label: '盖子颜色', minWidth: null, sortable: true, overflow: false, align: 'center', width: null}, + {key: 'contentNum', visible: true, label: '装量', minWidth: null, sortable: true, overflow: false, align: 'center', width: null}, {key: 'num', visible: true, label: '数量', minWidth: null, sortable: true, overflow: false, align: 'center', width: null}, {key: 'reportNum', visible: true, label: '已上报', minWidth: null, sortable: false, overflow: false, align: 'center', width: null}, {key: 'storeNum', visible: true, label: '已清点', minWidth: null, sortable: false, overflow: false, align: 'center', width: null},