Commit 9278c578 by swl

gx

parent 32581678
No preview for this file type
No preview for this file type
const domain = { 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: "http://81.69.231.72:8881", // 测试接口
dev: "https://exam.smart-zj.cn:9100/smartExam/", // 新正式接口 // dev: "https://exam.smart-zj.cn:9100/smartExam/", // 新正式接口
}; };
// 腾讯地图 key // 腾讯地图 key
const map = { const map = {
......
...@@ -5,9 +5,9 @@ import { TokenKey } from "@/utils/auth"; ...@@ -5,9 +5,9 @@ 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", // 测试地址
// proxy1: "https://exam.smart-zj.cn:9100/smartExam/admin-api", // 新正式接口 // proxy1: "https://exam.smart-zj.cn:9100/smartExam/admin-api", // 新正式接口
......
...@@ -1051,7 +1051,7 @@ export default { ...@@ -1051,7 +1051,7 @@ export default {
return item.state === state; return item.state === state;
})[0]; })[0];
}, },
handleCommand(row, com) { async handleCommand(row, com) {
console.log(row, com); console.log(row, com);
switch (com) { switch (com) {
...@@ -1060,46 +1060,46 @@ export default { ...@@ -1060,46 +1060,46 @@ export default {
break; break;
default: default:
await this.resetHandle(row);
window.location.href = row.fileUrl; window.location.href = row.fileUrl;
break; break;
} }
}, },
resetHandle(row) { resetHandle(row) {
let params = { return new Promise((resolve) => {
code: row.code, let params = {
}; code: row.code,
Promise.all([ };
queryCommerDeedTaxDetailInfo(params), Promise.all([
queryCommerDeedTaxRecord(params), queryCommerDeedTaxDetailInfo(params),
]).then((res) => { queryCommerDeedTaxRecord(params),
console.log(res); ]).then((res) => {
// if (res[0].data?.state == 1) { this.detail = res[0].data;
this.detail = res[0].data; this.arrList = res[1].data;
this.arrList = res[1].data; this.detail.recordVos.forEach((item) => {
this.detail.recordVos.forEach((item) => { item.departmentName.search("财政") != -1
item.departmentName.search("财政") != -1 ? (this.arr1 = item.reason)
? (this.arr1 = item.reason) : "";
: ""; item.departmentName.search("不动产") != -1
item.departmentName.search("不动产") != -1 ? (this.arr2 = item.reason)
? (this.arr2 = item.reason) : "";
: ""; item.departmentName.search("税务") != -1
item.departmentName.search("税务") != -1 ? (this.arr3 = item.reason)
? (this.arr3 = item.reason) : "";
: ""; });
this.initTemplate();
resolve();
}); });
console.log(111);
this.initTemplate();
// }
}); });
}, },
initTemplate() { initTemplate() {
let that = this; let that = this;
console.log("-------", that.detail);
console.log(that.arrList);
console.log(that.arr1, that.arr2, that.arr3);
let arr = {}; let arr = {};
arr.name = that.detail.name; arr.name = that.detail.name;
arr.idCard = that.detail.idCard; arr.idCard = that.detail.idCard;
arr.title = "商办用房";
arr.birthDate = arr.birthDate =
that.detail.idCard.substring(6, 10) + that.detail.idCard.substring(6, 10) +
"-" + "-" +
...@@ -1125,6 +1125,8 @@ export default { ...@@ -1125,6 +1125,8 @@ export default {
arr.arr3 = that.arr3 || ""; // 税务 arr.arr3 = that.arr3 || ""; // 税务
this.docxsrc = "./static/deedTax2.docx"; //模板文件的位置 this.docxsrc = "./static/deedTax2.docx"; //模板文件的位置
} }
console.log(this.docxsrc, "docxsrc");
// let docxname = '购房契税补贴申请表'; //导出文件的名字 // let docxname = '购房契税补贴申请表'; //导出文件的名字
// 读取并获得模板文件的二进制内容 // 读取并获得模板文件的二进制内容
JSZipUtils.getBinaryContent(this.docxsrc, function (error, content) { JSZipUtils.getBinaryContent(this.docxsrc, function (error, content) {
...@@ -1167,7 +1169,6 @@ export default { ...@@ -1167,7 +1169,6 @@ export default {
mimeType: mimeType:
"application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
}); });
console.log("out----", out);
uploadWordFile( uploadWordFile(
new File([out], "deed-text" + new Date().valueOf() + ".docx", { new File([out], "deed-text" + new Date().valueOf() + ".docx", {
type: out.type, type: out.type,
......
<template> <template>
<div class="deedtax"> <div class="deedtax">
<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
v-model="searchForm.phone"
placeholder="请输入手机号码"
@keyup.enter.native="onSubmit"
>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="不动产坐落辖市区" v-if=" <el-form-item
this.realEstateArea == '市区' || label="不动产坐落辖市区"
(this.searchForm.departmentCode == '10000032' && v-if="
this.realEstateArea != '句容市') this.realEstateArea == '市区' ||
"> (this.searchForm.departmentCode == '10000032' &&
<el-select v-model="searchForm.checkArealEstateArea" placeholder="请选择不动产坐落辖市区" @change="onSubmit" size="medium"> this.realEstateArea != '句容市')
<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-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -23,24 +49,37 @@ ...@@ -23,24 +49,37 @@
<el-button type="primary" @click="onSubmit">查询</el-button> <el-button type="primary" @click="onSubmit">查询</el-button>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" v-if=" <el-button
this.searchForm.departmentCode == '10000033' || type="primary"
this.searchForm.departmentCode == '10000031' v-if="
" @click="downLoadShow = true">导出 this.searchForm.departmentCode == '10000033' ||
this.searchForm.departmentCode == '10000031'
"
@click="downLoadShow = true"
>导出
</el-button> </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
:label="item.state"
v-for="item in stateList"
:key="item.state"
>{{ item.stateName }}
</el-radio> </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="departmentName" label="实施主体" align="center"> <el-table-column slot="departmentName" label="实施主体" align="center">
<template> <template>
{{ this.$route.query.departmentName }} {{ this.$route.query.departmentName }}
...@@ -48,12 +87,18 @@ ...@@ -48,12 +87,18 @@
</el-table-column> </el-table-column>
<el-table-column label="状态" align="center"> <el-table-column label="状态" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag type="warning" v-if="scope.row.reviewerState == 0">待审核</el-tag> <el-tag type="warning" v-if="scope.row.reviewerState == 0"
<el-tag type="success" v-if="scope.row.reviewerState == 8">初审通过</el-tag> >待审核</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 == 1">待复审</el-tag>
<el-tag type="warning" v-if="scope.row.state == 2">待用户确认</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="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="info" v-if="scope.row.state == 5">已撤销</el-tag> -->
<!-- <el-tag type="warning" v-if="scope.row.state == 6">资料审核</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> --> <!-- <el-tag type="success" v-if="scope.row.state == 6">已完成</el-tag> -->
...@@ -61,28 +106,63 @@ ...@@ -61,28 +106,63 @@
</el-table-column> </el-table-column>
<el-table-column fixed="right" label="操作" width="350" align="center"> <el-table-column fixed="right" label="操作" width="350" align="center">
<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 v-if="scope.row.reviewerState == 0 && scope.row.state == 0" type="success" size="mini" round <el-button
@click="pass(scope.row)">通过 v-if="scope.row.reviewerState == 0 && scope.row.state == 0"
type="success"
size="mini"
round
@click="pass(scope.row)"
>通过
</el-button> </el-button>
<el-button v-if="scope.row.reviewerState == 0 && scope.row.state == 0" type="danger" size="mini" round <el-button
@click="deny(scope.row)">拒绝 v-if="scope.row.reviewerState == 0 && scope.row.state == 0"
type="danger"
size="mini"
round
@click="deny(scope.row)"
>拒绝
</el-button> </el-button>
<el-button v-if=" <el-button
(scope.row.reviewerState == 9 && scope.row.state == 4) || v-if="
((scope.row.state == 0 || scope.row.state == 1) && (scope.row.reviewerState == 9 && scope.row.state == 4) ||
scope.row.reviewerState == 8) ((scope.row.state == 0 || scope.row.state == 1) &&
" type="info" size="mini" round @click="drevokeeny(scope.row)">撤销 scope.row.reviewerState == 8)
"
type="info"
size="mini"
round
@click="drevokeeny(scope.row)"
>撤销
</el-button> </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> </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%">
...@@ -96,10 +176,12 @@ ...@@ -96,10 +176,12 @@
</el-table> </el-table>
<div class="cell"> <div class="cell">
<p class="label">是否享受过相关政策</p> <p class="label">是否享受过相关政策</p>
<p :class="[ <p
'value', :class="[
viewDetail.enjoyFlag == true ? 'value2' : 'value1', 'value',
]"> viewDetail.enjoyFlag == true ? 'value2' : 'value1',
]"
>
{{ viewDetail.enjoyFlag ? "否" : "是" }} {{ viewDetail.enjoyFlag ? "否" : "是" }}
</p> </p>
</div> </div>
...@@ -135,9 +217,14 @@ ...@@ -135,9 +217,14 @@
<div class="cell"> <div class="cell">
<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>
...@@ -152,21 +239,35 @@ ...@@ -152,21 +239,35 @@
<div class="cell"> <div class="cell">
<p class="label">银行卡照片</p> <p class="label">银行卡照片</p>
<p class="value"> <p class="value">
<el-image v-for="(item, index) in viewDetail.bankCardPicture" :key="index" <el-image
style="width: 100px; height: 100px; margin-right: 10px" :src="item.picture" :z-index="7777777" v-for="(item, index) in viewDetail.bankCardPicture"
: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" v-if="viewDetail.deedBillCode && !viewDetail.secondDeedBillCode"> <p
class="value"
v-if="viewDetail.deedBillCode && !viewDetail.secondDeedBillCode"
>
NO.{{ viewDetail.deedBillCode }} NO.{{ viewDetail.deedBillCode }}
</p> </p>
<p class="value" v-if="!viewDetail.deedBillCode && viewDetail.secondDeedBillCode"> <p
class="value"
v-if="!viewDetail.deedBillCode && viewDetail.secondDeedBillCode"
>
NO.{{ viewDetail.secondDeedBillCode }} NO.{{ viewDetail.secondDeedBillCode }}
</p> </p>
<p class="value" v-if="viewDetail.deedBillCode && viewDetail.secondDeedBillCode"> <p
class="value"
v-if="viewDetail.deedBillCode && viewDetail.secondDeedBillCode"
>
NO.{{ viewDetail.deedBillCode }}、NO.{{ NO.{{ viewDetail.deedBillCode }}、NO.{{
viewDetail.secondDeedBillCode viewDetail.secondDeedBillCode
}} }}
...@@ -201,9 +302,11 @@ ...@@ -201,9 +302,11 @@
<p class="value"> <p class="value">
{{ {{
viewDetail.houseType == 1 viewDetail.houseType == 1
? "商品房" ? "商品房"
: viewDetail.houseType == 2 : viewDetail.houseType == 2
? "二手房" ? "二手房"
: viewDetail.houseType == 3
? "商办用房"
: "-" : "-"
}} }}
</p> </p>
...@@ -215,33 +318,53 @@ ...@@ -215,33 +318,53 @@
<div class="cell"> <div class="cell">
<p class="label">不动产权证书</p> <p class="label">不动产权证书</p>
<p class="value"> <p class="value">
<el-image v-for="(item, index) in viewDetail.certificate" :key="index" <el-image
style="width: 100px; height: 100px; margin-right: 10px" :src="item.picture" :z-index="7777777" v-for="(item, index) in viewDetail.certificate"
: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 v-for="(item, index) in viewDetail.voucher" :key="index" <el-image
style="width: 100px; height: 100px; margin-right: 10px" :src="item.picture" :z-index="7777777" v-for="(item, index) in viewDetail.voucher"
: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" v-if="recordList[0]"> <div class="content" v-if="recordList[0]">
<div class="cell" v-for="(item, index) in recordList" :key="index"> <div class="cell" v-for="(item, index) in recordList" :key="index">
<p class="label" style="margin-right: 20px"> <p class="label" style="margin-right: 20px">
...@@ -256,13 +379,23 @@ ...@@ -256,13 +379,23 @@
<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="reassignmentShow" width="600px" :close-on-press-escape="false" <el-dialog
:before-close="closeDialog"> title="改派部门"
:visible.sync="reassignmentShow"
width="600px"
:close-on-press-escape="false"
:before-close="closeDialog"
>
<el-form label-width="120px" :model="params"> <el-form label-width="120px" :model="params">
<el-row> <el-row>
<el-form-item label="改派部门"> <el-form-item label="改派部门">
<el-cascader v-model="params.checkArea" placeholder="请选择部门" :options="checkAreaList" :show-all-levels="false" <el-cascader
@change="handleChange"> v-model="params.checkArea"
placeholder="请选择部门"
:options="checkAreaList"
:show-all-levels="false"
@change="handleChange"
>
</el-cascader> </el-cascader>
</el-form-item> </el-form-item>
</el-row> </el-row>
...@@ -272,19 +405,37 @@ ...@@ -272,19 +405,37 @@
<el-button type="primary" @click="determine">确 定</el-button> <el-button type="primary" @click="determine">确 定</el-button>
</span> </span>
</el-dialog> </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-form label-width="120px" :model="params">
<el-row> <el-row>
<el-form-item label="状态"> <el-form-item label="状态">
<el-select v-model="downLoadParams.state" placeholder="请选择状态"> <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-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="日期"> <el-form-item label="日期">
<el-date-picker v-model="date" type="daterange" range-separator="-" start-placeholder="开始日期" <el-date-picker
end-placeholder="结束日期" :default-time="['00:00:00', '23:59:59']" format="yyyy-MM-dd" v-model="date"
value-format="yyyy-MM-dd HH:mm:ss" @change="time"> 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-date-picker>
</el-form-item> </el-form-item>
</el-row> </el-row>
...@@ -308,7 +459,7 @@ import { ...@@ -308,7 +459,7 @@ import {
initCommerDepartmentRevocation, initCommerDepartmentRevocation,
updateCommerCheckArea, updateCommerCheckArea,
saveCommerFileUrl, saveCommerFileUrl,
userCommerExport userCommerExport,
} from "@/api/commercial.js"; } from "@/api/commercial.js";
import docxtemplater from "docxtemplater"; import docxtemplater from "docxtemplater";
import PizZip from "pizzip"; import PizZip from "pizzip";
...@@ -321,7 +472,7 @@ export default { ...@@ -321,7 +472,7 @@ export default {
components: { TableTemplate }, components: { TableTemplate },
data() { data() {
return { return {
userName: '', userName: "",
searchForm: { searchForm: {
name: "", name: "",
phone: "", phone: "",
...@@ -530,7 +681,12 @@ export default { ...@@ -530,7 +681,12 @@ export default {
label: "句容市", label: "句容市",
value: "句容市", value: "句容市",
}, },
{
label: "丹阳市",
value: "丹阳市",
},
], ],
// 以下是填充模板字段 // 以下是填充模板字段
detail: {}, detail: {},
arrList: [], arrList: [],
...@@ -570,7 +726,7 @@ export default { ...@@ -570,7 +726,7 @@ export default {
watch: { watch: {
$route() { $route() {
if (this.$route) { if (this.$route) {
this.userName = localStorage.getItem('userName'); this.userName = localStorage.getItem("userName");
// 10000031 财政局code 10000032 税务局code 10000033 不动产登记中心code // 10000031 财政局code 10000032 税务局code 10000033 不动产登记中心code
this.searchForm.departmentCode = this.$route.query.departmentCode; this.searchForm.departmentCode = this.$route.query.departmentCode;
this.realEstateArea = this.$route.query.realEstateArea this.realEstateArea = this.$route.query.realEstateArea
...@@ -578,12 +734,12 @@ export default { ...@@ -578,12 +734,12 @@ export default {
: null; : null;
// departmentName: 审核部门名称(左侧列表) // departmentName: 审核部门名称(左侧列表)
this.departmentName = this.$route.query.departmentName; this.departmentName = this.$route.query.departmentName;
this.searchForm.name = '' this.searchForm.name = "";
this.searchForm.phone = '' this.searchForm.phone = "";
this.searchForm.state = '' this.searchForm.state = "";
this.init(); this.init();
} }
} },
}, },
methods: { methods: {
init() { init() {
...@@ -610,11 +766,11 @@ export default { ...@@ -610,11 +766,11 @@ export default {
item.type = this.getSatusArr(item.reviewerState).type; item.type = this.getSatusArr(item.reviewerState).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 = [];
} }
} }
}); });
...@@ -637,7 +793,7 @@ export default { ...@@ -637,7 +793,7 @@ export default {
code: row.code, code: row.code,
// matterType: row.matterType // matterType: row.matterType
}; };
queryCommerDeedTaxDetailInfo(params).then(res => { queryCommerDeedTaxDetailInfo(params).then((res) => {
// console.log(res) // console.log(res)
// let arr = [] // let arr = []
// res.data.pictures.forEach((item) => { // res.data.pictures.forEach((item) => {
...@@ -651,33 +807,45 @@ export default { ...@@ -651,33 +807,45 @@ export default {
// let arr1 = [] // let arr1 = []
// arr1 = res1.map((item, index) => ({ picture: item.data, pictureType: res.data.pictures[index].pictureType })) // arr1 = res1.map((item, index) => ({ picture: item.data, pictureType: res.data.pictures[index].pictureType }))
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.pictures.filter(item => item.pictureType === 1); this.viewDetail.idCardPicture = res.data.pictures.filter(
this.viewDetail.bankCardPicture = res.data.pictures.filter(item => item.pictureType === 5); (item) => item.pictureType === 1
this.viewDetail.contract = res.data.pictures.filter(item => item.pictureType === 2); );
this.viewDetail.certificate = res.data.pictures.filter(item => item.pictureType === 3); this.viewDetail.bankCardPicture = res.data.pictures.filter(
this.viewDetail.voucher = res.data.pictures.filter(item => (item.pictureType === 4 || item.pictureType === 6)); (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; this.viewShow = true;
// }) // })
let reason = [] let reason = [];
res.data.recordVos.map((item) => { res.data.recordVos.map((item) => {
if (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) item.stateName = this.getSatusArr1(item.state)
? this.getSatusArr1(item.state).stateName ? this.getSatusArr1(item.state).stateName
: "未知状态"; : "未知状态";
return item; return item;
}); });
this.examineList = this.recordList; this.examineList = this.recordList;
this.examineList.forEach(item => { this.examineList.forEach((item) => {
(item.state != 4 && item.state != 9) ? (item.state = "通过") : (item.state = "拒绝"); item.state != 4 && item.state != 9
? (item.state = "通过")
: (item.state = "拒绝");
}); });
this.totalList = this.examineList; this.totalList = this.examineList;
console.log(this.totalList); console.log(this.totalList);
...@@ -687,7 +855,7 @@ export default { ...@@ -687,7 +855,7 @@ export default {
record(row) { record(row) {
console.log(1); console.log(1);
// console.log(row); // console.log(row);
queryCommerDeedTaxRecord({ code: row.code }).then((res) => { queryCommerDeedTaxRecord({ code: row.code }).then((res) => {
console.log(res.data); console.log(res.data);
let reason = []; let reason = [];
...@@ -713,7 +881,7 @@ export default { ...@@ -713,7 +881,7 @@ export default {
}, },
pass(row) { pass(row) {
console.log(row); console.log(row);
this.rowDetail = row this.rowDetail = row;
this.$prompt(`确定通过该申请的初审吗?`, "提示", { this.$prompt(`确定通过该申请的初审吗?`, "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
...@@ -726,7 +894,7 @@ export default { ...@@ -726,7 +894,7 @@ export default {
this.$message.error("未输入原因"); this.$message.error("未输入原因");
return; return;
} }
queryCommerDeedTaxDetailInfo({ code: row.code }).then(res => { queryCommerDeedTaxDetailInfo({ code: row.code }).then((res) => {
if (res.success) { if (res.success) {
let params = { let params = {
code: row.code, code: row.code,
...@@ -751,8 +919,8 @@ export default { ...@@ -751,8 +919,8 @@ export default {
// matterType: row.matterType // matterType: row.matterType
}; };
Promise.all([ Promise.all([
queryCommerDeedTaxDetailInfo(params), queryCommerDeedTaxDetailInfo(params),
queryCommerDeedTaxRecord(params), queryCommerDeedTaxRecord(params),
]).then((res) => { ]).then((res) => {
if (res[0].data.state == 1) { if (res[0].data.state == 1) {
this.detail = res[0].data; this.detail = res[0].data;
...@@ -778,8 +946,7 @@ export default { ...@@ -778,8 +946,7 @@ export default {
} }
}); });
} }
}) });
}) })
.catch(() => { .catch(() => {
// console.log("取消审核"); // console.log("取消审核");
...@@ -787,12 +954,11 @@ export default { ...@@ -787,12 +954,11 @@ export default {
}, },
initTemplate() { initTemplate() {
let that = this; let that = this;
console.log("-------", that.detail);
console.log(that.arrList);
console.log(that.arr1, that.arr2, that.arr3);
let arr = {}; let arr = {};
arr.name = that.detail.name; arr.name = that.detail.name;
arr.idCard = that.detail.idCard; arr.idCard = that.detail.idCard;
arr.title = "商办用房";
arr.birthDate = arr.birthDate =
that.detail.idCard.substring(6, 10) + that.detail.idCard.substring(6, 10) +
"-" + "-" +
...@@ -809,14 +975,14 @@ export default { ...@@ -809,14 +975,14 @@ export default {
arr.arr1 = that.arr1 || ""; // 财政 arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产 arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务 arr.arr3 = that.arr3 || ""; // 税务
if (this.$route.query.realEstateArea != '句容市') { if (this.$route.query.realEstateArea != "句容市") {
arr.arr1 = that.arr1 || ""; // 财政 arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产 arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务 arr.arr3 = that.arr3 || ""; // 税务
this.docxsrc = "./static/deedTax1.docx"; //模板文件的位置 this.docxsrc = "./static/deedTax1.docx"; //模板文件的位置
} else { } else {
arr.arr3 = that.arr3 || ""; // 税务 arr.arr3 = that.arr3 || ""; // 税务
this.docxsrc = "./static/deedTax2.docx"; //模板文件的位置 this.docxsrc = "./static/deedTax2.docx"; //模板文件的位置
} }
// let docxname = '购房契税补贴申请表'; //导出文件的名字 // let docxname = '购房契税补贴申请表'; //导出文件的名字
// 读取并获得模板文件的二进制内容 // 读取并获得模板文件的二进制内容
...@@ -877,21 +1043,23 @@ export default { ...@@ -877,21 +1043,23 @@ export default {
}); });
} else { } else {
that.$message.error(res.msg); that.$message.error(res.msg);
queryCommerDeedTaxDetailInfo({ code: that.rowDetail.code }).then(res => { queryCommerDeedTaxDetailInfo({ code: that.rowDetail.code }).then(
console.log(res) (res) => {
if (res.success) { console.log(res);
let params = { if (res.success) {
code: that.rowDetail.code, let params = {
phone: res.data.phone, code: that.rowDetail.code,
reviewerId: that.rowDetail.reviewerId, phone: res.data.phone,
state: res.data.state, reviewerId: that.rowDetail.reviewerId,
}; state: res.data.state,
initCommerDepartmentRevocation(params).then((res) => { };
console.log(res); initCommerDepartmentRevocation(params).then((res) => {
that.init(); console.log(res);
}); that.init();
});
}
} }
}) );
} }
}); });
// 将目标文件对象保存为目标类型的文件,并命名 // 将目标文件对象保存为目标类型的文件,并命名
...@@ -910,8 +1078,8 @@ export default { ...@@ -910,8 +1078,8 @@ export default {
this.$message.error("未输入原因"); this.$message.error("未输入原因");
return; return;
} }
queryCommerDeedTaxDetailInfo({ code: row.code }).then(res => { queryCommerDeedTaxDetailInfo({ code: row.code }).then((res) => {
console.log(res) console.log(res);
if (res.success) { if (res.success) {
let params = { let params = {
code: row.code, code: row.code,
...@@ -933,7 +1101,7 @@ export default { ...@@ -933,7 +1101,7 @@ export default {
this.init(); this.init();
}); });
} }
}) });
}) })
.catch(() => { .catch(() => {
// console.log("取消审核"); // console.log("取消审核");
...@@ -946,8 +1114,8 @@ export default { ...@@ -946,8 +1114,8 @@ export default {
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}).then(() => { }).then(() => {
queryCommerDeedTaxDetailInfo({ code: row.code }).then(res => { queryCommerDeedTaxDetailInfo({ code: row.code }).then((res) => {
console.log(res) console.log(res);
if (res.success) { if (res.success) {
let params = { let params = {
code: row.code, code: row.code,
...@@ -966,8 +1134,7 @@ export default { ...@@ -966,8 +1134,7 @@ export default {
} }
}); });
} }
}) });
}); });
}, },
reassignment(row) { reassignment(row) {
...@@ -1064,7 +1231,7 @@ export default { ...@@ -1064,7 +1231,7 @@ export default {
}, },
}, },
created() { created() {
this.userName = localStorage.getItem('userName'); this.userName = localStorage.getItem("userName");
// 10000031 财政局code 10000032 税务局code 10000033 不动产登记中心code // 10000031 财政局code 10000032 税务局code 10000033 不动产登记中心code
this.searchForm.departmentCode = this.$route.query.departmentCode; this.searchForm.departmentCode = this.$route.query.departmentCode;
this.realEstateArea = this.$route.query.realEstateArea this.realEstateArea = this.$route.query.realEstateArea
...@@ -1128,4 +1295,4 @@ export default { ...@@ -1128,4 +1295,4 @@ export default {
} }
} }
} }
</style> </style>
\ No newline at end of file
...@@ -1055,8 +1055,7 @@ export default { ...@@ -1055,8 +1055,7 @@ export default {
return item.state === state; return item.state === state;
})[0]; })[0];
}, },
handleCommand(row, com) { async handleCommand(row, com) {
console.log(row, com);
// this.downloadUrl=row.fileUrl // this.downloadUrl=row.fileUrl
switch (com) { switch (com) {
case "reset": case "reset":
...@@ -1064,46 +1063,50 @@ export default { ...@@ -1064,46 +1063,50 @@ export default {
break; break;
default: default:
await this.resetHandle(row);
window.location.href = row.fileUrl; window.location.href = row.fileUrl;
break; break;
} }
}, },
resetHandle(row) { resetHandle(row) {
let params = { new Promise((resolve) => {
code: row.code, let params = {
}; code: row.code,
Promise.all([ };
queryDeedTaxDetailInfo(params), Promise.all([
queryDeedTaxRecord(params), queryDeedTaxDetailInfo(params),
]).then((res) => { queryDeedTaxRecord(params),
console.log(res); ]).then((res) => {
// if (res[0].data?.state == 1) { console.log(res);
console.log(111); // if (res[0].data?.state == 1) {
this.detail = res[0].data; this.detail = res[0].data;
this.arrList = res[1].data; this.arrList = res[1].data;
this.detail.recordVos.forEach((item) => { this.detail.recordVos.forEach((item) => {
item.departmentName.search("财政") != -1 item.departmentName.search("财政") != -1
? (this.arr1 = item.reason) ? (this.arr1 = item.reason)
: ""; : "";
item.departmentName.search("不动产") != -1 item.departmentName.search("不动产") != -1
? (this.arr2 = item.reason) ? (this.arr2 = item.reason)
: ""; : "";
item.departmentName.search("税务") != -1 item.departmentName.search("税务") != -1
? (this.arr3 = item.reason) ? (this.arr3 = item.reason)
: ""; : "";
});
this.initTemplate();
// }
resolve();
}); });
this.initTemplate();
// }
}); });
}, },
initTemplate() { initTemplate() {
let that = this; let that = this;
console.log("-------", that.detail);
console.log(that.arrList);
console.log(that.arr1, that.arr2, that.arr3);
let arr = {}; let arr = {};
arr.name = that.detail.name; arr.name = that.detail.name;
arr.idCard = that.detail.idCard; arr.idCard = that.detail.idCard;
arr.title = "用首套商品住房";
arr.birthDate = arr.birthDate =
that.detail.idCard.substring(6, 10) + that.detail.idCard.substring(6, 10) +
"-" + "-" +
......
...@@ -679,6 +679,10 @@ export default { ...@@ -679,6 +679,10 @@ export default {
label: "句容市", label: "句容市",
value: "句容市", value: "句容市",
}, },
{
label: "丹阳市",
value: "丹阳市",
},
], ],
// 以下是填充模板字段 // 以下是填充模板字段
detail: {}, detail: {},
...@@ -948,12 +952,12 @@ export default { ...@@ -948,12 +952,12 @@ export default {
}, },
initTemplate() { initTemplate() {
let that = this; let that = this;
console.log("-------", that.detail);
console.log(that.arrList);
console.log(that.arr1, that.arr2, that.arr3);
let arr = {}; let arr = {};
arr.name = that.detail.name; arr.name = that.detail.name;
arr.idCard = that.detail.idCard; arr.idCard = that.detail.idCard;
arr.title = "用首套商品住房";
arr.birthDate = arr.birthDate =
that.detail.idCard.substring(6, 10) + that.detail.idCard.substring(6, 10) +
"-" + "-" +
......
...@@ -1055,7 +1055,7 @@ export default { ...@@ -1055,7 +1055,7 @@ export default {
return item.state === state; return item.state === state;
})[0]; })[0];
}, },
handleCommand(row, com) { async handleCommand(row, com) {
console.log(row, com); console.log(row, com);
// this.downloadUrl=row.fileUrl // this.downloadUrl=row.fileUrl
switch (com) { switch (com) {
...@@ -1064,46 +1064,46 @@ export default { ...@@ -1064,46 +1064,46 @@ export default {
break; break;
default: default:
await this.resetHandle(row);
window.location.href = row.fileUrl; window.location.href = row.fileUrl;
break; break;
} }
}, },
resetHandle(row) { resetHandle(row) {
let params = { return new Promise((resolve) => {
code: row.code, let params = {
}; code: row.code,
Promise.all([ };
queryHouseDeedTaxDetailInfo(params), Promise.all([
queryHouseDeedTaxRecord(params), queryHouseDeedTaxDetailInfo(params),
]).then((res) => { queryHouseDeedTaxRecord(params),
console.log(res); ]).then((res) => {
// if (res[0].data?.state == 1) { this.detail = res[0].data;
console.log(111); this.arrList = res[1].data;
this.detail = res[0].data; this.detail.recordVos.forEach((item) => {
this.arrList = res[1].data; item.departmentName.search("财政") != -1
this.detail.recordVos.forEach((item) => { ? (this.arr1 = item.reason)
item.departmentName.search("财政") != -1 : "";
? (this.arr1 = item.reason) item.departmentName.search("不动产") != -1
: ""; ? (this.arr2 = item.reason)
item.departmentName.search("不动产") != -1 : "";
? (this.arr2 = item.reason) item.departmentName.search("税务") != -1
: ""; ? (this.arr3 = item.reason)
item.departmentName.search("税务") != -1 : "";
? (this.arr3 = item.reason) });
: ""; this.initTemplate();
resolve();
// }
}); });
this.initTemplate();
// }
}); });
}, },
initTemplate() { initTemplate() {
let that = this; let that = this;
console.log("-------", that.detail);
console.log(that.arrList);
console.log(that.arr1, that.arr2, that.arr3);
let arr = {}; let arr = {};
arr.name = that.detail.name; arr.name = that.detail.name;
arr.idCard = that.detail.idCard; arr.idCard = that.detail.idCard;
arr.title = "改善型住房";
arr.birthDate = arr.birthDate =
that.detail.idCard.substring(6, 10) + that.detail.idCard.substring(6, 10) +
"-" + "-" +
......
...@@ -679,6 +679,10 @@ export default { ...@@ -679,6 +679,10 @@ export default {
label: "句容市", label: "句容市",
value: "句容市", value: "句容市",
}, },
{
label: "丹阳市",
value: "丹阳市",
},
], ],
// 以下是填充模板字段 // 以下是填充模板字段
detail: {}, detail: {},
...@@ -962,6 +966,7 @@ export default { ...@@ -962,6 +966,7 @@ export default {
let arr = {}; let arr = {};
arr.name = that.detail.name; arr.name = that.detail.name;
arr.idCard = that.detail.idCard; arr.idCard = that.detail.idCard;
arr.title = "改善型住房";
arr.birthDate = arr.birthDate =
that.detail.idCard.substring(6, 10) + that.detail.idCard.substring(6, 10) +
"-" + "-" +
......
...@@ -1077,7 +1077,7 @@ export default { ...@@ -1077,7 +1077,7 @@ export default {
return item.state === state; return item.state === state;
})[0]; })[0];
}, },
handleCommand(row, com) { async handleCommand(row, com) {
console.log(row, com); console.log(row, com);
// this.downloadUrl=row.fileUrl // this.downloadUrl=row.fileUrl
switch (com) { switch (com) {
...@@ -1086,46 +1086,46 @@ export default { ...@@ -1086,46 +1086,46 @@ export default {
break; break;
default: default:
await this.resetHandle(row);
window.location.href = row.fileUrl; window.location.href = row.fileUrl;
break; break;
} }
}, },
resetHandle(row) { resetHandle(row) {
let params = { return new Promise((resolve) => {
code: row.code, let params = {
}; code: row.code,
Promise.all([ };
queryMultipleDeedTaxDetailInfo(params), Promise.all([
queryMultipleDeedTaxRecord(params), queryMultipleDeedTaxDetailInfo(params),
]).then((res) => { queryMultipleDeedTaxRecord(params),
console.log(res); ]).then((res) => {
// if (res[0].data?.state == 1) { this.detail = res[0].data;
console.log(111); this.arrList = res[1].data;
this.detail = res[0].data; this.detail.recordVos.forEach((item) => {
this.arrList = res[1].data; item.departmentName.search("财政") != -1
this.detail.recordVos.forEach((item) => { ? (this.arr1 = item.reason)
item.departmentName.search("财政") != -1 : "";
? (this.arr1 = item.reason) item.departmentName.search("不动产") != -1
: ""; ? (this.arr2 = item.reason)
item.departmentName.search("不动产") != -1 : "";
? (this.arr2 = item.reason) item.departmentName.search("税务") != -1
: ""; ? (this.arr3 = item.reason)
item.departmentName.search("税务") != -1 : "";
? (this.arr3 = item.reason) });
: ""; this.initTemplate();
resolve();
// }
}); });
this.initTemplate();
// }
}); });
}, },
initTemplate() { initTemplate() {
let that = this; let that = this;
console.log("-------", that.detail);
console.log(that.arrList);
console.log(that.arr1, that.arr2, that.arr3);
let arr = {}; let arr = {};
arr.name = that.detail.name; arr.name = that.detail.name;
arr.idCard = that.detail.idCard; arr.idCard = that.detail.idCard;
arr.title = "多子女家庭";
arr.birthDate = arr.birthDate =
that.detail.idCard.substring(6, 10) + that.detail.idCard.substring(6, 10) +
"-" + "-" +
......
...@@ -680,6 +680,10 @@ export default { ...@@ -680,6 +680,10 @@ export default {
label: "句容市", label: "句容市",
value: "句容市", value: "句容市",
}, },
{
label: "丹阳市",
value: "丹阳市",
},
], ],
// 以下是填充模板字段 // 以下是填充模板字段
detail: {}, detail: {},
...@@ -950,12 +954,12 @@ export default { ...@@ -950,12 +954,12 @@ export default {
}, },
initTemplate() { initTemplate() {
let that = this; let that = this;
console.log("-------", that.detail);
console.log(that.arrList);
console.log(that.arr1, that.arr2, that.arr3);
let arr = {}; let arr = {};
arr.name = that.detail.name; arr.name = that.detail.name;
arr.idCard = that.detail.idCard; arr.idCard = that.detail.idCard;
arr.title = "多子女家庭";
arr.birthDate = arr.birthDate =
that.detail.idCard.substring(6, 10) + that.detail.idCard.substring(6, 10) +
"-" + "-" +
......
const env = process.env.NODE_ENV === "production"; const env = process.env.NODE_ENV === "production";
const publicPath = env ? "/manage-h5/" : "/"; //正式 // const publicPath = env ? "/manage-h5/" : "/"; //正式
// const publicPath = env ? "/smartExam-h5/" : "/"; //测试 const publicPath = env ? "/smartExam-h5/" : "/"; //测试
module.exports = { module.exports = {
publicPath, publicPath,
......
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