|
@@ -668,7 +668,6 @@ export default {
|
|
|
destinationPort:transitionData.destinationPort,
|
|
|
exchangeEarningsValue:transitionData.exchangeEarningsValue,
|
|
|
termsOfDeliveryvalue:transitionData.termsOfDeliveryvalue,
|
|
|
- totalVolume:transitionData.totalVolume,
|
|
|
}
|
|
|
}
|
|
|
this.setHeadCalField()
|
|
@@ -756,7 +755,8 @@ export default {
|
|
|
var containerNumberArr = [],
|
|
|
readyFabricArr = []
|
|
|
var headData = JSON.parse(JSON.stringify(this.addBook));
|
|
|
- var moneyAll = 0;
|
|
|
+ var moneyAll = 0,
|
|
|
+ vol = 0
|
|
|
for (var i=0; i<this.addBookData.length; i++){
|
|
|
var rowData = this.addBookData[i];
|
|
|
if(rowData.readyFabric == '面料'){
|
|
@@ -767,7 +767,11 @@ export default {
|
|
|
if (rowData.totalPrice != undefined && rowData.totalPrice != ""){
|
|
|
moneyAll += rowData.totalPrice*1;
|
|
|
}
|
|
|
+ if (rowData.totalVolume != undefined && rowData.totalVolume != ""){
|
|
|
+ vol += rowData.totalVolume*1;
|
|
|
+ }
|
|
|
}
|
|
|
+ headData.totalVolume = parseFloat(vol.toFixed(4));
|
|
|
containerNumberArr = [...new Set(containerNumberArr)]
|
|
|
readyFabricArr = [...new Set(readyFabricArr)]
|
|
|
if(readyFabricArr.length == 1 && readyFabricArr[0] == '面料'){
|