Commit 810a467c by zhangxw

bug修复

1 parent 74fa3923
...@@ -420,8 +420,8 @@ export default { ...@@ -420,8 +420,8 @@ export default {
let { servicePeriod, standardSalesCost, standardShelfCost, salesCost, shelfCost } = element let { servicePeriod, standardSalesCost, standardShelfCost, salesCost, shelfCost } = element
const it = salePeriodData.find(v => v.servicePeriod == servicePeriod) const it = salePeriodData.find(v => v.servicePeriod == servicePeriod)
if (computeFlag == 0) { if (computeFlag == 0) {
salesCost = this.calcPrice(it?.standardShelfCost, priceCoefficient) || 0 // 计算后销售成本 shelfCost = this.calcPrice(it?.standardShelfCost, priceCoefficient) || 0 // 计算后销售成本
shelfCost = this.calcPrice(it?.standardSalesCost, priceCoefficient) || 0 // 计算后上架成本 salesCost = this.calcPrice(it?.standardSalesCost, priceCoefficient) || 0 // 计算后上架成本
} }
if (this.isEmpty(salesCost) || this.isEmpty(shelfCost)) { if (this.isEmpty(salesCost) || this.isEmpty(shelfCost)) {
throw new Error(`请输入${serviceGrade}规格${servicePeriod}年版的${this.isEmpty(salesCost) ? '销售成本' : '上架成本'}`) throw new Error(`请输入${serviceGrade}规格${servicePeriod}年版的${this.isEmpty(salesCost) ? '销售成本' : '上架成本'}`)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!