From 80a5fce9e5892e57311fe01a96219f00efe419be Mon Sep 17 00:00:00 2001 From: wangwei <1610949092@qq.com> Date: Thu, 10 Aug 2023 10:21:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A1=E6=A3=80=E4=BB=BB=E5=8A=A1=20?= =?UTF-8?q?=E5=8A=A0=E4=B8=8A=E6=8A=A5=E4=BF=AE=E7=B1=BB=E5=9E=8B=E5=92=8C?= =?UTF-8?q?=E7=B4=A7=E6=80=A5=E7=A8=8B=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inventory/DeviceInspectTakeAdd.vue | 44 ++++++++++++++++++- .../DeviceInspectTakeAuditModify.vue | 42 +++++++++++++++++- 2 files changed, 84 insertions(+), 2 deletions(-) diff --git a/src/views/inventory/DeviceInspectTakeAdd.vue b/src/views/inventory/DeviceInspectTakeAdd.vue index 098497c6..07eff59c 100644 --- a/src/views/inventory/DeviceInspectTakeAdd.vue +++ b/src/views/inventory/DeviceInspectTakeAdd.vue @@ -82,7 +82,8 @@ @@ -93,6 +94,32 @@ + + + + + + + + + + + + + + + + + + + + + + @@ -346,6 +373,7 @@ export default { updateTime: null, taskOrderIdFk: null }, + ischeck:false, deviceList: [], delectList: [], deviceTotal: 0, @@ -361,6 +389,8 @@ export default { deviceName: [{required: true, message:"请输入设备名称!",trigger: 'blur'}], code: [{required: true, message:"请输入物资编码!",trigger: 'blur'}], type: [{required: true, message:"请选择类型!",trigger: 'blur'}], + repairType: [{required: true, message:"请选择维修类型!",trigger: 'blur'}], + level: [{required: true, message:"请选择紧急程度!",trigger: 'blur'}], }, statusMap: { 1: "未开始", @@ -387,6 +417,15 @@ export default { this.getInvList(); }); }, + repairType(val){ + if(val == 3){ + //报修 + this.ischeck = true; + + }else + this.ischeck = false; + + }, getInvList() { let params = {deptCode: this.inspectTake.deptCode}; getInvListByUser(params) @@ -646,6 +685,9 @@ export default { this.getUserBus(); if (!isBlank(this.inspectTake.id)) { this.selectDeviceInspecTakeDetail({taskOrderIdFk: this.inspectTake.orderId}); + if(this.inspectTake.type == 3){ + this.ischeck =true + } } } , diff --git a/src/views/inventory/DeviceInspectTakeAuditModify.vue b/src/views/inventory/DeviceInspectTakeAuditModify.vue index 8c70a186..4a48f64d 100644 --- a/src/views/inventory/DeviceInspectTakeAuditModify.vue +++ b/src/views/inventory/DeviceInspectTakeAuditModify.vue @@ -71,7 +71,9 @@ - + @@ -96,6 +98,31 @@ + + + + + + + + + + + + + + + + + + + + + @@ -245,6 +272,7 @@ export default { updateTime: null, taskOrderIdFk: null }, + ischeck:false, deviceList: [], delectList: [], deviceTotal: 0, @@ -312,6 +340,15 @@ export default { }, //!-------------------------------------------------------------- 新加方法 --------------------------------------------------------- // + repairType(val){ + if(val == 3){ + //报修 + this.ischeck = true; + }else + this.ischeck = false; + }, + + selectDeviceInspecTakeDetail(obj) { selectDeviceInspecTakeDetail(obj).then((res) => { this.loading = false; @@ -459,6 +496,9 @@ export default { this.getUserBus(); if (!isBlank(this.inspectTake.id)) { this.selectDeviceInspecTakeDetail({taskOrderIdFk: this.inspectTake.orderId}); + if(this.inspectTake.type == 3){ + this.ischeck =true + } } } ,