liwei
loveflow 8 months ago
parent 8926e9eed8
commit af3c546c66

@ -24,3 +24,14 @@ export function get_personback_item_data_person(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) {
request({
url: this.url.list,
method: "post",
method: this.url.type || "post",
params,
}).then((res) => {
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: {
checkDetail(obj) {
this.$refs.formDialog.openDialog("detail", obj);

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

@ -81,7 +81,7 @@
</div>
</template>
<script>
// import { get_personback_data } from "@/api/applySupermarket/personBack";
import { getList } from "@/api/applySupermarket/personBack";
import PersonBackDialog from "../personBack/components/personBackDialog.vue";
export default {
@ -92,62 +92,7 @@ export default {
data() {
return {
search_company: "",
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人异常",
},
],
item_data: [],
pageSize: 8,
pageNum: 1,
total: 0,
@ -157,30 +102,31 @@ export default {
this.search();
},
methods: {
// search() {
// let param = {
// companyName: this.search_company,
// pageSize: this.pageSize,
// pageNum: this.pageNum,
// };
// get_personback_data(param).then((res) => {
// console.log("res_person", res);
// // 200
// for (let i = 0; i < res.rows.length; i++) {
// console.log(res.rows[i].examinationResultDetail);
// res.rows[i].abnormal_num = res.rows[
// i
// ].examinationResultDetail.substring(
// res.rows[i].examinationResultDetail.indexOf("") + 3,
// res.rows[i].examinationResultDetail.indexOf("")
// );
// console.log(res.rows[i].abnormal_num);
// }
// console.log("res.rows", res.rows);
// this.item_data = res.rows;
// this.total = res.total;
// });
// },
search() {
let param = {
companyName: this.search_company,
pageSize: this.pageSize,
pageNum: this.pageNum,
verificationType: 2,
};
getList(param).then((res) => {
console.log("res_person", res);
// 200
for (let i = 0; i < res.rows.length; i++) {
console.log(res.rows[i].examinationResultDetail);
res.rows[i].abnormal_num = res.rows[
i
].examinationResultDetail.substring(
res.rows[i].examinationResultDetail.indexOf("正常,") + 3,
res.rows[i].examinationResultDetail.indexOf("人异常")
);
console.log(res.rows[i].abnormal_num);
}
console.log("res.rows", res.rows);
this.item_data = res.rows;
this.total = res.total;
});
},
//
check_item(item) {
this.$refs.personBackDialog.open(item);

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

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

Loading…
Cancel
Save