From 977ea2b021d7ee4c2c868f58528036fd1b519536 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= <2178503051@qq.com> Date: Wed, 3 Jun 2026 16:44:44 +0800 Subject: [PATCH] =?UTF-8?q?refactor(wms/report):=20=E7=A7=BB=E9=99=A4actio?= =?UTF-8?q?nIds=E7=9B=B8=E5=85=B3=E5=AF=BC=E5=87=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- klp-ui/src/views/wms/report/receive.vue | 8 ++------ klp-ui/src/views/wms/report/template/action.vue | 6 ++---- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/klp-ui/src/views/wms/report/receive.vue b/klp-ui/src/views/wms/report/receive.vue index 028626bd..e662e229 100644 --- a/klp-ui/src/views/wms/report/receive.vue +++ b/klp-ui/src/views/wms/report/receive.vue @@ -243,15 +243,11 @@ export default { coilIds() { return this.list.map(item => item.coilId).join(',') }, - actionIds() { - const ids = this.list.map(item => item.actionId).filter(id => id) - return ids.length ? ids.join(',') : '' - }, exportIdParams() { - return this.actionIds ? { actionIds: this.actionIds } : { coilIds: this.coilIds } + return { coilIds: this.coilIds } }, hasExportData() { - return !!(this.coilIds || this.actionIds) + return !!this.coilIds }, exportQueryParams() { const { pageNum, pageSize, ...filters } = this.queryParams diff --git a/klp-ui/src/views/wms/report/template/action.vue b/klp-ui/src/views/wms/report/template/action.vue index ae699b49..f5a091b3 100644 --- a/klp-ui/src/views/wms/report/template/action.vue +++ b/klp-ui/src/views/wms/report/template/action.vue @@ -970,12 +970,10 @@ export default { handleCustomExport(orderedColumns) { const { pageNum, pageSize, startTime, endTime, ...filters } = this.queryParams const type = this.customExportType - const ids = type === 'loss' - ? { actionIds: this.actionIds } - : { coilIds: this.outList.map(item => item.coilId).join(',') } + const list = type === 'loss' ? this.lossList : this.outList this.download('wms/materialCoil/exportCustomOrdered', { ...filters, - ...ids, + coilIds: list.map(item => item.coilId).join(','), columnsOrdered: orderedColumns.join(','), }, `materialCoil_${new Date().getTime()}.xlsx`) },