liwei
loveflow 8 months ago
parent 8926e9eed8
commit af3c546c66

@ -23,4 +23,15 @@ export function get_personback_item_data_person(params) {
method: 'post', method: 'post',
params params
}) })
} }
// 人员背景审查子页个人详情查询
export function getList(params) {
return request({
url: '/prepare/verification/list',
method: 'get',
params
})
}

@ -46,7 +46,7 @@ export const tableListMixins = {
if (this.url.list) { if (this.url.list) {
request({ request({
url: this.url.list, url: this.url.list,
method: "post", method: this.url.type || "post",
params, params,
}).then((res) => { }).then((res) => {
if (res.code == 200) { if (res.code == 200) {

@ -91,8 +91,17 @@ export default {
}, },
}, },
], ],
disableMixinCreated: true,
url: {
list: "prepare/verification/list",
type: "get",
},
}; };
}, },
created() {
this.queryParam.verificationType = 3;
this.searchQuery();
},
methods: { methods: {
checkDetail(obj) { checkDetail(obj) {
this.$refs.formDialog.openDialog("detail", obj); this.$refs.formDialog.openDialog("detail", obj);

@ -255,7 +255,7 @@ export default {
width: 94vw; width: 94vw;
height: 74vh; height: 74vh;
display: flex; display: flex;
flex-wrap: wrap; justify-content: space-evenly;
align-items: center; align-items: center;
// border: 0.1px solid #fff; // border: 0.1px solid #fff;
margin: 0 auto; margin: 0 auto;

@ -81,7 +81,7 @@
</div> </div>
</template> </template>
<script> <script>
// import { get_personback_data } from "@/api/applySupermarket/personBack"; import { getList } from "@/api/applySupermarket/personBack";
import PersonBackDialog from "../personBack/components/personBackDialog.vue"; import PersonBackDialog from "../personBack/components/personBackDialog.vue";
export default { export default {
@ -92,62 +92,7 @@ export default {
data() { data() {
return { return {
search_company: "", search_company: "",
item_data: [ item_data: [],
{
id: "0",
companyName: "宁波安捷化工有限公司",
abnormal_num: "0",
examinationReason: "技术审查",
examinationUserNum: "17人",
applyTime: "2022-12-28 16:48:21",
examinationResultDetail: "15人正常,2人异常",
},
{
id: "1",
companyName: "宁波安捷化工有限公司",
abnormal_num: "1",
examinationReason: "技术审查",
examinationUserNum: "17人",
applyTime: "2022-12-28 16:48:21",
examinationResultDetail: "15人正常,2人异常",
},
{
id: "2",
companyName: "宁波安捷化工有限公司",
abnormal_num: "0",
examinationReason: "技术审查",
examinationUserNum: "17人",
applyTime: "2022-12-28 16:48:21",
examinationResultDetail: "15人正常,2人异常",
},
{
id: "3",
companyName: "宁波安捷化工有限公司",
abnormal_num: "0",
examinationReason: "技术审查",
examinationUserNum: "17人",
applyTime: "2022-12-28 16:48:21",
examinationResultDetail: "15人正常,2人异常",
},
{
id: "4",
companyName: "宁波安捷化工有限公司",
abnormal_num: "0",
examinationReason: "技术审查",
examinationUserNum: "17人",
applyTime: "2022-12-28 16:48:21",
examinationResultDetail: "15人正常,2人异常",
},
{
id: "5",
companyName: "宁波安捷化工有限公司",
abnormal_num: "0",
examinationReason: "技术审查",
examinationUserNum: "17人",
applyTime: "2022-12-28 16:48:21",
examinationResultDetail: "15人正常,2人异常",
},
],
pageSize: 8, pageSize: 8,
pageNum: 1, pageNum: 1,
total: 0, total: 0,
@ -157,30 +102,31 @@ export default {
this.search(); this.search();
}, },
methods: { methods: {
// search() { search() {
// let param = { let param = {
// companyName: this.search_company, companyName: this.search_company,
// pageSize: this.pageSize, pageSize: this.pageSize,
// pageNum: this.pageNum, pageNum: this.pageNum,
// }; verificationType: 2,
// get_personback_data(param).then((res) => { };
// console.log("res_person", res); getList(param).then((res) => {
// // 200 console.log("res_person", res);
// for (let i = 0; i < res.rows.length; i++) { // 200
// console.log(res.rows[i].examinationResultDetail); for (let i = 0; i < res.rows.length; i++) {
// res.rows[i].abnormal_num = res.rows[ console.log(res.rows[i].examinationResultDetail);
// i res.rows[i].abnormal_num = res.rows[
// ].examinationResultDetail.substring( i
// res.rows[i].examinationResultDetail.indexOf("") + 3, ].examinationResultDetail.substring(
// res.rows[i].examinationResultDetail.indexOf("") res.rows[i].examinationResultDetail.indexOf("正常,") + 3,
// ); res.rows[i].examinationResultDetail.indexOf("人异常")
// console.log(res.rows[i].abnormal_num); );
// } console.log(res.rows[i].abnormal_num);
// console.log("res.rows", res.rows); }
// this.item_data = res.rows; console.log("res.rows", res.rows);
// this.total = res.total; this.item_data = res.rows;
// }); this.total = res.total;
// }, });
},
// //
check_item(item) { check_item(item) {
this.$refs.personBackDialog.open(item); this.$refs.personBackDialog.open(item);

@ -1,122 +1,178 @@
<template> <template>
<div class="enterpriseService"> <div class="enterpriseService">
<div class="legalLeft"> <div class="flexSpaceBetween">
<div class="flexSpaceBetween"> <div class="tableOperator"></div>
<div class="tableOperator"> <div class="searchWrap">
<el-button type="primary" @click="add"></el-button> <el-form :inline="true" :model="queryParam" class="demo-form-inline">
</div> <el-form-item label="企业名称">
<div class="searchWrap"> <el-input v-model="queryParam.name" placeholder="请输入"></el-input>
<el-form :inline="true" :model="queryParam" class="demo-form-inline"> </el-form-item>
<el-form-item label="" label-width="0"> <el-form-item>
<el-input <el-button type="primary" @click="searchQuery"></el-button>
v-model="queryParam.name" <el-button type="primary" plain @click="searchReset"
placeholder="请输入关键字" >重置</el-button
></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="search"></el-button>
</el-form-item>
</el-form>
</div>
</div>
<div class="menuWrap">
<el-menu
class="bigMenu"
ref="elmenu"
:default-active="menuActive"
:active="menuActive"
@select="handleOpen"
:router="false"
:unique-opened="true"
>
<template v-for="item in menuList">
<el-submenu
:index="item.menuCode + ''"
:key="item.menuCode"
v-if="item.menuFlag === '1'"
> >
<!-- 一级菜单 --> </el-form-item>
<template slot="title"> </el-form>
<span>{{ item.menuName }}</span> </div>
</template> </div>
<template v-for="subitem in item.subMenuList"> <div class="enterServiceWrap">
<!-- 二级菜单--无子菜单 --> <div class="enterServicePanel">
<el-menu-item <el-row :gutter="20">
:index="subitem.menuUrl + ''" <el-col :span="6" v-for="item in dataSource" :key="item.id">
:key="subitem.menuCode" <div class="enterWrap">
v-if="subitem.menuFlag === '1'" <div class="enterTop">
@click="gotoPage(subitem.menuUrl)" {{ item.cmy }}
> </div>
<span>{{ subitem.menuName }}</span> <div class="enterBtm">
</el-menu-item> <div class="item">
</template> <div class="label">咨询内容</div>
</el-submenu> <div class="value">{{ item.name }}</div>
</template> </div>
</el-menu> <div class="item">
<div class="label">回复内容</div>
<div class="value">{{ item.card }}</div>
</div>
<div class="item">
<div class="label">状态</div>
<div class="value">{{ item.phone }}</div>
</div>
</div>
<div class="opt">
<div class="" @click="checkDetail(item)"></div>
</div>
</div>
</el-col>
</el-row>
</div> </div>
<gMainTable
ref="gMainTable"
:tableData="dataSource"
:columns="columns"
rowKey="id"
:pagination="ipagination"
@pageSizeChange="handlePageSizeChange"
@currentPageChange="handleCurrentPageChange"
>
</gMainTable>
</div> </div>
<div class="legalRight"></div> <FormDialog ref="formDialog" :formItems="formItems" width="800px">
</FormDialog>
</div> </div>
</template> </template>
<script> <script>
import { tableListMixins } from "@/loveflow/mixins/tableListMixins";
export default { export default {
mixins: [tableListMixins],
data() { data() {
return { return {
menuActive: "", ipagination: {
menuList: [ pageSize: 12,
pageSizes: ["12", "24", "36"],
},
columns: [
{ {
menuCode: "1", prop: "name",
menuFlag: "1", label: "企业名称",
menuName: "收藏",
menuUrl: "",
subMenuList: [
{
menuCode: "21",
menuFlag: "2",
menuName: "企业法律事务管理规定",
menuUrl: "",
},
],
}, },
], ],
queryParam: { formItems: [
name: "", {
type: "textarea",
itemAttrs: {
label: "回复意见",
span: 22,
},
attrs: {
model: "name",
value: "",
placeholder: "",
rows: 5,
},
},
],
disableMixinCreated: true,
url: {
list: "prepare/verification/list",
type: "get",
}, },
}; };
}, },
created() {
this.queryParam.verificationType = 4;
this.searchQuery();
},
methods: { methods: {
add() {}, checkDetail(obj) {
search() {}, this.$refs.formDialog.openDialog("detail", obj);
handleOpen() {}, },
gotoPage() {},
}, },
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
@import url("../index.less"); @import url("../index.less");
.enterpriseService { .enterpriseService {
display: flex; height: 100%;
height: 76vh; overflow: hidden;
margin-top: -2vh; /deep/.el-table {
.legalLeft {
display: none; display: none;
width: 360px; }
background: url("~@/assets/companyFile/menuback.png") no-repeat; }
padding: 20px; .enterServiceWrap {
box-sizing: border-box; height: calc(100% - 60px);
background-size: 100% 100%;
.el-form-item { .enterServicePanel {
margin-right: 0; height: calc(100% - 54px);
overflow-y: scroll;
&::-webkit-scrollbar {
display: none;
} }
/deep/.flexSpaceBetween { .enterWrap {
.el-input__inner { display: flex;
border: 0.1px solid #5c7181; flex-direction: column;
height: 230px;
padding: 4px 20px;
margin-bottom: 16px;
background: url("~@/assets/companyFile/normalback.png") no-repeat !important;
background-size: 100% 100% !important;
.enterTop {
height: 50px;
font-size: 20px;
color: #ffffff;
font-weight: bold;
}
.enterBtm {
flex: 1;
.item {
display: flex;
margin-bottom: 12px;
.label {
width: 80px;
text-align: right;
color: #d0deee;
}
.value {
width: 11vw;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: #ffffff;
}
}
}
.opt {
height: 32px;
width: 100%;
display: flex;
justify-content: flex-end;
color: #30c4ff;
&:hover {
color: #409eff;
cursor: pointer;
}
} }
} }
} }
.legalRight {
flex: 1;
}
} }
</style> </style>

@ -82,7 +82,7 @@
</template> </template>
<script> <script>
import PersonBackDialog from "./components/personBackDialog"; import PersonBackDialog from "./components/personBackDialog";
import { get_personback_data } from "@/api/applySupermarket/personBack"; import { get_personback_data, getList } from "@/api/applySupermarket/personBack";
export default { export default {
name: "PersonBack", name: "PersonBack",
components: { components: {
@ -106,8 +106,9 @@ export default {
companyName: this.search_company, companyName: this.search_company,
pageSize: this.pageSize, pageSize: this.pageSize,
pageNum: this.pageNum, pageNum: this.pageNum,
verificationType: 1,
}; };
get_personback_data(param).then((res) => { getList(param).then((res) => {
console.log("res_person", res); console.log("res_person", res);
// 200 // 200
for (let i = 0; i < res.rows.length; i++) { for (let i = 0; i < res.rows.length; i++) {

Loading…
Cancel
Save