From 118d1b9b088a6ba67cee7f5a3a746329a048113c Mon Sep 17 00:00:00 2001 From: wws <18630710203@163.com> Date: Wed, 29 Nov 2023 17:21:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=85=BB=E7=82=B9=E6=A3=80=E5=B7=A1?= =?UTF-8?q?=E6=A3=80=E8=AE=A1=E5=88=92=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/device/inspectionPlan/index.vue | 66 +++++++++++++++----- src/views/device/spotCheckPlan/index.vue | 75 ++++++++++++++++++----- src/views/device/upkeepPlan/index.vue | 50 ++++++++++++--- 3 files changed, 148 insertions(+), 43 deletions(-) diff --git a/src/views/device/inspectionPlan/index.vue b/src/views/device/inspectionPlan/index.vue index c19cedd..5b4b81a 100644 --- a/src/views/device/inspectionPlan/index.vue +++ b/src/views/device/inspectionPlan/index.vue @@ -453,6 +453,7 @@ @@ -469,15 +470,18 @@ + @@ -491,17 +495,26 @@ > - + label="部位"> + + + + @@ -921,23 +934,36 @@ export default { for (let j = 0; j < this.form.equipmentItem[i].equPlanDetailList.length; j++) { - // 检查项名称 + // 部位 var itemName = this.form.equipmentItem[i].equPlanDetailList[j].itemName; + // 方法 + var itemMethod = this.form.equipmentItem[i].equPlanDetailList[j].itemMethod; + // 工具 + var itemTools = this.form.equipmentItem[i].equPlanDetailList[j].itemTools; + // // 周期 + // var itemLoop = this.form.equipmentItem[i].equPlanDetailList[j].itemLoop; + // var itemLoopType = this.form.equipmentItem[i].equPlanDetailList[j].itemLoopType; - for (let k = 0; k < this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList.length; k++){ + for (let k = 0; k < this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList.length; k++) { if (this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k].showFlag == true) { + this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k].itemName = itemName; + this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k].itemMethod = itemMethod; + this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k].itemTools = itemTools; + // this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k].itemLoop = itemLoop; + // this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k].itemLoopType = itemLoopType; + + if (this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k].standardType == "qualitative") { this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k].standardTypeName = "定性"; - }else { + } else { this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k].standardTypeName = "定量"; } this.itemDetailList.push(this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k]); } } - } } @@ -969,6 +995,12 @@ export default { } } + // 设置循环周期,用来后端格式化处理设备信息 + for (let i = 0; i < this.selectEquList.length; i++) { + this.selectEquList[i].itemLoop = this.form.planLoop; + this.selectEquList[i].itemLoopType = this.form.planLoopType; + } + // 处理信息 formatEquItem(this.selectEquList).then(response => { @@ -1171,14 +1203,14 @@ export default { this.selectPersonList = response.data.personListVO; - for (let i = 0; i < this.form.equipmentItem.length; i++) { - if (this.form.equipmentItem[i].itemTempName == null) { - this.form.equipmentItem[i].itemTempName = ''; - } - for (let j = 0; j < this.form.equipmentItem[i].equPlanDetailList.length; j++) { - this.form.equipmentItem[i].itemTempName = this.form.equipmentItem[i].itemTempName + this.form.equipmentItem[i].equPlanDetailList[j].itemName + "," - } - } + // for (let i = 0; i < this.form.equipmentItem.length; i++) { + // if (this.form.equipmentItem[i].itemTempName == null) { + // this.form.equipmentItem[i].itemTempName = ''; + // } + // for (let j = 0; j < this.form.equipmentItem[i].equPlanDetailList.length; j++) { + // this.form.equipmentItem[i].itemTempName = this.form.equipmentItem[i].itemTempName + this.form.equipmentItem[i].equPlanDetailList[j].itemName + "," + // } + // } this.loading = false; this.open = true; @@ -1270,6 +1302,6 @@ export default { } .el-transfer-panel { - width: 260px; + width: 260px !important; } diff --git a/src/views/device/spotCheckPlan/index.vue b/src/views/device/spotCheckPlan/index.vue index 596a962..7de6a8c 100644 --- a/src/views/device/spotCheckPlan/index.vue +++ b/src/views/device/spotCheckPlan/index.vue @@ -438,7 +438,7 @@ - + @@ -488,15 +489,18 @@ + @@ -505,22 +509,39 @@ - + label="部位"> + + + + + + + + + + + + @@ -543,6 +564,7 @@ { @@ -1197,14 +1238,14 @@ export default { this.selectPersonList = response.data.personListVO; - for (let i = 0; i < this.form.equipmentItem.length; i++) { - if (this.form.equipmentItem[i].itemTempName == null) { - this.form.equipmentItem[i].itemTempName = ''; - } - for (let j = 0; j < this.form.equipmentItem[i].equPlanDetailList.length; j++) { - this.form.equipmentItem[i].itemTempName = this.form.equipmentItem[i].itemTempName + this.form.equipmentItem[i].equPlanDetailList[j].itemName + "," - } - } + // for (let i = 0; i < this.form.equipmentItem.length; i++) { + // if (this.form.equipmentItem[i].itemTempName == null) { + // this.form.equipmentItem[i].itemTempName = ''; + // } + // for (let j = 0; j < this.form.equipmentItem[i].equPlanDetailList.length; j++) { + // this.form.equipmentItem[i].itemTempName = this.form.equipmentItem[i].itemTempName + this.form.equipmentItem[i].equPlanDetailList[j].itemName + "," + // } + // } this.loading = false; this.open = true; @@ -1295,6 +1336,6 @@ export default { } .el-transfer-panel { - width: 260px; + width: 260px !important; } diff --git a/src/views/device/upkeepPlan/index.vue b/src/views/device/upkeepPlan/index.vue index 4316bee..8693446 100644 --- a/src/views/device/upkeepPlan/index.vue +++ b/src/views/device/upkeepPlan/index.vue @@ -503,6 +503,7 @@ @@ -519,8 +520,11 @@ + @@ -549,17 +553,26 @@ > - + label="部位"> + + + + @@ -1288,23 +1301,36 @@ export default { for (let j = 0; j < this.form.equipmentItem[i].equPlanDetailList.length; j++) { - // 检查项名称 + // 部位 var itemName = this.form.equipmentItem[i].equPlanDetailList[j].itemName; + // 方法 + var itemMethod = this.form.equipmentItem[i].equPlanDetailList[j].itemMethod; + // 工具 + var itemTools = this.form.equipmentItem[i].equPlanDetailList[j].itemTools; + // // 周期 + // var itemLoop = this.form.equipmentItem[i].equPlanDetailList[j].itemLoop; + // var itemLoopType = this.form.equipmentItem[i].equPlanDetailList[j].itemLoopType; - for (let k = 0; k < this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList.length; k++){ + for (let k = 0; k < this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList.length; k++) { if (this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k].showFlag == true) { + this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k].itemName = itemName; + this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k].itemMethod = itemMethod; + this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k].itemTools = itemTools; + // this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k].itemLoop = itemLoop; + // this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k].itemLoopType = itemLoopType; + + if (this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k].standardType == "qualitative") { this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k].standardTypeName = "定性"; - }else { + } else { this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k].standardTypeName = "定量"; } this.itemDetailList.push(this.form.equipmentItem[i].equPlanDetailList[j].equPlanStandardList[k]); } } - } } @@ -1336,6 +1362,12 @@ export default { } } + // 设置循环周期,用来后端格式化处理设备信息 + for (let i = 0; i < this.selectEquList.length; i++) { + this.selectEquList[i].itemLoop = this.form.planLoop; + this.selectEquList[i].itemLoopType = this.form.planLoopType; + } + // 处理信息 formatEquItem(this.selectEquList).then(response => { @@ -1667,6 +1699,6 @@ export default { } .el-transfer-panel { - width: 250px; + width: 250px !important; }