From 1f8dc767397717f4836ed177cb3ac49a7825721d Mon Sep 17 00:00:00 2001 From: kun <1422840143@qq.com> Date: Mon, 29 Apr 2024 23:43:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../projectFront/quality/inspectionLedger.vue | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/views/projectFront/quality/inspectionLedger.vue b/src/views/projectFront/quality/inspectionLedger.vue index d11a4783..22770c99 100644 --- a/src/views/projectFront/quality/inspectionLedger.vue +++ b/src/views/projectFront/quality/inspectionLedger.vue @@ -657,7 +657,7 @@ v-model="addForm1.enterpriseName" clearable @focus="getEnterprise" - @clear="addForm1.enterpriseSn = '';addForm1.changeId = '';crewUpdateList = []" + @clear="addForm1.enterpriseSn = '';addForm1.enterpriseName = '';addForm1.changeId = '';crewUpdateList = []" > @@ -1122,7 +1122,7 @@ v-model="addForm2.enterpriseName" clearable @focus="getEnterprise" - @clear="addForm2.enterpriseSn = ''" + @clear="addForm2.enterpriseSn = '';addForm2.enterpriseName = ''" > @@ -2380,8 +2380,12 @@ export default { } }, changeRegion(val) { + console.log(val,666777) // console.log(val,this.checkPointList,this.$refs['formRegion1'].getCheckedNodes()[0]) if (this.recordType == 1) { + this.addForm1.enterpriseSn = ""; + this.addForm1.enterpriseName = ""; + this.addForm1.changeId = ""; let pathLabels = this.$refs["formRegion1"].getCheckedNodes()[0] .pathLabels; let data = this.$refs["formRegion1"].getCheckedNodes()[0].data; @@ -2426,9 +2430,9 @@ export default { this.addForm1.notifyPerson ); this.subcontractList = data.enterpriseInfos; - this.addForm1.enterpriseSn = ""; - this.addForm1.enterpriseName = ""; } else if (this.recordType == 2) { + this.addForm2.enterpriseSn = ""; + this.addForm2.enterpriseName = ""; let pathLabels = this.$refs["addFormRegion2"].getCheckedNodes()[0] .pathLabels; let data = this.$refs["addFormRegion2"].getCheckedNodes()[0].data; @@ -2445,8 +2449,6 @@ export default { // } this.addForm2.regionName = text; this.subcontractList = data.enterpriseInfos; - this.addForm2.enterpriseSn = ""; - this.addForm2.enterpriseName = ""; } this.addForm1.inspectManId = this.checkPointList; },