Browse Source

fix: 修正价格计算异常的问题.

peter 5 months ago
parent
commit
2d66a5f8bd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      components/product/Quote.vue

+ 2 - 2
components/product/Quote.vue

@@ -665,10 +665,10 @@ export default {
                 const temp = {...item}
                 for(let i = 1; i<=8; i++) {
                   if (item[`website_qty${i}`] && !this.POA_Config.includes(item[`website_qty${i}`])) {
-                    temp[`website_qty${i}`] = this.multiplyWithMargin(parseFloat(item[`website_qty${i}`]), margin).toString()
+                    temp[`website_qty${i}`] = this.multiplyWithMargin(parseFloat(item[`website_qty${i}`]) || 0, margin).toString()
                   }
                 }
-                temp.website_setup = this.multiplyWithMargin(parseFloat(item.website_setup), setupMargin).toString()
+                temp.website_setup = this.multiplyWithMargin(parseFloat(item.website_setup) || 0, setupMargin).toString()
                 return temp
               })
               o.data = remaining[k]