{
+ console.log(res);
+ if (res.code == 200) {
+ this.enterpriseList = res.result;
+ }
+ });
+ },
recordDetail(row) {
this.recordRowObj = row;
this.detailsShow = true;
@@ -821,19 +835,20 @@ export default {
this.cardForm.noticeUserIds =
this.cardForm.noticeUserIds.split(",");
}
- let findItem = this.pointAreaList.find((item) => {
- return item.id == this.cardForm.qualityRegionId;
- });
- if (findItem) {
- this.areaData = findItem;
- this.chargerList = findItem.systemUsers;
- this.enterpriseList = findItem.enterpriseInfos;
- }
+ // let findItem = this.pointAreaList.find((item) => {
+ // return item.id == this.cardForm.qualityRegionId;
+ // });
+ // if (findItem) {
+ // this.areaData = findItem;
+ // this.chargerList = findItem.systemUsers;
+ // this.enterpriseList = findItem.enterpriseInfos;
+ // }
this.$nextTick(() => {
this.$refs.cardForm.clearValidate();
this.$refs.routeForm.clearValidate();
});
this.getAccountList();
+ this.getUpdatePersonListFn();
}
});
},
@@ -845,33 +860,65 @@ export default {
},
//切换 整改人
changeDutyId(value) {
- console.log(this.cardForm, 777888);
+ console.log(value);
+ console.log(this.cardForm, 666777);
+ console.log(this.chargerList, 888999);
if (this.cardForm.enterpriseId.length > 0) {
- this.chargerList = this.areaData.systemUsers.filter((item) => {
- return this.cardForm.enterpriseId.includes(item.enterpriseId);
- });
let shouldHavePersonIdList = this.chargerList.map((item) => {
if (this.cardForm.enterpriseId.includes(item.enterpriseId)) {
return item.userId;
}
});
- if (this.cardForm.inspectUserIds) {
- const newArr = this.cardForm.inspectUserIds.filter((item) =>
- shouldHavePersonIdList.includes(item)
- );
- this.cardForm.inspectUserIds = newArr;
- }
+ const newArr = this.cardForm.inspectUserIds.filter((item) =>
+ shouldHavePersonIdList.includes(item)
+ );
+ this.cardForm.inspectUserIds = newArr;
} else {
- this.chargerList = this.areaData.systemUsers;
- this.cardForm.inspectUserIds = "";
+ this.form.inspectUserIds = [];
}
+ this.getUpdatePersonListFn();
},
+ // 获取整改人列表
+ getUpdatePersonListFn() {
+ let data = {
+ projectSn: this.projectSn,
+ enterpriseId: this.cardForm.enterpriseId ? this.cardForm.enterpriseId.join(",") : "",
+ };
+ getProjectChilderSystemUserListApi(data).then((res) => {
+ console.log(res);
+ if (res.code == 200) {
+ this.chargerList = res.result;
+ }
+ });
+ },
+ // changeDutyId(value) {
+ // console.log(this.cardForm, 777888);
+ // if (this.cardForm.enterpriseId.length > 0) {
+ // this.chargerList = this.areaData.systemUsers.filter((item) => {
+ // return this.cardForm.enterpriseId.includes(item.enterpriseId);
+ // });
+ // let shouldHavePersonIdList = this.chargerList.map((item) => {
+ // if (this.cardForm.enterpriseId.includes(item.enterpriseId)) {
+ // return item.userId;
+ // }
+ // });
+ // if (this.cardForm.inspectUserIds) {
+ // const newArr = this.cardForm.inspectUserIds.filter((item) =>
+ // shouldHavePersonIdList.includes(item)
+ // );
+ // this.cardForm.inspectUserIds = newArr;
+ // }
+ // } else {
+ // this.chargerList = this.areaData.systemUsers;
+ // this.cardForm.inspectUserIds = "";
+ // }
+ // },
updateArea() {
let findItem = this.pointAreaList.find((item) => {
return item.id == this.cardForm.qualityRegionId;
});
this.cardForm.enterpriseId = "";
- this.cardForm.inspectUserIds = "";
+ this.cardForm.inspectUserIds = [];
console.log(findItem, 777888);
if (findItem) {
this.areaData = findItem;
@@ -1025,6 +1072,7 @@ export default {
pageNo: this.pageNo,
pageSize: this.pageSize,
projectSn: this.projectSn,
+ routeName: this.searchForm.routeName
};
routeCheckPageApi(data).then((res) => {
console.log("----巡检点列表", res);
@@ -1064,14 +1112,14 @@ export default {
if (this.cardForm.noticeUserIds) {
this.cardForm.noticeUserIds = this.cardForm.noticeUserIds.split(",");
}
- let findItem = this.pointAreaList.find((item) => {
- return item.id == this.cardForm.qualityRegionId;
- });
- if (findItem) {
- this.areaData = findItem;
- this.chargerList = findItem.systemUsers;
- this.enterpriseList = findItem.enterpriseInfos;
- }
+ // let findItem = this.pointAreaList.find((item) => {
+ // return item.id == this.cardForm.qualityRegionId;
+ // });
+ // if (findItem) {
+ // this.areaData = findItem;
+ // this.chargerList = findItem.systemUsers;
+ // this.enterpriseList = findItem.enterpriseInfos;
+ // }
this.getAccountList();
},
// 新增
@@ -1089,7 +1137,7 @@ export default {
this.cardDialogTitle = "新建巡检路线";
this.areaData = {};
this.chargerList = [];
- this.enterpriseList = [];
+ // this.enterpriseList = [];
this.resetForm();
this.$nextTick(() => {
this.$refs.cardForm.clearValidate();
@@ -1242,9 +1290,9 @@ export default {
this.cardForm = {
routeName: "",
position: "",
- qualityRegionId: "", // 区域ID
+ // qualityRegionId: "", // 区域ID
enterpriseId: "", // 责任企业
- inspectUserIds: "", //检查人
+ inspectUserIds: [], //检查人
noticeUserIds: "", //通知人
startTime: "",
endTime: "",
@@ -1364,7 +1412,7 @@ export default {
.add-route {
width: 203px;
height: 32px;
- margin: 0 auto;
+ margin: 8px auto;
display: flex;
align-items: center;
justify-content: center;
diff --git a/src/views/projectFront/laborManage/personDetails.vue b/src/views/projectFront/laborManage/personDetails.vue
index 5d843998..61fd091d 100644
--- a/src/views/projectFront/laborManage/personDetails.vue
+++ b/src/views/projectFront/laborManage/personDetails.vue
@@ -1008,7 +1008,8 @@
- {{ $t("message.laborMange.contractInfo") }}
+
+ 劳动合同
- {{ $t("message.laborMange.insuranceInfo") }}
+
+ 工伤保险
- {{ $t("message.laborMange.contractInfo") }}
+
+ 劳动合同
- {{ $t("message.laborMange.insuranceInfo") }}
+
+ 工伤保险