+
重试
@@ -2152,7 +1220,7 @@ import {
sendBatchWokerApi,
importImgDataApi,
xmglXzHikvisionSyncGetNewestList,
- xmglXzHikvisionSyncRetryAPI
+ xmglXzHikvisionSyncRetryAPI,
} from "@/assets/js/api/laborPerson";
import { selectUserDevAuthorityByUserIdApi } from "@/assets/js/api/configManage";
import { getProjectConfigListApi } from "@/assets/js/api/project.js";
@@ -2471,8 +1539,7 @@ export default {
];
break;
case "livesFace": // 现场采集人脸
- this.cropperOption.img =
- this.$store.state.FILEURL + imgInfo.imageUrl;
+ this.cropperOption.img = this.$store.state.FILEURL + imgInfo.imageUrl;
this.cropperDialog = true;
// let imgStatus = result.file.size / 1024 < 500
// if (!imgStatus) {
@@ -2492,7 +1559,7 @@ export default {
});
});
},
- changePeople(val) {},
+ changePeople(val) { },
issuePersonFn() {
batchSendWorkerInfoApi({
projectSn: this.$store.state.projectSn,
@@ -2553,7 +1620,7 @@ export default {
if (this.fileTemp) {
if (
this.fileTemp.type ==
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" ||
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" ||
this.fileTemp.type == "application/vnd.ms-excel"
) {
} else {
@@ -2588,8 +1655,7 @@ export default {
}
}
this.checkAllFaceDev = checkedCount === allCheckList.length;
- this.isIndeterminate2 =
- checkedCount > 0 && checkedCount < allCheckList.length;
+ this.isIndeterminate2 = checkedCount > 0 && checkedCount < allCheckList.length;
console.log("--------------------------", this.personForm.ufaceDevId);
},
handleUGroupChange(val) {
@@ -2601,8 +1667,7 @@ export default {
}
}
this.checkAllGroupDev = checkedCount === allCheckList.length;
- this.isIndeterminate3 =
- checkedCount > 0 && checkedCount < allCheckList.length;
+ this.isIndeterminate3 = checkedCount > 0 && checkedCount < allCheckList.length;
},
handleCheckAllChangeFace(val) {
if (val) {
@@ -2634,9 +1699,7 @@ export default {
if (res.code == 200) {
this.uGroupAllList = res.result;
console.log(this.uGroupAllList, 777888999);
- this.personForm.ufaceDevGroupId = [
- ...this.personForm.ufaceDevGroupId,
- ];
+ this.personForm.ufaceDevGroupId = [...this.personForm.ufaceDevGroupId];
if (this.$store.state.userInfo.accountType == 6) {
this.uGroupAllList.forEach((item) => {
item.disabled = true;
@@ -2770,7 +1833,7 @@ export default {
if (result.success) {
if (result.result) {
this.isUploadToHouse = result.result.housing ? true : false;
- this.isIscDevice = result.result.supplierType == 9 ? true: false;
+ this.isIscDevice = result.result.supplierType == 9 ? true : false;
}
}
});
@@ -2816,16 +1879,12 @@ export default {
saveDepartmentFn(formName) {
this.departmentForm.enterpriseId = this.checkedId;
if (this.departmentForm.departmentName == "") {
- this.$message.error(
- this.$t("message.laborMange.theNameOfTheDepartment")
- );
+ this.$message.error(this.$t("message.laborMange.theNameOfTheDepartment"));
return;
}
this.$refs[formName].validate((valid) => {
if (valid) {
- if (
- this.teamDialogTitle == this.$t("message.laborMange.newDepartment")
- ) {
+ if (this.teamDialogTitle == this.$t("message.laborMange.newDepartment")) {
let data = this.departmentForm;
data.projectSn = this.projectSn;
addDepartmentInfo(data).then((res) => {
@@ -3023,8 +2082,8 @@ export default {
this.checkedId = this.checkedId
? this.checkedId
: res.result.length > 0
- ? res.result[0].id
- : "";
+ ? res.result[0].id
+ : "";
this.showEnterpriseName =
res.result.length > 0 ? res.result[0].enterpriseName : "";
this.checkeEnterprise(res.result[0]);
@@ -3132,10 +2191,7 @@ export default {
} else {
data.ufaceDevId = "";
}
- if (
- this.personForm.ufaceDevGroupId.length > 0 &&
- data.devType == 2
- ) {
+ if (this.personForm.ufaceDevGroupId.length > 0 && data.devType == 2) {
data.ufaceDevGroupId = this.personForm.ufaceDevGroupId.join(",");
data.ufaceDevId = "";
} else {
@@ -3161,10 +2217,7 @@ export default {
} else {
data.ufaceDevId = "";
}
- if (
- this.personForm.ufaceDevGroupId.length > 0 &&
- data.devType == 2
- ) {
+ if (this.personForm.ufaceDevGroupId.length > 0 && data.devType == 2) {
data.ufaceDevGroupId = this.personForm.ufaceDevGroupId.join(",");
data.ufaceDevId = "";
} else {
@@ -3174,9 +2227,7 @@ export default {
delete data.addTime;
editWorkerInfo(data).then((res) => {
if (res.code == 200) {
- this.$message.success(
- this.$t("message.laborMange.modifySuccess")
- );
+ this.$message.success(this.$t("message.laborMange.modifySuccess"));
this.getDepartmentList(1);
this.addPersonDialog = false;
this.resetForm(formName);
@@ -3198,9 +2249,7 @@ export default {
},
//编辑 人员信息
editWorkerInfo(value, type) {
- this.personDialogTitle = this.$t(
- "message.laborMange.editManagementInformation"
- );
+ this.personDialogTitle = this.$t("message.laborMange.editManagementInformation");
this.titleType = "edit";
this.personForm = {
workerName: "",
@@ -3260,35 +2309,35 @@ export default {
}
this.idCardUpPhotoUrlFile = this.personForm.idCardUpPhotoUrl
? [
- {
- name: this.personForm.idCardUpPhotoUrl,
- url: this.personForm.idCardUpPhotoUrl,
- },
- ]
+ {
+ name: this.personForm.idCardUpPhotoUrl,
+ url: this.personForm.idCardUpPhotoUrl,
+ },
+ ]
: [];
this.idCardDownPhotoUrlFile = this.personForm.idCardDownPhotoUrl
? [
- {
- name: this.personForm.idCardDownPhotoUrl,
- url: this.personForm.idCardDownPhotoUrl,
- },
- ]
+ {
+ name: this.personForm.idCardDownPhotoUrl,
+ url: this.personForm.idCardDownPhotoUrl,
+ },
+ ]
: [];
this.idCardBigPhotoUrlFile = this.personForm.idCardBigPhotoUrl
? [
- {
- name: this.personForm.idCardBigPhotoUrl,
- url: this.personForm.idCardBigPhotoUrl,
- },
- ]
+ {
+ name: this.personForm.idCardBigPhotoUrl,
+ url: this.personForm.idCardBigPhotoUrl,
+ },
+ ]
: [];
this.fieldAcquisitionUrlFile = this.personForm.fieldAcquisitionUrl
? [
- {
- name: this.personForm.fieldAcquisitionUrl,
- url: this.personForm.fieldAcquisitionUrl,
- },
- ]
+ {
+ name: this.personForm.fieldAcquisitionUrl,
+ url: this.personForm.fieldAcquisitionUrl,
+ },
+ ]
: [];
//合同原件
let arr2 = value.contractImage != "" && value.contractImage.split(",");
@@ -3430,9 +2479,7 @@ export default {
//功能开发中
inDevelopment() {
- this.$message.warning(
- this.$t("message.laborMange.functionalDevelopment")
- );
+ this.$message.warning(this.$t("message.laborMange.functionalDevelopment"));
},
//查询按钮
@@ -3461,7 +2508,7 @@ export default {
handleBeforeUpload(file, type) {
if (type == 4) {
if (
- // file.type != "image/jpeg" &&
+ file.type != "image/jpeg" &&
file.type != "image/jpg"
// file.type != "image/png"
) {
@@ -3503,9 +2550,7 @@ export default {
if (newArr.length > 0) {
for (let j = 0; j < newArr.length; j++) {
let data =
- this.contractImageFile[j].name +
- "*" +
- this.contractImageFile[j].url;
+ this.contractImageFile[j].name + "*" + this.contractImageFile[j].url;
arrJoin.push(data);
}
} else {
@@ -3533,9 +2578,7 @@ export default {
let arrJoin = [];
for (let i in this.contractImageFile) {
let data =
- this.contractImageFile[i].name +
- "*" +
- this.contractImageFile[i].url;
+ this.contractImageFile[i].name + "*" + this.contractImageFile[i].url;
arrJoin.push(data);
}
this.personForm.contractImage = arrJoin.join(",");
@@ -3559,22 +2602,20 @@ export default {
// 人员照片库比对
checkImgLibrary(url) {
console.log(url);
- checkImgLibraryApi({ fileUrl: url, projectSn: this.projectSn }).then(
- (res) => {
- if (res.result && res.result.length > 0) {
- this.imgRadiolist = res.result;
- this.radio = res.result[0].personSerial;
- this.showImgList = true;
- this.cropperDialog = false;
- } else {
- this.personForm.personSerial = "";
- this.personForm.fieldAcquisitionUrl = url;
- this.fieldAcquisitionFile = [{ name: "", url: url }];
- this.cropperDialog = false;
- }
- console.log(res, "-----人员库照片查询");
+ checkImgLibraryApi({ fileUrl: url, projectSn: this.projectSn }).then((res) => {
+ if (res.result && res.result.length > 0) {
+ this.imgRadiolist = res.result;
+ this.radio = res.result[0].personSerial;
+ this.showImgList = true;
+ this.cropperDialog = false;
+ } else {
+ this.personForm.personSerial = "";
+ this.personForm.fieldAcquisitionUrl = url;
+ this.fieldAcquisitionFile = [{ name: "", url: url }];
+ this.cropperDialog = false;
}
- );
+ console.log(res, "-----人员库照片查询");
+ });
},
//人脸监测、
checkFace(url) {
@@ -3620,9 +2661,7 @@ export default {
},
// 超出 上传文件 数量
handleExceed(file, type) {
- this.$message.error(
- this.$t("message.laborMange.uploadLimitHasBeenReached")
- );
+ this.$message.error(this.$t("message.laborMange.uploadLimitHasBeenReached"));
},
//查看图片
@@ -3667,15 +2706,9 @@ export default {
this.isIndeterminate = false;
for (let i in this.tableListData) {
if (checkedLst.length > 0 && this.tableListData[i].inserviceType == 1) {
- this.$refs.multipleTable.toggleRowSelection(
- this.tableListData[i],
- true
- );
+ this.$refs.multipleTable.toggleRowSelection(this.tableListData[i], true);
} else {
- this.$refs.multipleTable.toggleRowSelection(
- this.tableListData[i],
- false
- );
+ this.$refs.multipleTable.toggleRowSelection(this.tableListData[i], false);
}
}
},
@@ -3752,9 +2785,7 @@ export default {
updateWorkerDepartment(data).then((res) => {
if (res.code == 200) {
this.batchMoveDialog = false;
- this.$message.success(
- this.$t("message.laborMange.mobileSuccess")
- );
+ this.$message.success(this.$t("message.laborMange.mobileSuccess"));
this.page = 1;
this.getDepartmentList(1);
this.resetForm(formName);
@@ -3769,9 +2800,7 @@ export default {
//新增 人员 输入身份证 自动获取 出身日期 性别
changeIdCard(value) {
if (value.length < 18) {
- this.$message.error(
- this.$t("message.laborMange.PleaseEnterYourFullIDNumber")
- );
+ this.$message.error(this.$t("message.laborMange.PleaseEnterYourFullIDNumber"));
return;
} else {
let birth = this.getBirth(value);
@@ -3880,8 +2909,7 @@ export default {
this.$refs["personForm"].clearValidate();
this.personForm.nativePlace = data.Address;
this.personForm.issuingAuthorityForIdcard = data.Agency;
- this.personForm.nation =
- data.Folk + this.$t("message.laborMange.clan");
+ this.personForm.nation = data.Folk + this.$t("message.laborMange.clan");
this.personForm.workerName = data.Name;
this.personForm.idCard = data.IdNo;
//截取身份证有效日期
@@ -3892,9 +2920,7 @@ export default {
}
} else if (event.data.indexOf("BeginBase64") >= 0) {
if (type == 2) {
- this.$message.success(
- this.$t("message.laborMange.takePhotosSuccess")
- );
+ this.$message.success(this.$t("message.laborMange.takePhotosSuccess"));
// 上传的是现场采集照片
let url = JSON.parse(JSON.stringify(event.data.substring(11)));
@@ -3903,14 +2929,10 @@ export default {
//合同附件
if (this.contractImageFile >= 3) {
console.log(this.contractImageFile);
- this.$message.error(
- this.$t("message.laborMange.uploadLimitHasBeenReached")
- );
+ this.$message.error(this.$t("message.laborMange.uploadLimitHasBeenReached"));
return;
} else {
- this.$message.success(
- this.$t("message.laborMange.takePhotosSuccess")
- );
+ this.$message.success(this.$t("message.laborMange.takePhotosSuccess"));
let url = JSON.parse(JSON.stringify(event.data.substring(11)));
this.uploadFile(url, 5);
}
@@ -3974,9 +2996,7 @@ export default {
this.contractImageFile.push(data);
}
} else {
- this.$message.error(
- this.$t("message.laborMange.PhotoUploadingToServerFailed")
- );
+ this.$message.error(this.$t("message.laborMange.PhotoUploadingToServerFailed"));
}
});
},
@@ -3999,8 +3019,7 @@ export default {
if (res.code == 200) {
let val = res.result;
if (type == 1) {
- this.personForm.nation =
- val.ethnicity + this.$t("message.laborMange.clan");
+ this.personForm.nation = val.ethnicity + this.$t("message.laborMange.clan");
this.personForm.sex = val.sex == "男" ? 1 : 2;
this.personForm.workerName = val.name;
this.personForm.birthday = val.birth;
@@ -4008,8 +3027,7 @@ export default {
this.personForm.idCard = val.number;
} else {
this.personForm.issuingAuthorityForIdcard = val.issue;
- this.personForm.idCardEndDate =
- val.valid_to != "长期" ? val.valid_to : "";
+ this.personForm.idCardEndDate = val.valid_to != "长期" ? val.valid_to : "";
this.personForm.longTerm = val.valid_to == "长期" ? true : false;
}
} else {
@@ -4018,8 +3036,8 @@ export default {
});
},
tableRowClassName({ row, rowIndex }) {
- if(!this.isIscDevice){
- return
+ if (!this.isIscDevice) {
+ return;
}
if (row.sendSuccessStatus === 1) {
return "green2";
@@ -4062,53 +3080,66 @@ export default {