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) || '加载供应商文档清单失败')