From ccdee901babf4b597f7dec4c560f477bdb59e424 Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Wed, 11 Sep 2024 15:18:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E9=87=87=E8=B4=AD=E7=94=B3?= =?UTF-8?q?=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yxt-as-ui/src/views/purchase/procurement/procurementAdd.vue | 4 ++-- yxt-as-ui/src/views/workFlow/caigouFlow/procurementEdit.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/yxt-as-ui/src/views/purchase/procurement/procurementAdd.vue b/yxt-as-ui/src/views/purchase/procurement/procurementAdd.vue index 434f160ec7..6040a3d422 100644 --- a/yxt-as-ui/src/views/purchase/procurement/procurementAdd.vue +++ b/yxt-as-ui/src/views/purchase/procurement/procurementAdd.vue @@ -373,7 +373,7 @@ export default { if (this.formobj.pmsPurchaseBillDetailList.length > 0) { this.formobj.pmsPurchaseBillDetailList.forEach((e) => { if (e.goodsSpuName !== '') { - sl = Math.round((parseFloat(sl) + parseFloat(e.count === null ? '0' : e.count !== '' ? e.count : '0')) * 100) / 100 + sl = Math.round((parseFloat(sl) + parseFloat(e.count !== '' ? e.count : '0')) * 100) / 100 } }) } @@ -385,7 +385,7 @@ export default { if (this.formobj.pmsPurchaseBillDetailList.length > 0) { this.formobj.pmsPurchaseBillDetailList.forEach((e) => { if (e.goodsSpuName !== '') { - cg = Math.round((parseFloat(cg) + parseFloat(e.amount === null ? '0' : e.amount !== '' ? e.amount : '0')) * 100) / 100 + cg = Math.round((parseFloat(cg) + parseFloat(e.amount !== '' ? e.amount : '0')) * 100) / 100 } }) } diff --git a/yxt-as-ui/src/views/workFlow/caigouFlow/procurementEdit.vue b/yxt-as-ui/src/views/workFlow/caigouFlow/procurementEdit.vue index 99867b1fee..d75ea91d7f 100644 --- a/yxt-as-ui/src/views/workFlow/caigouFlow/procurementEdit.vue +++ b/yxt-as-ui/src/views/workFlow/caigouFlow/procurementEdit.vue @@ -389,7 +389,7 @@ export default { if (this.formobj.pmsPurchaseBillDetailList.length > 0) { this.formobj.pmsPurchaseBillDetailList.forEach((e) => { if (e.goodsSpuName !== '') { - sl = Math.round((parseFloat(sl) + parseFloat(e.count === null ? '0' : e.count !== '' ? e.count : '0')) * 100) / 100 + sl = Math.round((parseFloat(sl) + parseFloat(e.count !== '' ? e.count : '0')) * 100) / 100 } }) } @@ -401,7 +401,7 @@ export default { if (this.formobj.pmsPurchaseBillDetailList.length > 0) { this.formobj.pmsPurchaseBillDetailList.forEach((e) => { if (e.goodsSpuName !== '') { - cg = Math.round((parseFloat(cg) + parseFloat(e.amount === null ? '0' : e.amount !== '' ? e.amount : '0')) * 100) / 100 + cg = Math.round((parseFloat(cg) + parseFloat(e.amount !== '' ? e.amount : '0')) * 100) / 100 } }) }