diff --git a/src/views/device/inspectionPlan/index.vue b/src/views/device/inspectionPlan/index.vue index 8271e281..c346c4a4 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 47b5d03b..f2f177f4 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 d886df22..6e8df8aa 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 a35971d2..d2d45d7f 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 {