From 95e39ae7aecd6e1016c71cf5ae70a680d8f569bb Mon Sep 17 00:00:00 2001 From: wangxinhui <wangxinhui@hnkhzn.com> Date: 星期二, 29 四月 2025 10:48:30 +0800 Subject: [PATCH] 上传最新代码 --- 代码管理/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/outOrderDetail.vue | 36 +++++++++++++++++++++++++++++++++--- 1 files changed, 33 insertions(+), 3 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/outOrderDetail.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/outOrderDetail.vue" index 6091790..0357e55 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/outOrderDetail.vue" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/outOrderDetail.vue" @@ -43,6 +43,8 @@ <el-table ref="singleTable" :data="tableData" + :summary-method="getSummaries" + show-summary style="width: 100%; height: 100%" highlight-current-row @current-change="handleCurrentChange" @@ -227,11 +229,11 @@ Foots: "", total: 0, // 2020.08.29澧炲姞鑷畾涔夊垎椤垫潯澶у皬 - sizes: [30, 60, 100, 120], - size: 30, // 榛樿鍒嗛〉澶у皬 + sizes: [60, 100, 120], + size: 60, // 榛樿鍒嗛〉澶у皬 Wheres: [], page: 1, - rows: 30, + rows: 60, }, searchFormOptions: [ [ @@ -271,6 +273,34 @@ this.getDictionaryData(); this.getData(); }, + getSummaries(param) { + const { columns, data } = param + const sums = [] + + columns.forEach((column, index) => { + if (index === 0) { + sums[index] = '鍚堣' + return + } + + // 浠呭鏁板�煎垪姹傚拰 + // 浠呭鏌愪竴鍒楁眰鍜� + if (column.property === 'lockQuantity' || column.property === 'overOutQuantity' || column.property === 'orderQuantity') { + const values = data.map(item => Number(item[column.property])) + console.log(values); + if (!values.every(value => isNaN(value))) { + sums[index] = values.reduce((prev, curr) => { + return prev + (isNaN(curr) ? 0 : curr) + }, 0) + } else { + sums[index] = '-' + } + } + + }) + + return sums + }, getData() { var wheres = [{ name: "orderId", value: this.row.id }]; var param = { -- Gitblit v1.9.3