diff --git a/klp-ui/src/views/wms/delivery/components/detailTable.vue b/klp-ui/src/views/wms/delivery/components/detailTable.vue index f8dcef96..c83857ad 100644 --- a/klp-ui/src/views/wms/delivery/components/detailTable.vue +++ b/klp-ui/src/views/wms/delivery/components/detailTable.vue @@ -18,6 +18,17 @@ 刷新 + + + + + {{ totalCoilCount }} 卷 + + + {{ totalWeight }} 吨 + + + @@ -173,7 +184,7 @@ export default { // 查询参数 queryParams: { pageNum: 1, - pageSize: 10, + pageSize: 999, waybillId: this.waybillId, coilId: undefined, productName: undefined, @@ -194,6 +205,14 @@ export default { autoFillForm: true, }; }, + computed: { + totalCoilCount() { + return this.total; + }, + totalWeight() { + return this.deliveryWaybillDetailList.reduce((acc, item) => acc + Number(item.weight), 0).toFixed(3); + } + }, created() { this.getList(); },