From 6e28ba0342d34bf463be2aa5ad61e2e9a4f6cfa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Wed, 8 Jul 2026 13:07:50 +0800 Subject: [PATCH] =?UTF-8?q?fix(wms/coil/stock,=20wms/report):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E4=B8=A4=E5=A4=84=E5=8A=9F=E8=83=BD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 补充卷库存查询的质检状态参数 2. 修复自定义导出列重复添加和缓存解析重复数据的问题 --- klp-ui/src/views/wms/coil/stock/index.vue | 6 +++++- klp-ui/src/views/wms/report/components/CustomExport.vue | 7 ++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/klp-ui/src/views/wms/coil/stock/index.vue b/klp-ui/src/views/wms/coil/stock/index.vue index 9b211852c..3b4928174 100644 --- a/klp-ui/src/views/wms/coil/stock/index.vue +++ b/klp-ui/src/views/wms/coil/stock/index.vue @@ -497,7 +497,11 @@ export default { loadDialogData() { if (!this.currentWarehouse) return; this.dialogLoading = true; - const baseParams = { warehouseId: this.currentWarehouse.warehouseId, dataType: 1, status: 0 }; + const baseParams = { + warehouseId: this.currentWarehouse.warehouseId, + qualityStatusCsv: this.queryParams.qualityStatusCsv || '', + dataType: 1, status: 0, + }; Promise.all([ listLightCoil({ ...baseParams, pageSize: 99999, pageNum: 1 }), listMaterialCoil({ ...baseParams, pageNum: this.dialogPageNum, pageSize: this.dialogPageSize }), diff --git a/klp-ui/src/views/wms/report/components/CustomExport.vue b/klp-ui/src/views/wms/report/components/CustomExport.vue index 78294350e..0285c7879 100644 --- a/klp-ui/src/views/wms/report/components/CustomExport.vue +++ b/klp-ui/src/views/wms/report/components/CustomExport.vue @@ -98,7 +98,7 @@ export default { const newSet = new Set(nv) const oldSet = ov ? new Set(ov) : new Set() this.orderedColumns = this.orderedColumns.filter(f => newSet.has(f)) - const added = nv.filter(f => !oldSet.has(f)) + const added = nv.filter(f => !oldSet.has(f) && !this.orderedColumns.includes(f)) if (added.length) { this.orderedColumns.push(...added) } @@ -114,8 +114,9 @@ export default { try { const arr = JSON.parse(cached) if (Array.isArray(arr) && arr.length) { - this.selectedColumns = [...arr] - this.orderedColumns = [...arr] + const uniqueArr = [...new Set(arr)] + this.selectedColumns = uniqueArr + this.orderedColumns = uniqueArr this.$emit('update:visible', true) return }