Commit 28187334 by @zhang-bin-1

gx

parent 7121cc0f
...@@ -500,6 +500,9 @@ export default { ...@@ -500,6 +500,9 @@ export default {
this.realEstateArea = this.$route.query.realEstateArea ? this.$route.query.realEstateArea : null this.realEstateArea = this.$route.query.realEstateArea ? this.$route.query.realEstateArea : null
// departmentName: 审核部门名称(左侧列表) // departmentName: 审核部门名称(左侧列表)
this.departmentName = this.$route.query.departmentName this.departmentName = this.$route.query.departmentName
this.searchForm.name = ''
this.searchForm.phone = ''
this.searchForm.state = ''
this.init(); this.init();
} }
} }
...@@ -522,13 +525,17 @@ export default { ...@@ -522,13 +525,17 @@ export default {
this.loading = false; this.loading = false;
if (res.success) { if (res.success) {
this.pagination.total = res.data.total; this.pagination.total = res.data.total;
this.tableData = res.data.list.map(item => { if (res.data.total) {
item.stateName = this.getSatusArr(item.state).stateName; this.tableData = res.data.list.map(item => {
item.type = this.getSatusArr(item.state).type; item.stateName = this.getSatusArr(item.state).stateName;
return item; item.type = this.getSatusArr(item.state).type;
}); return item;
if (localStorage.getItem('userName') == 'admin') { });
this.tableData = changeList(this.tableData) if (localStorage.getItem('userName') == 'admin') {
this.tableData = changeList(this.tableData)
}
} else {
this.tableData = []
} }
} }
}); });
......
...@@ -579,6 +579,9 @@ export default { ...@@ -579,6 +579,9 @@ export default {
: null; : null;
// departmentName: 审核部门名称(左侧列表) // departmentName: 审核部门名称(左侧列表)
this.departmentName = this.$route.query.departmentName; this.departmentName = this.$route.query.departmentName;
this.searchForm.name = ''
this.searchForm.phone = ''
this.searchForm.state = ''
this.init(); this.init();
} }
} }
...@@ -602,7 +605,7 @@ export default { ...@@ -602,7 +605,7 @@ export default {
console.log(res.data) console.log(res.data)
if (res.success) { if (res.success) {
this.pagination.total = res.data.total; this.pagination.total = res.data.total;
if (res.data.total != 0) { if (res.data.total) {
this.tableData = res.data.list.map((item) => { this.tableData = res.data.list.map((item) => {
item.stateName = this.getSatusArr(item.reviewerState).stateName; item.stateName = this.getSatusArr(item.reviewerState).stateName;
item.type = this.getSatusArr(item.reviewerState).type; item.type = this.getSatusArr(item.reviewerState).type;
...@@ -887,7 +890,7 @@ export default { ...@@ -887,7 +890,7 @@ export default {
}; };
initDepartmentRevocation(params).then((res) => { initDepartmentRevocation(params).then((res) => {
console.log(res); console.log(res);
that.init(); that.init();
}); });
} }
}) })
......
<template> <template>
<div class="policy"> <div class="policy">
<div class="search-wrapper"> <div class="search-wrapper">
<el-form <el-form :inline="true" :model="searchForm" class="search_form" style="text-align: left">
:inline="true"
:model="searchForm"
class="search_form"
style="text-align: left"
>
<el-form-item label="姓名"> <el-form-item label="姓名">
<el-input <el-input v-model="searchForm.name" placeholder="请输入姓名" @keyup.enter.native="onSubmit"></el-input>
v-model="searchForm.name"
placeholder="请输入姓名"
@keyup.enter.native="onSubmit"
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="手机号码"> <el-form-item label="手机号码">
<el-input <el-input v-model="searchForm.phone" placeholder="请输入手机号码" @keyup.enter.native="onSubmit"></el-input>
v-model="searchForm.phone"
placeholder="请输入手机号码"
@keyup.enter.native="onSubmit"
></el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit">查询</el-button> <el-button type="primary" @click="onSubmit">查询</el-button>
...@@ -27,114 +14,50 @@ ...@@ -27,114 +14,50 @@
<br /> <br />
<el-form-item label="状态" style="margin-top: 10px"> <el-form-item label="状态" style="margin-top: 10px">
<el-radio-group v-model="searchForm.state" @change="onSubmit"> <el-radio-group v-model="searchForm.state" @change="onSubmit">
<el-radio <el-radio :label="item.state" v-for="item in stateList" :key="item.state">{{ item.stateName }}</el-radio>
:label="item.state"
v-for="item in stateList"
:key="item.state"
>{{ item.stateName }}</el-radio
>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<div class="table-wrapper"> <div class="table-wrapper">
<table-template <table-template :tableData="tableData" :tableColumns="tableColumns" :loading="loading" :pagination="pagination"
:tableData="tableData" @Jump="jumpPage">
:tableColumns="tableColumns" <el-table-column slot="housingType" label="事项类型" align="center">
:loading="loading"
:pagination="pagination"
@Jump="jumpPage"
>
<el-table-column slot="housingType" label="事项类型" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag>{{scope.row.housingType == 2 ? '住房' : scope.row.housingType == 3 ? '商办' : '-'}}</el-tag> <el-tag>{{scope.row.housingType == 2 ? '住房' : scope.row.housingType == 3 ? '商办' : '-'}}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column width="120" label="状态" align="center"> <el-table-column width="120" label="状态" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag <el-tag type="warning" v-if="scope.row.housingState === 0 && scope.row.state !== 8">待审核</el-tag>
type="warning" <el-tag type="warning" v-if="scope.row.housingState === 0 && scope.row.state === 8">待复审</el-tag>
v-if="scope.row.housingState === 0 && scope.row.state !== 8" <el-tag type="success" v-if="scope.row.housingState === 1">初审通过</el-tag>
>待审核</el-tag <el-tag type="warning" v-if="scope.row.housingState === 2">待终审</el-tag>
> <el-tag type="success" v-if="scope.row.housingState === 3">已完结</el-tag>
<el-tag <el-tag type="danger" v-if="scope.row.housingState === 4">已驳回</el-tag>
type="warning" <el-tag type="info" v-if="scope.row.housingState === 5">已撤销</el-tag>
v-if="scope.row.housingState === 0 && scope.row.state === 8" <el-tag type="warning" v-if="scope.row.housingState === 6">资料审核</el-tag>
>待复审</el-tag <el-tag type="success" v-if="scope.row.housingState === 7">发放补贴</el-tag>
>
<el-tag type="success" v-if="scope.row.housingState === 1"
>初审通过</el-tag
>
<el-tag type="warning" v-if="scope.row.housingState === 2"
>待终审</el-tag
>
<el-tag type="success" v-if="scope.row.housingState === 3"
>已完结</el-tag
>
<el-tag type="danger" v-if="scope.row.housingState === 4"
>已驳回</el-tag
>
<el-tag type="info" v-if="scope.row.housingState === 5"
>已撤销</el-tag
>
<el-tag type="warning" v-if="scope.row.housingState === 6"
>资料审核</el-tag
>
<el-tag type="success" v-if="scope.row.housingState === 7"
>发放补贴</el-tag
>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column fixed="right" label="操作" width="380" align="left"> <el-table-column fixed="right" label="操作" width="380" align="left">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="primary" size="mini" round @click="view(scope.row)" <el-button type="primary" size="mini" round @click="view(scope.row)">查看</el-button>
>查看</el-button <el-button type="primary" size="mini" round @click="record(scope.row)">记录</el-button>
>
<el-button
type="primary"
size="mini"
round
@click="record(scope.row)"
>记录</el-button
>
<!-- 申请的单子有通过拒绝--> <!-- 申请的单子有通过拒绝-->
<el-button <el-button v-if="scope.row.state === 0" type="success" size="mini" round @click="pass(scope.row)">通过
v-if="scope.row.state === 0" </el-button>
type="success" <el-button v-if="scope.row.state === 0" type="danger" size="mini" round @click="deny(scope.row)">拒绝
size="mini" </el-button>
round <el-button v-if="
@click="pass(scope.row)" scope.row.housingState === 3 &&
>通过</el-button searchForm.departmentCode === '10000031'
> " type="success" size="mini" round @click="dispatch(scope.row)">发放补贴</el-button>
<el-button
v-if="scope.row.state === 0"
type="danger"
size="mini"
round
@click="deny(scope.row)"
>拒绝</el-button
>
<el-button
v-if="
scope.row.housingState === 3 &&
searchForm.departmentCode === '10000031'
"
type="success"
size="mini"
round
@click="dispatch(scope.row)"
>发放补贴</el-button
>
</template> </template>
</el-table-column> </el-table-column>
</table-template> </table-template>
</div> </div>
<el-dialog <el-dialog title="申报详情" :visible.sync="viewShow" width="800px" :close-on-press-escape="false">
title="申报详情"
:visible.sync="viewShow"
width="800px"
:close-on-press-escape="false"
>
<div class="content"> <div class="content">
<!-- 新增功能start --> <!-- 新增功能start -->
<el-table :data="totalList" style="width: 100%"> <el-table :data="totalList" style="width: 100%">
...@@ -217,75 +140,48 @@ ...@@ -217,75 +140,48 @@
<div class="cell"> <div class="cell">
<p class="label">身份证照片</p> <p class="label">身份证照片</p>
<p class="value"> <p class="value">
<el-image <el-image style="width: 100px; height: 100px" :src="viewDetail.idCardPicture" :z-index="7777777"
style="width: 100px; height: 100px" :preview-src-list="[viewDetail.idCardPicture]">
:src="viewDetail.idCardPicture"
:z-index="7777777"
:preview-src-list="[viewDetail.idCardPicture]"
>
</el-image> </el-image>
</p> </p>
</div> </div>
<div class="cell"> <div class="cell">
<p class="label">商品房买卖合同3张</p> <p class="label">商品房买卖合同3张</p>
<p class="value"> <p class="value">
<el-image <el-image v-for="(item, index) in viewDetail.contract" :key="index"
v-for="(item, index) in viewDetail.contract" style="width: 100px; height: 100px; margin-right: 10px" :src="item.picture" :z-index="7777777"
:key="index" :preview-src-list="[item.picture]">
style="width: 100px; height: 100px; margin-right: 10px"
:src="item.picture"
:z-index="7777777"
:preview-src-list="[item.picture]"
>
</el-image> </el-image>
</p> </p>
</div> </div>
<div class="cell"> <div class="cell">
<p class="label">不动产权证书</p> <p class="label">不动产权证书</p>
<p class="value"> <p class="value">
<el-image <el-image style="width: 100px; height: 100px" :src="viewDetail.certificate" :z-index="7777777"
style="width: 100px; height: 100px" :preview-src-list="[viewDetail.certificate]">
:src="viewDetail.certificate"
:z-index="7777777"
:preview-src-list="[viewDetail.certificate]"
>
</el-image> </el-image>
</p> </p>
</div> </div>
<div class="cell"> <div class="cell">
<p class="label">契税完税凭证</p> <p class="label">契税完税凭证</p>
<p class="value"> <p class="value">
<el-image <el-image style="width: 100px; height: 100px" :src="viewDetail.voucher" :z-index="7777777"
style="width: 100px; height: 100px" :preview-src-list="[viewDetail.voucher]">
:src="viewDetail.voucher"
:z-index="7777777"
:preview-src-list="[viewDetail.voucher]"
>
</el-image> </el-image>
</p> </p>
</div> </div>
<div class="cell" v-if="viewDetail.labour.length > 0"> <div class="cell" v-if="viewDetail.labour.length > 0">
<p class="label">上传一年以上劳动合同的上传项目</p> <p class="label">上传一年以上劳动合同的上传项目</p>
<p class="value"> <p class="value">
<el-image <el-image v-for="(item, index) in viewDetail.labour" :key="index"
v-for="(item, index) in viewDetail.labour" style="width: 100px; height: 100px; margin-right: 10px" :src="item.picture" :z-index="7777777"
:key="index" :preview-src-list="[item.picture]">
style="width: 100px; height: 100px; margin-right: 10px"
:src="item.picture"
:z-index="7777777"
:preview-src-list="[item.picture]"
>
</el-image> </el-image>
</p> </p>
</div> </div>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog <el-dialog title="操作记录" :visible.sync="recordShow" width="800px" :close-on-press-escape="false">
title="操作记录"
:visible.sync="recordShow"
width="800px"
:close-on-press-escape="false"
>
<div class="content"> <div class="content">
<div class="cell" v-for="item in recordList" :key="item.createTime"> <div class="cell" v-for="item in recordList" :key="item.createTime">
<p class="label" style="margin-right: 20px"> <p class="label" style="margin-right: 20px">
...@@ -305,7 +201,7 @@ ...@@ -305,7 +201,7 @@
<script> <script>
import TableTemplate from "@/components/Table"; import TableTemplate from "@/components/Table";
import { changeList,setName,setTel,setCertNo } from "@/utils"; import { changeList, setName, setTel, setCertNo } from "@/utils";
import { get } from "@/api/talents"; import { get } from "@/api/talents";
import { import {
mattersHousingReviewerList, mattersHousingReviewerList,
...@@ -457,15 +353,18 @@ export default { ...@@ -457,15 +353,18 @@ export default {
}; };
}, },
watch: { watch: {
$route() { $route() {
if (this.$route) { if (this.$route) {
this.userName = localStorage.getItem('userName'); this.userName = localStorage.getItem('userName');
// 10000031 财政局code 10000032 税务局code 10000033 不动产登记中心code 10000023 人社局code // 10000031 财政局code 10000032 税务局code 10000033 不动产登记中心code 10000023 人社局code
this.searchForm.departmentCode = this.$route.query.departmentCode; this.searchForm.departmentCode = this.$route.query.departmentCode;
this.init(); this.searchForm.name = ''
} this.searchForm.phone = ''
} this.searchForm.state = ''
}, this.init();
}
}
},
methods: { methods: {
init() { init() {
this.tableData = []; this.tableData = [];
...@@ -482,14 +381,14 @@ export default { ...@@ -482,14 +381,14 @@ export default {
this.loading = false; this.loading = false;
if (res.success) { if (res.success) {
this.pagination.total = res.data.total; this.pagination.total = res.data.total;
if (res.data.total != 0) { if (res.data.total) {
this.tableData = res.data.list.map(item => { this.tableData = res.data.list.map(item => {
item.stateName = this.getSatusArr(item.state).stateName; item.stateName = this.getSatusArr(item.state).stateName;
item.type = this.getSatusArr(item.state).type; item.type = this.getSatusArr(item.state).type;
return item; return item;
}); });
if (localStorage.getItem('userName') == 'admin') { if (localStorage.getItem('userName') == 'admin') {
this.tableData = changeList(this.tableData) this.tableData = changeList(this.tableData)
} }
} else { } else {
this.tableData = [] this.tableData = []
...@@ -527,10 +426,10 @@ export default { ...@@ -527,10 +426,10 @@ export default {
this.housingList = res.data; this.housingList = res.data;
this.housingList.forEach(item => { this.housingList.forEach(item => {
item.state == 1 || item.state == 1 ||
item.state == 2 || item.state == 2 ||
item.state == 3 || item.state == 3 ||
item.state == 6 || item.state == 6 ||
item.state == 7 item.state == 7
? (item.state = "通过") ? (item.state = "通过")
: (item.state = "拒绝"); : (item.state = "拒绝");
}); });
......
...@@ -396,7 +396,7 @@ export default { ...@@ -396,7 +396,7 @@ export default {
this.loading = false; this.loading = false;
if (res.success) { if (res.success) {
this.pagination.total = res.data.total; this.pagination.total = res.data.total;
if (res.data.total != 0) { if (res.data.total) {
this.tableData = res.data.list.map((item) => { this.tableData = res.data.list.map((item) => {
this.state = item.state; this.state = item.state;
item.stateName = this.getSatusArr(item.state).stateName; item.stateName = this.getSatusArr(item.state).stateName;
......
...@@ -395,7 +395,7 @@ export default { ...@@ -395,7 +395,7 @@ export default {
this.loading = false; this.loading = false;
if (res.success) { if (res.success) {
this.pagination.total = res.data.total; this.pagination.total = res.data.total;
if (res.data.total != 0) { if (res.data.total) {
this.tableData = res.data.list.map(item => { this.tableData = res.data.list.map(item => {
// console.log("item----", item); // console.log("item----", item);
item.stateName = this.getSatusArr(item.state).stateName; item.stateName = this.getSatusArr(item.state).stateName;
......
...@@ -470,7 +470,7 @@ export default { ...@@ -470,7 +470,7 @@ export default {
this.loading = false; this.loading = false;
if (res.success) { if (res.success) {
this.pagination.total = res.data.total; this.pagination.total = res.data.total;
if (res.data.total != 0) { if (res.data.total) {
this.tableData = res.data.list.map(item => { this.tableData = res.data.list.map(item => {
item.stateName = this.getSatusArr(item.state).stateName; item.stateName = this.getSatusArr(item.state).stateName;
item.type = this.getSatusArr(item.state).type; item.type = this.getSatusArr(item.state).type;
......
...@@ -509,6 +509,9 @@ export default { ...@@ -509,6 +509,9 @@ export default {
if (this.$route) { if (this.$route) {
this.userName = localStorage.getItem('userName'); this.userName = localStorage.getItem('userName');
this.searchForm.departmentCode = this.$route.query.departmentCode this.searchForm.departmentCode = this.$route.query.departmentCode
this.searchForm.name = ''
this.searchForm.phone = ''
this.searchForm.state = ''
this.init(); this.init();
} }
} }
...@@ -532,7 +535,7 @@ export default { ...@@ -532,7 +535,7 @@ export default {
this.loading = false; this.loading = false;
if (res.success) { if (res.success) {
this.pagination.total = res.data.total; this.pagination.total = res.data.total;
if (res.data.total != 0) { if (res.data.total) {
this.tableData = res.data.list.map((item) => { this.tableData = res.data.list.map((item) => {
console.log("item------", item); console.log("item------", item);
if (item.stateName && item.type) { if (item.stateName && item.type) {
......
...@@ -530,6 +530,9 @@ export default { ...@@ -530,6 +530,9 @@ export default {
this.searchForm.payTaxesArea = this.$route.query.payTaxesArea this.searchForm.payTaxesArea = this.$route.query.payTaxesArea
? this.$route.query.payTaxesArea ? this.$route.query.payTaxesArea
: null; : null;
this.searchForm.name = ''
this.searchForm.phone = ''
this.searchForm.state = ''
this.init(); this.init();
} }
} }
...@@ -553,7 +556,7 @@ export default { ...@@ -553,7 +556,7 @@ export default {
console.log(res); console.log(res);
if (res.success) { if (res.success) {
this.pagination.total = res.data.total; this.pagination.total = res.data.total;
if (res.data.total != 0) { if (res.data.total) {
this.tableData = res.data.list.map((item) => { this.tableData = res.data.list.map((item) => {
this.state = item.state; this.state = item.state;
item.stateName = this.getSatusArr(item.state).stateName; item.stateName = this.getSatusArr(item.state).stateName;
......
...@@ -497,7 +497,7 @@ export default { ...@@ -497,7 +497,7 @@ export default {
console.log(res); console.log(res);
if (res.success) { if (res.success) {
this.pagination.total = res.data.total; this.pagination.total = res.data.total;
if (res.data.total != 0) { if (res.data.total) {
this.tableData = res.data.list.map((item) => { this.tableData = res.data.list.map((item) => {
this.state = item.state; this.state = item.state;
item.stateName = this.getSatusArr(item.state).stateName; item.stateName = this.getSatusArr(item.state).stateName;
......
...@@ -487,6 +487,8 @@ export default { ...@@ -487,6 +487,8 @@ export default {
searchForm: { searchForm: {
name: "", // 姓名 name: "", // 姓名
phone: "", // 联系方式 phone: "", // 联系方式
unitName: "",
recordName: "",
state: "", // 状态 state: "", // 状态
typeCode: "", // 认定类型 typeCode: "", // 认定类型
branchCode: "", // 责任部门 branchCode: "", // 责任部门
...@@ -627,6 +629,12 @@ export default { ...@@ -627,6 +629,12 @@ export default {
this.userName = localStorage.getItem('userName'); this.userName = localStorage.getItem('userName');
this.branchCode = this.$route.query.branchCode ? this.$route.query.branchCode : '' this.branchCode = this.$route.query.branchCode ? this.$route.query.branchCode : ''
this.code = this.$route.query.code ? this.$route.query.code : '' this.code = this.$route.query.code ? this.$route.query.code : ''
this.searchForm.name = ''
this.searchForm.phone = ''
this.searchForm.typeCode = ''
this.searchForm.state = ''
this.searchForm.recordName = ''
this.searchForm.unitName = ''
this.init(); this.init();
this.initType(); this.initType();
if (!this.branchCode) { if (!this.branchCode) {
...@@ -671,7 +679,7 @@ export default { ...@@ -671,7 +679,7 @@ export default {
this.loading = false; this.loading = false;
if (res.success) { if (res.success) {
this.pagination.total = res.data.total; this.pagination.total = res.data.total;
if (res.data.total != 0) { if (res.data.total) {
this.tableData = res.data.list.map((item) => { this.tableData = res.data.list.map((item) => {
// console.log("人才码列表----", item); // console.log("人才码列表----", item);
item.updateTime = item.updateTime.substring(0, 10); item.updateTime = item.updateTime.substring(0, 10);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment