From a9f005e2af294c47d7cd1e4b6ed401bf65f5b080 Mon Sep 17 00:00:00 2001 From: zhangherong <571457620@qq.com> Date: 星期二, 04 三月 2025 16:44:09 +0800 Subject: [PATCH] art: 所有设备 台账 二保工单 根据设备id查询二保工单,并过滤掉已完成和已取消的二保工单 --- src/views/eam/modules/dailyInspectionStandard/DailylnspectionStandardModal.vue | 41 ++++++++++++++++++++++------------------- 1 files changed, 22 insertions(+), 19 deletions(-) diff --git a/src/views/eam/modules/dailyInspectionStandard/DailylnspectionStandardModal.vue b/src/views/eam/modules/dailyInspectionStandard/DailylnspectionStandardModal.vue index b2f3d01..320825f 100644 --- a/src/views/eam/modules/dailyInspectionStandard/DailylnspectionStandardModal.vue +++ b/src/views/eam/modules/dailyInspectionStandard/DailylnspectionStandardModal.vue @@ -129,22 +129,20 @@ </a-col> --> </a-row> <a-row :gutter="24"> - <!-- <a-col :span="12"> + <a-col :span="12"> <a-form-item - label="娲惧伐鏂瑰紡" + label="绠$悊鍒跺害" :labelCol="labelCol" :wrapperCol="wrapperCol" > - <j-dict-select-tag + <a-input allow-clear - :disabled="disableSubmit" - :placeholder="disableSubmit?'':'璇烽�夋嫨娲惧伐鏂瑰紡'" - :triggerChange="true" - dictCode="assign_mode" - v-decorator="['assignMode', validatorRules.assignMode]" + :disabled="false" + :placeholder="disableSubmit?'':'璇疯緭鍏ョ鐞嗗埗搴�'" + v-decorator="['disUda1', validatorRules.disUda1 ]" /> </a-form-item> - </a-col> --> + </a-col> <a-col :span="12"> <a-form-item label="鐗堟湰" @@ -326,7 +324,7 @@ dataIndex: 'name' }, { - title: '妫�娴嬫爣鍑�', + title: '瀹屾垚鏁版嵁/瑕佹眰', align: 'center', dataIndex: 'detectionStandard' }, @@ -350,7 +348,6 @@ align: 'center', dataIndex: 'inspectionCycleId', scopedSlots: { customRender: 'inspectionCycleId' }, - width: 170, }, // { // title: '绀烘剰鍥�', @@ -359,13 +356,13 @@ // scopedSlots: { customRender: 'photo' }, // width: 170, // }, - { - title: '閮ㄤ綅', - align: 'center', - dataIndex: 'location', - scopedSlots: { customRender: 'location' }, - width: 170, - }, + // { + // title: '閮ㄤ綅', + // align: 'center', + // dataIndex: 'location', + // scopedSlots: { customRender: 'location' }, + // width: 170, + // }, { title: '鎿嶄綔', align: 'center', @@ -420,6 +417,11 @@ { required: true, message: '璇疯緭鍏ュ巻鍙茬増鏈�!' }, ] }, + disUda1: { + rules: [ + { required: true, message: '璇疯緭鍏ョ鐞嗗埗搴�!' }, + ] + }, }, url: { add: "/eam/inspectionStandard/add", @@ -439,6 +441,7 @@ mounted() { this.$bus.$on('selectionRows', (data) => { for (let i = 0; i < data.length; i++) { + debugger this.dataSource.push({ id: data[i].id, inspectionProjectId: data[i].id, @@ -485,7 +488,7 @@ that.dataSource = temp; } that.$nextTick(() => { - that.form.setFieldsValue(pick(that.model, 'num', 'equipmentId', 'equipmentName', 'useDepartName', 'useId', 'teamName', 'assignMode', 'version', 'remark')); + that.form.setFieldsValue(pick(that.model, 'num', 'equipmentId', 'equipmentName', 'useDepartName', 'disUda1', 'useId', 'teamName', 'assignMode', 'version', 'remark')); }); if (record.id) { that.codeDisable = true; -- Gitblit v1.9.3