Browse Source

2024-05-09

master
zelian_wu 2 years ago
parent
commit
e9097237b1
  1. 2
      src/views/modules/quotation/sellForQuotation/quotationDetail/billOfMateriel.vue

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

Loading…
Cancel
Save