From 0095389caf3c93b52e9e829db480d7994c8797d7 Mon Sep 17 00:00:00 2001 From: qiankanghui Date: Wed, 16 Sep 2026 17:29:57 +0800 Subject: [PATCH] =?UTF-8?q?feat(supplier):=20=E6=B7=BB=E5=8A=A0planner?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E9=AA=8C=E8=AF=81=E5=92=8C=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E6=B8=85=E5=8D=95=E6=A8=A1=E6=9D=BF=E9=BB=98=E8=AE=A4=E9=80=89?= =?UTF-8?q?=E4=B8=AD=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 为planner字段添加必填验证规则 - 在供应商表单中新增planner字段的prop绑定 - 实现新增弹窗时供应商文档清单模板默认选中第一条的功能 - 优化供应商文档清单模板的数据加载逻辑 --- src/views/modules/srmSupplier/supplierList.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/views/modules/srmSupplier/supplierList.vue b/src/views/modules/srmSupplier/supplierList.vue index 74e2e9c..a56898d 100644 --- a/src/views/modules/srmSupplier/supplierList.vue +++ b/src/views/modules/srmSupplier/supplierList.vue @@ -234,7 +234,7 @@ - + Planner @@ -1320,6 +1320,9 @@ export default { ], supplierDocType: [ { required: true, message: '请选择供应商文档清单模板', trigger: ['blur', 'change'] } + ], + planner: [ + { required: true, message: '请选择Planner', trigger: ['blur', 'change'] } ] } } @@ -1501,6 +1504,10 @@ export default { if (currentType && this.supplierDocTypeOptions.indexOf(currentType) === -1) { this.supplierDocTypeOptions.unshift(currentType) } + // 新增弹窗打开时,供应商文档清单模板默认选中第一条 + if (this.isAdd && !this.currentSupplier.supplierDocType && this.supplierDocTypeOptions.length > 0) { + this.currentSupplier.supplierDocType = this.supplierDocTypeOptions[0] + } } else { this.supplierDocTypeOptions = [] this.$message.error((data && data.msg) || '加载供应商文档清单失败')