|
@@ -60,7 +60,7 @@
|
|
|
{{ row.productPrice | decimalFormat2 }}
|
|
|
</template>
|
|
|
<template slot="outFactoryPrice" slot-scope="{row}">
|
|
|
- {{ row.outFactoryPrice | decimalFormat2 }}
|
|
|
+ {{ row.outFactoryPrice}}
|
|
|
</template>
|
|
|
<template slot="shareAmount" slot-scope="{row}">
|
|
|
{{ row.shareAmount | decimalFormat2 }}
|
|
@@ -242,7 +242,7 @@
|
|
|
//出厂费用
|
|
|
<template slot="outFactoryPriceForm" slot-scope="{type,disabled}">
|
|
|
<el-input v-model="goodsForm.outFactoryPrice" size="small"
|
|
|
- oninput="value=value.replace(/[^0-9.]/g,'').replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3')"
|
|
|
+ oninput="value=value.replace(/[^0-9.]/g,'').replace(/^(\-)*(\d+)\.(\d\d\d).*$/,'$1$2.$3')"
|
|
|
@change="priceChange(goodsForm)" @input="outFactoryPriceInput(goodsForm)"></el-input>
|
|
|
</template>
|
|
|
//分摊金额
|
|
@@ -681,7 +681,7 @@ export default {
|
|
|
row.itemType = e.specs;
|
|
|
row.tradeTerms = null;
|
|
|
row.productPrice = productCal(e.purchaseAmount, 0, this.form.coefficient);
|
|
|
- row.outFactoryPrice = sellingCal(productCal(e.purchaseAmount, 0, this.form.coefficient), this.form.exchangeRate);
|
|
|
+ row.outFactoryPrice = sellingCal(productCal(e.purchaseAmount, 0, this.form.coefficient), this.form.exchangeRate,3);
|
|
|
row.shareAmount = 0;
|
|
|
row.internationalAmount = 0;
|
|
|
row.totalValue = sellingCal(productCal(e.purchaseAmount, 0, this.form.coefficient), this.form.exchangeRate);
|
|
@@ -773,7 +773,7 @@ export default {
|
|
|
productPrice: productCal(e.purchaseAmount, 0, this.form.coefficient),
|
|
|
outFactoryPrice: sellingCal(
|
|
|
productCal(e.purchaseAmount, 0, this.form.coefficient),
|
|
|
- this.form.exchangeRate
|
|
|
+ this.form.exchangeRate,3
|
|
|
),
|
|
|
shareAmount: 0,
|
|
|
internationalAmount: 0,
|
|
@@ -1071,7 +1071,7 @@ export default {
|
|
|
submitPriceAD() {
|
|
|
this.visible = false;
|
|
|
this.data.forEach(e => {
|
|
|
- e.outFactoryPrice = priceaAjustment(e.outFactoryPrice, this.priceAD)
|
|
|
+ e.outFactoryPrice = priceaAjustment(e.outFactoryPrice, this.priceAD,3)
|
|
|
e.totalValue = multiply(e.outFactoryPrice, e.orderQuantity)
|
|
|
e.price = addPrice(e.outFactoryPrice, e.shareAmount, e.internationalAmount)
|
|
|
e.amount = amountCal(
|
|
@@ -1113,7 +1113,7 @@ export default {
|
|
|
row.partsPrice,
|
|
|
this.form.coefficient
|
|
|
);
|
|
|
- row.outFactoryPrice = sellingCal(row.productPrice, this.form.exchangeRate);
|
|
|
+ row.outFactoryPrice = sellingCal(row.productPrice, this.form.exchangeRate,3);
|
|
|
row.totalValue = multiply(row.outFactoryPrice, row.orderQuantity)
|
|
|
row.price = addPrice(
|
|
|
row.outFactoryPrice,
|
|
@@ -1157,10 +1157,6 @@ export default {
|
|
|
row.insurance,
|
|
|
row.discount
|
|
|
);
|
|
|
- console.log(row.purchaseAmount, 'purchaseAmount')
|
|
|
- console.log(row.partsPrice, 'partsPrice')
|
|
|
- console.log(row.outFactoryPrice, 'outFactoryPrice')
|
|
|
- console.log(this.form.exchangeRate, 'exchangeRate')
|
|
|
// this.$set(row,'outFactoryChange',true)
|
|
|
row.itemMargin = grossProfitCal(
|
|
|
row.purchaseAmount,
|
|
@@ -1359,7 +1355,8 @@ export default {
|
|
|
);
|
|
|
this.goodsForm.outFactoryPrice = sellingCal(
|
|
|
this.goodsForm.productPrice,
|
|
|
- this.form.exchangeRate
|
|
|
+ this.form.exchangeRate,
|
|
|
+ 3
|
|
|
);
|
|
|
this.goodsForm.price = addPrice(
|
|
|
this.goodsForm.outFactoryPrice,
|