+
安全分详情
@@ -2520,6 +2520,7 @@ export default {
imgRadiolist: [],
isSzProject: "",
projectSn: "",
+ isEnableDeduct: 0,
isNew: true,
formRules: {
personMail: [
@@ -2606,7 +2607,8 @@ export default {
getProjectConfigListApi({ projectSn: this.projectSn }).then((res) => {
// this.isSzProject = 1
this.isSzProject = res.result[0].isSzProject; //1是 0否
- // console.log(res.result[0].isSzProject)
+ this.isEnableDeduct = res.result[0].isEnableDeduct; //是否启用扣分 1是 0否
+ console.log(res.result)
});
},
handleCheckAllChangeGroup(val) {
diff --git a/src/views/projectFront/laborManage/rosterNew.vue b/src/views/projectFront/laborManage/rosterNew.vue
index 3c611b51..e03d7998 100644
--- a/src/views/projectFront/laborManage/rosterNew.vue
+++ b/src/views/projectFront/laborManage/rosterNew.vue
@@ -96,7 +96,21 @@ getInfoList();
key: 'hmc_batch_authorization',
menuPath: '/project/labor/roster',
}">批量授权门禁权限
- 批量导入
+
+ 批量导入
+
+
手动录入
@@ -734,6 +748,10 @@ getInfoList();
+
@@ -755,6 +773,7 @@ import {
getWorkerAdmissionPageApi,
getWorkerAdmissionDetailPageApi,
+ batchEntryRecordApi
} from "@/assets/js/api/laborPerson";
import {
getProjectConfigListApi,
@@ -894,6 +913,7 @@ export default {
workerName: "",
enterpriseName: "",
},
+ idCards: "",
unitInfo: {
certificateIssuingUnitName: "",
pageNo: 1,
@@ -903,6 +923,7 @@ export default {
dataList: [],
},
enteringType: -1,
+ enteringFileList: [],
};
},
computed: {
@@ -948,6 +969,9 @@ export default {
});
}
},
+ headers() {
+ return { Authorization: this.$store.state.userInfo.token }
+ },
},
created() {
this.projectSn = this.$store.state.projectSn;
@@ -966,6 +990,17 @@ export default {
this.mqttMSG();
},
methods: {
+ batchCardPrint() {
+ console.log(this.$refs.workerTable.selection);
+ batchEntryRecordApi({
+ idCards:this.$refs.workerTable.selection.map(item => item.idCard).join(','),
+ }).then((res) => {
+ if(res.success) {
+ this.$message.success("批量录入成功");
+ this.initData();
+ }
+ })
+ },
handleCheckAllChangeWorker() {
// this.checkedCities = val ? cityOptions : [];
console.log(this.$refs.workerTable);
@@ -981,6 +1016,7 @@ export default {
enteringDialog(type) {
this.enteringType = type;
if(type == 2) {
+ this.idCards = '';
this.clearWorkerAdmission();
this.getWorkerAdmissionPage();
}
@@ -1050,6 +1086,19 @@ export default {
this.enteringInfo.pageNo = 1;
this.initData();
},
+ // 导入成功
+ handleImportSuccess(res) {
+ if (res.code == 200) {
+ this.$message.success(res.message);
+ this.idCards = res.result.idCards;
+ this.enteringDialog(1);
+ } else {
+ this.$message.error(res.message);
+ }
+ },
+ handleBeforeUpload(file) {
+ console.log('=========', file)
+ },
initData() {
let data = {
enterpriseName: this.formInline.enterpriseName,
@@ -1057,6 +1106,7 @@ export default {
pageNo: this.pageNo,
pageSize: this.pageSize,
projectSn: this.projectSn,
+ idCards: this.idCards,
workerAdmissionId: this.unitInfo.unitActive,
};
getWorkerAdmissionDetailPageApi(data).then((res) => {
@@ -1602,6 +1652,12 @@ export default {
return "yellow2";
}
},
+ tableRowClassNameDetail({ row, rowIndex }) {
+ console.log(row.isImport, "--------------------");
+ if (row.isImport == 1) {
+ return "gray";
+ }
+ },
async issueTeamEvent(id) {
this.issueTeamDialog = true;
this.whoId = id;
@@ -1721,6 +1777,17 @@ export default {
margin-left: 30px;
}
+ .el-table {
+ width: 100%;
+ min-height: 450px;
+ max-height: calc(100% - 98px);
+ background-color: transparent;
+ overflow: auto;
+ /deep/ .gray {
+ background-color: #DCDCDC;
+ }
+ }
+
/deep/ .el-table__row {
border-bottom: 1px solid #e6e6e6;
td {
@@ -1913,7 +1980,7 @@ export default {
}
.pagerBox {
- margin-top: 0;
+ margin-top: 10px;
}
}