From 5cbba170e270e6f1c99a91e27dbb7951a27d596a Mon Sep 17 00:00:00 2001 From: “linengliang” <vanSuperEnergy@163.com> Date: 星期五, 24 十一月 2023 16:41:32 +0800 Subject: [PATCH] 故障报修验收 --- src/views/eam/modules/dailyInspectionOrder/DailyInspectionOrderModal.vue | 88 +++++++++++++++++++++++++------------------- 1 files changed, 50 insertions(+), 38 deletions(-) diff --git a/src/views/eam/modules/dailyInspectionOrder/DailyInspectionOrderModal.vue b/src/views/eam/modules/dailyInspectionOrder/DailyInspectionOrderModal.vue index 5537e21..c5a0bbc 100644 --- a/src/views/eam/modules/dailyInspectionOrder/DailyInspectionOrderModal.vue +++ b/src/views/eam/modules/dailyInspectionOrder/DailyInspectionOrderModal.vue @@ -26,7 +26,7 @@ /> </a-form-item> </a-col> - <a-col :span="12"> + <!-- <a-col :span="12"> <a-form-item label="寮�宸ユ潯浠�" :labelCol="labelCol" @@ -40,7 +40,7 @@ @change="handle2Switch(model.startWorkCondition)" /> </a-form-item> - </a-col> + </a-col> --> </a-row> <a-row :gutter="24"> <a-col :span="12"> @@ -378,42 +378,42 @@ }, width: 50, }, - { - title: '閮ㄤ綅', - align: 'center', - dataIndex: 'location' - }, + // { + // title: '閮ㄤ綅', + // align: 'center', + // dataIndex: 'location' + // }, { title: '鐐规椤圭洰', align: 'center', - dataIndex: 'inspectionProjectNum' + dataIndex: 'inspectionProjectName' }, { title: '妫�娴嬫爣鍑�', align: 'center', dataIndex: 'detectionStandard' }, - { - title: '鍚堟牸鑼冨洿', - align: 'center', - dataIndex: 'acceptabilityLimit' - }, - { - title: '鏂规硶', - align: 'center', - dataIndex: 'inspectionMethodName' - }, - { - title: '宸ュ叿', - align: 'center', - dataIndex: 'inspectionTool' - }, - { - title: '绀烘剰鍥�', - align: "center", - dataIndex: 'photo', - scopedSlots: { customRender: 'photo' }, - }, + // { + // title: '鍚堟牸鑼冨洿', + // align: 'center', + // dataIndex: 'acceptabilityLimit' + // }, + // { + // title: '鏂规硶', + // align: 'center', + // dataIndex: 'inspectionMethodName' + // }, + // { + // title: '宸ュ叿', + // align: 'center', + // dataIndex: 'inspectionTool' + // }, + // { + // title: '绀烘剰鍥�', + // align: "center", + // dataIndex: 'photo', + // scopedSlots: { customRender: 'photo' }, + // }, ], title: "鎿嶄綔", visible: false, @@ -436,7 +436,7 @@ validatorRules: { num: { rules: [ - { required: true, message: '璇疯緭鍏ヨ澶囩紪鐮�!' }, + { required: true, message: '璇疯緭鍏ョ粺涓�缂栫爜!' }, ] }, equipmentId: { @@ -477,6 +477,7 @@ getInspectionCycles: "/eam/inspectionOrder/getInspectionCycles", getInspectionProjectId: "/eam/inspectionOrder/getInspectionProjectId", // getEquipmentIdById: "/eam/equipment/list", + getNum: '/eam/sysIdentity/getNumNew' }, dataSource: [], @@ -488,7 +489,9 @@ methods: { add() { - this.edit({ startWorkCondition: "1", inspectionOrderDetails: [] }) + this.edit({ inspectionOrderDetails: [] }) + // this.edit({ startWorkCondition: "1", inspectionOrderDetails: [] }) + this.getSeq() }, edit(record) { @@ -574,6 +577,15 @@ }) }, + + getSeq() { + getAction(this.url.getNum, { type: 'DailylnspectionOrder', length: 4 }).then(res => { + if (res.success) { + this.form.setFieldsValue({ "num": res.result }) + } + }) + }, + // getEquipmentIdById(equipmentId) { // if (equipmentId != null && equipmentId != "") { // getAction(this.url.getEquipmentIdById, { id: equipmentId }).then((res) => { @@ -591,13 +603,13 @@ // } // }, - handle2Switch(startWorkCondition) { - if ('1' == startWorkCondition) { - this.model.startWorkCondition = '0' - } else { - this.model.startWorkCondition = '1' - } - }, + // handle2Switch(startWorkCondition) { + // if ('1' == startWorkCondition) { + // this.model.startWorkCondition = '0' + // } else { + // this.model.startWorkCondition = '1' + // } + // }, // handle2Change(val) { // this.inspectionCycles = []; -- Gitblit v1.9.3