From 0e1017c7ab54ee28586ababf1fa85201075d6258 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Sat, 15 Nov 2025 16:39:05 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E7=BB=84=E4=BB=B6):=20=E9=87=8D?= =?UTF-8?q?=E6=9E=84=E4=BA=A7=E5=93=81=E5=92=8C=E5=8E=9F=E6=9D=90=E6=96=99?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E7=BB=84=E4=BB=B6=E4=B8=BA=E5=AF=B9=E8=AF=9D?= =?UTF-8?q?=E6=A1=86=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 重构产品选择(RawMaterialSelect)和原材料选择(ProductSelect)组件,将原有的下拉选择模式改为对话框模式 优化组件props处理,将required改为default空对象 新增分页、搜索和表格展示功能,提升用户体验 统一多选和单选模式的操作逻辑 --- .../KLPService/ProductSelect/index.vue | 494 ++++++++++------- .../KLPService/RawMaterialSelect/index.vue | 495 +++++++++++------- .../KLPService/Renderer/ProductInfo.vue | 5 +- .../KLPService/Renderer/RawMaterialInfo.vue | 3 +- 4 files changed, 615 insertions(+), 382 deletions(-) diff --git a/klp-ui/src/components/KLPService/ProductSelect/index.vue b/klp-ui/src/components/KLPService/ProductSelect/index.vue index 3e4d87f9..18e48dc1 100644 --- a/klp-ui/src/components/KLPService/ProductSelect/index.vue +++ b/klp-ui/src/components/KLPService/ProductSelect/index.vue @@ -1,251 +1,361 @@ - + +::v-deep .el-dialog__body { + padding: 20px; + overflow-x: auto; +} + +::v-deep .el-form-item { + margin-bottom: 15px; + margin-right: 15px; +} + \ No newline at end of file diff --git a/klp-ui/src/components/KLPService/RawMaterialSelect/index.vue b/klp-ui/src/components/KLPService/RawMaterialSelect/index.vue index d08e288b..3a023771 100644 --- a/klp-ui/src/components/KLPService/RawMaterialSelect/index.vue +++ b/klp-ui/src/components/KLPService/RawMaterialSelect/index.vue @@ -1,248 +1,369 @@ - + +::v-deep .el-dialog__body { + padding: 20px; + overflow-x: auto; // 适配宽表格横向滚动 +} + +::v-deep .el-form-item { + margin-bottom: 15px; + margin-right: 15px; +} + \ No newline at end of file diff --git a/klp-ui/src/components/KLPService/Renderer/ProductInfo.vue b/klp-ui/src/components/KLPService/Renderer/ProductInfo.vue index 2482898f..eb27e0e6 100644 --- a/klp-ui/src/components/KLPService/Renderer/ProductInfo.vue +++ b/klp-ui/src/components/KLPService/Renderer/ProductInfo.vue @@ -1,5 +1,5 @@