From abbdf130577513b5ea4c03ad1bc3026d35ff85d0 Mon Sep 17 00:00:00 2001 From: A0010407 Date: Tue, 13 Aug 2024 12:13:03 +0800 Subject: [PATCH] =?UTF-8?q?2024-08-13=20=E8=AE=BE=E5=A4=87-=E6=8A=A5?= =?UTF-8?q?=E4=BF=AE=E7=BB=B4=E4=BF=AE=E5=AE=A1=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/device/repairOrder.js | 4 +- src/views/device/faultReport/index.vue | 174 ++++++++++++++++++------- src/views/device/repairOrder/index.vue | 85 +++++++++--- 3 files changed, 192 insertions(+), 71 deletions(-) diff --git a/src/api/device/repairOrder.js b/src/api/device/repairOrder.js index 71f2c80..fdabd15 100644 --- a/src/api/device/repairOrder.js +++ b/src/api/device/repairOrder.js @@ -80,9 +80,9 @@ export function queryEquFaultTypeTree(query) { } // 维修工单检验 -export function subInspect(data) { +export function checkRepairWorkOrder(data) { return request({ - url: '/device/repairOrder/subInspect', + url: '/device/repairOrder/checkRepairWorkOrder', method: 'post', data: data }); diff --git a/src/views/device/faultReport/index.vue b/src/views/device/faultReport/index.vue index 2479eeb..3daf01b 100644 --- a/src/views/device/faultReport/index.vue +++ b/src/views/device/faultReport/index.vue @@ -6,7 +6,7 @@ size="small" :inline="true" v-show="showSearch" - label-width="88px" + label-width="100px" > + + + + + + + + + + + + + + + - - + - - + @keyup.enter.native="handleQuery" + /> - + + - + + + @@ -214,7 +262,8 @@ label="设备编码" align="center" prop="equipmentCode" - width="100" + :show-overflow-tooltip="true" + width="120" /> - + - 计划性维修 + 计划性维修 + 立即维修 不维修 委外维修 - 立即维修 + @@ -486,12 +534,13 @@ + - + @@ -569,17 +618,11 @@ - + - + - + + @@ -634,8 +672,6 @@ /> - - + + + + + + + + @@ -1174,7 +1224,7 @@ import { listFaultDescription } from "@/api/device/faultDescription"; export default { name: "FaultReport", components: { ItemSelect, ItemSelectPerson }, - dicts: ["device_order_source", "device_reach_standard"], + dicts: ["device_order_source", "device_reach_standard", "device_audit_status", "device_repair_destination", "device_audit_status"], data() { return { CS: { @@ -1337,6 +1387,16 @@ export default { orderRepairmanCode: [ { required: true, message: "报修人工号不能为空", trigger: "blur" }, ], + //审核中 需要限制的字段 计划停机时间???? + workPlanTime: [ + { required: true, message: "计划维修时间", trigger: "blur" }, + ], + // workPlanDownTime: [ + // { required: true, message: "计划停机时间", trigger: "blur" }, + // ], + workDownMachine: [ + { required: true, message: "是否停机维修", trigger: "blur" }, + ], }, }; }, @@ -1349,6 +1409,14 @@ export default { indexMethod(index) { return index + 1; }, + + //监控radio + monitorRadio(){ + if(this.form.workDownMachine == '0'){ + this.form.workPlanDownTime = null; + } + }, + timeBackFilling() { var getTime = new Date().getTime(); //获取到当前时间戳 var time = new Date(getTime); //创建一个日期对象 @@ -1373,8 +1441,18 @@ export default { second ); } - this.form.workPlanTime = nowDate(time); + this.form.workPlanTime = nowDate(time); //当选择为立即维修时候,都是默认值 + this.form.workPlanDownTime = nowDate(time); + this.form.workDownMachine = '1'; }, + + //计划维修 时间回填重置 + timeBackFillingReset() { + this.form.workPlanTime = null; //当选择为立即维修时候,都是默认值 + this.form.workPlanDownTime = null; + this.form.workDownMachine = null; + }, + /** 查询维修措施列表 */ getOrderDesc() { this.loading = true; @@ -1655,8 +1733,8 @@ export default { } if ( - response.data.orderStatus == "审核通过" || - response.data.orderStatus == "驳回" + response.data.orderStatus == "1" || + response.data.orderStatus == "2" ) { Message.warning("该报修记录已审核!"); this.form = response.data; diff --git a/src/views/device/repairOrder/index.vue b/src/views/device/repairOrder/index.vue index 3182bce..3c21300 100644 --- a/src/views/device/repairOrder/index.vue +++ b/src/views/device/repairOrder/index.vue @@ -17,6 +17,20 @@ @keyup.enter.native="handleQuery" /> + + + + + - + 结果检验 + >维修结果审核 @@ -289,13 +303,15 @@ -