Commit 28187334 by @zhang-bin-1

gx

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