From 1f123f32f4ad5f0ec4302c975cc5687c9799ec84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Mon, 23 Oct 2023 21:46:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E7=BB=84=E8=A3=85=E5=8D=95?= =?UTF-8?q?=E5=92=8C=E6=8B=86=E5=8D=B8=E5=8D=95=E5=BD=95=E5=85=A5=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E7=9A=84=E5=90=88=E8=AE=A1=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jshERP-web/src/views/bill/mixins/BillModalMixin.js | 4 ++++ jshERP-web/src/views/bill/modules/AssembleModal.vue | 6 +++--- jshERP-web/src/views/bill/modules/DisassembleModal.vue | 6 +++--- 3 files changed, 10 insertions(+), 6 deletions(-) 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 } ] },