瀏覽代碼

销售报价单-金额计算

jingbb 4 月之前
父節點
當前提交
bdce3b0387
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/views/saleCode/quotation/components/quotationFormForm.vue

+ 3 - 0
src/views/saleCode/quotation/components/quotationFormForm.vue

@@ -739,6 +739,9 @@
           var num = 1-( ((prop.row.purchasePrice/Number(formData.exchangeRate)*(1+prop.row.taxRate/100)*(1+prop.row.tariff/100)*(1-prop.row.discount/100))/prop.row.salePrice)+(prop.row.customerCommision/100-prop.row.intermediatorCommission/100))
           num = (Number(num)*100).toFixed(2)
           prop.row.grossMargin = !isNaN(num)?num:''
+          if(prop.row.quantity){
+              prop.row.taxAmount =  (prop.row.salePrice*prop.row.quantity).toFixed(2)
+          }
         }
       }
       function changeDiscountOrExchangeRate(){