2 Incheckningar 529980e54d ... f953799735

Upphovsman SHA1 Meddelande Datum
  lazy f953799735 Merge branch 'dev1.2.0' of http://192.168.0.200:3000/suf/factoring-trade-c-front-end into dev1.2.0 2 dagar sedan
  lazy 60ff9e2fd2 fix:我的贸易修改一键计算质保金计算 2 dagar sedan
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. 3 3
      src/views/myTrade/settlementDocumentManagement/add.vue

+ 3 - 3
src/views/myTrade/settlementDocumentManagement/add.vue

@@ -535,9 +535,9 @@ export default {
     calculateTotal() {
       let num = 0, price = 0, buyPrice = 0;
       this.ruleForm.goodsList.forEach(item => {
-        num = Number(num) + Number(item.goodsQuantity || 0)
-        price += Number(item.goodsQuantity || 0) * Number(item.salesPrice || 0)
-        buyPrice = Number(buyPrice) + Number(item.purchaseTotalPrice || 0)
+        num = Number(num) + Number(item.goodsQuantity)
+        price += Number(item.goodsQuantity) * Number(item.salesPrice)
+        buyPrice += Number(item.goodsQuantity) * Number(item.purchasePrice)
       })
       this.ruleForm.countTheGoods = (num * 10000 / 10000).toFixed(2)
       this.ruleForm.settleTotalSalesPrice = (price * 10000 / 10000).toFixed(2)