Commit 775be40d by swl

gx

parent fd44d77c
No preview for this file type
File added
const domain = {
// dev: "http://192.168.3.87:8881", // 姚镇接口
dev: "http://192.168.3.87:8881", // 姚镇接口
// dev: "http://81.69.231.72:8881", // 姚镇接口
dev: "http://81.69.231.72:8881", // 测试接口
// dev: "http://81.69.231.72:8881", // 测试接口
// dev: "https://exam.smart-zj.cn:9100/smartExam/", // 新正式接口
};
// 腾讯地图 key
......
......@@ -5,8 +5,8 @@ import { TokenKey } from "@/utils/auth";
const config = {
// proxy: "https://exam.smart-zj.cn:9100/exam/", // 新线上地址
proxy: "http://81.69.231.72:8881", // 测试地址
// proxy: "http://192.168.3.87:8881/", //本地
// proxy: "http://81.69.231.72:8881", // 测试地址
proxy: "http://192.168.3.87:8881/", //本地
// proxy: "https://exam.smart-zj.cn:9100/smartExam/", // 新正式接口
// proxy: "http://81.69.231.72:9089/", // 测试地址
// proxy1: "http://81.69.231.72:8881/admin-api", // 测试地址
......
<template>
<div class="deedtax-house">
<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
v-model="searchForm.phone"
placeholder="请输入手机号码"
@keyup.enter.native="onSubmit"
>
</el-input>
</el-form-item>
<el-form-item label="不动产坐落辖市区" v-if="this.realEstateArea == '市区'">
<el-select v-model="searchForm.checkArealEstateArea" placeholder="请选择不动产坐落辖市区" @change="onSubmit"
size="medium">
<el-option v-for="item in areaList" :key="item.id" :label="item.label" :value="item.id">
<el-form-item
label="不动产坐落辖市区"
v-if="this.realEstateArea == '市区'"
>
<el-select
v-model="searchForm.checkArealEstateArea"
placeholder="请选择不动产坐落辖市区"
@change="onSubmit"
size="medium"
>
<el-option
v-for="item in areaList"
:key="item.id"
:label="item.label"
:value="item.id"
>
</el-option>
</el-select>
</el-form-item>
......@@ -22,20 +47,30 @@
<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
: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">
<table-template
:tableData="tableData"
:tableColumns="tableColumns"
:loading="loading"
:pagination="pagination"
@Jump="jumpPage"
>
<el-table-column slot="departmentName" label="实施主体" align="center">
<template>
{{
this.$route.query.departmentCode == "10000031" ? this.realEstateArea + '住建局' :
this.realEstateArea + '住建窗口'
this.$route.query.departmentCode == "10000031"
? this.realEstateArea + "住建局"
: this.realEstateArea + "住建窗口"
}}
</template>
</el-table-column>
......@@ -43,36 +78,85 @@
<template slot-scope="scope">
<el-tag type="warning" v-if="scope.row.state == 0">待审核</el-tag>
<el-tag type="warning" v-if="scope.row.state == 1">待复审</el-tag>
<el-tag type="warning" v-if="scope.row.state == 2 || scope.row.state == 3">待退税办理</el-tag>
<el-tag
type="warning"
v-if="scope.row.state == 2 || scope.row.state == 3"
>待退税办理</el-tag
>
<el-tag type="danger" v-if="scope.row.state == 4">已驳回</el-tag>
<el-tag type="success" v-if="scope.row.state == 6">已完成</el-tag>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="380" align="center">
<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 == 1 && searchForm.departmentCode == '10000027'" type="success"
size="mini" round @click="pass(scope.row)">通过
<el-button
v-if="
scope.row.state == 1 && searchForm.departmentCode == '10000027'
"
type="success"
size="mini"
round
@click="pass(scope.row)"
>通过
</el-button>
<el-button v-if="scope.row.state == 1 && searchForm.departmentCode == '10000027'" type="danger"
size="mini" round @click="deny(scope.row)">拒绝
<el-button
v-if="
scope.row.state == 1 && searchForm.departmentCode == '10000027'
"
type="danger"
size="mini"
round
@click="deny(scope.row)"
>拒绝
</el-button>
<el-button v-if="scope.row.flag == true && searchForm.departmentCode == '10000027'" type="info"
size="mini" round @click="drevokeeny(scope.row)">撤销
<el-button
v-if="
scope.row.flag == true &&
searchForm.departmentCode == '10000027'
"
type="info"
size="mini"
round
@click="drevokeeny(scope.row)"
>撤销
</el-button>
<!-- <el-button
v-if="(scope.row.state == 3 || scope.row.state == 2) && searchForm.departmentCode == '10000031' && $route.query.realEstateArea == '句容市'"
type="success" size="mini" round @click="dispatch(scope.row)">退税办理</el-button> -->
<el-button
v-if="scope.row.state != 0 && scope.row.state != 4 && scope.row.fileUrl && searchForm.departmentCode == '10000027'"
type="success" size="mini" round @click="download(scope.row.fileUrl)">下载申请表</el-button>
v-if="
scope.row.state != 0 &&
scope.row.state != 4 &&
scope.row.fileUrl &&
searchForm.departmentCode == '10000027'
"
type="success"
size="mini"
round
@click="download(scope.row.fileUrl)"
>下载申请表</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%">
......@@ -81,13 +165,19 @@
<el-table-column prop="state" label="审核状态" width="180">
</el-table-column>
<el-table-column prop="reason" label="审核意见"> </el-table-column>
<el-table-column prop="createTime" label="审核时间"> </el-table-column>
<el-table-column prop="createTime" label="审核时间">
</el-table-column>
</el-table>
<div class="cell">
<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>
<!-- 新增功能end -->
<div class="cell">
......@@ -98,8 +188,9 @@
<p class="label">实施主体</p>
<p class="value">
{{
this.$route.query.departmentCode == "10000031" ? this.realEstateArea + '住建局' :
this.realEstateArea + '住建窗口'
this.$route.query.departmentCode == "10000031"
? this.realEstateArea + "住建局"
: this.realEstateArea + "住建窗口"
}}
</p>
</div>
......@@ -126,9 +217,14 @@
<div class="cell">
<p class="label">身份证照片</p>
<p class="value">
<el-image v-for="(item, index) in viewDetail.idCardPicture" :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.idCardPicture"
: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>
......@@ -143,23 +239,39 @@
<div class="cell">
<p class="label">银行卡照片</p>
<p class="value">
<el-image v-for="(item, index) in viewDetail.bankCardPicture" :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.bankCardPicture"
: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" v-if="viewDetail.deedBillCode && !viewDetail.secondDeedBillCode">NO.{{
viewDetail.deedBillCode
}}</p>
<p class="value" v-if="!viewDetail.deedBillCode && viewDetail.secondDeedBillCode">NO.{{
<p
class="value"
v-if="viewDetail.deedBillCode && !viewDetail.secondDeedBillCode"
>
NO.{{ viewDetail.deedBillCode }}
</p>
<p
class="value"
v-if="!viewDetail.deedBillCode && viewDetail.secondDeedBillCode"
>
NO.{{ viewDetail.secondDeedBillCode }}
</p>
<p
class="value"
v-if="viewDetail.deedBillCode && viewDetail.secondDeedBillCode"
>
NO.{{ viewDetail.deedBillCode }}、NO.{{
viewDetail.secondDeedBillCode
}}</p>
<p class="value" v-if="viewDetail.deedBillCode && viewDetail.secondDeedBillCode">NO.{{
viewDetail.deedBillCode
}}、NO.{{ viewDetail.secondDeedBillCode }}</p>
}}
</p>
</div>
<div class="cell">
<p class="label">缴纳契税金额(元)</p>
......@@ -192,33 +304,53 @@
<div class="cell">
<p class="label">不动产权证书</p>
<p class="value">
<el-image v-for="(item, index) in viewDetail.certificate" :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.certificate"
: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">商品房买卖合同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 v-for="(item, index) in viewDetail.voucher" :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.voucher"
: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" v-if="recordList[0]">
<div class="cell" v-for="(item, index) in recordList" :key="index">
<p class="label" style="margin-right: 20px">
......@@ -233,13 +365,23 @@
<p v-if="record.length === 0">暂无记录~</p>
</div>
</el-dialog>
<el-dialog title="改派部门" :visible.sync="reassignmentShow" width="600px" :close-on-press-escape="false"
:before-close="closeDialog">
<el-dialog
title="改派部门"
:visible.sync="reassignmentShow"
width="600px"
:close-on-press-escape="false"
:before-close="closeDialog"
>
<el-form label-width="120px" :model="params">
<el-row>
<el-form-item label="改派部门">
<el-cascader v-model="params.checkArea" placeholder="请选择部门" :options="checkAreaList"
:show-all-levels="false" @change="handleChange">
<el-cascader
v-model="params.checkArea"
placeholder="请选择部门"
:options="checkAreaList"
:show-all-levels="false"
@change="handleChange"
>
</el-cascader>
</el-form-item>
</el-row>
......@@ -258,7 +400,14 @@ import { changeList, setName, setTel, setCertNo } from "@/utils";
// import { $fileUrl } from "@/utils/mix";
// import { getTempUrl } from "@/api/exportFileUrl";
import { queryListDeedTax, queryDeedTaxDetailInfo, queryDeedTaxRecord, updateDeedTaxState, mainRevocation, updateCheckArea } from '@/api/deedtax'
import {
queryListDeedTax,
queryDeedTaxDetailInfo,
queryDeedTaxRecord,
updateDeedTaxState,
mainRevocation,
updateCheckArea,
} from "@/api/deedtax";
export default {
components: { TableTemplate },
......@@ -270,7 +419,7 @@ export default {
phone: "",
state: "",
departmentCode: "",
checkArealEstateArea: ""
checkArealEstateArea: "",
},
stateList: [
{
......@@ -318,43 +467,43 @@ export default {
{
state: 0,
stateName: "待审核",
type: "warning"
type: "warning",
},
{
state: 1,
stateName: "待复审",
type: "warning"
type: "warning",
},
{
state: 6,
stateName: "已完成",
type: "warning"
type: "warning",
},
{
state: 2,
stateName: "资料审核",
type: "warning"
type: "warning",
},
{
state: 3,
stateName: "卡号确认",
type: "success"
type: "success",
},
{
state: 4,
stateName: "已驳回",
type: "danger"
type: "danger",
},
{
state: 8,
stateName: "初审通过",
type: "success"
type: "success",
},
{
state: 9,
stateName: "已驳回",
type: "danger"
}
type: "danger",
},
],
loading: false,
tableData: [],
......@@ -362,27 +511,27 @@ export default {
{
key: "code",
label: "申请编号",
width: 200
width: 200,
},
{
key: "name",
label: "企业联系人",
width: 150
width: 150,
},
{
key: "phone",
label: "手机号",
width: 150
width: 150,
},
{
key: "guideName",
label: "事项名称",
width: 150
width: 150,
},
{
key: "realEstateArea",
label: "不动产坐落辖市区",
width: 150
width: 150,
},
{
key: "departmentName",
......@@ -393,13 +542,13 @@ export default {
{
key: "createTime",
label: "更新时间",
width: 160
}
width: 160,
},
],
pagination: {
total: 0,
pageSize: 10,
currentPage: 1
currentPage: 1,
},
viewShow: false,
viewDetail: {},
......@@ -412,47 +561,53 @@ export default {
realEstateArea: null,
reassignmentShow: false,
params: {
code: '',
checkArea: '',
departmentCode: '10000031'
code: "",
checkArea: "",
departmentCode: "10000031",
},
checkAreaList: [
{
label: '市区',
value: '市区',
label: "市区",
value: "市区",
children: [
{
label: '京口区',
value: '京口区',
}, {
label: '润州区',
value: '润州区',
}, {
label: '镇江高新区',
value: '镇江高新区',
}, {
label: '镇江新区-丁卯片区',
value: '镇江新区-丁卯片区',
}
]
}, {
label: '丹徒区',
value: '丹徒区'
}, {
label: '镇江新区',
value: '镇江新区',
label: "京口区",
value: "京口区",
},
{
label: "润州区",
value: "润州区",
},
{
label: "镇江高新区",
value: "镇江高新区",
},
{
label: "镇江新区-丁卯片区",
value: "镇江新区-丁卯片区",
},
],
},
{
label: "丹徒区",
value: "丹徒区",
},
{
label: "镇江新区",
value: "镇江新区",
children: [
{
label: '大港片区',
value: '大港片区',
}
]
}, {
label: '句容市',
value: '句容市'
}
label: "大港片区",
value: "大港片区",
},
],
departmentName: '',
},
{
label: "句容市",
value: "句容市",
},
],
departmentName: "",
areaList: [
{
id: "",
......@@ -492,19 +647,21 @@ export default {
watch: {
$route() {
if (this.$route) {
this.userName = localStorage.getItem('userName');
this.userName = localStorage.getItem("userName");
// 10000027 人才窗口code 10000031 市财政局code退税办理
this.searchForm.departmentCode = this.$route.query.departmentCode;
// realEstateArea: 市区、镇江新区、丹徒区
this.realEstateArea = this.$route.query.realEstateArea ? this.$route.query.realEstateArea : null
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.departmentName = this.$route.query.departmentName;
this.searchForm.name = "";
this.searchForm.phone = "";
this.searchForm.state = "";
this.init();
}
}
},
},
methods: {
init() {
......@@ -518,23 +675,23 @@ export default {
pageNum: this.pagination.currentPage,
pageSize: this.pagination.pageSize,
checkArea: this.realEstateArea,
checkArealEstateArea: this.searchForm.checkArealEstateArea
checkArealEstateArea: this.searchForm.checkArealEstateArea,
};
queryListDeedTax(parmas).then(res => {
queryListDeedTax(parmas).then((res) => {
this.loading = false;
if (res.success) {
this.pagination.total = 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.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 = []
this.tableData = [];
}
}
});
......@@ -565,15 +722,15 @@ export default {
// },
download(url) {
// this.changeUrl(url)
if (url.indexOf('81.69.44.115') !== -1) {
if (url.indexOf("81.69.44.115") !== -1) {
// 测试环境
window.location.href = url
window.location.href = url;
} else {
// 生产环境
// http跨域 ---> https
// let a = url.substr(0, 4) + 's' + url.substr(4)
// window.location.href = a
window.location.href = url
window.location.href = url;
}
},
view(row) {
......@@ -581,7 +738,7 @@ export default {
code: row.code,
// matterType: row.matterType
};
queryDeedTaxDetailInfo(params).then(res => {
queryDeedTaxDetailInfo(params).then((res) => {
// let arr = []
// res.data.pictures.forEach((item) => {
// let params = {
......@@ -594,54 +751,65 @@ export default {
// let arr1 = []
// arr1 = res1.map((item, index) => ({ picture: item.data, pictureType: res.data.pictures[index].pictureType }))
this.viewDetail = res.data;
if (localStorage.getItem('userName') == 'admin') {
this.viewDetail.name = setName(this.viewDetail.name)
this.viewDetail.phone = setTel(this.viewDetail.phone)
this.viewDetail.idCard = setCertNo(this.viewDetail.idCard)
if (localStorage.getItem("userName") == "admin") {
this.viewDetail.name = setName(this.viewDetail.name);
this.viewDetail.phone = setTel(this.viewDetail.phone);
this.viewDetail.idCard = setCertNo(this.viewDetail.idCard);
}
this.viewDetail.idCardPicture = res.data.pictures.filter(item => item.pictureType === 1);
this.viewDetail.bankCardPicture = res.data.pictures.filter(item => item.pictureType === 5);
this.viewDetail.contract = res.data.pictures.filter(item => item.pictureType === 2);
this.viewDetail.certificate = res.data.pictures.filter(item => item.pictureType === 3);
this.viewDetail.voucher = res.data.pictures.filter(item => (item.pictureType === 4 || item.pictureType === 6));
this.viewDetail.idCardPicture = res.data.pictures.filter(
(item) => item.pictureType === 1
);
this.viewDetail.bankCardPicture = res.data.pictures.filter(
(item) => item.pictureType === 5
);
this.viewDetail.contract = res.data.pictures.filter(
(item) => item.pictureType === 2
);
this.viewDetail.certificate = res.data.pictures.filter(
(item) => item.pictureType === 3
);
this.viewDetail.voucher = res.data.pictures.filter(
(item) => item.pictureType === 4 || item.pictureType === 6
);
this.viewShow = true;
// })
let reason = []
let reason = [];
res.data.recordVos.map((item) => {
if (item) {
reason.push(item)
reason.push(item);
}
});
this.recordList = reason.map(item => {
this.recordList = reason.map((item) => {
item.stateName = this.getSatusArr1(item.state)
? this.getSatusArr1(item.state).stateName
: "未知状态";
return item;
});
this.examineList = this.recordList;
this.examineList.forEach(item => {
(item.state != 4 && item.state != 9) ? (item.state = "通过") : (item.state = "拒绝");
this.examineList.forEach((item) => {
item.state != 4 && item.state != 9
? (item.state = "通过")
: (item.state = "拒绝");
});
this.totalList = this.examineList;
})
});
},
record(row) {
queryDeedTaxRecord({ code: row.code }).then((res) => {
let reason = []
let reason = [];
res.data.map((item) => {
if (item) {
reason.push(item)
reason.push(item);
}
});
this.recordList = reason.map(item => {
this.recordList = reason.map((item) => {
item.stateName = this.getSatusArr1(item.state)
? this.getSatusArr1(item.state).stateName
: "未知状态";
return item;
});
this.recordShow = true;
})
});
},
dispatch(row) {
this.$prompt(`确定通过该申请的退税办理吗?`, "提示", {
......@@ -649,7 +817,7 @@ export default {
cancelButtonText: "取消",
inputPlaceholder: "请输入退税金额(万元)",
inputType: "textarea",
type: "warning"
type: "warning",
})
.then(({ value }) => {
if (!value) {
......@@ -667,9 +835,9 @@ export default {
// name: '市财政局',
state: 6,
reviewerId: row.reviewerId,
reason: '退税办理通过'
reason: "退税办理通过",
};
updateDeedTaxState(params).then(res => {
updateDeedTaxState(params).then((res) => {
if (res.success) {
this.$message.success(`退税办理成功`);
this.init();
......@@ -686,14 +854,15 @@ export default {
cancelButtonText: "取消",
inputPlaceholder: "请输入原因",
inputType: "textarea",
type: "warning"
type: "warning",
})
.then(({ value }) => {
if (!value) {
this.$message.error("未输入原因");
return;
}
queryDeedTaxDetailInfo({ code: row.code }).then(res => {
queryDeedTaxDetailInfo({ code: row.code }).then((res) => {
if (res.success) {
let params = {
code: row.code,
......@@ -706,9 +875,9 @@ export default {
// name: '人才窗口',
state: 2,
reviewerId: row.reviewerId,
reason: value
reason: value,
};
updateDeedTaxState(params).then(res => {
updateDeedTaxState(params).then((res) => {
if (res.success) {
this.$message.success(`复审通过`);
this.init();
......@@ -721,11 +890,15 @@ export default {
// })
// }
} else {
this.$message.warning(res.msg || "该申请已被其他部门驳回,无法审核通过");
this.$message.warning(
res.msg || "该申请已被其他部门驳回,无法审核通过"
);
}
});
} else {
this.$message.warning(res.msg);
}
})
});
})
.catch(() => {
// console.log("取消审核");
......@@ -736,14 +909,14 @@ export default {
confirmButtonText: "确定",
cancelButtonText: "取消",
inputPlaceholder: "请输入原因",
inputType: "textarea"
inputType: "textarea",
})
.then(({ value }) => {
if (!value) {
this.$message.error("未输入原因");
return;
}
queryDeedTaxDetailInfo({ code: row.code }).then(res => {
queryDeedTaxDetailInfo({ code: row.code }).then((res) => {
if (res.success) {
let params = {
code: row.code,
......@@ -755,102 +928,104 @@ export default {
departmentName: this.departmentName,
state: 4,
reviewerId: row.reviewerId,
reason: value
reason: value,
};
updateDeedTaxState(params).then(res => {
console.log(res)
updateDeedTaxState(params).then((res) => {
console.log(res);
this.$message.success(`复审驳回成功`);
this.init();
});
}
})
})
.catch(() => {
});
})
.catch(() => {});
},
drevokeeny(row) {
this.$confirm(`确定撤回该申请的审核结果吗?`, "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
type: "warning",
}).then(() => {
let params = {
code: row.code,
phone: row.phone,
reviewerId: row.reviewerId,
state: row.state
}
state: row.state,
};
mainRevocation(params).then((res) => {
if (res.code == 200 || res.success) {
this.$message.success(res.data || '审核撤回成功');
this.$message.success(res.data || "审核撤回成功");
this.init();
} else {
this.$message.error(res.msg);
this.init();
}
})
})
});
});
},
reassignment(row) {
this.params.code = row.code;
this.params.checkArea = row.checkArea;
this.reassignmentShow = true
this.reassignmentShow = true;
},
closeDialog() {
this.reassignmentShow = false
this.reassignmentShow = false;
this.params = {
code: '',
checkArea: '',
departmentCode: '10000031'
}
code: "",
checkArea: "",
departmentCode: "10000031",
};
},
handleChange(value) {
if (value.length == 2) {
this.params.checkArea = value[1]
this.params.checkArea = value[1];
} else {
this.params.checkArea = value[0]
this.params.checkArea = value[0];
}
},
determine() {
this.$confirm(`确定改派该申请的审核部门吗?`, "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
type: "warning",
}).then(() => {
updateCheckArea(this.params).then((res) => {
if (res.success) {
this.reassignmentShow = false
this.reassignmentShow = false;
this.$message.success(`改派成功`);
this.init();
} else {
this.$message.warning(res.msg || "该申请已被其他部门驳回,无法审核通过");
this.$message.warning(
res.msg || "该申请已被其他部门驳回,无法审核通过"
);
}
})
})
});
});
},
getSatusArr(state) {
return this.stateList.filter(item => {
return this.stateList.filter((item) => {
return item.state === state;
})[0];
},
getSatusArr1(state) {
return this.stateList1.filter(item => {
return this.stateList1.filter((item) => {
return item.state === state;
})[0];
}
},
},
created() {
this.userName = localStorage.getItem('userName');
this.userName = localStorage.getItem("userName");
// 10000027 人才窗口code 10000031 市财政局code退税办理
this.searchForm.departmentCode = this.$route.query.departmentCode;
// realEstateArea: 市区、镇江新区、丹徒区
this.realEstateArea = this.$route.query.realEstateArea ? this.$route.query.realEstateArea : null
this.realEstateArea = this.$route.query.realEstateArea
? this.$route.query.realEstateArea
: null;
// departmentName: 审核部门名称(左侧列表)
this.departmentName = this.$route.query.departmentName
this.departmentName = this.$route.query.departmentName;
this.init();
}
},
};
</script>
......
<template>
<div class="deedtax">
<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
v-model="searchForm.phone"
placeholder="请输入手机号码"
@keyup.enter.native="onSubmit"
>
</el-input>
</el-form-item>
<el-form-item label="不动产坐落辖市区" v-if="
<el-form-item
label="不动产坐落辖市区"
v-if="
this.realEstateArea == '市区' ||
(this.searchForm.departmentCode == '10000032' &&
this.realEstateArea != '句容市')
">
<el-select v-model="searchForm.checkArealEstateArea" placeholder="请选择不动产坐落辖市区" @change="onSubmit" size="medium">
<el-option v-for="item in areaList" :key="item.id" :label="item.label" :value="item.id">
"
>
<el-select
v-model="searchForm.checkArealEstateArea"
placeholder="请选择不动产坐落辖市区"
@change="onSubmit"
size="medium"
>
<el-option
v-for="item in areaList"
:key="item.id"
:label="item.label"
:value="item.id"
>
</el-option>
</el-select>
</el-form-item>
......@@ -23,24 +49,37 @@
<el-button type="primary" @click="onSubmit">查询</el-button>
</el-form-item>
<el-form-item>
<el-button type="primary" v-if="
<el-button
type="primary"
v-if="
this.searchForm.departmentCode == '10000033' ||
this.searchForm.departmentCode == '10000031'
" @click="downLoadShow = true">导出
"
@click="downLoadShow = true"
>导出
</el-button>
</el-form-item>
<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
: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">
<table-template
:tableData="tableData"
:tableColumns="tableColumns"
:loading="loading"
:pagination="pagination"
@Jump="jumpPage"
>
<el-table-column slot="departmentName" label="实施主体" align="center">
<template>
{{ this.$route.query.departmentName }}
......@@ -48,12 +87,18 @@
</el-table-column>
<el-table-column label="状态" align="center">
<template slot-scope="scope">
<el-tag type="warning" v-if="scope.row.reviewerState == 0">待审核</el-tag>
<el-tag type="success" v-if="scope.row.reviewerState == 8">初审通过</el-tag>
<el-tag type="warning" v-if="scope.row.reviewerState == 0"
>待审核</el-tag
>
<el-tag type="success" v-if="scope.row.reviewerState == 8"
>初审通过</el-tag
>
<!-- <el-tag type="warning" v-if="scope.row.state == 1">待复审</el-tag>
<el-tag type="warning" v-if="scope.row.state == 2">待用户确认</el-tag>
<el-tag type="warning" v-if="scope.row.state == 3">待退税办理</el-tag> -->
<el-tag type="danger" v-if="scope.row.reviewerState == 9">已驳回</el-tag>
<el-tag type="danger" v-if="scope.row.reviewerState == 9"
>已驳回</el-tag
>
<!-- <el-tag type="info" v-if="scope.row.state == 5">已撤销</el-tag> -->
<!-- <el-tag type="warning" v-if="scope.row.state == 6">资料审核</el-tag> -->
<!-- <el-tag type="success" v-if="scope.row.state == 6">已完成</el-tag> -->
......@@ -61,28 +106,63 @@
</el-table-column>
<el-table-column fixed="right" label="操作" width="350" align="center">
<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.reviewerState == 0 && scope.row.state == 0" type="success" size="mini" round
@click="pass(scope.row)">通过
<el-button
v-if="scope.row.reviewerState == 0 && scope.row.state == 0"
type="success"
size="mini"
round
@click="pass(scope.row)"
>通过
</el-button>
<el-button v-if="scope.row.reviewerState == 0 && scope.row.state == 0" type="danger" size="mini" round
@click="deny(scope.row)">拒绝
<el-button
v-if="scope.row.reviewerState == 0 && scope.row.state == 0"
type="danger"
size="mini"
round
@click="deny(scope.row)"
>拒绝
</el-button>
<el-button v-if="
<el-button
v-if="
(scope.row.reviewerState == 9 && scope.row.state == 4) ||
((scope.row.state == 0 || scope.row.state == 1) &&
scope.row.reviewerState == 8)
" type="info" size="mini" round @click="drevokeeny(scope.row)">撤销
"
type="info"
size="mini"
round
@click="drevokeeny(scope.row)"
>撤销
</el-button>
<el-button v-if="scope.row.state == 0" type="warning" size="mini" round @click="reassignment(scope.row)">改派
<el-button
v-if="scope.row.state == 0"
type="warning"
size="mini"
round
@click="reassignment(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%">
......@@ -96,10 +176,12 @@
</el-table>
<div class="cell">
<p class="label">是否享受过相关政策</p>
<p :class="[
<p
:class="[
'value',
viewDetail.enjoyFlag == true ? 'value2' : 'value1',
]">
]"
>
{{ viewDetail.enjoyFlag ? "否" : "是" }}
</p>
</div>
......@@ -135,9 +217,14 @@
<div class="cell">
<p class="label">身份证照片</p>
<p class="value">
<el-image v-for="(item, index) in viewDetail.idCardPicture" :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.idCardPicture"
: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>
......@@ -152,21 +239,35 @@
<div class="cell">
<p class="label">银行卡照片</p>
<p class="value">
<el-image v-for="(item, index) in viewDetail.bankCardPicture" :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.bankCardPicture"
: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" v-if="viewDetail.deedBillCode && !viewDetail.secondDeedBillCode">
<p
class="value"
v-if="viewDetail.deedBillCode && !viewDetail.secondDeedBillCode"
>
NO.{{ viewDetail.deedBillCode }}
</p>
<p class="value" v-if="!viewDetail.deedBillCode && viewDetail.secondDeedBillCode">
<p
class="value"
v-if="!viewDetail.deedBillCode && viewDetail.secondDeedBillCode"
>
NO.{{ viewDetail.secondDeedBillCode }}
</p>
<p class="value" v-if="viewDetail.deedBillCode && viewDetail.secondDeedBillCode">
<p
class="value"
v-if="viewDetail.deedBillCode && viewDetail.secondDeedBillCode"
>
NO.{{ viewDetail.deedBillCode }}、NO.{{
viewDetail.secondDeedBillCode
}}
......@@ -215,33 +316,53 @@
<div class="cell">
<p class="label">不动产权证书</p>
<p class="value">
<el-image v-for="(item, index) in viewDetail.certificate" :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.certificate"
: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">商品房买卖合同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 v-for="(item, index) in viewDetail.voucher" :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.voucher"
: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" v-if="recordList[0]">
<div class="cell" v-for="(item, index) in recordList" :key="index">
<p class="label" style="margin-right: 20px">
......@@ -256,13 +377,23 @@
<p v-if="record.length === 0">暂无记录~</p>
</div>
</el-dialog>
<el-dialog title="改派部门" :visible.sync="reassignmentShow" width="600px" :close-on-press-escape="false"
:before-close="closeDialog">
<el-dialog
title="改派部门"
:visible.sync="reassignmentShow"
width="600px"
:close-on-press-escape="false"
:before-close="closeDialog"
>
<el-form label-width="120px" :model="params">
<el-row>
<el-form-item label="改派部门">
<el-cascader v-model="params.checkArea" placeholder="请选择部门" :options="checkAreaList" :show-all-levels="false"
@change="handleChange">
<el-cascader
v-model="params.checkArea"
placeholder="请选择部门"
:options="checkAreaList"
:show-all-levels="false"
@change="handleChange"
>
</el-cascader>
</el-form-item>
</el-row>
......@@ -272,19 +403,37 @@
<el-button type="primary" @click="determine">确 定</el-button>
</span>
</el-dialog>
<el-dialog title="导出范围" :visible.sync="downLoadShow" width="600px" :close-on-press-escape="false">
<el-dialog
title="导出范围"
:visible.sync="downLoadShow"
width="600px"
:close-on-press-escape="false"
>
<el-form label-width="120px" :model="params">
<el-row>
<el-form-item label="状态">
<el-select v-model="downLoadParams.state" placeholder="请选择状态">
<el-option v-for="item in downLoadList" :key="item.value" :label="item.label" :value="item.value">
<el-option
v-for="item in downLoadList"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="日期">
<el-date-picker v-model="date" type="daterange" range-separator="-" start-placeholder="开始日期"
end-placeholder="结束日期" :default-time="['00:00:00', '23:59:59']" format="yyyy-MM-dd"
value-format="yyyy-MM-dd HH:mm:ss" @change="time">
<el-date-picker
v-model="date"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
:default-time="['00:00:00', '23:59:59']"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd HH:mm:ss"
@change="time"
>
</el-date-picker>
</el-form-item>
</el-row>
......@@ -308,7 +457,7 @@ import {
initHouseDepartmentRevocation,
updateHouseCheckArea,
saveHouseFileUrl,
userHouseExport
userHouseExport,
} from "@/api/house.js";
import docxtemplater from "docxtemplater";
import PizZip from "pizzip";
......@@ -321,7 +470,7 @@ export default {
components: { TableTemplate },
data() {
return {
userName: '',
userName: "",
searchForm: {
name: "",
phone: "",
......@@ -570,7 +719,7 @@ export default {
watch: {
$route() {
if (this.$route) {
this.userName = localStorage.getItem('userName');
this.userName = localStorage.getItem("userName");
// 10000031 财政局code 10000032 税务局code 10000033 不动产登记中心code
this.searchForm.departmentCode = this.$route.query.departmentCode;
this.realEstateArea = this.$route.query.realEstateArea
......@@ -578,12 +727,12 @@ export default {
: null;
// departmentName: 审核部门名称(左侧列表)
this.departmentName = this.$route.query.departmentName;
this.searchForm.name = ''
this.searchForm.phone = ''
this.searchForm.state = ''
this.searchForm.name = "";
this.searchForm.phone = "";
this.searchForm.state = "";
this.init();
}
}
},
},
methods: {
init() {
......@@ -610,11 +759,11 @@ export default {
item.type = this.getSatusArr(item.reviewerState).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 = []
this.tableData = [];
}
}
});
......@@ -637,7 +786,7 @@ export default {
code: row.code,
// matterType: row.matterType
};
queryHouseDeedTaxDetailInfo(params).then(res => {
queryHouseDeedTaxDetailInfo(params).then((res) => {
// console.log(res)
// let arr = []
// res.data.pictures.forEach((item) => {
......@@ -651,33 +800,45 @@ export default {
// let arr1 = []
// arr1 = res1.map((item, index) => ({ picture: item.data, pictureType: res.data.pictures[index].pictureType }))
this.viewDetail = res.data;
if (localStorage.getItem('userName') == 'admin') {
this.viewDetail.name = setName(this.viewDetail.name)
this.viewDetail.phone = setTel(this.viewDetail.phone)
this.viewDetail.idCard = setCertNo(this.viewDetail.idCard)
if (localStorage.getItem("userName") == "admin") {
this.viewDetail.name = setName(this.viewDetail.name);
this.viewDetail.phone = setTel(this.viewDetail.phone);
this.viewDetail.idCard = setCertNo(this.viewDetail.idCard);
}
this.viewDetail.idCardPicture = res.data.pictures.filter(item => item.pictureType === 1);
this.viewDetail.bankCardPicture = res.data.pictures.filter(item => item.pictureType === 5);
this.viewDetail.contract = res.data.pictures.filter(item => item.pictureType === 2);
this.viewDetail.certificate = res.data.pictures.filter(item => item.pictureType === 3);
this.viewDetail.voucher = res.data.pictures.filter(item => (item.pictureType === 4 || item.pictureType === 6));
this.viewDetail.idCardPicture = res.data.pictures.filter(
(item) => item.pictureType === 1
);
this.viewDetail.bankCardPicture = res.data.pictures.filter(
(item) => item.pictureType === 5
);
this.viewDetail.contract = res.data.pictures.filter(
(item) => item.pictureType === 2
);
this.viewDetail.certificate = res.data.pictures.filter(
(item) => item.pictureType === 3
);
this.viewDetail.voucher = res.data.pictures.filter(
(item) => item.pictureType === 4 || item.pictureType === 6
);
this.viewShow = true;
// })
let reason = []
let reason = [];
res.data.recordVos.map((item) => {
if (item) {
reason.push(item)
reason.push(item);
}
});
this.recordList = reason.map(item => {
this.recordList = reason.map((item) => {
item.stateName = this.getSatusArr1(item.state)
? this.getSatusArr1(item.state).stateName
: "未知状态";
return item;
});
this.examineList = this.recordList;
this.examineList.forEach(item => {
(item.state != 4 && item.state != 9) ? (item.state = "通过") : (item.state = "拒绝");
this.examineList.forEach((item) => {
item.state != 4 && item.state != 9
? (item.state = "通过")
: (item.state = "拒绝");
});
this.totalList = this.examineList;
console.log(this.totalList);
......@@ -713,7 +874,7 @@ export default {
},
pass(row) {
console.log(row);
this.rowDetail = row
this.rowDetail = row;
this.$prompt(`确定通过该申请的初审吗?`, "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
......@@ -726,7 +887,7 @@ export default {
this.$message.error("未输入原因");
return;
}
queryHouseDeedTaxDetailInfo({ code: row.code }).then(res => {
queryHouseDeedTaxDetailInfo({ code: row.code }).then((res) => {
if (res.success) {
let params = {
code: row.code,
......@@ -777,9 +938,10 @@ export default {
);
}
});
} else {
this.$message.warning(res.msg);
}
})
});
})
.catch(() => {
// console.log("取消审核");
......@@ -809,7 +971,7 @@ export default {
arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务
if (this.$route.query.realEstateArea != '句容市') {
if (this.$route.query.realEstateArea != "句容市") {
arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务
......@@ -877,8 +1039,9 @@ export default {
});
} else {
that.$message.error(res.msg);
queryHouseDeedTaxDetailInfo({ code: that.rowDetail.code }).then(res => {
console.log(res)
queryHouseDeedTaxDetailInfo({ code: that.rowDetail.code }).then(
(res) => {
console.log(res);
if (res.success) {
let params = {
code: that.rowDetail.code,
......@@ -891,7 +1054,8 @@ export default {
that.init();
});
}
})
}
);
}
});
// 将目标文件对象保存为目标类型的文件,并命名
......@@ -910,8 +1074,8 @@ export default {
this.$message.error("未输入原因");
return;
}
queryHouseDeedTaxDetailInfo({ code: row.code }).then(res => {
console.log(res)
queryHouseDeedTaxDetailInfo({ code: row.code }).then((res) => {
console.log(res);
if (res.success) {
let params = {
code: row.code,
......@@ -933,7 +1097,7 @@ export default {
this.init();
});
}
})
});
})
.catch(() => {
// console.log("取消审核");
......@@ -946,8 +1110,8 @@ export default {
cancelButtonText: "取消",
type: "warning",
}).then(() => {
queryHouseDeedTaxDetailInfo({ code: row.code }).then(res => {
console.log(res)
queryHouseDeedTaxDetailInfo({ code: row.code }).then((res) => {
console.log(res);
if (res.success) {
let params = {
code: row.code,
......@@ -966,8 +1130,7 @@ export default {
}
});
}
})
});
});
},
reassignment(row) {
......@@ -1064,7 +1227,7 @@ export default {
},
},
created() {
this.userName = localStorage.getItem('userName');
this.userName = localStorage.getItem("userName");
// 10000031 财政局code 10000032 税务局code 10000033 不动产登记中心code
this.searchForm.departmentCode = this.$route.query.departmentCode;
this.realEstateArea = this.$route.query.realEstateArea
......
<template>
<div class="deedtax-house">
<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
v-model="searchForm.phone"
placeholder="请输入手机号码"
@keyup.enter.native="onSubmit"
>
</el-input>
</el-form-item>
<el-form-item label="不动产坐落辖市区" v-if="this.realEstateArea == '市区'">
<el-select v-model="searchForm.checkArealEstateArea" placeholder="请选择不动产坐落辖市区" @change="onSubmit"
size="medium">
<el-option v-for="item in areaList" :key="item.id" :label="item.label" :value="item.id">
<el-form-item
label="不动产坐落辖市区"
v-if="this.realEstateArea == '市区'"
>
<el-select
v-model="searchForm.checkArealEstateArea"
placeholder="请选择不动产坐落辖市区"
@change="onSubmit"
size="medium"
>
<el-option
v-for="item in areaList"
:key="item.id"
:label="item.label"
:value="item.id"
>
</el-option>
</el-select>
</el-form-item>
......@@ -22,20 +47,30 @@
<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
: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">
<table-template
:tableData="tableData"
:tableColumns="tableColumns"
:loading="loading"
:pagination="pagination"
@Jump="jumpPage"
>
<el-table-column slot="departmentName" label="实施主体" align="center">
<template>
{{
this.$route.query.departmentCode == "10000031" ? this.realEstateArea + '住建局' :
this.realEstateArea + '住建窗口'
this.$route.query.departmentCode == "10000031"
? this.realEstateArea + "住建局"
: this.realEstateArea + "住建窗口"
}}
</template>
</el-table-column>
......@@ -43,36 +78,93 @@
<template slot-scope="scope">
<el-tag type="warning" v-if="scope.row.state == 0">待审核</el-tag>
<el-tag type="warning" v-if="scope.row.state == 1">待复审</el-tag>
<el-tag type="warning" v-if="scope.row.state == 2 || scope.row.state == 3">待退税办理</el-tag>
<el-tag
type="warning"
v-if="scope.row.state == 2 || scope.row.state == 3"
>待退税办理</el-tag
>
<el-tag type="danger" v-if="scope.row.state == 4">已驳回</el-tag>
<el-tag type="success" v-if="scope.row.state == 6">已完成</el-tag>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="380" align="center">
<el-table-column fixed="right" label="操作" width="520" align="center">
<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 == 1 && searchForm.departmentCode == '10000027'" type="success"
size="mini" round @click="pass(scope.row)">通过
<el-button
v-if="
scope.row.state == 1 && searchForm.departmentCode == '10000027'
"
type="success"
size="mini"
round
@click="pass(scope.row)"
>通过
</el-button>
<el-button v-if="scope.row.state == 1 && searchForm.departmentCode == '10000027'" type="danger"
size="mini" round @click="deny(scope.row)">拒绝
<el-button
v-if="
scope.row.state == 1 && searchForm.departmentCode == '10000027'
"
type="danger"
size="mini"
round
@click="deny(scope.row)"
>拒绝
</el-button>
<el-button v-if="scope.row.flag == true && searchForm.departmentCode == '10000027'" type="info"
size="mini" round @click="drevokeeny(scope.row)">撤销
<el-button
v-if="
scope.row.flag == true &&
searchForm.departmentCode == '10000027'
"
type="info"
size="mini"
round
@click="drevokeeny(scope.row)"
>撤销
</el-button>
<!-- <el-button
v-if="(scope.row.state == 3 || scope.row.state == 2) && searchForm.departmentCode == '10000031' && $route.query.realEstateArea == '句容市'"
type="success" size="mini" round @click="dispatch(scope.row)">退税办理</el-button> -->
<el-button
v-if="scope.row.state != 0 && scope.row.state != 4 && scope.row.fileUrl && searchForm.departmentCode == '10000027'"
type="success" size="mini" round @click="download(scope.row.fileUrl)">下载申请表</el-button>
v-if="
scope.row.state != 0 &&
scope.row.state != 4 &&
scope.row.fileUrl &&
searchForm.departmentCode == '10000027'
"
type="success"
size="mini"
round
@click="download(scope.row.fileUrl)"
>下载申请表</el-button
>
<el-button
v-if="searchForm.departmentCode == '10000027'"
type="warning"
size="mini"
round
@click="downloadFamily(scope.row.familyCodeFile)"
>下载家庭码申请表</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%">
......@@ -81,13 +173,19 @@
<el-table-column prop="state" label="审核状态" width="180">
</el-table-column>
<el-table-column prop="reason" label="审核意见"> </el-table-column>
<el-table-column prop="createTime" label="审核时间"> </el-table-column>
<el-table-column prop="createTime" label="审核时间">
</el-table-column>
</el-table>
<div class="cell">
<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>
<!-- 新增功能end -->
<div class="cell">
......@@ -98,8 +196,9 @@
<p class="label">实施主体</p>
<p class="value">
{{
this.$route.query.departmentCode == "10000031" ? this.realEstateArea + '住建局' :
this.realEstateArea + '住建窗口'
this.$route.query.departmentCode == "10000031"
? this.realEstateArea + "住建局"
: this.realEstateArea + "住建窗口"
}}
</p>
</div>
......@@ -126,9 +225,14 @@
<div class="cell">
<p class="label">身份证照片</p>
<p class="value">
<el-image v-for="(item, index) in viewDetail.idCardPicture" :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.idCardPicture"
: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>
......@@ -143,23 +247,39 @@
<div class="cell">
<p class="label">银行卡照片</p>
<p class="value">
<el-image v-for="(item, index) in viewDetail.bankCardPicture" :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.bankCardPicture"
: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" v-if="viewDetail.deedBillCode && !viewDetail.secondDeedBillCode">NO.{{
viewDetail.deedBillCode
}}</p>
<p class="value" v-if="!viewDetail.deedBillCode && viewDetail.secondDeedBillCode">NO.{{
<p
class="value"
v-if="viewDetail.deedBillCode && !viewDetail.secondDeedBillCode"
>
NO.{{ viewDetail.deedBillCode }}
</p>
<p
class="value"
v-if="!viewDetail.deedBillCode && viewDetail.secondDeedBillCode"
>
NO.{{ viewDetail.secondDeedBillCode }}
</p>
<p
class="value"
v-if="viewDetail.deedBillCode && viewDetail.secondDeedBillCode"
>
NO.{{ viewDetail.deedBillCode }}、NO.{{
viewDetail.secondDeedBillCode
}}</p>
<p class="value" v-if="viewDetail.deedBillCode && viewDetail.secondDeedBillCode">NO.{{
viewDetail.deedBillCode
}}、NO.{{ viewDetail.secondDeedBillCode }}</p>
}}
</p>
</div>
<div class="cell">
<p class="label">缴纳契税金额(元)</p>
......@@ -192,33 +312,53 @@
<div class="cell">
<p class="label">不动产权证书</p>
<p class="value">
<el-image v-for="(item, index) in viewDetail.certificate" :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.certificate"
: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">商品房买卖合同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 v-for="(item, index) in viewDetail.voucher" :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.voucher"
: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" v-if="recordList[0]">
<div class="cell" v-for="(item, index) in recordList" :key="index">
<p class="label" style="margin-right: 20px">
......@@ -233,13 +373,23 @@
<p v-if="record.length === 0">暂无记录~</p>
</div>
</el-dialog>
<el-dialog title="改派部门" :visible.sync="reassignmentShow" width="600px" :close-on-press-escape="false"
:before-close="closeDialog">
<el-dialog
title="改派部门"
:visible.sync="reassignmentShow"
width="600px"
:close-on-press-escape="false"
:before-close="closeDialog"
>
<el-form label-width="120px" :model="params">
<el-row>
<el-form-item label="改派部门">
<el-cascader v-model="params.checkArea" placeholder="请选择部门" :options="checkAreaList"
:show-all-levels="false" @change="handleChange">
<el-cascader
v-model="params.checkArea"
placeholder="请选择部门"
:options="checkAreaList"
:show-all-levels="false"
@change="handleChange"
>
</el-cascader>
</el-form-item>
</el-row>
......@@ -258,14 +408,14 @@ import { changeList, setName, setTel, setCertNo } from "@/utils";
// import { $fileUrl } from "@/utils/mix";
// import { getTempUrl } from "@/api/exportFileUrl";
import {
queryMultipleListDeedTax,
queryMultipleDeedTaxRecord,
queryMultipleDeedTaxDetailInfo,
updateMultipleDeedTaxState,
mainMultipleRevocation,
updateMultipleCheckArea} from '@/api/multiple'
updateMultipleCheckArea,
} from "@/api/multiple";
export default {
components: { TableTemplate },
data() {
......@@ -276,7 +426,7 @@ export default {
phone: "",
state: "",
departmentCode: "",
checkArealEstateArea: ""
checkArealEstateArea: "",
},
stateList: [
{
......@@ -324,43 +474,43 @@ export default {
{
state: 0,
stateName: "待审核",
type: "warning"
type: "warning",
},
{
state: 1,
stateName: "待复审",
type: "warning"
type: "warning",
},
{
state: 6,
stateName: "已完成",
type: "warning"
type: "warning",
},
{
state: 2,
stateName: "资料审核",
type: "warning"
type: "warning",
},
{
state: 3,
stateName: "卡号确认",
type: "success"
type: "success",
},
{
state: 4,
stateName: "已驳回",
type: "danger"
type: "danger",
},
{
state: 8,
stateName: "初审通过",
type: "success"
type: "success",
},
{
state: 9,
stateName: "已驳回",
type: "danger"
}
type: "danger",
},
],
loading: false,
tableData: [],
......@@ -368,27 +518,27 @@ export default {
{
key: "code",
label: "申请编号",
width: 200
width: 200,
},
{
key: "name",
label: "企业联系人",
width: 150
width: 150,
},
{
key: "phone",
label: "手机号",
width: 150
width: 150,
},
{
key: "guideName",
label: "事项名称",
width: 150
width: 150,
},
{
key: "realEstateArea",
label: "不动产坐落辖市区",
width: 150
width: 150,
},
{
key: "departmentName",
......@@ -399,13 +549,13 @@ export default {
{
key: "createTime",
label: "更新时间",
width: 160
}
width: 160,
},
],
pagination: {
total: 0,
pageSize: 10,
currentPage: 1
currentPage: 1,
},
viewShow: false,
viewDetail: {},
......@@ -418,47 +568,53 @@ export default {
realEstateArea: null,
reassignmentShow: false,
params: {
code: '',
checkArea: '',
departmentCode: '10000031'
code: "",
checkArea: "",
departmentCode: "10000031",
},
checkAreaList: [
{
label: '市区',
value: '市区',
label: "市区",
value: "市区",
children: [
{
label: '京口区',
value: '京口区',
}, {
label: '润州区',
value: '润州区',
}, {
label: '镇江高新区',
value: '镇江高新区',
}, {
label: '镇江新区-丁卯片区',
value: '镇江新区-丁卯片区',
}
]
}, {
label: '丹徒区',
value: '丹徒区'
}, {
label: '镇江新区',
value: '镇江新区',
label: "京口区",
value: "京口区",
},
{
label: "润州区",
value: "润州区",
},
{
label: "镇江高新区",
value: "镇江高新区",
},
{
label: "镇江新区-丁卯片区",
value: "镇江新区-丁卯片区",
},
],
},
{
label: "丹徒区",
value: "丹徒区",
},
{
label: "镇江新区",
value: "镇江新区",
children: [
{
label: '大港片区',
value: '大港片区',
}
]
}, {
label: '句容市',
value: '句容市'
}
label: "大港片区",
value: "大港片区",
},
],
departmentName: '',
},
{
label: "句容市",
value: "句容市",
},
],
departmentName: "",
areaList: [
{
id: "",
......@@ -498,19 +654,21 @@ export default {
watch: {
$route() {
if (this.$route) {
this.userName = localStorage.getItem('userName');
this.userName = localStorage.getItem("userName");
// 10000027 人才窗口code 10000031 市财政局code退税办理
this.searchForm.departmentCode = this.$route.query.departmentCode;
// realEstateArea: 市区、镇江新区、丹徒区
this.realEstateArea = this.$route.query.realEstateArea ? this.$route.query.realEstateArea : null
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.departmentName = this.$route.query.departmentName;
this.searchForm.name = "";
this.searchForm.phone = "";
this.searchForm.state = "";
this.init();
}
}
},
},
methods: {
init() {
......@@ -524,23 +682,23 @@ export default {
pageNum: this.pagination.currentPage,
pageSize: this.pagination.pageSize,
checkArea: this.realEstateArea,
checkArealEstateArea: this.searchForm.checkArealEstateArea
checkArealEstateArea: this.searchForm.checkArealEstateArea,
};
queryMultipleListDeedTax(parmas).then(res => {
queryMultipleListDeedTax(parmas).then((res) => {
this.loading = false;
if (res.success) {
this.pagination.total = 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.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 = []
this.tableData = [];
}
}
});
......@@ -569,17 +727,29 @@ export default {
// }
// })
// },
downloadFamily(url) {
if (url) {
if (url.indexOf("81.69.44.115") !== -1) {
// 测试环境
window.location.href = url;
} else {
window.location.href = url;
}
} else {
this.$message.warning("家庭码申请表尚未初始化");
}
},
download(url) {
// this.changeUrl(url)
if (url.indexOf('81.69.44.115') !== -1) {
if (url.indexOf("81.69.44.115") !== -1) {
// 测试环境
window.location.href = url
window.location.href = url;
} else {
// 生产环境
// http跨域 ---> https
// let a = url.substr(0, 4) + 's' + url.substr(4)
// window.location.href = a
window.location.href = url
window.location.href = url;
}
},
view(row) {
......@@ -587,7 +757,7 @@ export default {
code: row.code,
// matterType: row.matterType
};
queryMultipleDeedTaxDetailInfo(params).then(res => {
queryMultipleDeedTaxDetailInfo(params).then((res) => {
// let arr = []
// res.data.pictures.forEach((item) => {
// let params = {
......@@ -600,54 +770,65 @@ export default {
// let arr1 = []
// arr1 = res1.map((item, index) => ({ picture: item.data, pictureType: res.data.pictures[index].pictureType }))
this.viewDetail = res.data;
if (localStorage.getItem('userName') == 'admin') {
this.viewDetail.name = setName(this.viewDetail.name)
this.viewDetail.phone = setTel(this.viewDetail.phone)
this.viewDetail.idCard = setCertNo(this.viewDetail.idCard)
if (localStorage.getItem("userName") == "admin") {
this.viewDetail.name = setName(this.viewDetail.name);
this.viewDetail.phone = setTel(this.viewDetail.phone);
this.viewDetail.idCard = setCertNo(this.viewDetail.idCard);
}
this.viewDetail.idCardPicture = res.data.pictures.filter(item => item.pictureType === 1);
this.viewDetail.bankCardPicture = res.data.pictures.filter(item => item.pictureType === 5);
this.viewDetail.contract = res.data.pictures.filter(item => item.pictureType === 2);
this.viewDetail.certificate = res.data.pictures.filter(item => item.pictureType === 3);
this.viewDetail.voucher = res.data.pictures.filter(item => (item.pictureType === 4 || item.pictureType === 6));
this.viewDetail.idCardPicture = res.data.pictures.filter(
(item) => item.pictureType === 1
);
this.viewDetail.bankCardPicture = res.data.pictures.filter(
(item) => item.pictureType === 5
);
this.viewDetail.contract = res.data.pictures.filter(
(item) => item.pictureType === 2
);
this.viewDetail.certificate = res.data.pictures.filter(
(item) => item.pictureType === 3
);
this.viewDetail.voucher = res.data.pictures.filter(
(item) => item.pictureType === 4 || item.pictureType === 6
);
this.viewShow = true;
// })
let reason = []
let reason = [];
res.data.recordVos.map((item) => {
if (item) {
reason.push(item)
reason.push(item);
}
});
this.recordList = reason.map(item => {
this.recordList = reason.map((item) => {
item.stateName = this.getSatusArr1(item.state)
? this.getSatusArr1(item.state).stateName
: "未知状态";
return item;
});
this.examineList = this.recordList;
this.examineList.forEach(item => {
(item.state != 4 && item.state != 9) ? (item.state = "通过") : (item.state = "拒绝");
this.examineList.forEach((item) => {
item.state != 4 && item.state != 9
? (item.state = "通过")
: (item.state = "拒绝");
});
this.totalList = this.examineList;
})
});
},
record(row) {
queryMultipleDeedTaxRecord({ code: row.code }).then((res) => {
let reason = []
let reason = [];
res.data.map((item) => {
if (item) {
reason.push(item)
reason.push(item);
}
});
this.recordList = reason.map(item => {
this.recordList = reason.map((item) => {
item.stateName = this.getSatusArr1(item.state)
? this.getSatusArr1(item.state).stateName
: "未知状态";
return item;
});
this.recordShow = true;
})
});
},
dispatch(row) {
this.$prompt(`确定通过该申请的退税办理吗?`, "提示", {
......@@ -655,7 +836,7 @@ export default {
cancelButtonText: "取消",
inputPlaceholder: "请输入退税金额(万元)",
inputType: "textarea",
type: "warning"
type: "warning",
})
.then(({ value }) => {
if (!value) {
......@@ -673,9 +854,9 @@ export default {
// name: '市财政局',
state: 6,
reviewerId: row.reviewerId,
reason: '退税办理通过'
reason: "退税办理通过",
};
updateMultipleDeedTaxState(params).then(res => {
updateMultipleDeedTaxState(params).then((res) => {
if (res.success) {
this.$message.success(`退税办理成功`);
this.init();
......@@ -692,14 +873,16 @@ export default {
cancelButtonText: "取消",
inputPlaceholder: "请输入原因",
inputType: "textarea",
type: "warning"
type: "warning",
})
.then(({ value }) => {
if (!value) {
this.$message.error("未输入原因");
return;
}
queryMultipleDeedTaxDetailInfo({ code: row.code }).then(res => {
console.log(value);
queryMultipleDeedTaxDetailInfo({ code: row.code }).then((res) => {
console.log(res);
if (res.success) {
let params = {
code: row.code,
......@@ -712,9 +895,9 @@ export default {
// name: '人才窗口',
state: 2,
reviewerId: row.reviewerId,
reason: value
reason: value,
};
updateMultipleDeedTaxState(params).then(res => {
updateMultipleDeedTaxState(params).then((res) => {
if (res.success) {
this.$message.success(`复审通过`);
this.init();
......@@ -727,11 +910,15 @@ export default {
// })
// }
} else {
this.$message.warning(res.msg || "该申请已被其他部门驳回,无法审核通过");
this.$message.warning(
res.msg || "该申请已被其他部门驳回,无法审核通过"
);
}
});
} else {
this.$message.warning(res.msg);
}
})
});
})
.catch(() => {
// console.log("取消审核");
......@@ -742,14 +929,14 @@ export default {
confirmButtonText: "确定",
cancelButtonText: "取消",
inputPlaceholder: "请输入原因",
inputType: "textarea"
inputType: "textarea",
})
.then(({ value }) => {
if (!value) {
this.$message.error("未输入原因");
return;
}
queryMultipleDeedTaxDetailInfo({ code: row.code }).then(res => {
queryMultipleDeedTaxDetailInfo({ code: row.code }).then((res) => {
if (res.success) {
let params = {
code: row.code,
......@@ -761,102 +948,104 @@ export default {
departmentName: this.departmentName,
state: 4,
reviewerId: row.reviewerId,
reason: value
reason: value,
};
updateMultipleDeedTaxState(params).then(res => {
console.log(res)
updateMultipleDeedTaxState(params).then((res) => {
console.log(res);
this.$message.success(`复审驳回成功`);
this.init();
});
}
})
})
.catch(() => {
});
})
.catch(() => {});
},
drevokeeny(row) {
this.$confirm(`确定撤回该申请的审核结果吗?`, "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
type: "warning",
}).then(() => {
let params = {
code: row.code,
phone: row.phone,
reviewerId: row.reviewerId,
state: row.state
}
state: row.state,
};
mainMultipleRevocation(params).then((res) => {
if (res.code == 200 || res.success) {
this.$message.success(res.data || '审核撤回成功');
this.$message.success(res.data || "审核撤回成功");
this.init();
} else {
this.$message.error(res.msg);
this.init();
}
})
})
});
});
},
reassignment(row) {
this.params.code = row.code;
this.params.checkArea = row.checkArea;
this.reassignmentShow = true
this.reassignmentShow = true;
},
closeDialog() {
this.reassignmentShow = false
this.reassignmentShow = false;
this.params = {
code: '',
checkArea: '',
departmentCode: '10000031'
}
code: "",
checkArea: "",
departmentCode: "10000031",
};
},
handleChange(value) {
if (value.length == 2) {
this.params.checkArea = value[1]
this.params.checkArea = value[1];
} else {
this.params.checkArea = value[0]
this.params.checkArea = value[0];
}
},
determine() {
this.$confirm(`确定改派该申请的审核部门吗?`, "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
type: "warning",
}).then(() => {
updateMultipleCheckArea(this.params).then((res) => {
if (res.success) {
this.reassignmentShow = false
this.reassignmentShow = false;
this.$message.success(`改派成功`);
this.init();
} else {
this.$message.warning(res.msg || "该申请已被其他部门驳回,无法审核通过");
this.$message.warning(
res.msg || "该申请已被其他部门驳回,无法审核通过"
);
}
})
})
});
});
},
getSatusArr(state) {
return this.stateList.filter(item => {
return this.stateList.filter((item) => {
return item.state === state;
})[0];
},
getSatusArr1(state) {
return this.stateList1.filter(item => {
return this.stateList1.filter((item) => {
return item.state === state;
})[0];
}
},
},
created() {
this.userName = localStorage.getItem('userName');
this.userName = localStorage.getItem("userName");
// 10000027 人才窗口code 10000031 市财政局code退税办理
this.searchForm.departmentCode = this.$route.query.departmentCode;
// realEstateArea: 市区、镇江新区、丹徒区
this.realEstateArea = this.$route.query.realEstateArea ? this.$route.query.realEstateArea : null
this.realEstateArea = this.$route.query.realEstateArea
? this.$route.query.realEstateArea
: null;
// departmentName: 审核部门名称(左侧列表)
this.departmentName = this.$route.query.departmentName
this.departmentName = this.$route.query.departmentName;
this.init();
}
},
};
</script>
......
<template>
<div class="deedtax">
<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
v-model="searchForm.phone"
placeholder="请输入手机号码"
@keyup.enter.native="onSubmit"
>
</el-input>
</el-form-item>
<el-form-item label="不动产坐落辖市区" v-if="
<el-form-item
label="不动产坐落辖市区"
v-if="
this.realEstateArea == '市区' ||
(this.searchForm.departmentCode == '10000032' &&
this.realEstateArea != '句容市')
">
<el-select v-model="searchForm.checkArealEstateArea" placeholder="请选择不动产坐落辖市区" @change="onSubmit" size="medium">
<el-option v-for="item in areaList" :key="item.id" :label="item.label" :value="item.id">
"
>
<el-select
v-model="searchForm.checkArealEstateArea"
placeholder="请选择不动产坐落辖市区"
@change="onSubmit"
size="medium"
>
<el-option
v-for="item in areaList"
:key="item.id"
:label="item.label"
:value="item.id"
>
</el-option>
</el-select>
</el-form-item>
......@@ -23,24 +49,37 @@
<el-button type="primary" @click="onSubmit">查询</el-button>
</el-form-item>
<el-form-item>
<el-button type="primary" v-if="
<el-button
type="primary"
v-if="
this.searchForm.departmentCode == '10000033' ||
this.searchForm.departmentCode == '10000031'
" @click="downLoadShow = true">导出
"
@click="downLoadShow = true"
>导出
</el-button>
</el-form-item>
<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
: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">
<table-template
:tableData="tableData"
:tableColumns="tableColumns"
:loading="loading"
:pagination="pagination"
@Jump="jumpPage"
>
<el-table-column slot="departmentName" label="实施主体" align="center">
<template>
{{ this.$route.query.departmentName }}
......@@ -48,12 +87,18 @@
</el-table-column>
<el-table-column label="状态" align="center">
<template slot-scope="scope">
<el-tag type="warning" v-if="scope.row.reviewerState == 0">待审核</el-tag>
<el-tag type="success" v-if="scope.row.reviewerState == 8">初审通过</el-tag>
<el-tag type="warning" v-if="scope.row.reviewerState == 0"
>待审核</el-tag
>
<el-tag type="success" v-if="scope.row.reviewerState == 8"
>初审通过</el-tag
>
<!-- <el-tag type="warning" v-if="scope.row.state == 1">待复审</el-tag>
<el-tag type="warning" v-if="scope.row.state == 2">待用户确认</el-tag>
<el-tag type="warning" v-if="scope.row.state == 3">待退税办理</el-tag> -->
<el-tag type="danger" v-if="scope.row.reviewerState == 9">已驳回</el-tag>
<el-tag type="danger" v-if="scope.row.reviewerState == 9"
>已驳回</el-tag
>
<!-- <el-tag type="info" v-if="scope.row.state == 5">已撤销</el-tag> -->
<!-- <el-tag type="warning" v-if="scope.row.state == 6">资料审核</el-tag> -->
<!-- <el-tag type="success" v-if="scope.row.state == 6">已完成</el-tag> -->
......@@ -61,28 +106,63 @@
</el-table-column>
<el-table-column fixed="right" label="操作" width="350" align="center">
<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.reviewerState == 0 && scope.row.state == 0" type="success" size="mini" round
@click="pass(scope.row)">通过
<el-button
v-if="scope.row.reviewerState == 0 && scope.row.state == 0"
type="success"
size="mini"
round
@click="pass(scope.row)"
>通过
</el-button>
<el-button v-if="scope.row.reviewerState == 0 && scope.row.state == 0" type="danger" size="mini" round
@click="deny(scope.row)">拒绝
<el-button
v-if="scope.row.reviewerState == 0 && scope.row.state == 0"
type="danger"
size="mini"
round
@click="deny(scope.row)"
>拒绝
</el-button>
<el-button v-if="
<el-button
v-if="
(scope.row.reviewerState == 9 && scope.row.state == 4) ||
((scope.row.state == 0 || scope.row.state == 1) &&
scope.row.reviewerState == 8)
" type="info" size="mini" round @click="drevokeeny(scope.row)">撤销
"
type="info"
size="mini"
round
@click="drevokeeny(scope.row)"
>撤销
</el-button>
<el-button v-if="scope.row.state == 0" type="warning" size="mini" round @click="reassignment(scope.row)">改派
<el-button
v-if="scope.row.state == 0"
type="warning"
size="mini"
round
@click="reassignment(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%">
......@@ -96,10 +176,12 @@
</el-table>
<div class="cell">
<p class="label">是否享受过相关政策</p>
<p :class="[
<p
:class="[
'value',
viewDetail.enjoyFlag == true ? 'value2' : 'value1',
]">
]"
>
{{ viewDetail.enjoyFlag ? "否" : "是" }}
</p>
</div>
......@@ -135,9 +217,14 @@
<div class="cell">
<p class="label">身份证照片</p>
<p class="value">
<el-image v-for="(item, index) in viewDetail.idCardPicture" :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.idCardPicture"
: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>
......@@ -152,21 +239,35 @@
<div class="cell">
<p class="label">银行卡照片</p>
<p class="value">
<el-image v-for="(item, index) in viewDetail.bankCardPicture" :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.bankCardPicture"
: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" v-if="viewDetail.deedBillCode && !viewDetail.secondDeedBillCode">
<p
class="value"
v-if="viewDetail.deedBillCode && !viewDetail.secondDeedBillCode"
>
NO.{{ viewDetail.deedBillCode }}
</p>
<p class="value" v-if="!viewDetail.deedBillCode && viewDetail.secondDeedBillCode">
<p
class="value"
v-if="!viewDetail.deedBillCode && viewDetail.secondDeedBillCode"
>
NO.{{ viewDetail.secondDeedBillCode }}
</p>
<p class="value" v-if="viewDetail.deedBillCode && viewDetail.secondDeedBillCode">
<p
class="value"
v-if="viewDetail.deedBillCode && viewDetail.secondDeedBillCode"
>
NO.{{ viewDetail.deedBillCode }}、NO.{{
viewDetail.secondDeedBillCode
}}
......@@ -215,33 +316,53 @@
<div class="cell">
<p class="label">不动产权证书</p>
<p class="value">
<el-image v-for="(item, index) in viewDetail.certificate" :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.certificate"
: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">商品房买卖合同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 v-for="(item, index) in viewDetail.voucher" :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.voucher"
: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" v-if="recordList[0]">
<div class="cell" v-for="(item, index) in recordList" :key="index">
<p class="label" style="margin-right: 20px">
......@@ -256,13 +377,23 @@
<p v-if="record.length === 0">暂无记录~</p>
</div>
</el-dialog>
<el-dialog title="改派部门" :visible.sync="reassignmentShow" width="600px" :close-on-press-escape="false"
:before-close="closeDialog">
<el-dialog
title="改派部门"
:visible.sync="reassignmentShow"
width="600px"
:close-on-press-escape="false"
:before-close="closeDialog"
>
<el-form label-width="120px" :model="params">
<el-row>
<el-form-item label="改派部门">
<el-cascader v-model="params.checkArea" placeholder="请选择部门" :options="checkAreaList" :show-all-levels="false"
@change="handleChange">
<el-cascader
v-model="params.checkArea"
placeholder="请选择部门"
:options="checkAreaList"
:show-all-levels="false"
@change="handleChange"
>
</el-cascader>
</el-form-item>
</el-row>
......@@ -272,19 +403,37 @@
<el-button type="primary" @click="determine">确 定</el-button>
</span>
</el-dialog>
<el-dialog title="导出范围" :visible.sync="downLoadShow" width="600px" :close-on-press-escape="false">
<el-dialog
title="导出范围"
:visible.sync="downLoadShow"
width="600px"
:close-on-press-escape="false"
>
<el-form label-width="120px" :model="params">
<el-row>
<el-form-item label="状态">
<el-select v-model="downLoadParams.state" placeholder="请选择状态">
<el-option v-for="item in downLoadList" :key="item.value" :label="item.label" :value="item.value">
<el-option
v-for="item in downLoadList"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="日期">
<el-date-picker v-model="date" type="daterange" range-separator="-" start-placeholder="开始日期"
end-placeholder="结束日期" :default-time="['00:00:00', '23:59:59']" format="yyyy-MM-dd"
value-format="yyyy-MM-dd HH:mm:ss" @change="time">
<el-date-picker
v-model="date"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
:default-time="['00:00:00', '23:59:59']"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd HH:mm:ss"
@change="time"
>
</el-date-picker>
</el-form-item>
</el-row>
......@@ -309,7 +458,7 @@ import {
initMultipleDepartmentRevocation,
updateMultipleCheckArea,
saveMultipleFileUrl,
userMultipleExport
userMultipleExport,
} from "@/api/multiple.js";
import docxtemplater from "docxtemplater";
import PizZip from "pizzip";
......@@ -322,7 +471,7 @@ export default {
components: { TableTemplate },
data() {
return {
userName: '',
userName: "",
searchForm: {
name: "",
phone: "",
......@@ -571,7 +720,7 @@ export default {
watch: {
$route() {
if (this.$route) {
this.userName = localStorage.getItem('userName');
this.userName = localStorage.getItem("userName");
// 10000031 财政局code 10000032 税务局code 10000033 不动产登记中心code
this.searchForm.departmentCode = this.$route.query.departmentCode;
this.realEstateArea = this.$route.query.realEstateArea
......@@ -579,12 +728,12 @@ export default {
: null;
// departmentName: 审核部门名称(左侧列表)
this.departmentName = this.$route.query.departmentName;
this.searchForm.name = ''
this.searchForm.phone = ''
this.searchForm.state = ''
this.searchForm.name = "";
this.searchForm.phone = "";
this.searchForm.state = "";
this.init();
}
}
},
},
methods: {
init() {
......@@ -611,12 +760,12 @@ export default {
item.type = this.getSatusArr(item.reviewerState).type;
return item;
});
if (localStorage.getItem('userName') == 'admin') {
this.tableData = changeList(this.tableData)
if (localStorage.getItem("userName") == "admin") {
this.tableData = changeList(this.tableData);
console.log(JSON.parse(JSON.stringify(this.tableData)));
}
} else {
this.tableData = []
this.tableData = [];
}
}
});
......@@ -639,7 +788,7 @@ export default {
code: row.code,
// matterType: row.matterType
};
queryMultipleDeedTaxDetailInfo(params).then(res => {
queryMultipleDeedTaxDetailInfo(params).then((res) => {
// console.log(res)
// let arr = []
// res.data.pictures.forEach((item) => {
......@@ -653,33 +802,45 @@ export default {
// let arr1 = []
// arr1 = res1.map((item, index) => ({ picture: item.data, pictureType: res.data.pictures[index].pictureType }))
this.viewDetail = res.data;
if (localStorage.getItem('userName') == 'admin') {
this.viewDetail.name = setName(this.viewDetail.name)
this.viewDetail.phone = setTel(this.viewDetail.phone)
this.viewDetail.idCard = setCertNo(this.viewDetail.idCard)
if (localStorage.getItem("userName") == "admin") {
this.viewDetail.name = setName(this.viewDetail.name);
this.viewDetail.phone = setTel(this.viewDetail.phone);
this.viewDetail.idCard = setCertNo(this.viewDetail.idCard);
}
this.viewDetail.idCardPicture = res.data.pictures.filter(item => item.pictureType === 1);
this.viewDetail.bankCardPicture = res.data.pictures.filter(item => item.pictureType === 5);
this.viewDetail.contract = res.data.pictures.filter(item => item.pictureType === 2);
this.viewDetail.certificate = res.data.pictures.filter(item => item.pictureType === 3);
this.viewDetail.voucher = res.data.pictures.filter(item => (item.pictureType === 4 || item.pictureType === 6));
this.viewDetail.idCardPicture = res.data.pictures.filter(
(item) => item.pictureType === 1
);
this.viewDetail.bankCardPicture = res.data.pictures.filter(
(item) => item.pictureType === 5
);
this.viewDetail.contract = res.data.pictures.filter(
(item) => item.pictureType === 2
);
this.viewDetail.certificate = res.data.pictures.filter(
(item) => item.pictureType === 3
);
this.viewDetail.voucher = res.data.pictures.filter(
(item) => item.pictureType === 4 || item.pictureType === 6
);
this.viewShow = true;
// })
let reason = []
let reason = [];
res.data.recordVos.map((item) => {
if (item) {
reason.push(item)
reason.push(item);
}
});
this.recordList = reason.map(item => {
this.recordList = reason.map((item) => {
item.stateName = this.getSatusArr1(item.state)
? this.getSatusArr1(item.state).stateName
: "未知状态";
return item;
});
this.examineList = this.recordList;
this.examineList.forEach(item => {
(item.state != 4 && item.state != 9) ? (item.state = "通过") : (item.state = "拒绝");
this.examineList.forEach((item) => {
item.state != 4 && item.state != 9
? (item.state = "通过")
: (item.state = "拒绝");
});
this.totalList = this.examineList;
console.log(this.totalList);
......@@ -715,7 +876,7 @@ export default {
},
pass(row) {
console.log(row);
this.rowDetail = row
this.rowDetail = row;
this.$prompt(`确定通过该申请的初审吗?`, "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
......@@ -728,7 +889,7 @@ export default {
this.$message.error("未输入原因");
return;
}
queryMultipleDeedTaxDetailInfo({ code: row.code }).then(res => {
queryMultipleDeedTaxDetailInfo({ code: row.code }).then((res) => {
if (res.success) {
let params = {
code: row.code,
......@@ -779,9 +940,10 @@ export default {
);
}
});
} else {
this.$message.warning(res.msg);
}
})
});
})
.catch(() => {
// console.log("取消审核");
......@@ -811,7 +973,7 @@ export default {
arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务
if (this.$route.query.realEstateArea != '句容市') {
if (this.$route.query.realEstateArea != "句容市") {
arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务
......@@ -879,8 +1041,9 @@ export default {
});
} else {
that.$message.error(res.msg);
queryMultipleDeedTaxDetailInfo({ code: that.rowDetail.code }).then(res => {
console.log(res)
queryMultipleDeedTaxDetailInfo({ code: that.rowDetail.code }).then(
(res) => {
console.log(res);
if (res.success) {
let params = {
code: that.rowDetail.code,
......@@ -893,7 +1056,8 @@ export default {
that.init();
});
}
})
}
);
}
});
// 将目标文件对象保存为目标类型的文件,并命名
......@@ -912,8 +1076,8 @@ export default {
this.$message.error("未输入原因");
return;
}
queryMultipleDeedTaxDetailInfo({ code: row.code }).then(res => {
console.log(res)
queryMultipleDeedTaxDetailInfo({ code: row.code }).then((res) => {
console.log(res);
if (res.success) {
let params = {
code: row.code,
......@@ -935,7 +1099,7 @@ export default {
this.init();
});
}
})
});
})
.catch(() => {
// console.log("取消审核");
......@@ -948,8 +1112,8 @@ export default {
cancelButtonText: "取消",
type: "warning",
}).then(() => {
queryMultipleDeedTaxDetailInfo({ code: row.code }).then(res => {
console.log(res)
queryMultipleDeedTaxDetailInfo({ code: row.code }).then((res) => {
console.log(res);
if (res.success) {
let params = {
code: row.code,
......@@ -968,8 +1132,7 @@ export default {
}
});
}
})
});
});
},
reassignment(row) {
......@@ -1066,7 +1229,7 @@ export default {
},
},
created() {
this.userName = localStorage.getItem('userName');
this.userName = localStorage.getItem("userName");
// 10000031 财政局code 10000032 税务局code 10000033 不动产登记中心code
this.searchForm.departmentCode = this.$route.query.departmentCode;
this.realEstateArea = this.$route.query.realEstateArea
......
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