diff --git a/yxt-as-ui/src/views/purchase/procurement/procurementAdd.vue b/yxt-as-ui/src/views/purchase/procurement/procurementAdd.vue index f18350a23f..e2e60587a2 100644 --- a/yxt-as-ui/src/views/purchase/procurement/procurementAdd.vue +++ b/yxt-as-ui/src/views/purchase/procurement/procurementAdd.vue @@ -371,7 +371,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 !== '' ? e.amount : '0')) * 100) / 100 + cg = Math.round((parseFloat(cg) + parseFloat(e.amount === null ? '0' : e.amount !== '' ? e.amount : '0')) * 100) / 100 } }) } diff --git a/yxt-as-ui/src/views/purchase/procurement/procurementInfo.vue b/yxt-as-ui/src/views/purchase/procurement/procurementInfo.vue index 80fdd639d3..5019531599 100644 --- a/yxt-as-ui/src/views/purchase/procurement/procurementInfo.vue +++ b/yxt-as-ui/src/views/purchase/procurement/procurementInfo.vue @@ -274,7 +274,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 !== '' ? e.amount : '0')) * 100) / 100 + cg = Math.round((parseFloat(cg) + parseFloat(e.amount === null ? '0' : e.amount !== '' ? e.amount : '0')) * 100) / 100 } }) } diff --git a/yxt-as-ui/src/views/workFlow/caigouFlow/procurementDaiBan.vue b/yxt-as-ui/src/views/workFlow/caigouFlow/procurementDaiBan.vue index 566058eca8..0edfa635f5 100644 --- a/yxt-as-ui/src/views/workFlow/caigouFlow/procurementDaiBan.vue +++ b/yxt-as-ui/src/views/workFlow/caigouFlow/procurementDaiBan.vue @@ -380,7 +380,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 !== '' ? e.amount : '0')) * 100) / 100 + cg = Math.round((parseFloat(cg) + parseFloat(e.amount === null ? '0' : 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 493c9afea7..0383f68bf5 100644 --- a/yxt-as-ui/src/views/workFlow/caigouFlow/procurementEdit.vue +++ b/yxt-as-ui/src/views/workFlow/caigouFlow/procurementEdit.vue @@ -387,7 +387,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 !== '' ? e.amount : '0')) * 100) / 100 + cg = Math.round((parseFloat(cg) + parseFloat(e.amount === null ? '0' : e.amount !== '' ? e.amount : '0')) * 100) / 100 } }) } diff --git a/yxt-as-ui/src/views/workFlow/caigouFlow/procurementYiBan.vue b/yxt-as-ui/src/views/workFlow/caigouFlow/procurementYiBan.vue index 26186c6459..fb3e3aaef0 100644 --- a/yxt-as-ui/src/views/workFlow/caigouFlow/procurementYiBan.vue +++ b/yxt-as-ui/src/views/workFlow/caigouFlow/procurementYiBan.vue @@ -309,7 +309,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 !== '' ? e.amount : '0')) * 100) / 100 + cg = Math.round((parseFloat(cg) + parseFloat(e.amount === null ? '0' : e.amount !== '' ? e.amount : '0')) * 100) / 100 } }) }