|
@@ -163,13 +163,20 @@
|
|
|
:columns="addBookColumns"
|
|
|
:data-source="addBookData"
|
|
|
:loading="loading"
|
|
|
- :pagination="ipagination"
|
|
|
+ :pagination="false"
|
|
|
:scroll="{ x: 1500,y: 350 }"
|
|
|
@change="handleTableChange"
|
|
|
>
|
|
|
</a-table>
|
|
|
+ <div class="amount">
|
|
|
+ <span class="all">总数量:{{ allMount.toFixed(2) }}</span>
|
|
|
+ <span class="all">总箱数:{{ allBox.toFixed(2) }}</span>
|
|
|
+ <span class="all">总毛重:{{ allGross.toFixed(2) }}</span>
|
|
|
+ <span class="all">总净重:{{ allNet.toFixed(2) }}</span>
|
|
|
+ <span class="all">总金额:{{ allMount.toFixed(2) }}</span>
|
|
|
+ </div>
|
|
|
</a-form-model>
|
|
|
-
|
|
|
+
|
|
|
<!-- 人民币、美金 -->
|
|
|
<a-row style="margin:60px 0;">
|
|
|
<div class="purchase-order-table" style="width:48%;marginRight:4%;float:left;">
|
|
@@ -453,6 +460,11 @@ export default {
|
|
|
confirmLoading: false,
|
|
|
visible: false,
|
|
|
dateFormat: 'YYYY-MM-DD',
|
|
|
+ allMount:0,
|
|
|
+ allGross:0,
|
|
|
+ allNet:0,
|
|
|
+ allMoney:0,
|
|
|
+ allBox:0,
|
|
|
validatorRules: {
|
|
|
shippingOrderDate:[{required: true, message: '托书日期不能为空!'}],
|
|
|
consignee:[{required: true, message: '收货人不能为空!'}],
|
|
@@ -461,6 +473,22 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
created() {},
|
|
|
+ watch: {
|
|
|
+ addBookData(val) {
|
|
|
+ this.allGross = 0
|
|
|
+ this.allMoney = 0
|
|
|
+ this.allMount = 0
|
|
|
+ this.allNet = 0
|
|
|
+ this.allBox = 0
|
|
|
+ val.map(item=>{
|
|
|
+ this.allGross+=Number(item.grossWeight)
|
|
|
+ this.allMoney+=Number(item.totalPrice)
|
|
|
+ this.allMount+=Number(item.number)
|
|
|
+ this.allNet+=Number(item.netWeight)
|
|
|
+ this.allBox += Number(item.boxNumber)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
filters: {
|
|
|
//文字数超出时,超出部分使用...
|
|
|
ellipsis(value) {
|
|
@@ -553,4 +581,15 @@ export default {
|
|
|
border: none;
|
|
|
padding: 0;
|
|
|
}
|
|
|
+// /deep/.ant-form{
|
|
|
+// position: relative;
|
|
|
+// }
|
|
|
+.amount{
|
|
|
+ // position:absolute;
|
|
|
+ // bottom: 2%;
|
|
|
+ width: 50%;
|
|
|
+}
|
|
|
+.all{
|
|
|
+ margin-right: 4%;
|
|
|
+}
|
|
|
</style>
|