|
@@ -2322,7 +2322,14 @@ export default {
|
|
|
this.data[i].purchaseAmount = item.purchaseAmount
|
|
|
|
|
|
this.data[i].productPrice = productCal(item.purchaseAmount, 0, item.coefficient);
|
|
|
- this.data[i].outFactoryPrice = sellingCal(productCal(item.purchaseAmount, 0, item.coefficient), this.form.exchangeRate);
|
|
|
+ // 如果不是 true 说明没有修改还是走里面的
|
|
|
+ if (!this.data[i].outFactoryChange) {
|
|
|
+ // 出场价格
|
|
|
+ this.data[i].outFactoryPrice = sellingCal(productCal(item.purchaseAmount, 0, item.coefficient), this.form.exchangeRate);
|
|
|
+ // 销售价
|
|
|
+ this.data[i].price = sellingCal(productCal(item.purchaseAmount, 0, item.coefficient), this.form.exchangeRate);
|
|
|
+ }
|
|
|
+
|
|
|
this.data[i].shareAmount = 0;
|
|
|
this.data[i].internationalAmount = 0;
|
|
|
this.data[i].totalValue = sellingCal(productCal(item.purchaseAmount, 0, item.coefficient), this.form.exchangeRate);
|
|
@@ -2330,7 +2337,7 @@ export default {
|
|
|
this.data[i].insurance = 0;
|
|
|
this.data[i].freight = 0;
|
|
|
this.data[i].discount = null;
|
|
|
- this.data[i].price = sellingCal(productCal(item.purchaseAmount, 0, item.coefficient), this.form.exchangeRate);
|
|
|
+
|
|
|
this.data[i].amount = sellingCal(productCal(item.purchaseAmount, 0, item.coefficient), this.form.exchangeRate);
|
|
|
console.log(sellingCal(productCal(item.purchaseAmount, 0, item.coefficient), this.form.exchangeRate),'出场价格')
|
|
|
this.data[i].taxRate = 0;
|
|
@@ -2348,6 +2355,7 @@ export default {
|
|
|
this.data[i].discount
|
|
|
);
|
|
|
}
|
|
|
+
|
|
|
amountSum = _.add(
|
|
|
amountSum,
|
|
|
_.multiply(
|