liwei
e 7 months ago
parent 8843bdb1db
commit c741f0f46f

@ -36,7 +36,7 @@ export function getDetail(id) {
// 修改人员审核相关 // 修改人员审核相关
export function modifyPerson(data) { export function modifyPerson(data) {
return request({ return request({
url: "/prepare/verification/", url: "/prepare/verification",
method: "put", method: "put",
data, data,
}); });

@ -40,7 +40,7 @@
</div> </div>
<div class="item"> <div class="item">
<div class="label">回复内容</div> <div class="label">回复内容</div>
<div class="value">{{ item.card }}</div> <div class="value">{{ item.consultResult }}</div>
</div> </div>
<div class="item"> <div class="item">
<div class="label">状态</div> <div class="label">状态</div>
@ -51,7 +51,14 @@
</div> </div>
</div> </div>
<div class="opt"> <div class="opt">
<div class="" @click="checkDetail(item)"></div> <div
class="optBtn mr14"
v-if="item.auditState == '1'"
@click="examine(item)"
>
审核
</div>
<div class="optBtn" @click="checkDetail(item)"></div>
</div> </div>
</div> </div>
</el-col> </el-col>
@ -68,12 +75,19 @@
> >
</gMainTable> </gMainTable>
</div> </div>
<FormDialog ref="formDialog" :formItems="formItems" width="800px"> <FormDialog
ref="formDialog"
:formItems="formItems"
width="800px"
@formSubmit="formSubmit"
>
</FormDialog> </FormDialog>
</div> </div>
</template> </template>
<script> <script>
import { tableListMixins } from "@/loveflow/mixins/tableListMixins"; import { tableListMixins } from "@/loveflow/mixins/tableListMixins";
import { modifyPerson } from "@/api/applySupermarket/personBack";
export default { export default {
mixins: [tableListMixins], mixins: [tableListMixins],
data() { data() {
@ -96,7 +110,7 @@ export default {
span: 22, span: 22,
}, },
attrs: { attrs: {
model: "name", model: "consultResult",
value: "", value: "",
placeholder: "", placeholder: "",
rows: 5, rows: 5,
@ -118,12 +132,24 @@ export default {
checkDetail(obj) { checkDetail(obj) {
this.$refs.formDialog.openDialog("detail", obj); this.$refs.formDialog.openDialog("detail", obj);
}, },
examine(obj) {
this.$refs.formDialog.openDialog("other", obj, "业务咨询审核");
},
reset() { reset() {
this.queryParam = {}; this.queryParam = {};
this.queryParam.verificationType = 3; this.queryParam.verificationType = 3;
this.searchQuery(); this.searchQuery();
}, },
formSubmit(obj) {}, formSubmit(obj) {
console.log(obj);
obj.verificationType = 3;
modifyPerson(obj).then((res) => {
if (res.code == 200) {
this.$message.success("操作成功!");
this.$refs["formDialog"].handleClose();
}
});
},
}, },
}; };
</script> </script>

@ -762,7 +762,8 @@ export default {
} }
</style> </style>
<style lang="less"> <style lang="less">
.ahsqDialogPanel { .ahsqDialogPanel,
.examineDialogPanel {
height: 100%; height: 100%;
color: #ffffff; color: #ffffff;
.msgDetailLine { .msgDetailLine {

@ -1,6 +1,6 @@
<template> <template>
<el-dialog <el-dialog
title="人员背景审核结果" title="重点岗位审核详情"
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
width="80%" width="80%"
:before-close="handleClose" :before-close="handleClose"
@ -19,19 +19,17 @@
</div> </div>
<div class="msgDetailItem"> <div class="msgDetailItem">
<div class="msgDetailLabel">审查人数</div> <div class="msgDetailLabel">审查人数</div>
<div class="msgDetailValue"> <div class="msgDetailValue">{{ dataInfo.investigateCount }}</div>
{{
dataInfo.detailsByAuditResultTrue.length +
dataInfo.detailsByAuditResultFalse.length
}}
</div>
</div> </div>
<div class="msgDetailItem"> <div class="msgDetailItem">
<div class="msgDetailLabel">审查结果</div> <div class="msgDetailLabel">审查结果</div>
<div class="msgDetailValue"> <div class="msgDetailValue">
{{ dataInfo.detailsByAuditResultTrue.length }}人正常{{ <span v-if="dataInfo.auditState == '1'"></span>
dataInfo.detailsByAuditResultFalse.length <span v-else>
}}人异常 {{ dataInfo.detailsByAuditResultTrue.length }}人正常{{
dataInfo.detailsByAuditResultFalse.length
}}人异常
</span>
</div> </div>
</div> </div>
</div> </div>
@ -44,7 +42,6 @@
:tableData="tableList" :tableData="tableList"
:columns="columns" :columns="columns"
rowKey="id" rowKey="id"
:pagination="{}"
> >
<template v-slot:resultSlot="{ scope }"> <template v-slot:resultSlot="{ scope }">
<span v-if="scope.row.auditResult == '0'"></span> <span v-if="scope.row.auditResult == '0'"></span>
@ -67,8 +64,6 @@
</template> </template>
<script> <script>
import { getDetail } from "@/api/applySupermarket/personBack";
export default { export default {
data() { data() {
return { return {
@ -114,16 +109,7 @@ export default {
console.log(obj); console.log(obj);
this.dataInfo = obj; this.dataInfo = obj;
this.tableList = obj.detailsByAuditResultFalse.concat( this.tableList = obj.details || [];
obj.detailsByAuditResultTrue
);
/* getDetail(obj.id).then((res) => {
if (res.code == 200) {
this.tableList = res.data.details || [];
this.dataInfo = res.data;
}
}); */
}, },
handleClose() { handleClose() {

@ -1,6 +1,6 @@
<template> <template>
<el-dialog <el-dialog
title="人员背景审核结果" title="重点岗位审核结果"
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
width="80%" width="80%"
:before-close="handleClose" :before-close="handleClose"
@ -20,7 +20,7 @@
<div class="msgDetailItem"> <div class="msgDetailItem">
<div class="msgDetailLabel">审查人数</div> <div class="msgDetailLabel">审查人数</div>
<div class="msgDetailValue"> <div class="msgDetailValue">
{{ (dataInfo.details && dataInfo.details.length) || 0 }} {{ dataInfo.investigateCount || 0 }}
</div> </div>
</div> </div>
</div> </div>
@ -33,7 +33,6 @@
:tableData="tableList" :tableData="tableList"
:columns="columns" :columns="columns"
rowKey="id" rowKey="id"
:pagination="{}"
> >
<template v-slot:photoSlot="{ scope }"> <template v-slot:photoSlot="{ scope }">
<el-image <el-image
@ -45,12 +44,8 @@
</el-image> </el-image>
</template> </template>
<template v-slot:optSlot="{ scope }"> <template v-slot:optSlot="{ scope }">
<el-radio v-model="scope.row.auditResult" label="正常" <el-radio v-model="scope.row.auditResult" label="0"></el-radio>
>正常</el-radio <el-radio v-model="scope.row.auditResult" label="1"></el-radio>
>
<el-radio v-model="scope.row.auditResult" label="异常"
>异常</el-radio
>
</template> </template>
</gMainTable> </gMainTable>
</div> </div>
@ -61,9 +56,9 @@
</div> </div>
</el-dialog> </el-dialog>
</template> </template>
<script> <script>
import { getDetail, modifyPerson } from "@/api/applySupermarket/personBack"; import { modifyPerson } from "@/api/applySupermarket/personBack";
export default { export default {
data() { data() {
@ -86,11 +81,11 @@ export default {
}, },
}, },
{ {
prop: "card", prop: "cardId",
label: "身份证号", label: "身份证号",
}, },
{ {
prop: "reason", prop: "auditReason",
label: "审查原因", label: "审查原因",
}, },
{ {
@ -110,18 +105,31 @@ export default {
openDialog(obj) { openDialog(obj) {
this.dialogVisible = true; this.dialogVisible = true;
getDetail(obj.id).then((res) => { this.dataInfo = obj;
this.tableList = obj.details || [];
},
sureExamine() {
console.log(this.tableList);
for (let i = 0; i < this.tableList.length; i++) {
if (!this.tableList[i]["auditResult"]) {
this.$message.info("存在未审核处理的数据!");
return;
}
}
this.dataInfo.verificationType = 2;
this.dataInfo.details = this.tableList;
modifyPerson(this.dataInfo).then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.tableList = res.data.details || []; this.$message.success("操作成功!");
this.dataInfo = res.data; this.handleClose();
} }
}); });
}, },
sureExamine() {},
handleClose() { handleClose() {
this.dialogVisible = false; this.dialogVisible = false;
}, },
}, },
}; };
</script> </script>

@ -17,7 +17,7 @@
</el-form> </el-form>
</div> </div>
</div> </div>
<div class="enterServiceWrap"> <div class="enterServiceWrap enterServiceCardWrap">
<div class="enterServicePanel"> <div class="enterServicePanel">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="6" v-for="item in dataSource" :key="item.id"> <el-col :span="6" v-for="item in dataSource" :key="item.id">
@ -28,12 +28,7 @@
<div class="enterBtm"> <div class="enterBtm">
<div class="item"> <div class="item">
<div class="label">重点人数</div> <div class="label">重点人数</div>
<div class="value"> <div class="value">{{ item.investigateCount || 0 }}</div>
{{
item.detailsByAuditResultTrue.length +
item.detailsByAuditResultFalse.length
}}
</div>
</div> </div>
<div class="item"> <div class="item">
<div class="label">申请时间</div> <div class="label">申请时间</div>
@ -77,7 +72,7 @@
</gMainTable> </gMainTable>
</div> </div>
<detailDialog ref="detailDialog"></detailDialog> <detailDialog ref="detailDialog"></detailDialog>
<examineDialog ref="examineDialog"></examineDialog> <examineDialog ref="examineDialog" @search="searchQuery"></examineDialog>
</div> </div>
</template> </template>
<script> <script>
@ -131,9 +126,6 @@ export default {
.enterpriseService { .enterpriseService {
height: 100%; height: 100%;
overflow: hidden; overflow: hidden;
/deep/.el-table {
display: none;
}
} }
.enterServiceWrap { .enterServiceWrap {
height: calc(100% - 60px); height: calc(100% - 60px);
@ -193,4 +185,12 @@ export default {
} }
} }
</style> </style>
<style lang="less">
.enterpriseService {
.enterServiceCardWrap {
.el-table {
display: none;
}
}
}
</style>

@ -40,7 +40,7 @@
</div> </div>
<div class="item"> <div class="item">
<div class="label">回复内容</div> <div class="label">回复内容</div>
<div class="value">{{ item.card }}</div> <div class="value">{{ item.consultResult }}</div>
</div> </div>
<div class="item"> <div class="item">
<div class="label">状态</div> <div class="label">状态</div>
@ -51,7 +51,14 @@
</div> </div>
</div> </div>
<div class="opt"> <div class="opt">
<div class="" @click="checkDetail(item)"></div> <div
class="optBtn mr14"
v-if="item.auditState == '1'"
@click="examine(item)"
>
审核
</div>
<div class="optBtn" @click="checkDetail(item)"></div>
</div> </div>
</div> </div>
</el-col> </el-col>
@ -68,12 +75,19 @@
> >
</gMainTable> </gMainTable>
</div> </div>
<FormDialog ref="formDialog" :formItems="formItems" width="800px"> <FormDialog
@formSubmit="formSubmit"
ref="formDialog"
:formItems="formItems"
width="800px"
>
</FormDialog> </FormDialog>
</div> </div>
</template> </template>
<script> <script>
import { tableListMixins } from "@/loveflow/mixins/tableListMixins"; import { tableListMixins } from "@/loveflow/mixins/tableListMixins";
import { modifyPerson } from "@/api/applySupermarket/personBack";
export default { export default {
mixins: [tableListMixins], mixins: [tableListMixins],
data() { data() {
@ -96,7 +110,7 @@ export default {
span: 22, span: 22,
}, },
attrs: { attrs: {
model: "name", model: "consultResult",
value: "", value: "",
placeholder: "", placeholder: "",
rows: 5, rows: 5,
@ -118,12 +132,24 @@ export default {
checkDetail(obj) { checkDetail(obj) {
this.$refs.formDialog.openDialog("detail", obj); this.$refs.formDialog.openDialog("detail", obj);
}, },
examine(obj) {
this.$refs.formDialog.openDialog("other", obj, "法律咨询审核");
},
reset() { reset() {
this.queryParam = {}; this.queryParam = {};
this.queryParam.verificationType = 4; this.queryParam.verificationType = 4;
this.searchQuery(); this.searchQuery();
}, },
formSubmit(obj) {}, formSubmit(obj) {
console.log(obj);
obj.verificationType = 4;
modifyPerson(obj).then((res) => {
if (res.code == 200) {
this.$message.success("操作成功!");
this.$refs["formDialog"].handleClose();
}
});
},
}, },
}; };
</script> </script>
@ -192,4 +218,3 @@ export default {
} }
} }
</style> </style>

@ -1,6 +1,6 @@
<template> <template>
<el-dialog <el-dialog
title="人员背景审核结果" title="人员背景审核详情"
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
width="80%" width="80%"
:before-close="handleClose" :before-close="handleClose"
@ -19,19 +19,17 @@
</div> </div>
<div class="msgDetailItem"> <div class="msgDetailItem">
<div class="msgDetailLabel">审查人数</div> <div class="msgDetailLabel">审查人数</div>
<div class="msgDetailValue"> <div class="msgDetailValue">{{ dataInfo.investigateCount }}</div>
{{
dataInfo.detailsByAuditResultTrue.length +
dataInfo.detailsByAuditResultFalse.length
}}
</div>
</div> </div>
<div class="msgDetailItem"> <div class="msgDetailItem">
<div class="msgDetailLabel">审查结果</div> <div class="msgDetailLabel">审查结果</div>
<div class="msgDetailValue"> <div class="msgDetailValue">
{{ dataInfo.detailsByAuditResultTrue.length }}人正常{{ <span v-if="dataInfo.auditState == '1'"></span>
dataInfo.detailsByAuditResultFalse.length <span v-else>
}}人异常 {{ dataInfo.detailsByAuditResultTrue.length }}人正常{{
dataInfo.detailsByAuditResultFalse.length
}}人异常
</span>
</div> </div>
</div> </div>
</div> </div>
@ -44,7 +42,6 @@
:tableData="tableList" :tableData="tableList"
:columns="columns" :columns="columns"
rowKey="id" rowKey="id"
:pagination="{}"
> >
<template v-slot:resultSlot="{ scope }"> <template v-slot:resultSlot="{ scope }">
<span v-if="scope.row.auditResult == '0'"></span> <span v-if="scope.row.auditResult == '0'"></span>
@ -114,16 +111,7 @@ export default {
console.log(obj); console.log(obj);
this.dataInfo = obj; this.dataInfo = obj;
this.tableList = obj.detailsByAuditResultFalse.concat( this.tableList = obj.details || [];
obj.detailsByAuditResultTrue
);
/* getDetail(obj.id).then((res) => {
if (res.code == 200) {
this.tableList = res.data.details || [];
this.dataInfo = res.data;
}
}); */
}, },
handleClose() { handleClose() {

@ -20,7 +20,7 @@
<div class="msgDetailItem"> <div class="msgDetailItem">
<div class="msgDetailLabel">审查人数</div> <div class="msgDetailLabel">审查人数</div>
<div class="msgDetailValue"> <div class="msgDetailValue">
{{ (dataInfo.details && dataInfo.details.length) || 0 }} {{ dataInfo.investigateCount || 0 }}
</div> </div>
</div> </div>
</div> </div>
@ -33,7 +33,6 @@
:tableData="tableList" :tableData="tableList"
:columns="columns" :columns="columns"
rowKey="id" rowKey="id"
:pagination="{}"
> >
<template v-slot:photoSlot="{ scope }"> <template v-slot:photoSlot="{ scope }">
<el-image <el-image
@ -45,12 +44,8 @@
</el-image> </el-image>
</template> </template>
<template v-slot:optSlot="{ scope }"> <template v-slot:optSlot="{ scope }">
<el-radio v-model="scope.row.auditResult" label="正常" <el-radio v-model="scope.row.auditResult" label="0"></el-radio>
>正常</el-radio <el-radio v-model="scope.row.auditResult" label="1"></el-radio>
>
<el-radio v-model="scope.row.auditResult" label="异常"
>异常</el-radio
>
</template> </template>
</gMainTable> </gMainTable>
</div> </div>
@ -61,9 +56,9 @@
</div> </div>
</el-dialog> </el-dialog>
</template> </template>
<script> <script>
import { getDetail, modifyPerson } from "@/api/applySupermarket/personBack"; import { modifyPerson } from "@/api/applySupermarket/personBack";
export default { export default {
data() { data() {
@ -86,11 +81,11 @@ export default {
}, },
}, },
{ {
prop: "card", prop: "cardId",
label: "身份证号", label: "身份证号",
}, },
{ {
prop: "reason", prop: "auditReason",
label: "审查原因", label: "审查原因",
}, },
{ {
@ -110,18 +105,38 @@ export default {
openDialog(obj) { openDialog(obj) {
this.dialogVisible = true; this.dialogVisible = true;
getDetail(obj.id).then((res) => { this.tableList = obj.details || [];
this.dataInfo = obj;
/* getDetail(obj.id).then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.tableList = res.data.details || []; this.tableList = res.data.details || [];
this.dataInfo = res.data; this.dataInfo = res.data;
} }
}); */
},
sureExamine() {
console.log(this.tableList);
for (let i = 0; i < this.tableList.length; i++) {
if (!this.tableList[i]["auditResult"]) {
this.$message.info("存在未审核处理的数据!");
return;
}
}
this.dataInfo.verificationType = 1;
this.dataInfo.details = this.tableList;
modifyPerson(this.dataInfo).then((res) => {
if (res.code == 200) {
this.$message.success("操作成功!");
this.handleClose();
this.$emit("search");
}
}); });
}, },
sureExamine() {},
handleClose() { handleClose() {
this.dialogVisible = false; this.dialogVisible = false;
}, },
}, },
}; };
</script> </script>

@ -28,16 +28,11 @@
<div class="enterBtm"> <div class="enterBtm">
<div class="item"> <div class="item">
<div class="label">审查原因</div> <div class="label">审查原因</div>
<div class="value">{{ item.name }}</div> <div class="value">{{ item.details[0]["auditReason"] }}</div>
</div> </div>
<div class="item"> <div class="item">
<div class="label">审查人数</div> <div class="label">审查人数</div>
<div class="value"> <div class="value">{{ item.investigateCount || 0 }}</div>
{{
item.detailsByAuditResultTrue.length +
item.detailsByAuditResultFalse.length
}}
</div>
</div> </div>
<div class="item"> <div class="item">
<div class="label">申请时间</div> <div class="label">申请时间</div>
@ -81,13 +76,14 @@
</gMainTable> </gMainTable>
</div> </div>
<detailDialog ref="detailDialog"></detailDialog> <detailDialog ref="detailDialog"></detailDialog>
<examineDialog ref="examineDialog"></examineDialog> <examineDialog ref="examineDialog" @search="searchQuery"></examineDialog>
</div> </div>
</template> </template>
<script> <script>
import { tableListMixins } from "@/loveflow/mixins/tableListMixins"; import { tableListMixins } from "@/loveflow/mixins/tableListMixins";
import detailDialog from "./components/detailDialog.vue"; import detailDialog from "./components/detailDialog.vue";
import examineDialog from "./components/examineDialog.vue"; import examineDialog from "./components/examineDialog.vue";
export default { export default {
mixins: [tableListMixins], mixins: [tableListMixins],
components: { examineDialog, detailDialog }, components: { examineDialog, detailDialog },

Loading…
Cancel
Save