From e74242e9f270404ac3717aeee59e1ab17815eb50 Mon Sep 17 00:00:00 2001 From: Houjie <714924425@qq.com> Date: 星期三, 27 八月 2025 12:06:25 +0800 Subject: [PATCH] 安灯工单:产线多选修改为单选/设备管理模块迁移: 设备台账/设备履历/故障报修/维修工单/保养标准/点检工单/精度参数维护/工艺参数维护/设备附件管理/故障原因维护 (二维码库添加) 设备台账:设备编码重复校验 、自定义控件引用、权限控制 --- src/views/base/modules/factoryManager/FactoryModal.vue | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/views/base/modules/factoryManager/FactoryModal.vue b/src/views/base/modules/factoryManager/FactoryModal.vue index 4454250..f26ce6c 100644 --- a/src/views/base/modules/factoryManager/FactoryModal.vue +++ b/src/views/base/modules/factoryManager/FactoryModal.vue @@ -55,7 +55,7 @@ :labelCol="labelCol" :wrapperCol="wrapperCol" label="鎺掑簭"> - <a-input-number v-model="model.sorter"/> + <a-input-number v-model="model.sorter" style="width:100%"/> </a-form-model-item> <a-form-model-item :labelCol="labelCol" @@ -98,7 +98,9 @@ confirmLoading: false, validatorRules:{ + factoryCode:[{ required: true, message: '璇疯緭鍏ュ伐鍘�/杞﹂棿/浜х嚎缂栧彿!' }], factoryName:[{ required: true, message: '璇疯緭鍏ュ伐鍘�/杞﹂棿/浜х嚎鍚嶇О!' }], + productionType:[{ required: false, message: '璇烽�夋嫨浜х嚎绫诲瀷!' }], }, url: { add: "/base/factory/add", @@ -157,6 +159,9 @@ edit (record,factoryCategory) { this.visible = true; this.model = Object.assign({}, this.defaultModel, record) + if(factoryCategory == '2'){ + this.validatorRules.productionType[0].required = true + } this.loadTreeData(); this.model.parentId = record!=null?record.toString():null; this.factoryCategory = factoryCategory -- Gitblit v1.9.3