From 2ce93681fd2feb73d0d707b6aee526f84edba623 Mon Sep 17 00:00:00 2001 From: A0010407 Date: Wed, 3 Jul 2024 11:24:13 +0800 Subject: [PATCH] =?UTF-8?q?2024-07-03=20=E8=AE=BE=E5=A4=87=E6=A8=A1?= =?UTF-8?q?=E5=9D=97-=E7=82=B9=E6=A3=80=E4=BF=9D=E5=85=BB=E5=B7=A1?= =?UTF-8?q?=E6=A3=80-=E5=9C=A8=E6=A3=80=E6=9F=A5=E9=A1=B9=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E7=9A=84=E6=97=B6=E5=80=99=E5=8A=A0=E5=85=A5=E6=A8=A1?= =?UTF-8?q?=E7=B3=8A=E6=9F=A5=E8=AF=A2=E5=92=8C=E9=87=8D=E7=BD=AE+?= =?UTF-8?q?=E4=BF=9D=E5=85=BB=E5=B7=A5=E5=8D=95=E9=A1=B5=E9=9D=A2=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/device/inspectionPlan/index.vue | 39 +++++++++++++++++++++-- src/views/device/spotCheckPlan/index.vue | 39 +++++++++++++++++++++-- src/views/device/upkeepOrder/index.vue | 3 -- src/views/device/upkeepPlan/index.vue | 39 +++++++++++++++++++++-- 4 files changed, 108 insertions(+), 12 deletions(-) diff --git a/src/views/device/inspectionPlan/index.vue b/src/views/device/inspectionPlan/index.vue index 8271e28..c346c4a 100644 --- a/src/views/device/inspectionPlan/index.vue +++ b/src/views/device/inspectionPlan/index.vue @@ -442,7 +442,25 @@
- + + + + + 重置 !this.equipmentItemSearch || data.equipmentCode.toLowerCase().includes(this.equipmentItemSearch.toLowerCase()) + ) + }, + + equipmentItemReset() { + this.form.equipmentItem = this.equipmentItemList; + this.equipmentItemSearch = ''; + }, // 选择工作中心 changeCenter() { - }, // 改变巡检周期事件 changeArray(e) { @@ -1007,6 +1038,7 @@ export default { if (this.form.equipmentItem[i].equipmentCode == e.equipmentCode) { this.form.equipmentItem.splice(i, 1); } + this.equipmentItemList = this.form.equipmentItem;//用equipmentItemList当暂时的存储表 } }, // 选择设备确认按钮 @@ -1036,7 +1068,7 @@ export default { for (let i = 0; i < response.data.length; i++) { this.form.equipmentItem.push(response.data[i]); } - + this.equipmentItemList = this.form.equipmentItem;//用equipmentItemList当暂时的存储表 this.selectEqu = false; }) @@ -1252,6 +1284,7 @@ export default { submitForm() { this.$refs["form"].validate(valid => { if (valid) { + this.form.equipmentItem = this.equipmentItemList;//整个表重新赋值 if (this.selectPersonList.length == 0) { this.$message({ message: "请请选择人员!", diff --git a/src/views/device/spotCheckPlan/index.vue b/src/views/device/spotCheckPlan/index.vue index 47b5d03..f2f177f 100644 --- a/src/views/device/spotCheckPlan/index.vue +++ b/src/views/device/spotCheckPlan/index.vue @@ -461,7 +461,25 @@
- + + + + + 重置 - + !this.equipmentItemSearch || data.equipmentCode.toLowerCase().includes(this.equipmentItemSearch.toLowerCase()) + ) + }, + + equipmentItemReset() { + this.form.equipmentItem = this.equipmentItemList; + this.equipmentItemSearch = ''; + }, // 获取工作中心 setWorkCenter() { getWorkCenter().then(response => { @@ -1052,6 +1084,7 @@ export default { if (this.form.equipmentItem[i].equipmentCode == e.equipmentCode) { this.form.equipmentItem.splice(i, 1); } + this.equipmentItemList = this.form.equipmentItem;//用equipmentItemList当暂时的存储表 } }, // 选择设备确认按钮 @@ -1081,7 +1114,7 @@ export default { for (let i = 0; i < response.data.length; i++) { this.form.equipmentItem.push(response.data[i]); } - + this.equipmentItemList = this.form.equipmentItem;//用equipmentItemList当暂时的存储表 this.selectEqu = false; }) diff --git a/src/views/device/upkeepOrder/index.vue b/src/views/device/upkeepOrder/index.vue index d886df2..6e8df8a 100644 --- a/src/views/device/upkeepOrder/index.vue +++ b/src/views/device/upkeepOrder/index.vue @@ -1265,9 +1265,6 @@ {{ workVO.order.shutDown }} - {{ - workVO.order.planPerson - }} {{ workVO.order.planPersonName }} diff --git a/src/views/device/upkeepPlan/index.vue b/src/views/device/upkeepPlan/index.vue index a35971d..d2d45d7 100644 --- a/src/views/device/upkeepPlan/index.vue +++ b/src/views/device/upkeepPlan/index.vue @@ -498,7 +498,25 @@
- + + + + + 重置 - + !this.equipmentItemSearch || data.equipmentCode.toLowerCase().includes(this.equipmentItemSearch.toLowerCase()) + ) + }, + + equipmentItemReset() { + this.form.equipmentItem = this.equipmentItemList; + this.equipmentItemSearch = ''; + }, // 备件选择btn choseSpareBtn(){ // 清理缓存 @@ -1395,6 +1427,7 @@ export default { if (this.form.equipmentItem[i].equipmentCode == e.equipmentCode) { this.form.equipmentItem.splice(i, 1); } + this.equipmentItemList = this.form.equipmentItem;//用equipmentItemList当暂时的存储表 } }, // 选择设备确认按钮 @@ -1425,7 +1458,7 @@ export default { for (let i = 0; i < response.data.length; i++) { this.form.equipmentItem.push(response.data[i]); } - + this.equipmentItemList = this.form.equipmentItem;//用equipmentItemList当暂时的存储表 this.selectEqu = false; }) }else {