Commit 11725cb2 by swl

gx

parent 9278c578
No preview for this file type
import { import { api, formatParams } from "@/utils/axios";
api,
formatParams
} from "@/utils/axios";
/** /**
* 购房契税补贴住建局审核申请列表 * 购房契税补贴住建局审核申请列表
...@@ -9,9 +6,11 @@ import { ...@@ -9,9 +6,11 @@ import {
* @returns * @returns
*/ */
export function mattersHousingList(params) { export function mattersHousingList(params) {
return api(Object.assign(formatParams('POST', params), { return api(
url: `/admin-api/housing/mattersHousingList` Object.assign(formatParams("POST", params), {
})) url: `/admin-api/housing/mattersHousingList`,
})
);
} }
/** /**
...@@ -20,36 +19,44 @@ export function mattersHousingList(params) { ...@@ -20,36 +19,44 @@ export function mattersHousingList(params) {
* @returns * @returns
*/ */
export function mattersHousingReviewerList(params) { export function mattersHousingReviewerList(params) {
return api(Object.assign(formatParams('POST', params), { return api(
url: `/admin-api/housing/mattersHousingReviewerList` Object.assign(formatParams("POST", params), {
})) url: `/admin-api/housing/mattersHousingReviewerList`,
})
);
} }
/** /**
* 列表 * 列表
*/ */
export function mattersParentList(params) { export function mattersParentList(params) {
return api(Object.assign(formatParams('POST', params), { return api(
url: `/admin-api/parent/mattersParentList` Object.assign(formatParams("POST", params), {
})) url: `/admin-api/parent/mattersParentList`,
})
);
} }
/** /**
* 详情 * 详情
*/ */
export function mattersGet(params) { export function mattersGet(params) {
return api(Object.assign(formatParams('POST', params), { return api(
url: `/admin-api/parent/mattersGet` Object.assign(formatParams("POST", params), {
})) url: `/admin-api/parent/mattersGet`,
})
);
} }
/** /**
* 修改状态 * 修改状态
*/ */
export function mattersUpdateState(params) { export function mattersUpdateState(params) {
return api(Object.assign(formatParams('POST', params), { return api(
url: `/admin-api/talent/mattersUpdateState` Object.assign(formatParams("POST", params), {
})) url: `/admin-api/talent/mattersUpdateState`,
})
);
} }
/** /**
...@@ -57,18 +64,22 @@ export function mattersUpdateState(params) { ...@@ -57,18 +64,22 @@ export function mattersUpdateState(params) {
* @returns <promise> * @returns <promise>
*/ */
export function mattersGuideList(params) { export function mattersGuideList(params) {
return api(Object.assign(formatParams('POST', params), { return api(
url: `/admin-api/talent/mattersGuideList` Object.assign(formatParams("POST", params), {
})) url: `/admin-api/talent/mattersGuideList`,
})
);
} }
/** /**
* 人才事项部门列表 * 人才事项部门列表
*/ */
export function mattersDepartmentList(params) { export function mattersDepartmentList(params) {
return api(Object.assign(formatParams('POST', params), { return api(
url: `/admin-api/talent/mattersDepartmentList` Object.assign(formatParams("POST", params), {
})) url: `/admin-api/talent/mattersDepartmentList`,
})
);
} }
/** /**
...@@ -76,9 +87,11 @@ export function mattersDepartmentList(params) { ...@@ -76,9 +87,11 @@ export function mattersDepartmentList(params) {
* @returns * @returns
*/ */
export function mattersGuideGet(params) { export function mattersGuideGet(params) {
return api(Object.assign(formatParams('POST', params), { return api(
url: `/admin-api/talent/mattersGuideGet` Object.assign(formatParams("POST", params), {
})) url: `/admin-api/talent/mattersGuideGet`,
})
);
} }
/** /**
...@@ -86,9 +99,11 @@ export function mattersGuideGet(params) { ...@@ -86,9 +99,11 @@ export function mattersGuideGet(params) {
* @returns <promise> * @returns <promise>
*/ */
export function mattersGuideAdd(params) { export function mattersGuideAdd(params) {
return api(Object.assign(formatParams('POST', params), { return api(
url: `/admin-api/talent/mattersGuideAdd` Object.assign(formatParams("POST", params), {
})) url: `/admin-api/talent/mattersGuideAdd`,
})
);
} }
/** /**
...@@ -97,9 +112,11 @@ export function mattersGuideAdd(params) { ...@@ -97,9 +112,11 @@ export function mattersGuideAdd(params) {
* @returns * @returns
*/ */
export function mattersGuideUpdate(params) { export function mattersGuideUpdate(params) {
return api(Object.assign(formatParams('POST', params), { return api(
url: `/admin-api/talent/mattersGuideUpdate` Object.assign(formatParams("POST", params), {
})) url: `/admin-api/talent/mattersGuideUpdate`,
})
);
} }
/** /**
...@@ -107,9 +124,11 @@ export function mattersGuideUpdate(params) { ...@@ -107,9 +124,11 @@ export function mattersGuideUpdate(params) {
* @returns <promise> * @returns <promise>
*/ */
export function mattersGuideDelete(params) { export function mattersGuideDelete(params) {
return api(Object.assign(formatParams('POST', params), { return api(
url: `/admin-api/talent/mattersGuideDelete` Object.assign(formatParams("POST", params), {
})) url: `/admin-api/talent/mattersGuideDelete`,
})
);
} }
/** /**
...@@ -118,9 +137,11 @@ export function mattersGuideDelete(params) { ...@@ -118,9 +137,11 @@ export function mattersGuideDelete(params) {
* @returns * @returns
*/ */
export function mattersHousingReviewerUpdate(params) { export function mattersHousingReviewerUpdate(params) {
return api(Object.assign(formatParams('POST', params), { return api(
url: `/admin-api/housing/mattersHousingReviewerUpdate` Object.assign(formatParams("POST", params), {
})) url: `/admin-api/housing/mattersHousingReviewerUpdate`,
})
);
} }
/** /**
...@@ -129,18 +150,22 @@ export function mattersHousingReviewerUpdate(params) { ...@@ -129,18 +150,22 @@ export function mattersHousingReviewerUpdate(params) {
* @returns * @returns
*/ */
export function mattersHousingUpdate(params) { export function mattersHousingUpdate(params) {
return api(Object.assign(formatParams('POST', params), { return api(
url: `/admin-api/housing/mattersHousingUpdate` Object.assign(formatParams("POST", params), {
})) url: `/admin-api/housing/mattersHousingUpdate`,
})
);
} }
/** /**
* 记录 * 记录
*/ */
export function mattersGetReason(params) { export function mattersGetReason(params) {
return api(Object.assign(formatParams('POST', params), { return api(
url: `/admin-api/talent/mattersGetReason` Object.assign(formatParams("POST", params), {
})) url: `/admin-api/talent/mattersGetReason`,
})
);
} }
/** /**
...@@ -149,9 +174,11 @@ export function mattersGetReason(params) { ...@@ -149,9 +174,11 @@ export function mattersGetReason(params) {
* @returns * @returns
*/ */
export function mattersHousingGet(params) { export function mattersHousingGet(params) {
return api(Object.assign(formatParams('GET', params), { return api(
url: `/admin-api/housing/mattersHousingGet` Object.assign(formatParams("GET", params), {
})) url: `/admin-api/housing/mattersHousingGet`,
})
);
} }
/** /**
...@@ -160,25 +187,39 @@ export function mattersHousingGet(params) { ...@@ -160,25 +187,39 @@ export function mattersHousingGet(params) {
* @returns * @returns
*/ */
export function mattersHousingReason(params) { export function mattersHousingReason(params) {
return api(Object.assign(formatParams('POST', params), { return api(
url: `/admin-api/housing/mattersHousingReason` Object.assign(formatParams("POST", params), {
})) url: `/admin-api/housing/mattersHousingReason`,
})
);
} }
/** /**
* 契税补贴数据推送(至市契税) * 契税补贴数据推送(至市契税)
*/ */
export function dtSubsidy(params) { export function dtSubsidy(params) {
return api(Object.assign(formatParams('POST', params), { return api(
url: `/admin-api/deedTax/dtSubsidy` Object.assign(formatParams("POST", params), {
})) url: `/admin-api/deedTax/dtSubsidy`,
})
);
} }
/** /**
* 查询附件 * 查询附件
*/ */
export function queryAttacheFile(params) { export function queryAttacheFile(params) {
return api(Object.assign(formatParams('GET', params), { return api(
url: `/admin-api/housing/queryAttacheFile` Object.assign(formatParams("GET", params), {
})) url: `/admin-api/housing/queryAttacheFile`,
})
);
}
// 人才政策契税补贴-审核撤回
export function revocation(params) {
return api(
Object.assign(formatParams("POST", params), {
url: `/admin-api/housing/revocation`,
})
);
} }
...@@ -5,8 +5,8 @@ import { TokenKey } from "@/utils/auth"; ...@@ -5,8 +5,8 @@ import { TokenKey } from "@/utils/auth";
const config = { const config = {
// proxy: "https://exam.smart-zj.cn:9100/exam/", // 新线上地址 // proxy: "https://exam.smart-zj.cn:9100/exam/", // 新线上地址
proxy: "http://81.69.231.72:8881", // 测试地址 // proxy: "http://81.69.231.72:8881", // 测试地址
// proxy: "http://192.168.3.87:8881", //本地 proxy: "http://192.168.3.87:8881", //本地
// proxy: "https://exam.smart-zj.cn:9100/smartExam", // 新正式接口zs // proxy: "https://exam.smart-zj.cn:9100/smartExam", // 新正式接口zs
// proxy: "http://81.69.231.72:9089/", // 测试地址 // proxy: "http://81.69.231.72:9089/", // 测试地址
// proxy1: "http://81.69.231.72:8881/admin-api", // 测试地址 // proxy1: "http://81.69.231.72:8881/admin-api", // 测试地址
......
<template> <template>
<div class="policy"> <div class="policy">
<div class="search-wrapper"> <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-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>
<el-form-item label="手机号码"> <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-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit">查询</el-button> <el-button type="primary" @click="onSubmit">查询</el-button>
...@@ -14,54 +27,139 @@ ...@@ -14,54 +27,139 @@
<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 :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-radio-group>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<div class="table-wrapper"> <div class="table-wrapper">
<table-template :tableData="tableData" :tableColumns="tableColumns" :loading="loading" :pagination="pagination" <table-template
@Jump="jumpPage"> :tableData="tableData"
:tableColumns="tableColumns"
:loading="loading"
:pagination="pagination"
@Jump="jumpPage"
>
<el-table-column slot="housingType" label="事项类型" align="center"> <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 type="warning" v-if="scope.row.housingState === 0 && scope.row.state !== 8">待审核</el-tag> <el-tag
<el-tag type="warning" v-if="scope.row.housingState === 0 && scope.row.state === 8">待复审</el-tag> type="warning"
<el-tag type="success" v-if="scope.row.housingState === 1">初审通过</el-tag> v-if="scope.row.housingState === 0 && scope.row.state !== 8"
<el-tag type="warning" v-if="scope.row.housingState === 2">待终审</el-tag> >待审核</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
<el-tag type="info" v-if="scope.row.housingState === 5">已撤销</el-tag> type="warning"
<el-tag type="warning" v-if="scope.row.housingState === 6">资料审核</el-tag> v-if="scope.row.housingState === 0 && scope.row.state === 8"
<el-tag type="success" v-if="scope.row.housingState === 7">发放补贴</el-tag> >待复审</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> <el-button type="primary" size="mini" round @click="view(scope.row)"
<el-button type="primary" size="mini" round @click="record(scope.row)">记录</el-button> >查看</el-button
>
<el-button
type="primary"
size="mini"
round
@click="record(scope.row)"
>记录</el-button
>
<el-button
type="danger"
size="mini"
round
v-if="scope.row.state === 8 || scope.row.state === 9"
@click="revocationHandle(scope.row)"
>撤回</el-button
>
<!-- 申请的单子有通过拒绝--> <!-- 申请的单子有通过拒绝-->
<el-button v-if="scope.row.state === 0" type="success" size="mini" round @click="pass(scope.row)">通过 <el-button
v-if="scope.row.state === 0"
type="success"
size="mini"
round
@click="pass(scope.row)"
>通过
</el-button> </el-button>
<el-button v-if="scope.row.state === 0" type="danger" size="mini" round @click="deny(scope.row)">拒绝 <el-button
v-if="scope.row.state === 0"
type="danger"
size="mini"
round
@click="deny(scope.row)"
>拒绝
</el-button> </el-button>
<el-button v-if=" <el-button
v-if="
scope.row.housingState === 3 && scope.row.housingState === 3 &&
searchForm.departmentCode === '10000031' searchForm.departmentCode === '10000031'
" type="success" size="mini" round @click="dispatch(scope.row)">发放补贴</el-button> "
<el-button v-if=" type="success"
size="mini"
round
@click="dispatch(scope.row)"
>发放补贴</el-button
>
<el-button
v-if="
scope.row.attachedFileMark === true && scope.row.attachedFileMark === true &&
searchForm.departmentCode === '10000031' searchForm.departmentCode === '10000031'
" type="info" size="mini" round @click="viewUrl(scope.row)">查看附件</el-button> "
type="info"
size="mini"
round
@click="viewUrl(scope.row)"
>查看附件</el-button
>
</template> </template>
</el-table-column> </el-table-column>
</table-template> </table-template>
</div> </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"> <div class="content">
<!-- 新增功能start --> <!-- 新增功能start -->
<el-table :data="totalList" style="width: 100%"> <el-table :data="totalList" style="width: 100%">
...@@ -73,18 +171,41 @@ ...@@ -73,18 +171,41 @@
</el-table> </el-table>
<div class="cell"> <div class="cell">
<p class="label">是否享受过相关政策</p> <p class="label">是否享受过相关政策</p>
<p :class="['value', viewDetail.enjoyFlag == true ? 'value2' : 'value1']">{{ viewDetail.enjoyFlag ? '否' : '是' <p
}}</p> :class="[
'value',
viewDetail.enjoyFlag == true ? 'value2' : 'value1',
]"
>
{{ viewDetail.enjoyFlag ? "否" : "是" }}
</p>
</div> </div>
<div class="cell"> <div class="cell">
<p class="label">市契税系统</p> <p class="label">市契税系统</p>
<p class="value">{{ viewDetail.tradeStatus === 0 ? '未支付' : viewDetail.tradeStatus === 1 ? '已支付' : <p class="value">
viewDetail.tradeStatus === 2 ? '不予发放' : '未审核' }}</p> {{
viewDetail.tradeStatus === 0
? "未支付"
: viewDetail.tradeStatus === 1
? "已支付"
: viewDetail.tradeStatus === 2
? "不予发放"
: "未审核"
}}
</p>
</div> </div>
<!-- 新增功能end --> <!-- 新增功能end -->
<div class="cell"> <div class="cell">
<p class="label">事项类型</p> <p class="label">事项类型</p>
<p class="value">{{ viewDetail.housingType == 2 ? '住房' : viewDetail.housingType == 3 ? '商办' : '-' }}</p> <p class="value">
{{
viewDetail.housingType == 2
? "住房"
: viewDetail.housingType == 3
? "商办"
: "-"
}}
</p>
</div> </div>
<div class="cell"> <div class="cell">
<p class="label">事项名称</p> <p class="label">事项名称</p>
...@@ -146,61 +267,100 @@ ...@@ -146,61 +267,100 @@
<p class="label">所属银行</p> <p class="label">所属银行</p>
<p class="value">{{ viewDetail.bank }}</p> <p class="value">{{ viewDetail.bank }}</p>
</div> </div>
<div class="cell" v-if="viewDetail.bankPicture && viewDetail.bankPicture.length > 0"> <div
class="cell"
v-if="viewDetail.bankPicture && viewDetail.bankPicture.length > 0"
>
<p class="label">银行卡照片</p> <p class="label">银行卡照片</p>
<p class="value"> <p class="value">
<el-image v-for="(item, index) in viewDetail.bankPicture" :key="index" <el-image
style="width: 100px; height: 100px; margin-right: 10px" :src="item.picture" :z-index="7777777" v-for="(item, index) in viewDetail.bankPicture"
:preview-src-list="[item.picture]"> :key="index"
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" v-if="viewDetail.idCardPicture && viewDetail.idCardPicture.length > 0"> <div
class="cell"
v-if="viewDetail.idCardPicture && viewDetail.idCardPicture.length > 0"
>
<p class="label">身份证照片</p> <p class="label">身份证照片</p>
<p class="value"> <p class="value">
<el-image v-for="(item, index) in viewDetail.idCardPicture" :key="index" <el-image
style="width: 100px; height: 100px; margin-right: 10px" :src="item.picture" :z-index="7777777" v-for="(item, index) in viewDetail.idCardPicture"
:preview-src-list="[item.picture]"> :key="index"
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">商品房买卖合同3张</p> <p class="label">商品房买卖合同3张</p>
<p class="value"> <p class="value">
<el-image v-for="(item, index) in viewDetail.contract" :key="index" <el-image
style="width: 100px; height: 100px; margin-right: 10px" :src="item.picture" :z-index="7777777" v-for="(item, index) in viewDetail.contract"
:preview-src-list="[item.picture]"> :key="index"
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 style="width: 100px; height: 100px" :src="viewDetail.certificate" :z-index="7777777" <el-image
:preview-src-list="[viewDetail.certificate]"> style="width: 100px; height: 100px"
: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 style="width: 100px; height: 100px" :src="viewDetail.voucher" :z-index="7777777" <el-image
:preview-src-list="[viewDetail.voucher]"> style="width: 100px; height: 100px"
: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 v-for="(item, index) in viewDetail.labour" :key="index" <el-image
style="width: 100px; height: 100px; margin-right: 10px" :src="item.picture" :z-index="7777777" v-for="(item, index) in viewDetail.labour"
:preview-src-list="[item.picture]"> :key="index"
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 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="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">
...@@ -215,28 +375,66 @@ ...@@ -215,28 +375,66 @@
<p v-if="record.length === 0">暂无记录~</p> <p v-if="record.length === 0">暂无记录~</p>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog title="查看附件" :visible.sync="showUrl" width="500px" :close-on-press-escape="false"> <el-dialog
<div style="margin: 0 0 0 10px;font-weight: 700;">图片附件:</div> title="查看附件"
<div class="content" style="display:flex;flex-wrap:wrap;" v-if="pictureUrlList.length > 0"> :visible.sync="showUrl"
width="500px"
:close-on-press-escape="false"
>
<div style="margin: 0 0 0 10px; font-weight: 700">图片附件:</div>
<div
class="content"
style="display: flex; flex-wrap: wrap"
v-if="pictureUrlList.length > 0"
>
<div v-for="(item, index) in pictureUrlList" :key="index"> <div v-for="(item, index) in pictureUrlList" :key="index">
<el-image style="width: 95px; height: 95px; margin: 10px;" :src="item.file" <el-image
:preview-src-list="[item.file]"></el-image> style="width: 95px; height: 95px; margin: 10px"
</div> :src="item.file"
</div> :preview-src-list="[item.file]"
<div class="content" style="display:flex;justify-content: center;" v-if="pictureUrlList.length == 0"> ></el-image>
</div>
</div>
<div
class="content"
style="display: flex; justify-content: center"
v-if="pictureUrlList.length == 0"
>
<el-empty :image-size="50"></el-empty> <el-empty :image-size="50"></el-empty>
</div> </div>
<div style="margin: 0 0 0 10px;font-weight: 700;">文件附件:</div> <div style="margin: 0 0 0 10px; font-weight: 700">文件附件:</div>
<div class="content" style="display:flex;flex-direction:column;flex-wrap:wrap;" v-if="fileUrlList.length > 0"> <div
<div v-for="(item, index) in fileUrlList" :key="index" class="content"
style="margin: 10px 10px 0 10px; display:flex; align-items:center; justify-content: space-between;"> style="display: flex; flex-direction: column; flex-wrap: wrap"
<p class="label" style="margin: 0;text-align:center;">{{ item.fileExplain }}</p> v-if="fileUrlList.length > 0"
<el-button size="mini" type="primary" @click=" >
download(item.file) <div
" class="down-text">下载附件</el-button> v-for="(item, index) in fileUrlList"
</div> :key="index"
</div> style="
<div class="content" style="display:flex;justify-content: center;" v-if="fileUrlList.length == 0"> margin: 10px 10px 0 10px;
display: flex;
align-items: center;
justify-content: space-between;
"
>
<p class="label" style="margin: 0; text-align: center">
{{ item.fileExplain }}
</p>
<el-button
size="mini"
type="primary"
@click="download(item.file)"
class="down-text"
>下载附件</el-button
>
</div>
</div>
<div
class="content"
style="display: flex; justify-content: center"
v-if="fileUrlList.length == 0"
>
<el-empty :image-size="50"></el-empty> <el-empty :image-size="50"></el-empty>
</div> </div>
</el-dialog> </el-dialog>
...@@ -254,7 +452,8 @@ import { ...@@ -254,7 +452,8 @@ import {
mattersHousingGet, mattersHousingGet,
mattersHousingReason, mattersHousingReason,
mattersGetReason, mattersGetReason,
queryAttacheFile queryAttacheFile,
revocation,
} from "@/api/policy"; } from "@/api/policy";
export default { export default {
...@@ -269,81 +468,81 @@ export default { ...@@ -269,81 +468,81 @@ export default {
name: "", name: "",
phone: "", phone: "",
state: "", state: "",
departmentCode: "" departmentCode: "",
}, },
stateList: [ stateList: [
{ {
state: "", state: "",
stateName: "全部", stateName: "全部",
type: "" type: "",
}, },
{ {
state: 0, state: 0,
stateName: "待审核", stateName: "待审核",
type: "warning" type: "warning",
}, },
{ {
state: 8, state: 8,
stateName: "初审通过", stateName: "初审通过",
type: "success" type: "success",
}, },
{ {
state: 9, state: 9,
stateName: "已驳回", stateName: "已驳回",
type: "danger" type: "danger",
} },
], ],
stateList1: [ stateList1: [
{ {
state: 0, state: 0,
stateName: "待审核", stateName: "待审核",
type: "warning" type: "warning",
}, },
{ {
state: 1, state: 1,
stateName: "待复审", stateName: "待复审",
type: "warning" type: "warning",
}, },
{ {
state: 6, state: 6,
stateName: "资料审核", stateName: "资料审核",
type: "warning" type: "warning",
}, },
{ {
state: 2, state: 2,
stateName: "待终审", stateName: "待终审",
type: "warning" type: "warning",
}, },
{ {
state: 3, state: 3,
stateName: "已完结", stateName: "已完结",
type: "success" type: "success",
}, },
{ {
state: 4, state: 4,
stateName: "已驳回", stateName: "已驳回",
type: "danger" type: "danger",
}, },
{ {
state: 5, state: 5,
stateName: "已撤销", stateName: "已撤销",
type: "info" type: "info",
}, },
{ {
state: 7, state: 7,
stateName: "发放补贴", stateName: "发放补贴",
type: "success" type: "success",
}, },
{ {
state: 8, state: 8,
stateName: "初审通过", stateName: "初审通过",
type: "success" type: "success",
}, },
{ {
state: 9, state: 9,
stateName: "已驳回", stateName: "已驳回",
type: "danger" type: "danger",
} },
], ],
loading: false, loading: false,
tableData: [], tableData: [],
...@@ -351,43 +550,43 @@ export default { ...@@ -351,43 +550,43 @@ export default {
{ {
key: "code", key: "code",
label: "申请编号", label: "申请编号",
width: 200 width: 200,
}, },
{ {
key: "name", key: "name",
label: "姓名" label: "姓名",
}, },
{ {
key: "phone", key: "phone",
label: "手机号" label: "手机号",
}, },
{ {
key: "housingType", key: "housingType",
label: "事项类型", label: "事项类型",
type: "slot" type: "slot",
}, },
{ {
key: "guideName", key: "guideName",
label: "事项名称" label: "事项名称",
}, },
{ {
key: "departmentName", key: "departmentName",
label: "实施主体" label: "实施主体",
}, },
{ {
key: "createTime", key: "createTime",
label: "更新时间", label: "更新时间",
width: 180 width: 180,
} },
], ],
pagination: { pagination: {
total: 0, total: 0,
pageSize: 10, pageSize: 10,
currentPage: 1 currentPage: 1,
}, },
viewShow: false, viewShow: false,
viewDetail: { viewDetail: {
labour: [] labour: [],
}, },
recordShow: false, recordShow: false,
recordList: [], recordList: [],
...@@ -397,53 +596,74 @@ export default { ...@@ -397,53 +596,74 @@ export default {
realName: "", realName: "",
category: "", category: "",
contentName: "", contentName: "",
unitName: "" unitName: "",
}; };
}, },
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.searchForm.name = '' this.searchForm.name = "";
this.searchForm.phone = '' this.searchForm.phone = "";
this.searchForm.state = '' this.searchForm.state = "";
this.init(); this.init();
} }
} },
}, },
methods: { methods: {
download(url) { download(url) {
console.log(url) console.log(url);
let fileType = url.split(".")[url.split('.').length - 1] let fileType = url.split(".")[url.split(".").length - 1];
if (fileType == 'pdf' || fileType == 'PDF') { if (fileType == "pdf" || fileType == "PDF") {
window.open(url) window.open(url);
} else { } else {
window.location.href = url window.location.href = url;
} }
}, },
viewUrl(row) { viewUrl(row) {
console.log(row) console.log(row);
queryAttacheFile({ code: row.code }).then((res) => { queryAttacheFile({ code: row.code }).then((res) => {
console.log(res) console.log(res);
if (res.success) { if (res.success) {
this.pictureUrlList = res.data.filter((item) => { this.pictureUrlList = res.data.filter((item) => {
let fileType = item.fileExplain.split(".")[item.fileExplain.split('.').length - 1] let fileType =
return fileType == 'jpg' || fileType == 'jpeg' || fileType == 'png' item.fileExplain.split(".")[
}) item.fileExplain.split(".").length - 1
];
return fileType == "jpg" || fileType == "jpeg" || fileType == "png";
});
this.fileUrlList = res.data.filter((item) => { this.fileUrlList = res.data.filter((item) => {
let fileType = item.fileExplain.split(".")[item.fileExplain.split('.').length - 1] let fileType =
return fileType != 'jpg' && fileType != 'jpeg' && fileType != 'png' item.fileExplain.split(".")[
}) item.fileExplain.split(".").length - 1
console.log(this.pictureUrlList) ];
console.log(this.fileUrlList) return fileType != "jpg" && fileType != "jpeg" && fileType != "png";
this.showUrl = true });
console.log(this.pictureUrlList);
console.log(this.fileUrlList);
this.showUrl = true;
} else { } else {
this.$message.error(res.msg || '查询失败'); this.$message.error(res.msg || "查询失败");
} }
}) });
},
revocationHandle(row) {
revocation({
code: row.code,
reviewerId: row.reviewerId,
}).then((res) => {
if (res.success) {
this.$message.success("撤回成功");
this.init();
} else {
this.$message.warning(res.msg || "撤回失败");
}
});
}, },
init() { init() {
this.tableData = []; this.tableData = [];
this.loading = true; this.loading = true;
...@@ -453,23 +673,23 @@ export default { ...@@ -453,23 +673,23 @@ export default {
state: this.searchForm.state, state: this.searchForm.state,
departmentCode: this.searchForm.departmentCode, departmentCode: this.searchForm.departmentCode,
pageNum: this.pagination.currentPage, pageNum: this.pagination.currentPage,
pageSize: this.pagination.pageSize pageSize: this.pagination.pageSize,
}; };
mattersHousingReviewerList(parmas).then(res => { mattersHousingReviewerList(parmas).then((res) => {
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) { 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 = [];
} }
} }
}); });
...@@ -484,25 +704,25 @@ export default { ...@@ -484,25 +704,25 @@ export default {
view(row) { view(row) {
let params = { let params = {
code: row.code, code: row.code,
matterType: row.matterType matterType: row.matterType,
}; };
let params2 = { let params2 = {
appId: "1234", appId: "1234",
code: row.code, code: row.code,
name: this.userName name: this.userName,
}; };
// 查询四个部门的记录 mattersHousingReason // 查询四个部门的记录 mattersHousingReason
mattersHousingReason(params2).then(res => { mattersHousingReason(params2).then((res) => {
this.examineList = res.data; this.examineList = res.data;
this.examineList.forEach(item => { this.examineList.forEach((item) => {
item.state == 8 ? (item.state = "通过") : (item.state = "拒绝"); item.state == 8 ? (item.state = "通过") : (item.state = "拒绝");
}); });
this.totalList = this.examineList.concat(this.housingList); this.totalList = this.examineList.concat(this.housingList);
}); });
// // 查询最后审批的记录 // // 查询最后审批的记录
mattersGetReason(params2).then(res => { mattersGetReason(params2).then((res) => {
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 ||
...@@ -514,30 +734,26 @@ export default { ...@@ -514,30 +734,26 @@ export default {
this.totalList = this.examineList.concat(this.housingList); this.totalList = this.examineList.concat(this.housingList);
// console.log("this.totalList---", this.totalList); // console.log("this.totalList---", this.totalList);
}); });
mattersHousingGet(params).then(res => { mattersHousingGet(params).then((res) => {
console.log("res11111---", res); console.log("res11111---", res);
get({ talentCode: res.data.talentCode }).then(res => { get({ talentCode: res.data.talentCode }).then((res) => {
this.category = res.data.category; this.category = res.data.category;
this.contentName = res.data.contentName; this.contentName = res.data.contentName;
this.unitName = res.data.unitName; this.unitName = res.data.unitName;
}); });
this.viewDetail = res.data; this.viewDetail = res.data;
if (localStorage.getItem('userName') == 'admin') { if (localStorage.getItem("userName") == "admin") {
this.viewDetail.name = setName(this.viewDetail.name) this.viewDetail.name = setName(this.viewDetail.name);
this.viewDetail.phone = setTel(this.viewDetail.phone) this.viewDetail.phone = setTel(this.viewDetail.phone);
this.viewDetail.idCard = setCertNo(this.viewDetail.idCard) this.viewDetail.idCard = setCertNo(this.viewDetail.idCard);
} }
this.viewDetail.idCardPicture = res.data.pictureList.filter(item => { this.viewDetail.idCardPicture = res.data.pictureList.filter((item) => {
return ( return item.pictureType === 1;
item.pictureType === 1
)
}); });
this.viewDetail.bankPicture = res.data.pictureList.filter((item) => { this.viewDetail.bankPicture = res.data.pictureList.filter((item) => {
return ( return item.pictureType === 8;
item.pictureType === 8
);
}); });
this.viewDetail.contract = res.data.pictureList.filter(item => { this.viewDetail.contract = res.data.pictureList.filter((item) => {
return ( return (
item.pictureType !== 1 && item.pictureType !== 1 &&
item.pictureType !== 5 && item.pictureType !== 5 &&
...@@ -546,14 +762,14 @@ export default { ...@@ -546,14 +762,14 @@ export default {
item.pictureType !== 8 item.pictureType !== 8
); );
}); });
this.viewDetail.certificate = res.data.pictureList.find(item => { this.viewDetail.certificate = res.data.pictureList.find((item) => {
return item.pictureType === 5; return item.pictureType === 5;
}).picture; }).picture;
this.viewDetail.voucher = res.data.pictureList.find(item => { this.viewDetail.voucher = res.data.pictureList.find((item) => {
return item.pictureType === 6; return item.pictureType === 6;
}).picture; }).picture;
this.viewDetail.labour = []; this.viewDetail.labour = [];
res.data.pictureList.map(item => { res.data.pictureList.map((item) => {
if (item.pictureType == 7) { if (item.pictureType == 7) {
return this.viewDetail.labour.push(item); return this.viewDetail.labour.push(item);
} }
...@@ -563,13 +779,13 @@ export default { ...@@ -563,13 +779,13 @@ export default {
}, },
record(row) { record(row) {
// console.log(); // console.log();
mattersHousingReason({ code: row.code }).then(res => { mattersHousingReason({ code: row.code }).then((res) => {
let housingReason = res.data; let housingReason = res.data;
mattersGetReason({ code: row.code }).then(res => { mattersGetReason({ code: row.code }).then((res) => {
// console.log('最后的审核记录res---',res); // console.log('最后的审核记录res---',res);
let getReason = res.data; let getReason = res.data;
let reason = housingReason.concat(getReason); let reason = housingReason.concat(getReason);
this.recordList = reason.map(item => { this.recordList = reason.map((item) => {
item.stateName = this.getSatusArr1(item.state) item.stateName = this.getSatusArr1(item.state)
? this.getSatusArr1(item.state).stateName ? this.getSatusArr1(item.state).stateName
: "未知状态"; : "未知状态";
...@@ -584,21 +800,21 @@ export default { ...@@ -584,21 +800,21 @@ export default {
this.$confirm(`确定通要发放该申请的补贴吗?`, "提示", { this.$confirm(`确定通要发放该申请的补贴吗?`, "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning",
}) })
.then(() => { .then(() => {
let params = { let params = {
code: row.code, code: row.code,
name: this.userName, name: this.userName,
state: 7, state: 7,
reviewerId: row.reviewerId reviewerId: row.reviewerId,
}; };
mattersHousingUpdate(params).then(res => { mattersHousingUpdate(params).then((res) => {
if (res.success) { if (res.success) {
this.$message.success(`发放成功`); this.$message.success(`发放成功`);
this.init(); this.init();
} else { } else {
this.$message.error(res.msg || '审核失败'); this.$message.error(res.msg || "审核失败");
} }
}); });
}) })
...@@ -612,7 +828,7 @@ export default { ...@@ -612,7 +828,7 @@ export default {
cancelButtonText: "取消", cancelButtonText: "取消",
inputPlaceholder: "请输入原因", inputPlaceholder: "请输入原因",
inputType: "textarea", inputType: "textarea",
type: "warning" type: "warning",
}) })
.then(({ value }) => { .then(({ value }) => {
if (!value) { if (!value) {
...@@ -624,9 +840,9 @@ export default { ...@@ -624,9 +840,9 @@ export default {
name: this.userName, name: this.userName,
state: 8, state: 8,
reviewerId: row.reviewerId, reviewerId: row.reviewerId,
reason: value reason: value,
}; };
mattersHousingReviewerUpdate(params).then(res => { mattersHousingReviewerUpdate(params).then((res) => {
if (res.success) { if (res.success) {
this.$message.success(`初审通过`); this.$message.success(`初审通过`);
this.init(); this.init();
...@@ -644,7 +860,7 @@ export default { ...@@ -644,7 +860,7 @@ export default {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
inputPlaceholder: "请输入原因", inputPlaceholder: "请输入原因",
inputType: "textarea" inputType: "textarea",
}) })
.then(({ value }) => { .then(({ value }) => {
if (!value) { if (!value) {
...@@ -656,10 +872,10 @@ export default { ...@@ -656,10 +872,10 @@ export default {
name: this.userName, name: this.userName,
state: 9, state: 9,
reviewerId: row.reviewerId, reviewerId: row.reviewerId,
reason: value reason: value,
}; };
mattersHousingReviewerUpdate(params).then(res => { mattersHousingReviewerUpdate(params).then((res) => {
console.log("res-", res); console.log("res-", res);
this.$message.success(`初审驳回成功`); this.$message.success(`初审驳回成功`);
...@@ -671,22 +887,22 @@ export default { ...@@ -671,22 +887,22 @@ export default {
}); });
}, },
getSatusArr(state) { getSatusArr(state) {
return this.stateList.filter(item => { return this.stateList.filter((item) => {
return item.state === state; return item.state === state;
})[0]; })[0];
}, },
getSatusArr1(state) { getSatusArr1(state) {
return this.stateList1.filter(item => { return this.stateList1.filter((item) => {
return item.state === state; return item.state === state;
})[0]; })[0];
} },
}, },
created() { created() {
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.init();
} },
}; };
</script> </script>
......
<template> <template>
<div class="policy"> <div class="policy">
<div class="search-wrapper"> <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-form-item label="姓名">
<el-input v-model="searchForm.name" size="small" placeholder="请输入姓名" @keyup.enter.native="onSubmit"></el-input> <el-input
v-model="searchForm.name"
size="small"
placeholder="请输入姓名"
@keyup.enter.native="onSubmit"
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="手机号码"> <el-form-item label="手机号码">
<el-input v-model="searchForm.phone" size="small" placeholder="请输入手机号码" <el-input
@keyup.enter.native="onSubmit"></el-input> v-model="searchForm.phone"
size="small"
placeholder="请输入手机号码"
@keyup.enter.native="onSubmit"
></el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" size="small" @click="onSubmit">查询</el-button> <el-button type="primary" size="small" @click="onSubmit"
>查询</el-button
>
</el-form-item> </el-form-item>
<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 :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-radio-group>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<div class="table-wrapper"> <div class="table-wrapper">
<table-template :tableData="tableData" :tableColumns="tableColumns" :loading="loading" :pagination="pagination" <table-template
@Jump="jumpPage"> :tableData="tableData"
:tableColumns="tableColumns"
:loading="loading"
:pagination="pagination"
@Jump="jumpPage"
>
<el-table-column slot="housingType" label="事项类型" align="center"> <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" key="stateName" prop="stateName" label="状态" align="center"> <el-table-column
width="120"
key="stateName"
prop="stateName"
label="状态"
align="center"
>
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag :type="scope.row.type">{{ scope.row.stateName }}</el-tag> <el-tag :type="scope.row.type">{{ scope.row.stateName }}</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> <el-button type="primary" size="mini" round @click="view(scope.row)"
<el-button type="primary" size="mini" round @click="record(scope.row)">记录</el-button> >查看</el-button
>
<el-button
type="primary"
size="mini"
round
@click="record(scope.row)"
>记录</el-button
>
<el-button
type="danger"
size="mini"
round
v-if="
scope.row.state === 6 ||
scope.row.state === 2 ||
scope.row.state === 3 ||
scope.row.state === 4
"
@click="revocationHandle(scope.row)"
>撤回</el-button
>
<!-- 待复审的单子有通过拒绝--> <!-- 待复审的单子有通过拒绝-->
<template v-if="scope.row.state === 1"> <template v-if="scope.row.state === 1">
<el-button type="success" size="mini" round @click="pass(scope.row)">复审通过</el-button> <el-button
<el-button type="danger" size="mini" round @click="deny(scope.row)">复审拒绝</el-button> type="success"
size="mini"
round
@click="pass(scope.row)"
>复审通过</el-button
>
<el-button
type="danger"
size="mini"
round
@click="deny(scope.row)"
>复审拒绝</el-button
>
</template> </template>
<template v-if="scope.row.state === 2"> <template v-if="scope.row.state === 2">
<el-button type="success" size="mini" round @click="passFinal(scope.row)">终审通过</el-button> <el-button
<el-button type="danger" size="mini" round @click="deny(scope.row)">终审拒绝</el-button> type="success"
size="mini"
round
@click="passFinal(scope.row)"
>终审通过</el-button
>
<el-button
type="danger"
size="mini"
round
@click="deny(scope.row)"
>终审拒绝</el-button
>
</template> </template>
<el-button v-if=" <el-button
v-if="
scope.row.attachedFileMark === true && scope.row.attachedFileMark === true &&
searchForm.departmentCode === '10000027' searchForm.departmentCode === '10000027'
" type="info" size="mini" round @click="viewUrl(scope.row)">查看附件</el-button> "
type="info"
size="mini"
round
@click="viewUrl(scope.row)"
>查看附件</el-button
>
</template> </template>
</el-table-column> </el-table-column>
</table-template> </table-template>
</div> </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"> <div class="content">
<!-- 新增start --> <!-- 新增start -->
<el-table :data="totalList" style="width: 100%"> <el-table :data="totalList" style="width: 100%">
...@@ -66,18 +162,41 @@ ...@@ -66,18 +162,41 @@
</el-table> </el-table>
<div class="cell"> <div class="cell">
<p class="label">是否享受过相关政策</p> <p class="label">是否享受过相关政策</p>
<p :class="['value', viewDetail.enjoyFlag == true ? 'value2' : 'value1']">{{ viewDetail.enjoyFlag ? '否' : '是' <p
}}</p> :class="[
'value',
viewDetail.enjoyFlag == true ? 'value2' : 'value1',
]"
>
{{ viewDetail.enjoyFlag ? "否" : "是" }}
</p>
</div> </div>
<div class="cell"> <div class="cell">
<p class="label">市契税系统</p> <p class="label">市契税系统</p>
<p class="value">{{ viewDetail.tradeStatus === 0 ? '未支付' : viewDetail.tradeStatus === 1 ? '已支付' : <p class="value">
viewDetail.tradeStatus === 2 ? '不予发放' : '未审核' }}</p> {{
viewDetail.tradeStatus === 0
? "未支付"
: viewDetail.tradeStatus === 1
? "已支付"
: viewDetail.tradeStatus === 2
? "不予发放"
: "未审核"
}}
</p>
</div> </div>
<!-- 新增end --> <!-- 新增end -->
<div class="cell"> <div class="cell">
<p class="label">事项类型</p> <p class="label">事项类型</p>
<p class="value">{{ viewDetail.housingType == 2 ? '住房' : viewDetail.housingType == 3 ? '商办' : '-' }}</p> <p class="value">
{{
viewDetail.housingType == 2
? "住房"
: viewDetail.housingType == 3
? "商办"
: "-"
}}
</p>
</div> </div>
<div class="cell"> <div class="cell">
<p class="label">事项名称</p> <p class="label">事项名称</p>
...@@ -143,61 +262,100 @@ ...@@ -143,61 +262,100 @@
<p class="label">所属银行</p> <p class="label">所属银行</p>
<p class="value">{{ viewDetail.bank }}</p> <p class="value">{{ viewDetail.bank }}</p>
</div> </div>
<div class="cell" v-if="viewDetail.bankPicture && viewDetail.bankPicture.length > 0"> <div
class="cell"
v-if="viewDetail.bankPicture && viewDetail.bankPicture.length > 0"
>
<p class="label">银行卡照片</p> <p class="label">银行卡照片</p>
<p class="value"> <p class="value">
<el-image v-for="(item, index) in viewDetail.bankPicture" :key="index" <el-image
style="width: 100px; height: 100px; margin-right: 10px" :src="item.picture" :z-index="7777777" v-for="(item, index) in viewDetail.bankPicture"
:preview-src-list="[item.picture]"> :key="index"
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" v-if="viewDetail.idCardPicture && viewDetail.idCardPicture.length > 0"> <div
class="cell"
v-if="viewDetail.idCardPicture && viewDetail.idCardPicture.length > 0"
>
<p class="label">身份证照片</p> <p class="label">身份证照片</p>
<p class="value"> <p class="value">
<el-image v-for="(item, index) in viewDetail.idCardPicture" :key="index" <el-image
style="width: 100px; height: 100px; margin-right: 10px" :src="item.picture" :z-index="7777777" v-for="(item, index) in viewDetail.idCardPicture"
:preview-src-list="[item.picture]"> :key="index"
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">商品房买卖合同3张</p> <p class="label">商品房买卖合同3张</p>
<p class="value"> <p class="value">
<el-image v-for="(item, index) in viewDetail.contract" :key="index" <el-image
style="width: 100px; height: 100px; margin-right: 10px" :src="item.picture" :z-index="7777777" v-for="(item, index) in viewDetail.contract"
:preview-src-list="[item.picture]"> :key="index"
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 style="width: 100px; height: 100px" :src="viewDetail.certificate" :z-index="7777777" <el-image
:preview-src-list="[viewDetail.certificate]"> style="width: 100px; height: 100px"
: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 style="width: 100px; height: 100px" :src="viewDetail.voucher" :z-index="7777777" <el-image
:preview-src-list="[viewDetail.voucher]"> style="width: 100px; height: 100px"
: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 v-for="(item, index) in viewDetail.labour" :key="index" <el-image
style="width: 100px; height: 100px; margin-right: 10px" :src="item.picture" :z-index="7777777" v-for="(item, index) in viewDetail.labour"
:preview-src-list="[item.picture]"> :key="index"
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 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="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">
...@@ -212,19 +370,42 @@ ...@@ -212,19 +370,42 @@
<p v-if="record.length === 0">暂无记录~</p> <p v-if="record.length === 0">暂无记录~</p>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog title="终审通过" :visible.sync="finalShow" width="500px" :close-on-press-escape="false"> <el-dialog
title="终审通过"
:visible.sync="finalShow"
width="500px"
:close-on-press-escape="false"
>
<div class="content"> <div class="content">
<div class="cell1"> <div class="cell1">
<p class="label" style="margin: 0 0 10px 0">请输入原因:</p> <p class="label" style="margin: 0 0 10px 0">请输入原因:</p>
<el-input type="textarea" placeholder="请输入通过原因" v-model="textarea" maxlength="50" show-word-limit></el-input> <el-input
type="textarea"
placeholder="请输入通过原因"
v-model="textarea"
maxlength="50"
show-word-limit
></el-input>
</div> </div>
<div class="cell1"> <div class="cell1">
<p class="label">请上传附件:</p> <p class="label">请上传附件:</p>
<el-upload class="upload-demo" name="file" action="string" :limit="1" :show-file-list="true" <el-upload
:on-remove="handleRemove" :on-error="handleError" :on-exceed="handleExceed" ref="dmtUploadFile" class="upload-demo"
:file-list="fileList" :http-request="uploadFile"> name="file"
action="string"
:limit="1"
:show-file-list="true"
:on-remove="handleRemove"
:on-error="handleError"
:on-exceed="handleExceed"
ref="dmtUploadFile"
:file-list="fileList"
:http-request="uploadFile"
>
<el-button size="small" type="primary">点击上传</el-button> <el-button size="small" type="primary">点击上传</el-button>
<div slot="tip" class="el-upload__tip" style="color: #F56C6C">支持上传jpg/png/doc/docx/xls/xlsx/pdf等文件</div> <div slot="tip" class="el-upload__tip" style="color: #f56c6c">
支持上传jpg/png/doc/docx/xls/xlsx/pdf等文件
</div>
</el-upload> </el-upload>
</div> </div>
</div> </div>
...@@ -233,28 +414,66 @@ ...@@ -233,28 +414,66 @@
<el-button type="primary" @click="passFinal1">确 定</el-button> <el-button type="primary" @click="passFinal1">确 定</el-button>
</span> </span>
</el-dialog> </el-dialog>
<el-dialog title="查看附件" :visible.sync="showUrl" width="500px" :close-on-press-escape="false"> <el-dialog
<div style="margin: 0 0 0 10px;font-weight: 700;">图片附件:</div> title="查看附件"
<div class="content" style="display:flex;flex-wrap:wrap;" v-if="pictureUrlList.length > 0"> :visible.sync="showUrl"
width="500px"
:close-on-press-escape="false"
>
<div style="margin: 0 0 0 10px; font-weight: 700">图片附件:</div>
<div
class="content"
style="display: flex; flex-wrap: wrap"
v-if="pictureUrlList.length > 0"
>
<div v-for="(item, index) in pictureUrlList" :key="index"> <div v-for="(item, index) in pictureUrlList" :key="index">
<el-image style="width: 95px; height: 95px; margin: 10px;" :src="item.file" <el-image
:preview-src-list="[item.file]"></el-image> style="width: 95px; height: 95px; margin: 10px"
:src="item.file"
:preview-src-list="[item.file]"
></el-image>
</div> </div>
</div> </div>
<div class="content" style="display:flex;justify-content: center;" v-if="pictureUrlList.length == 0"> <div
class="content"
style="display: flex; justify-content: center"
v-if="pictureUrlList.length == 0"
>
<el-empty :image-size="50"></el-empty> <el-empty :image-size="50"></el-empty>
</div> </div>
<div style="margin: 0 0 0 10px;font-weight: 700;">文件附件:</div> <div style="margin: 0 0 0 10px; font-weight: 700">文件附件:</div>
<div class="content" style="display:flex;flex-direction:column;flex-wrap:wrap;" v-if="fileUrlList.length > 0"> <div
<div v-for="(item, index) in fileUrlList" :key="index" class="content"
style="margin: 10px 10px 0 10px; display:flex; align-items:center; justify-content: space-between;"> style="display: flex; flex-direction: column; flex-wrap: wrap"
<p class="label" style="margin: 0;text-align:center;">{{ item.fileExplain }}</p> v-if="fileUrlList.length > 0"
<el-button size="mini" type="primary" @click=" >
download(item.file) <div
" class="down-text">下载附件</el-button> v-for="(item, index) in fileUrlList"
:key="index"
style="
margin: 10px 10px 0 10px;
display: flex;
align-items: center;
justify-content: space-between;
"
>
<p class="label" style="margin: 0; text-align: center">
{{ item.fileExplain }}
</p>
<el-button
size="mini"
type="primary"
@click="download(item.file)"
class="down-text"
>下载附件</el-button
>
</div> </div>
</div> </div>
<div class="content" style="display:flex;justify-content: center;" v-if="fileUrlList.length == 0"> <div
class="content"
style="display: flex; justify-content: center"
v-if="fileUrlList.length == 0"
>
<el-empty :image-size="50"></el-empty> <el-empty :image-size="50"></el-empty>
</div> </div>
</el-dialog> </el-dialog>
...@@ -277,7 +496,8 @@ import { ...@@ -277,7 +496,8 @@ import {
mattersHousingGet, mattersHousingGet,
mattersGetReason, mattersGetReason,
mattersHousingReason, mattersHousingReason,
queryAttacheFile queryAttacheFile,
revocation,
} from "@/api/policy"; } from "@/api/policy";
export default { export default {
...@@ -395,7 +615,7 @@ export default { ...@@ -395,7 +615,7 @@ export default {
{ {
state: 9, state: 9,
stateName: "已驳回", stateName: "已驳回",
type: "danger" type: "danger",
}, },
], ],
loading: false, loading: false,
...@@ -418,7 +638,7 @@ export default { ...@@ -418,7 +638,7 @@ export default {
{ {
key: "housingType", key: "housingType",
label: "事项类型", label: "事项类型",
type: "slot" type: "slot",
}, },
{ {
key: "guideName", key: "guideName",
...@@ -442,7 +662,7 @@ export default { ...@@ -442,7 +662,7 @@ export default {
}, },
viewShow: false, viewShow: false,
viewDetail: { viewDetail: {
labour: [] labour: [],
}, },
recordShow: false, recordShow: false,
recordList: [], recordList: [],
...@@ -469,65 +689,79 @@ export default { ...@@ -469,65 +689,79 @@ export default {
}, },
methods: { methods: {
viewUrl(row) { viewUrl(row) {
console.log(row) console.log(row);
queryAttacheFile({ code: row.code }).then((res) => { queryAttacheFile({ code: row.code }).then((res) => {
console.log(res) console.log(res);
if (res.success) { if (res.success) {
this.pictureUrlList = res.data.filter((item) => { this.pictureUrlList = res.data.filter((item) => {
let fileType = item.fileExplain.split(".")[item.fileExplain.split('.').length - 1] let fileType =
return fileType == 'jpg' || fileType == 'jpeg' || fileType == 'png' item.fileExplain.split(".")[
}) item.fileExplain.split(".").length - 1
];
return fileType == "jpg" || fileType == "jpeg" || fileType == "png";
});
this.fileUrlList = res.data.filter((item) => { this.fileUrlList = res.data.filter((item) => {
let fileType = item.fileExplain.split(".")[item.fileExplain.split('.').length - 1] let fileType =
return fileType != 'jpg' && fileType != 'jpeg' && fileType != 'png' item.fileExplain.split(".")[
}) item.fileExplain.split(".").length - 1
console.log(this.pictureUrlList) ];
console.log(this.fileUrlList) return fileType != "jpg" && fileType != "jpeg" && fileType != "png";
this.showUrl = true });
console.log(this.pictureUrlList);
console.log(this.fileUrlList);
this.showUrl = true;
} else { } else {
this.$message.error(res.msg || '查询失败'); this.$message.error(res.msg || "查询失败");
} }
}) });
}, },
download(url) { download(url) {
console.log(url) console.log(url);
let fileType = url.split(".")[url.split('.').length - 1] let fileType = url.split(".")[url.split(".").length - 1];
if (fileType == 'pdf' || fileType == 'PDF') { if (fileType == "pdf" || fileType == "PDF") {
window.open(url) window.open(url);
} else { } else {
window.location.href = url window.location.href = url;
} }
}, },
handleExceed(files, fileList) { handleExceed(files, fileList) {
console.log(files, fileList) console.log(files, fileList);
this.$message.warning(`最多上传1个文件!`); this.$message.warning(`最多上传1个文件!`);
}, },
handleRemove(file, fileList) { handleRemove(file, fileList) {
console.log(file, fileList); console.log(file, fileList);
this.fileUrl1 = this.fileUrl1.filter((item) => { this.fileUrl1 = this.fileUrl1.filter((item) => {
return item.fileExplain != file.name return item.fileExplain != file.name;
}) });
console.log(this.fileUrl1) console.log(this.fileUrl1);
}, },
handleError(err, file, fileList) { handleError(err, file, fileList) {
console.log('err,file,fileList', err, file, fileList) console.log("err,file,fileList", err, file, fileList);
}, },
uploadFile(param) { uploadFile(param) {
const link = document.createElement("a"); const link = document.createElement("a");
link.style.display = "none"; link.style.display = "none";
uploadTalentFile(param.file).then((res) => { uploadTalentFile(param.file)
console.log('res', res); .then((res) => {
console.log("res", res);
if (res.success) { if (res.success) {
this.$message.success(res.msg || "上传成功"); this.$message.success(res.msg || "上传成功");
this.fileUrl1.push({ fileExplain: param.file.name, file: res.data }) this.fileUrl1.push({
fileExplain: param.file.name,
file: res.data,
});
} else { } else {
// 上传失败删除列表展示 // 上传失败删除列表展示
this.$refs.dmtUploadFile.uploadFiles.splice(this.$refs.dmtUploadFile.uploadFiles.indexOf(res), 1); this.$refs.dmtUploadFile.uploadFiles.splice(
console.log(this.$refs.dmtUploadFile.uploadFiles) this.$refs.dmtUploadFile.uploadFiles.indexOf(res),
1
);
console.log(this.$refs.dmtUploadFile.uploadFiles);
this.$message.error(res.msg || "上传失败"); this.$message.error(res.msg || "上传失败");
} }
}).catch((err) => { })
this.fileList = [] .catch((err) => {
this.fileList = [];
this.$message.error(err.msg || "上传失败"); this.$message.error(err.msg || "上传失败");
}); });
}, },
...@@ -552,11 +786,11 @@ export default { ...@@ -552,11 +786,11 @@ export default {
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 = [];
} }
} else { } else {
this.$message.error("网络错误"); this.$message.error("网络错误");
...@@ -582,9 +816,9 @@ export default { ...@@ -582,9 +816,9 @@ export default {
// name: this.userName // name: this.userName
}; };
// 查询四个部门的记录 mattersHousingReason // 查询四个部门的记录 mattersHousingReason
mattersHousingReason(params2).then(res => { mattersHousingReason(params2).then((res) => {
this.examineList = res.data; this.examineList = res.data;
this.examineList.forEach(item => { this.examineList.forEach((item) => {
item.state == 8 ? (item.state = "通过") : (item.state = "拒绝"); item.state == 8 ? (item.state = "通过") : (item.state = "拒绝");
}); });
this.totalList = this.examineList.concat(this.housingList); this.totalList = this.examineList.concat(this.housingList);
...@@ -612,20 +846,16 @@ export default { ...@@ -612,20 +846,16 @@ export default {
this.unitName = res.data.unitName; this.unitName = res.data.unitName;
// }); // });
this.viewDetail = res.data; this.viewDetail = res.data;
if (localStorage.getItem('userName') == 'admin') { if (localStorage.getItem("userName") == "admin") {
this.viewDetail.name = setName(this.viewDetail.name) this.viewDetail.name = setName(this.viewDetail.name);
this.viewDetail.phone = setTel(this.viewDetail.phone) this.viewDetail.phone = setTel(this.viewDetail.phone);
this.viewDetail.idCard = setCertNo(this.viewDetail.idCard) this.viewDetail.idCard = setCertNo(this.viewDetail.idCard);
} }
this.viewDetail.idCardPicture = res.data.pictureList.filter(item => { this.viewDetail.idCardPicture = res.data.pictureList.filter((item) => {
return ( return item.pictureType === 1;
item.pictureType === 1
)
}); });
this.viewDetail.bankPicture = res.data.pictureList.filter((item) => { this.viewDetail.bankPicture = res.data.pictureList.filter((item) => {
return ( return item.pictureType === 8;
item.pictureType === 8
);
}); });
this.viewDetail.contract = res.data.pictureList.filter((item) => { this.viewDetail.contract = res.data.pictureList.filter((item) => {
return ( return (
...@@ -643,7 +873,7 @@ export default { ...@@ -643,7 +873,7 @@ export default {
return item.pictureType === 6; return item.pictureType === 6;
}).picture; }).picture;
this.viewDetail.labour = []; this.viewDetail.labour = [];
res.data.pictureList.map(item => { res.data.pictureList.map((item) => {
if (item.pictureType == 7) { if (item.pictureType == 7) {
return this.viewDetail.labour.push(item); return this.viewDetail.labour.push(item);
} }
...@@ -699,7 +929,7 @@ export default { ...@@ -699,7 +929,7 @@ export default {
Promise.all([ Promise.all([
mattersHousingReason(params2), mattersHousingReason(params2),
get({ talentCode: row.talentCode }), get({ talentCode: row.talentCode }),
mattersHousingGet({ appId: 1234, code: row.code }) mattersHousingGet({ appId: 1234, code: row.code }),
]).then((res) => { ]).then((res) => {
console.log("res------", res); console.log("res------", res);
this.realEstateAddress = res[2].data.realEstateAddress; // 住址 this.realEstateAddress = res[2].data.realEstateAddress; // 住址
...@@ -738,13 +968,25 @@ export default { ...@@ -738,13 +968,25 @@ export default {
"人才购房契税补贴(住宅)申请表" "人才购房契税补贴(住宅)申请表"
); );
} }
}) });
// } // }
}) })
.catch(() => { .catch(() => {
// console.log("取消审核"); // console.log("取消审核");
}); });
}, },
revocationHandle(row) {
revocation({
code: row.code,
}).then((res) => {
if (res.success) {
this.$message.success("撤回成功");
this.init();
} else {
this.$message.warning(res.msg || "撤回失败");
}
});
},
// 填充模板代码 --- // 填充模板代码 ---
initTemplate(res, row, value, tepname) { initTemplate(res, row, value, tepname) {
// console.log('res-----',res) // console.log('res-----',res)
...@@ -841,7 +1083,7 @@ export default { ...@@ -841,7 +1083,7 @@ export default {
that.$message.success(`复审通过`); that.$message.success(`复审通过`);
that.init(); that.init();
} else { } else {
that.$message.error(res.msg || '审核失败'); that.$message.error(res.msg || "审核失败");
} }
}); });
}); });
...@@ -851,11 +1093,11 @@ export default { ...@@ -851,11 +1093,11 @@ export default {
}); });
}, },
passFinal(row) { passFinal(row) {
console.log(row) console.log(row);
this.rowDetail = row this.rowDetail = row;
this.fileList = [] this.fileList = [];
this.fileUrl1 = [] this.fileUrl1 = [];
this.finalShow = true this.finalShow = true;
}, },
passFinal1() { passFinal1() {
if (!this.textarea) { if (!this.textarea) {
...@@ -872,15 +1114,15 @@ export default { ...@@ -872,15 +1114,15 @@ export default {
state: 3, state: 3,
reason: this.textarea, reason: this.textarea,
reviewerId: this.rowDetail.reviewerId, reviewerId: this.rowDetail.reviewerId,
attachedPictureUploadDTO: this.fileUrl1 attachedPictureUploadDTO: this.fileUrl1,
}; };
mattersHousingUpdate(params).then((res) => { mattersHousingUpdate(params).then((res) => {
if (res.success) { if (res.success) {
this.finalShow = false this.finalShow = false;
this.$message.success(`资料终审通过`); this.$message.success(`资料终审通过`);
this.init(); this.init();
} else { } else {
this.$message.error(res.msg || '审核失败'); this.$message.error(res.msg || "审核失败");
} }
}); });
}, },
...@@ -925,7 +1167,7 @@ export default { ...@@ -925,7 +1167,7 @@ export default {
}, },
}, },
created() { created() {
this.userName = localStorage.getItem('userName'); this.userName = localStorage.getItem("userName");
// this.searchForm.departmentCode = getQueryString("departmentCode") || ''; //原始 // this.searchForm.departmentCode = getQueryString("departmentCode") || ''; //原始
this.searchForm.departmentCode = this.$route.query.departmentCode; // 修改 this.searchForm.departmentCode = this.$route.query.departmentCode; // 修改
this.init(); this.init();
......
...@@ -79,6 +79,19 @@ ...@@ -79,6 +79,19 @@
@click="record(scope.row)" @click="record(scope.row)"
>记录</el-button >记录</el-button
> >
<el-button
type="danger"
size="mini"
round
v-if="
scope.row.state === 6 ||
scope.row.state === 2 ||
scope.row.state === 3 ||
scope.row.state === 4
"
@click="revocationHandle(scope.row)"
>撤回</el-button
>
<!-- 待复审的单子有通过拒绝--> <!-- 待复审的单子有通过拒绝-->
<!-- <template v-if="scope.row.state === 1"> <!-- <template v-if="scope.row.state === 1">
<el-button <el-button
...@@ -360,6 +373,7 @@ import { ...@@ -360,6 +373,7 @@ import {
mattersGetReason, mattersGetReason,
mattersHousingReason, mattersHousingReason,
// dtSubsidy // dtSubsidy
revocation,
} from "@/api/policy"; } from "@/api/policy";
export default { export default {
...@@ -724,6 +738,18 @@ export default { ...@@ -724,6 +738,18 @@ export default {
// console.log("取消审核"); // console.log("取消审核");
}); });
}, },
revocationHandle(row) {
revocation({
code: row.code,
}).then((res) => {
if (res.success) {
this.$message.success("撤回成功");
this.init();
} else {
this.$message.warning(res.msg || "撤回失败");
}
});
},
passData(row) { passData(row) {
this.$prompt(`确定通过该申请的资料审核吗?`, "提示", { this.$prompt(`确定通过该申请的资料审核吗?`, "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
......
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