|
@@ -217,6 +217,8 @@
|
|
packingMoney: 0,
|
|
packingMoney: 0,
|
|
packing: '散装',
|
|
packing: '散装',
|
|
packingFee: null,
|
|
packingFee: null,
|
|
|
|
+ invoiceFeeCompany:0,
|
|
|
|
+ invoiceFeePerson:0
|
|
// choice : false,
|
|
// choice : false,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
@@ -238,6 +240,8 @@
|
|
this.purchaseOrder.procurementPlanType = options.procurementPlanType
|
|
this.purchaseOrder.procurementPlanType = options.procurementPlanType
|
|
this.purchaseOrder.procurementPlan = options.procurementPlan
|
|
this.purchaseOrder.procurementPlan = options.procurementPlan
|
|
this.purchaseOrder.compId = options.compId
|
|
this.purchaseOrder.compId = options.compId
|
|
|
|
+ this.invoiceFeeCompany = options.invoiceFeeCompany
|
|
|
|
+ this.invoiceFeePerson = options.invoiceFeePerson
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
...mapState(['hasLogin', 'userInfo']),
|
|
...mapState(['hasLogin', 'userInfo']),
|
|
@@ -257,12 +261,12 @@
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
this.goods = res.data.data
|
|
this.goods = res.data.data
|
|
if (this.goods.customerTypeFlag == 1) {
|
|
if (this.goods.customerTypeFlag == 1) {
|
|
- this.purchaseOrder.invoiceFee = -20
|
|
|
|
- this.purchaseOrder.settlementPrice = Number(this.purchaseOrder.basis) - Number(this
|
|
|
|
|
|
+ this.purchaseOrder.invoiceFee = this.invoiceFeePerson
|
|
|
|
+ this.purchaseOrder.settlementPrice = Number(this.purchaseOrder.basis) + Number(this
|
|
.purchaseOrder.invoiceFee)
|
|
.purchaseOrder.invoiceFee)
|
|
} else {
|
|
} else {
|
|
- this.purchaseOrder.invoiceFee = 0
|
|
|
|
- this.purchaseOrder.settlementPrice = Number(this.purchaseOrder.basis) - Number(this
|
|
|
|
|
|
+ this.purchaseOrder.invoiceFee = this.invoiceFeeCompany
|
|
|
|
+ this.purchaseOrder.settlementPrice = Number(this.purchaseOrder.basis) + Number(this
|
|
.purchaseOrder.invoiceFee)
|
|
.purchaseOrder.invoiceFee)
|
|
}
|
|
}
|
|
}
|
|
}
|