From 96b49e71f42fa6267b50a97d95c904ef3f9d4acb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= <2178503051@qq.com> Date: Thu, 21 May 2026 13:38:35 +0800 Subject: [PATCH] =?UTF-8?q?feat(KLPService=E9=80=89=E6=8B=A9=E7=BB=84?= =?UTF-8?q?=E4=BB=B6):=20=E6=96=B0=E5=A2=9E=E9=BB=98=E8=AE=A4=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E5=8F=82=E6=95=B0=E6=94=AF=E6=8C=81=E5=B9=B6=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E9=92=A2=E5=8D=B7=E5=BD=95=E5=85=A5=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 为ProductSelect和RawMaterialSelect组件新增defaultQueryParams属性,支持传入默认查询参数合并到请求参数中 2. 优化钢卷录入页面:默认选中成品类型,根据解析的钢卷数据自动设置物料选择器的查询参数 3. 移除页面冗余空行和注释代码 --- .../KLPService/ProductSelect/index.vue | 7 +++ .../KLPService/RawMaterialSelect/index.vue | 7 +++ .../views/wms/anneal/performance/report.vue | 55 ++++++++++++------- klp-ui/src/views/wms/coil/typing.vue | 33 +++++------ 4 files changed, 64 insertions(+), 38 deletions(-) diff --git a/klp-ui/src/components/KLPService/ProductSelect/index.vue b/klp-ui/src/components/KLPService/ProductSelect/index.vue index 69890d26..389537a4 100644 --- a/klp-ui/src/components/KLPService/ProductSelect/index.vue +++ b/klp-ui/src/components/KLPService/ProductSelect/index.vue @@ -163,6 +163,10 @@ export default { filters: { type: Object, default: () => ({}) + }, + defaultQueryParams: { + type: Object, + default: () => ({}) } }, data() { @@ -235,6 +239,9 @@ export default { this.getList(); this.listRecentlySelected(); } + }, + defaultQueryParams(val) { + this.queryParams = { ...this.queryParams, ...val }; } }, methods: { diff --git a/klp-ui/src/components/KLPService/RawMaterialSelect/index.vue b/klp-ui/src/components/KLPService/RawMaterialSelect/index.vue index 89d9a7aa..4e4a9de2 100644 --- a/klp-ui/src/components/KLPService/RawMaterialSelect/index.vue +++ b/klp-ui/src/components/KLPService/RawMaterialSelect/index.vue @@ -151,6 +151,10 @@ export default { filters: { type: Object, default: () => ({}) + }, + defaultQueryParams: { + type: Object, + default: () => ({}) } }, data() { @@ -234,6 +238,9 @@ export default { this.listRecentlySelected(); this.getList(); } + }, + defaultQueryParams(val) { + this.queryParams = { ...this.queryParams, ...val }; } }, methods: { diff --git a/klp-ui/src/views/wms/anneal/performance/report.vue b/klp-ui/src/views/wms/anneal/performance/report.vue index d3a39318..1e1499b5 100644 --- a/klp-ui/src/views/wms/anneal/performance/report.vue +++ b/klp-ui/src/views/wms/anneal/performance/report.vue @@ -1,13 +1,10 @@