This commit is contained in:
X_Rian 2024-06-07 17:45:09 +08:00
parent f466ae0eab
commit 528ed31e74
4 changed files with 19 additions and 5 deletions

View File

@ -446,6 +446,9 @@ export default {
this.editDialog = true; this.editDialog = true;
this.title = this.$t("message.quality.newJunior"); this.title = this.$t("message.quality.newJunior");
this.dialogType = 3; this.dialogType = 3;
this.$nextTick(() => {
this.$refs["form"].clearValidate();
});
}, },
// //
getUpdateUnitListFn() { getUpdateUnitListFn() {

View File

@ -2455,7 +2455,7 @@ export default {
this.getPositionList(); this.getPositionList();
this.getDescribeClassifyList(); this.getDescribeClassifyList();
this.getPeopleList(); this.getPeopleList();
this.getReviewPeopleList(); // this.getReviewPeopleList();
this.getPeopleUpdateList(); this.getPeopleUpdateList();
this.getRoutineInspect(); this.getRoutineInspect();
this.rectifyRecordList = []; this.rectifyRecordList = [];
@ -2825,6 +2825,7 @@ export default {
this.addForm1.changeId = ""; this.addForm1.changeId = "";
} }
this.addForm1.regionName = text; this.addForm1.regionName = text;
this.getReviewPeopleList(this.addForm1.regionId);
// console.log(data.intendanceIds.split(',')) // console.log(data.intendanceIds.split(','))
// console.log(text) // console.log(text)
if (data.intendanceIds && data.intendanceIds.split(",") > 0) { if (data.intendanceIds && data.intendanceIds.split(",") > 0) {
@ -2864,6 +2865,7 @@ export default {
// this.addForm2.changeId = Number(data.dutyId) // this.addForm2.changeId = Number(data.dutyId)
// } // }
this.addForm2.regionName = text; this.addForm2.regionName = text;
this.getReviewPeopleList(this.addForm2.regionId);
this.subcontractList = data.enterpriseInfos; this.subcontractList = data.enterpriseInfos;
this.crewUpdateList = []; this.crewUpdateList = [];
} }
@ -2922,6 +2924,7 @@ export default {
this.addForm1.changeId = data.dutyId; this.addForm1.changeId = data.dutyId;
} }
this.addForm1.regionName = text; this.addForm1.regionName = text;
this.getReviewPeopleList(this.addForm1.regionId);
// console.log(data.intendanceIds.split(',')) // console.log(data.intendanceIds.split(','))
// console.log(text) // console.log(text)
if (data.intendanceIds && data.intendanceIds.split(",") > 0) { if (data.intendanceIds && data.intendanceIds.split(",") > 0) {
@ -2959,6 +2962,7 @@ export default {
// this.addForm2.changeId = Number(data.dutyId) // this.addForm2.changeId = Number(data.dutyId)
// } // }
this.addForm2.regionName = text; this.addForm2.regionName = text;
this.getReviewPeopleList(this.addForm2.regionId);
this.subcontractList = data.enterpriseInfos; this.subcontractList = data.enterpriseInfos;
this.crewUpdateList = []; this.crewUpdateList = [];
} }
@ -3135,7 +3139,7 @@ export default {
this.getPositionList(); this.getPositionList();
this.getDescribeClassifyList(); this.getDescribeClassifyList();
this.getPeopleList(); this.getPeopleList();
this.getReviewPeopleList(); // this.getReviewPeopleList();
// this.getPeopleUpdateList(); // this.getPeopleUpdateList();
this.getRoutineInspect(); this.getRoutineInspect();
this.close(); this.close();
@ -3146,6 +3150,7 @@ export default {
getPositionList() { getPositionList() {
let data = { let data = {
projectSn: this.projectSn, projectSn: this.projectSn,
notSupervisingUnit: 1,
}; };
getQualityRegionListApi(data).then((res) => { getQualityRegionListApi(data).then((res) => {
console.log("res=================", res); console.log("res=================", res);
@ -3199,10 +3204,13 @@ export default {
}, },
// //
getReviewPeopleList() { getReviewPeopleList(regionId) {
let data = { let data = {
projectSn: this.projectSn, projectSn: this.projectSn,
enterpriseTypeId: 7, // enterpriseTypeId: 7,
qualityRegionId: regionId[0].toString(),
qualityRegionBindType: 2,
isSupervisingRoleName: 1,
}; };
getProjectChilderSystemUserListApi(data).then((res) => { getProjectChilderSystemUserListApi(data).then((res) => {
if (res.code == 200) { if (res.code == 200) {

View File

@ -2878,6 +2878,7 @@ export default {
this.addForm1.changeId = data.dutyId; this.addForm1.changeId = data.dutyId;
} }
this.addForm1.regionName = text; this.addForm1.regionName = text;
this.getReviewPeopleList(this.addForm1.regionId);
// console.log(data.intendanceIds.split(',')) // console.log(data.intendanceIds.split(','))
// console.log(text) // console.log(text)
if (data.intendanceIds && data.intendanceIds.split(",") > 0) { if (data.intendanceIds && data.intendanceIds.split(",") > 0) {
@ -2915,6 +2916,7 @@ export default {
// this.addForm2.changeId = Number(data.dutyId) // this.addForm2.changeId = Number(data.dutyId)
// } // }
this.addForm2.regionName = text; this.addForm2.regionName = text;
this.getReviewPeopleList(this.addForm2.regionId);
this.subcontractList = data.enterpriseInfos; this.subcontractList = data.enterpriseInfos;
this.crewUpdateList = []; this.crewUpdateList = [];
} }
@ -3159,7 +3161,7 @@ export default {
getReviewPeopleList(regionId) { getReviewPeopleList(regionId) {
let data = { let data = {
projectSn: this.projectSn, projectSn: this.projectSn,
enterpriseTypeId: 7, // enterpriseTypeId: 7,
qualityRegionId: regionId[0].toString(), qualityRegionId: regionId[0].toString(),
qualityRegionBindType: 2, qualityRegionBindType: 2,
isSupervisingRoleName: 1, isSupervisingRoleName: 1,

View File

@ -266,6 +266,7 @@
</el-form-item> </el-form-item>
<el-form-item label="安全技术交底:" :label-width="formLabelWidthDetail"> <el-form-item label="安全技术交底:" :label-width="formLabelWidthDetail">
<div class="img-show"> <div class="img-show">
<!-- {{ workDetail.safetyAndTechnologyDisclosure }} contentType -->
<el-image <el-image
v-for="(item, index) in workDetail.safetyAndTechnologyDisclosure" v-for="(item, index) in workDetail.safetyAndTechnologyDisclosure"
:key="index" :key="index"