From e9097237b11691a493e2e916f2b9770e8c9922d5 Mon Sep 17 00:00:00 2001 From: zelian_wu Date: Tue, 14 May 2024 11:40:11 +0800 Subject: [PATCH] 2024-05-09 --- .../sellForQuotation/quotationDetail/billOfMateriel.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/modules/quotation/sellForQuotation/quotationDetail/billOfMateriel.vue b/src/views/modules/quotation/sellForQuotation/quotationDetail/billOfMateriel.vue index ab85661..6c487b7 100644 --- a/src/views/modules/quotation/sellForQuotation/quotationDetail/billOfMateriel.vue +++ b/src/views/modules/quotation/sellForQuotation/quotationDetail/billOfMateriel.vue @@ -399,7 +399,7 @@ export default { let shrinkageFactor = new Decimal(bomDetail.shrinkageFactor) // 报价数量 let num = new Decimal(this.detail.quotationDetailQuantity) - let needNum = componentScrap.div(num).add(qtyPerAssembly.mul(new Decimal(100).sub(shrinkageFactor)).div(new Decimal(100))) + let needNum = componentScrap.div(num).add(qtyPerAssembly.div(new Decimal(100).sub(shrinkageFactor).div(new Decimal(100)))) bomDetail.quoteUnitCost = new Decimal(needNum.mul(unitCost).toFixed(4,Decimal.ROUND_HALF_UP)).toSignificantDigits().toNumber() } this.$emit("update:totalCost",this.getQuoteBomCost())