diff --git a/jshERP-web/src/views/bill/mixins/BillModalMixin.js b/jshERP-web/src/views/bill/mixins/BillModalMixin.js index ebf221f8..f4122d5b 100644 --- a/jshERP-web/src/views/bill/mixins/BillModalMixin.js +++ b/jshERP-web/src/views/bill/mixins/BillModalMixin.js @@ -423,6 +423,8 @@ export const BillModalMixin = { target.statisticsColumns.taxLastMoney = taxLastMoneyTotal } that.autoChangePrice(target) + //强制渲染 + target.$forceUpdate() }) } else { //单个条码 @@ -443,6 +445,8 @@ export const BillModalMixin = { target.recalcAllStatisticsColumns() that.autoChangePrice(target) target.autoSelectBySpecialKey('operNumber', row.orderNum) + //强制渲染 + target.$forceUpdate() } }) } diff --git a/jshERP-web/src/views/bill/modules/AssembleModal.vue b/jshERP-web/src/views/bill/modules/AssembleModal.vue index 4e00198e..8c39908e 100644 --- a/jshERP-web/src/views/bill/modules/AssembleModal.vue +++ b/jshERP-web/src/views/bill/modules/AssembleModal.vue @@ -151,11 +151,11 @@ { title: '库存', key: 'stock', width: '5%', type: FormTypes.normal }, { title: '单位', key: 'unit', width: '4%', type: FormTypes.normal }, { title: '多属性', key: 'sku', width: '4%', type: FormTypes.normal }, - { title: '数量', key: 'operNumber', width: '5%', type: FormTypes.inputNumber, statistics: true, + { title: '数量', key: 'operNumber', width: '5%', type: FormTypes.inputNumber, validateRules: [{ required: true, message: '${title}不能为空' }] }, - { title: '单价', key: 'unitPrice', width: '5%', type: FormTypes.inputNumber}, - { title: '金额', key: 'allPrice', width: '5%', type: FormTypes.inputNumber, statistics: true }, + { title: '单价', key: 'unitPrice', width: '5%', type: FormTypes.inputNumber }, + { title: '金额', key: 'allPrice', width: '5%', type: FormTypes.inputNumber }, { title: '备注', key: 'remark', width: '5%', type: FormTypes.input } ] }, diff --git a/jshERP-web/src/views/bill/modules/DisassembleModal.vue b/jshERP-web/src/views/bill/modules/DisassembleModal.vue index d942013d..41354630 100644 --- a/jshERP-web/src/views/bill/modules/DisassembleModal.vue +++ b/jshERP-web/src/views/bill/modules/DisassembleModal.vue @@ -151,11 +151,11 @@ { title: '库存', key: 'stock', width: '5%', type: FormTypes.normal }, { title: '单位', key: 'unit', width: '4%', type: FormTypes.normal }, { title: '多属性', key: 'sku', width: '4%', type: FormTypes.normal }, - { title: '数量', key: 'operNumber', width: '5%', type: FormTypes.inputNumber, statistics: true, + { title: '数量', key: 'operNumber', width: '5%', type: FormTypes.inputNumber, validateRules: [{ required: true, message: '${title}不能为空' }] }, - { title: '单价', key: 'unitPrice', width: '5%', type: FormTypes.inputNumber}, - { title: '金额', key: 'allPrice', width: '5%', type: FormTypes.inputNumber, statistics: true }, + { title: '单价', key: 'unitPrice', width: '5%', type: FormTypes.inputNumber }, + { title: '金额', key: 'allPrice', width: '5%', type: FormTypes.inputNumber }, { title: '备注', key: 'remark', width: '5%', type: FormTypes.input } ] },