Browse Source

销售报价单-增加缺少小数点

jingbb 1 month ago
parent
commit
3ec2f57af5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/saleCode/quotation/components/quotationFormForm.vue

+ 2 - 2
src/views/saleCode/quotation/components/quotationFormForm.vue

@@ -946,7 +946,7 @@
           // var num =((prop.row.purchasePrice / Number(formData.exchangeRate)) *(1 + prop.row.taxRate / 100) *(1 + prop.row.tariff / 100) *(1 - prop.row.discount / 100)) /(1 - prop.row.grossMargin / 100 - prop.row.customerCommision / 100 - prop.row.intermediatorCommission / 100);
           var num=(prop.row.purchasePrice * Number(formData.exchangeRate)*(1 + prop.row.tariff / 100))/(1 - prop.row.grossMargin / 100 - prop.row.customerCommision / 100-prop.row.intermediatorCommission / 100)*(1 + prop.row.taxRate / 100)
           prop.row.salePrice = !isNaN(num) ? num.toFixed(2) : '';
-          prop.row.preDiscountPrice =(prop.row.salePrice/(1-prop.row.discount / 100))toFixed(2);
+          prop.row.preDiscountPrice =(prop.row.salePrice/(1-prop.row.discount / 100)).toFixed(2);
           if (prop.row.quantity) {
             prop.row.taxAmount = (prop.row.salePrice * prop.row.quantity).toFixed(2); //计算金额
             prop.row.purchaseAmount = (prop.row.purchasePrice * prop.row.quantity).toFixed(2);  //计算采购金额
@@ -969,7 +969,7 @@
           if (prop.row.quantity) {
             prop.row.taxAmount = (prop.row.salePrice * prop.row.quantity).toFixed(2);
           }
-          prop.row.preDiscountPrice =(prop.row.salePrice/(1-prop.row.discount / 100))toFixed(2);
+          prop.row.preDiscountPrice =(prop.row.salePrice/(1-prop.row.discount / 100)).toFixed(2);
         }
         countGrossMargin()
       }