|
@@ -712,7 +712,7 @@
|
|
formData.quotationProjectName = data[0].code;
|
|
formData.quotationProjectName = data[0].code;
|
|
formData.quotationCustomer = data[0].customerId;
|
|
formData.quotationCustomer = data[0].customerId;
|
|
formData.quotationCustomerName = data[0].customerId_dictText;
|
|
formData.quotationCustomerName = data[0].customerId_dictText;
|
|
- formData.custumerDiscount == data[0].discount;
|
|
|
|
|
|
+ // formData.custumerDiscount == data[0].discount;
|
|
formData.currency = '美元';
|
|
formData.currency = '美元';
|
|
formData.exchangeRate = '1';
|
|
formData.exchangeRate = '1';
|
|
customerOption.value.map((item) => {
|
|
customerOption.value.map((item) => {
|
|
@@ -946,6 +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.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)
|
|
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.salePrice = !isNaN(num) ? num.toFixed(2) : '';
|
|
|
|
+ prop.row.preDiscountPrice =(prop.row.salePrice/(1-prop.row.discount / 100))toFixed(2);
|
|
if (prop.row.quantity) {
|
|
if (prop.row.quantity) {
|
|
prop.row.taxAmount = (prop.row.salePrice * prop.row.quantity).toFixed(2); //计算金额
|
|
prop.row.taxAmount = (prop.row.salePrice * prop.row.quantity).toFixed(2); //计算金额
|
|
prop.row.purchaseAmount = (prop.row.purchasePrice * prop.row.quantity).toFixed(2); //计算采购金额
|
|
prop.row.purchaseAmount = (prop.row.purchasePrice * prop.row.quantity).toFixed(2); //计算采购金额
|
|
@@ -968,6 +969,7 @@
|
|
if (prop.row.quantity) {
|
|
if (prop.row.quantity) {
|
|
prop.row.taxAmount = (prop.row.salePrice * prop.row.quantity).toFixed(2);
|
|
prop.row.taxAmount = (prop.row.salePrice * prop.row.quantity).toFixed(2);
|
|
}
|
|
}
|
|
|
|
+ prop.row.preDiscountPrice =(prop.row.salePrice/(1-prop.row.discount / 100))toFixed(2);
|
|
}
|
|
}
|
|
countGrossMargin()
|
|
countGrossMargin()
|
|
}
|
|
}
|
|
@@ -984,6 +986,7 @@
|
|
//汇率默认为1
|
|
//汇率默认为1
|
|
var num =(item.purchasePrice * Number(formData.exchangeRate)*(1 + item.tariff / 100))/(1 - item.grossMargin / 100 - item.customerCommision / 100-item.intermediatorCommission / 100)*(1 + item.taxRate / 100)
|
|
var num =(item.purchasePrice * Number(formData.exchangeRate)*(1 + item.tariff / 100))/(1 - item.grossMargin / 100 - item.customerCommision / 100-item.intermediatorCommission / 100)*(1 + item.taxRate / 100)
|
|
item.salePrice = !isNaN(num) ? num.toFixed(2) : '';
|
|
item.salePrice = !isNaN(num) ? num.toFixed(2) : '';
|
|
|
|
+ item.preDiscountPrice =(item.salePrice/(1-item.discount / 100)).toFixed(2);
|
|
if (item.quantity) {
|
|
if (item.quantity) {
|
|
item.taxAmount = (item.salePrice * item.quantity).toFixed(2);
|
|
item.taxAmount = (item.salePrice * item.quantity).toFixed(2);
|
|
}
|
|
}
|