|
@@ -1382,13 +1382,15 @@ export default {
|
|
|
|
|
|
// this.form.deliveryFeesList
|
|
|
// 计算 deliveryFeesList 中 amount 的总和
|
|
|
- let totalAmount = 0;
|
|
|
- for(i=0;i<this.form.deliveryFeesList.length;i++){
|
|
|
- totalAmount += this.form.deliveryFeesList[i].amount
|
|
|
- }
|
|
|
- console.log(totalAmount);
|
|
|
+ // let totalAmount = 0;
|
|
|
+ // if(this.form.deliveryFeesList){
|
|
|
+ // for(let i=0;i<this.form.deliveryFeesList.length;i++){
|
|
|
+ // totalAmount += this.form.deliveryFeesList[i].amount
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+
|
|
|
//计算费用明细
|
|
|
- this.form.number = Number(this.form.purchaseAmount) + totalAmount
|
|
|
+ // this.form.number = Number(this.form.purchaseAmount) + totalAmount
|
|
|
console.log(this.form.number);
|
|
|
if (typeof this.form.corpsTypeId == 'object') {
|
|
|
this.form.corpsTypeId = this.form.corpsTypeId.join(",")
|