|
|
|
@ -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()) |
|
|
|
|