Browse Source

销售报价单-金额计算

jingbb 4 tháng trước cách đây
mục cha
commit
bdce3b0387

+ 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(){