From 9f66479947871088b62e315e7a7d39e85988eed3 Mon Sep 17 00:00:00 2001 From: X_Rian <904416525@qq.com> Date: Thu, 4 Jul 2024 17:50:41 +0800 Subject: [PATCH] =?UTF-8?q?flx=EF=BC=9A=E4=BF=AE=E6=94=B9=E8=B4=A8?= =?UTF-8?q?=E9=87=8F=20=E5=AE=89=E5=85=A8=20=E7=BC=96=E8=BE=91=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=9B=9E=E6=98=BE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/projectFront/quality/inspectionLedger.vue | 13 ++++++++++--- .../projectFront/safeSame/inspectionLedger.vue | 9 +++++++-- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/src/views/projectFront/quality/inspectionLedger.vue b/src/views/projectFront/quality/inspectionLedger.vue index 2c503b1b..129daa51 100644 --- a/src/views/projectFront/quality/inspectionLedger.vue +++ b/src/views/projectFront/quality/inspectionLedger.vue @@ -2249,9 +2249,10 @@ export default { watch: { "addForm1.regionId": { handler(newVal) { - console.log(newVal); + console.log(1111111111, newVal); if (newVal.length == 0) { this.reviewList = []; + this.addForm1.reviewId = ""; // 先清空复查人 } else { this.getReviewPeopleList(this.addForm1.regionId); } @@ -2758,6 +2759,7 @@ export default { this.subcontractList = data.enterpriseInfos; this.crewUpdateList = []; } + this.$refs['addForm1'].clearValidate(); this.addForm1.inspectManId = this.checkPointList; }, editChangeRegion() { @@ -2848,6 +2850,7 @@ export default { this.subcontractList = data.enterpriseInfos; this.crewUpdateList = []; } + this.$refs['addForm1'].clearValidate(); this.addForm1.inspectManId = this.checkPointList; }, // 切换检查时间 @@ -3085,11 +3088,15 @@ export default { //获取去整改人 通知人 检查人 核查人下拉 getReviewPeopleList(regionId) { - this.addForm1.reviewId = ""; // 先清空复查人 + console.log(5555555555555, regionId) + if(regionId instanceof Array){ + this.addForm1.reviewId = ""; // 先清空复查人 + } + let data = { projectSn: this.projectSn, // enterpriseTypeId: 7, - qualityRegionId: regionId[regionId.length - 1].toString(), + qualityRegionId: (regionId instanceof Array) ? regionId[regionId.length - 1].toString() : regionId, // qualityRegionId: regionId.toString(), qualityRegionBindType: 2, isSupervisingRoleName: 1, diff --git a/src/views/projectFront/safeSame/inspectionLedger.vue b/src/views/projectFront/safeSame/inspectionLedger.vue index 43a25d12..0eed4a20 100644 --- a/src/views/projectFront/safeSame/inspectionLedger.vue +++ b/src/views/projectFront/safeSame/inspectionLedger.vue @@ -2356,6 +2356,7 @@ export default { handler(newVal) { console.log(newVal); if(newVal.length == 0){ + this.addForm1.reviewId = ""; // 先清空复查人 this.reviewList = []; }else { this.getReviewPeopleList(newVal); @@ -2858,6 +2859,7 @@ export default { this.subcontractList = data.enterpriseInfos; this.crewUpdateList = []; } + this.$refs['addForm1'].clearValidate(); this.addForm1.inspectManId = this.checkPointList; }, editChangeRegion() { @@ -2952,6 +2954,7 @@ export default { this.subcontractList = data.enterpriseInfos; this.crewUpdateList = []; } + this.$refs['addForm1'].clearValidate(); this.addForm1.inspectManId = this.checkPointList; }, // 切换检查时间 @@ -3191,11 +3194,13 @@ export default { //获取去整改人 通知人 检查人 核查人下拉 getReviewPeopleList(regionId) { - this.addForm1.reviewId = ""; // 先清空复查人 + if(regionId instanceof Array){ + this.addForm1.reviewId = ""; // 先清空复查人 + } let data = { projectSn: this.projectSn, // enterpriseTypeId: 7, - qualityRegionId: regionId[regionId.length - 1].toString(), + qualityRegionId: (regionId instanceof Array) ? regionId[regionId.length - 1].toString() : regionId, // qualityRegionId: regionId.toString(), qualityRegionBindType: 2, isSupervisingRoleName: 1,