From 4a8fc4904ff7baab45728af9e8a7159949b9198f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= <2178503051@qq.com> Date: Tue, 19 May 2026 16:42:16 +0800 Subject: [PATCH] =?UTF-8?q?feat(wms-report):=20=E6=96=B0=E5=A2=9E=E5=93=81?= =?UTF-8?q?=E8=B4=A8=E7=AD=9B=E9=80=89=E6=9D=A1=E4=BB=B6=E5=B9=B6=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E9=83=A8=E5=88=86=E6=9F=A5=E8=AF=A2=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 多个报表页面新增品质筛选下拉选择器 2. 统一添加coil_quality_status字典依赖 3. 替换部分旧的逻辑库位选择组件为warehouse-select 4. 调整部分表单字段的prop属性和代码格式 --- klp-ui/src/views/wms/report/abnormal.vue | 12 +++++++++--- klp-ui/src/views/wms/report/delivery.vue | 16 +++++++--------- klp-ui/src/views/wms/report/receive.vue | 18 ++++++++++++------ .../src/views/wms/report/template/action.vue | 17 ++++++++++++----- .../wms/report/template/comprehensive.vue | 15 ++++++++++----- klp-ui/src/views/wms/report/template/day.vue | 11 ++++++++++- klp-ui/src/views/wms/report/template/loss.vue | 6 +++++- klp-ui/src/views/wms/report/template/mands.vue | 13 ++++++++++--- klp-ui/src/views/wms/report/template/merge.vue | 6 +++++- klp-ui/src/views/wms/report/template/month.vue | 16 ++++++++++------ klp-ui/src/views/wms/report/template/out.vue | 12 ++++++++++-- klp-ui/src/views/wms/report/template/team.vue | 12 ++++++++++-- klp-ui/src/views/wms/report/template/year.vue | 12 ++++++++++-- 13 files changed, 120 insertions(+), 46 deletions(-) diff --git a/klp-ui/src/views/wms/report/abnormal.vue b/klp-ui/src/views/wms/report/abnormal.vue index f36081df..24d5a068 100644 --- a/klp-ui/src/views/wms/report/abnormal.vue +++ b/klp-ui/src/views/wms/report/abnormal.vue @@ -37,6 +37,10 @@ + + + @@ -99,14 +103,16 @@ @@ -147,7 +153,7 @@ export default { ColumnsSetting, TimeRangePicker }, - dicts: ['product_coil_status', 'coil_material', 'coil_itemname', 'coil_manufacturer'], + dicts: ['product_coil_status', 'coil_material', 'coil_itemname', 'coil_manufacturer', 'coil_quality_status'], data() { // 工具函数:个位数补零 const addZero = (num) => num.toString().padStart(2, '0') diff --git a/klp-ui/src/views/wms/report/delivery.vue b/klp-ui/src/views/wms/report/delivery.vue index fd892589..d3fb6ba6 100644 --- a/klp-ui/src/views/wms/report/delivery.vue +++ b/klp-ui/src/views/wms/report/delivery.vue @@ -3,14 +3,8 @@ - + + + + 查询 导出 @@ -93,7 +91,7 @@ export default { CoilTable, TimeRangePicker, }, - dicts: ['product_coil_status', 'coil_material', 'coil_itemname', 'coil_manufacturer'], + dicts: ['product_coil_status', 'coil_material', 'coil_itemname', 'coil_manufacturer', 'coil_quality_status'], data() { // 工具函数:个位数补零,保证格式统一(比如 9 → 09,5 → 05) const addZero = (num) => num.toString().padStart(2, '0') diff --git a/klp-ui/src/views/wms/report/receive.vue b/klp-ui/src/views/wms/report/receive.vue index eb7b3006..4d48bf4b 100644 --- a/klp-ui/src/views/wms/report/receive.vue +++ b/klp-ui/src/views/wms/report/receive.vue @@ -20,26 +20,32 @@ - + - + - + - + - + + + + + + @@ -115,7 +121,7 @@ export default { HierarchicalPivot, CrossTable, }, - dicts: ['product_coil_status', 'coil_material', 'coil_itemname', 'coil_manufacturer'], + dicts: ['product_coil_status', 'coil_material', 'coil_itemname', 'coil_manufacturer', 'coil_quality_status'], data() { // 工具函数:个位数补零,保证格式统一(比如 9 → 09,5 → 05) const addZero = (num) => num.toString().padStart(2, '0') diff --git a/klp-ui/src/views/wms/report/template/action.vue b/klp-ui/src/views/wms/report/template/action.vue index e010e378..38bc67ba 100644 --- a/klp-ui/src/views/wms/report/template/action.vue +++ b/klp-ui/src/views/wms/report/template/action.vue @@ -71,12 +71,19 @@ - - + + + + + 查询 @@ -219,7 +226,7 @@ export default { name: 'MergeTemplate', props: { actionType: { - type: Number, + type: [Number, String], required: true }, productionLine: { @@ -246,7 +253,7 @@ export default { ColumnsSetting, TimeRangePicker }, - dicts: ['product_coil_status', 'coil_material', 'coil_itemname', 'coil_manufacturer'], + dicts: ['product_coil_status', 'coil_material', 'coil_itemname', 'coil_manufacturer', 'coil_quality_status'], data() { // 工具函数:个位数补零 const addZero = (num) => num.toString().padStart(2, '0') @@ -466,7 +473,7 @@ export default { this.loading = true; // 所有报表类型都使用原始的 listPendingAction 方式获取数据 - const res = await listPendingAction({ ...this.queryParams, actionType: this.actionType, actionStatus: 2 }); + const res = await listPendingAction({ ...this.queryParams, actionTypes: this.actionType, actionStatus: 2 }); // 获取两层数据 const lossIds = res.rows.filter(item => item.coilId).map(item => item.coilId); const lossActionIds = res.rows.filter(item => item.actionId).map(item => item.actionId); diff --git a/klp-ui/src/views/wms/report/template/comprehensive.vue b/klp-ui/src/views/wms/report/template/comprehensive.vue index d2b61d38..1a0abdd6 100644 --- a/klp-ui/src/views/wms/report/template/comprehensive.vue +++ b/klp-ui/src/views/wms/report/template/comprehensive.vue @@ -2,8 +2,6 @@
- - 日视图 月视图 @@ -42,10 +40,14 @@ - + + + + + + 查询 导出产出钢卷 @@ -86,7 +92,6 @@ {{ summary.countDiff }}(昨日: {{ yesterdaySummary.countDiff }}) {{ summary.weightDiff }}(昨日: {{ yesterdaySummary.weightDiff }}) {{ summary.avgWeightDiff }}t(昨日: {{ yesterdaySummary.avgWeightDiff }}t) - {{ summary.passRate }}(昨日: {{ yesterdaySummary.passRate }}) @@ -216,7 +221,7 @@ export default { default: '', }, }, - dicts: ['product_coil_status', 'coil_material', 'coil_itemname', 'coil_manufacturer'], + dicts: ['product_coil_status', 'coil_material', 'coil_itemname', 'coil_manufacturer', 'coil_quality_status'], data() { // 工具函数:个位数补零 const addZero = (num) => num.toString().padStart(2, '0') diff --git a/klp-ui/src/views/wms/report/template/day.vue b/klp-ui/src/views/wms/report/template/day.vue index c9843b98..d123de91 100644 --- a/klp-ui/src/views/wms/report/template/day.vue +++ b/klp-ui/src/views/wms/report/template/day.vue @@ -14,10 +14,14 @@ - + + + + + + 查询 导出产出钢卷 @@ -153,6 +161,7 @@ export default { CoilTable, SplitSummary, }, + dicts: ['coil_quality_status'], props: { actionTypes: { type: Array, diff --git a/klp-ui/src/views/wms/report/template/loss.vue b/klp-ui/src/views/wms/report/template/loss.vue index f7601cc3..7f3bba64 100644 --- a/klp-ui/src/views/wms/report/template/loss.vue +++ b/klp-ui/src/views/wms/report/template/loss.vue @@ -40,6 +40,10 @@ + + + 查询 导出 @@ -111,7 +115,7 @@ export default { default: '', }, }, - dicts: ['coil_material', 'coil_manufacturer'], + dicts: ['coil_quality_status'], data() { // 工具函数:个位数补零,保证格式统一(比如 9 → 09,5 → 05) const addZero = (num) => num.toString().padStart(2, '0') diff --git a/klp-ui/src/views/wms/report/template/mands.vue b/klp-ui/src/views/wms/report/template/mands.vue index ce4a55f9..15e11a3c 100644 --- a/klp-ui/src/views/wms/report/template/mands.vue +++ b/klp-ui/src/views/wms/report/template/mands.vue @@ -42,10 +42,14 @@ - + + + + + + 查询 导出产出钢卷 @@ -163,7 +171,6 @@