|
@@ -327,9 +327,10 @@
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
|
totalAmountTotalPrice() {
|
|
totalAmountTotalPrice() {
|
|
|
- return this.tableForm.detailList.reduce((total, item) => {
|
|
|
|
|
|
|
+ let tempTotal = this.tableForm.detailList.reduce((total, item) => {
|
|
|
return total + (parseFloat(item.invoiceAmount) || 0);
|
|
return total + (parseFloat(item.invoiceAmount) || 0);
|
|
|
}, 0);
|
|
}, 0);
|
|
|
|
|
+ return tempTotal.toFixed(2);
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
@@ -437,7 +438,6 @@
|
|
|
let tempData = JSON.parse(JSON.stringify(data));
|
|
let tempData = JSON.parse(JSON.stringify(data));
|
|
|
console.log('tableInfoNew putValue', tempData);
|
|
console.log('tableInfoNew putValue', tempData);
|
|
|
tempData.detailList = this.convertToArrayFormat(tempData, 'putValue');
|
|
tempData.detailList = this.convertToArrayFormat(tempData, 'putValue');
|
|
|
- console.log('data.detailList', data.detailList);
|
|
|
|
|
this.tableForm = tempData;
|
|
this.tableForm = tempData;
|
|
|
console.log('tableInfoNew putValue~~~', this.tableForm);
|
|
console.log('tableInfoNew putValue~~~', this.tableForm);
|
|
|
},
|
|
},
|