flx:修改质量 安全 编辑数据回显问题
This commit is contained in:
parent
94088d3ca2
commit
9f66479947
@ -2249,9 +2249,10 @@ export default {
|
|||||||
watch: {
|
watch: {
|
||||||
"addForm1.regionId": {
|
"addForm1.regionId": {
|
||||||
handler(newVal) {
|
handler(newVal) {
|
||||||
console.log(newVal);
|
console.log(1111111111, newVal);
|
||||||
if (newVal.length == 0) {
|
if (newVal.length == 0) {
|
||||||
this.reviewList = [];
|
this.reviewList = [];
|
||||||
|
this.addForm1.reviewId = ""; // 先清空复查人
|
||||||
} else {
|
} else {
|
||||||
this.getReviewPeopleList(this.addForm1.regionId);
|
this.getReviewPeopleList(this.addForm1.regionId);
|
||||||
}
|
}
|
||||||
@ -2758,6 +2759,7 @@ export default {
|
|||||||
this.subcontractList = data.enterpriseInfos;
|
this.subcontractList = data.enterpriseInfos;
|
||||||
this.crewUpdateList = [];
|
this.crewUpdateList = [];
|
||||||
}
|
}
|
||||||
|
this.$refs['addForm1'].clearValidate();
|
||||||
this.addForm1.inspectManId = this.checkPointList;
|
this.addForm1.inspectManId = this.checkPointList;
|
||||||
},
|
},
|
||||||
editChangeRegion() {
|
editChangeRegion() {
|
||||||
@ -2848,6 +2850,7 @@ export default {
|
|||||||
this.subcontractList = data.enterpriseInfos;
|
this.subcontractList = data.enterpriseInfos;
|
||||||
this.crewUpdateList = [];
|
this.crewUpdateList = [];
|
||||||
}
|
}
|
||||||
|
this.$refs['addForm1'].clearValidate();
|
||||||
this.addForm1.inspectManId = this.checkPointList;
|
this.addForm1.inspectManId = this.checkPointList;
|
||||||
},
|
},
|
||||||
// 切换检查时间
|
// 切换检查时间
|
||||||
@ -3085,11 +3088,15 @@ export default {
|
|||||||
|
|
||||||
//获取去整改人 通知人 检查人 核查人下拉
|
//获取去整改人 通知人 检查人 核查人下拉
|
||||||
getReviewPeopleList(regionId) {
|
getReviewPeopleList(regionId) {
|
||||||
|
console.log(5555555555555, regionId)
|
||||||
|
if(regionId instanceof Array){
|
||||||
this.addForm1.reviewId = ""; // 先清空复查人
|
this.addForm1.reviewId = ""; // 先清空复查人
|
||||||
|
}
|
||||||
|
|
||||||
let data = {
|
let data = {
|
||||||
projectSn: this.projectSn,
|
projectSn: this.projectSn,
|
||||||
// enterpriseTypeId: 7,
|
// enterpriseTypeId: 7,
|
||||||
qualityRegionId: regionId[regionId.length - 1].toString(),
|
qualityRegionId: (regionId instanceof Array) ? regionId[regionId.length - 1].toString() : regionId,
|
||||||
// qualityRegionId: regionId.toString(),
|
// qualityRegionId: regionId.toString(),
|
||||||
qualityRegionBindType: 2,
|
qualityRegionBindType: 2,
|
||||||
isSupervisingRoleName: 1,
|
isSupervisingRoleName: 1,
|
||||||
|
|||||||
@ -2356,6 +2356,7 @@ export default {
|
|||||||
handler(newVal) {
|
handler(newVal) {
|
||||||
console.log(newVal);
|
console.log(newVal);
|
||||||
if(newVal.length == 0){
|
if(newVal.length == 0){
|
||||||
|
this.addForm1.reviewId = ""; // 先清空复查人
|
||||||
this.reviewList = [];
|
this.reviewList = [];
|
||||||
}else {
|
}else {
|
||||||
this.getReviewPeopleList(newVal);
|
this.getReviewPeopleList(newVal);
|
||||||
@ -2858,6 +2859,7 @@ export default {
|
|||||||
this.subcontractList = data.enterpriseInfos;
|
this.subcontractList = data.enterpriseInfos;
|
||||||
this.crewUpdateList = [];
|
this.crewUpdateList = [];
|
||||||
}
|
}
|
||||||
|
this.$refs['addForm1'].clearValidate();
|
||||||
this.addForm1.inspectManId = this.checkPointList;
|
this.addForm1.inspectManId = this.checkPointList;
|
||||||
},
|
},
|
||||||
editChangeRegion() {
|
editChangeRegion() {
|
||||||
@ -2952,6 +2954,7 @@ export default {
|
|||||||
this.subcontractList = data.enterpriseInfos;
|
this.subcontractList = data.enterpriseInfos;
|
||||||
this.crewUpdateList = [];
|
this.crewUpdateList = [];
|
||||||
}
|
}
|
||||||
|
this.$refs['addForm1'].clearValidate();
|
||||||
this.addForm1.inspectManId = this.checkPointList;
|
this.addForm1.inspectManId = this.checkPointList;
|
||||||
},
|
},
|
||||||
// 切换检查时间
|
// 切换检查时间
|
||||||
@ -3191,11 +3194,13 @@ export default {
|
|||||||
|
|
||||||
//获取去整改人 通知人 检查人 核查人下拉
|
//获取去整改人 通知人 检查人 核查人下拉
|
||||||
getReviewPeopleList(regionId) {
|
getReviewPeopleList(regionId) {
|
||||||
|
if(regionId instanceof Array){
|
||||||
this.addForm1.reviewId = ""; // 先清空复查人
|
this.addForm1.reviewId = ""; // 先清空复查人
|
||||||
|
}
|
||||||
let data = {
|
let data = {
|
||||||
projectSn: this.projectSn,
|
projectSn: this.projectSn,
|
||||||
// enterpriseTypeId: 7,
|
// enterpriseTypeId: 7,
|
||||||
qualityRegionId: regionId[regionId.length - 1].toString(),
|
qualityRegionId: (regionId instanceof Array) ? regionId[regionId.length - 1].toString() : regionId,
|
||||||
// qualityRegionId: regionId.toString(),
|
// qualityRegionId: regionId.toString(),
|
||||||
qualityRegionBindType: 2,
|
qualityRegionBindType: 2,
|
||||||
isSupervisingRoleName: 1,
|
isSupervisingRoleName: 1,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user