|
@@ -104,6 +104,11 @@
|
|
|
<a-input placeholder="自动生成" v-model="addAdpacking.totalPrice" readOnly></a-input>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
+ <a-col :md="6" :sm="8">
|
|
|
+ <a-form-model-item label="总件数" prop="totalNumber">
|
|
|
+ <a-input placeholder="自动生成" v-model="addAdpacking.totalNumber" readOnly></a-input>
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
</a-row>
|
|
|
</a-form-model>
|
|
|
</div>
|
|
@@ -298,6 +303,18 @@ export default {
|
|
|
width: 240,
|
|
|
type: JVXETypes.input ,
|
|
|
},
|
|
|
+ {
|
|
|
+ title: '计划尺码数量',
|
|
|
+ key: 'planSize',
|
|
|
+ width: 240,
|
|
|
+ type: JVXETypes.normal ,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '计划装箱数量',
|
|
|
+ key: 'planQuantity',
|
|
|
+ width: 240,
|
|
|
+ type: JVXETypes.normal ,
|
|
|
+ },
|
|
|
{
|
|
|
title: '件数/箱',
|
|
|
key: 'piecesBox',
|
|
@@ -465,7 +482,6 @@ export default {
|
|
|
this.loadSizeTables(res.result.sizeTables);
|
|
|
var changedData = this.changeData(val[0], res.result);
|
|
|
this.addAdpacking.syPreAssembledPackingListItemList.push(changedData);
|
|
|
-
|
|
|
}else{
|
|
|
this.$message.error("获取发运明细详情失败");
|
|
|
}
|
|
@@ -832,6 +848,7 @@ export default {
|
|
|
var totalGrossWeight = 0;
|
|
|
var totalVolume = 0;
|
|
|
var totalPrice = 0;
|
|
|
+ var total = 0;
|
|
|
|
|
|
for (var i=0; i<headData.syPreAssembledPackingListItemList.length; i++){
|
|
|
var rowData = headData.syPreAssembledPackingListItemList[i];
|
|
@@ -848,12 +865,16 @@ export default {
|
|
|
if (rowData.totalPrice != undefined && rowData.totalPrice != ""){
|
|
|
totalPrice += rowData.totalPrice*1;
|
|
|
}
|
|
|
+ if (rowData.total != undefined && rowData.total != ""){
|
|
|
+ total += rowData.total*1;
|
|
|
+ }
|
|
|
}
|
|
|
headData.totalBoxes = totalBoxes;
|
|
|
headData.totalNetWeight = totalNetWeight;
|
|
|
headData.totalGrossWeight = totalGrossWeight;
|
|
|
headData.totalVolume = totalVolume;
|
|
|
headData.totalPrice = totalPrice.toFixed(2);
|
|
|
+ headData.totalNumber = total
|
|
|
this.addAdpacking = headData;
|
|
|
},
|
|
|
},
|