Commit eee0cab7 by swl

feat: gx

parent 7c818779
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", // 新正式接口
......
...@@ -996,7 +996,7 @@ export default { ...@@ -996,7 +996,7 @@ export default {
updateCommerDeedTaxState(params).then(() => { updateCommerDeedTaxState(params).then(() => {
this.$message.success(`复审驳回成功`); this.$message.success(`复审驳回成功`);
this.init(); this.initNew();
}); });
} }
}); });
...@@ -1157,15 +1157,6 @@ export default { ...@@ -1157,15 +1157,6 @@ export default {
arr.square = that.detail.square; arr.square = that.detail.square;
arr.bank = that.detail.bank; arr.bank = that.detail.bank;
arr.bankCard = that.detail.bankCard; arr.bankCard = that.detail.bankCard;
arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务
if (this.$route.query.realEstateArea != "句容市") {
arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务
this.docxsrc = "./static/deedTax1.docx"; //模板文件的位置
}
arr.arr1 = that.arr1 || ""; // 财政 arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产 arr.arr2 = that.arr2 || ""; // 不动产
......
...@@ -1382,13 +1382,13 @@ export default { ...@@ -1382,13 +1382,13 @@ export default {
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"; //模板文件的位置
}
if (this.templateType == "danYang") { if (this.templateType == "danYang") {
arr.arr1 = that.arr1 || ""; // 财政 arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产 arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务 arr.arr3 = that.arr3 || ""; // 税务
arr.arr4 = that.arr4 || ""; // 住建 arr.arr4 = that.arr4 || ""; // 住建
this.docxsrc = "./static/deedTax1_danYang.docx"; //模板文件的位置 this.docxsrc = "./static/deedTax1_danYang.docx"; //模板文件的位置
}
} else { } else {
arr.arr3 = that.arr3 || ""; // 税务 arr.arr3 = that.arr3 || ""; // 税务
this.docxsrc = "./static/deedTax2.docx"; //模板文件的位置 this.docxsrc = "./static/deedTax2.docx"; //模板文件的位置
......
...@@ -730,6 +730,7 @@ export default { ...@@ -730,6 +730,7 @@ export default {
date: "", date: "",
docxsrc: "", docxsrc: "",
rowDetail: "", rowDetail: "",
appLoading: null,
}; };
}, },
watch: { watch: {
...@@ -784,6 +785,44 @@ export default { ...@@ -784,6 +785,44 @@ export default {
} }
}); });
}, },
initNew() {
return new Promise((resolve) => {
this.tableData = [];
this.loading = true;
let parmas = {
name: this.searchForm.name,
phone: this.searchForm.phone,
state: this.searchForm.state,
departmentCode: this.searchForm.departmentCode,
pageNum: this.pagination.currentPage,
pageSize: this.pagination.pageSize,
checkArea: this.realEstateArea,
checkArealEstateArea: this.searchForm.checkArealEstateArea,
};
queryCommerListDeedTaxFromInitDepartment(parmas).then((res) => {
this.loading = false;
// console.log(res.data)
if (res.success) {
this.pagination.total = res.data.total;
if (res.data.total) {
this.tableData = res.data.list.map((item) => {
item.stateName = this.getSatusArr(item.reviewerState).stateName;
item.type = this.getSatusArr(item.reviewerState).type;
return item;
});
if (localStorage.getItem("userName") == "admin") {
this.tableData = changeList(this.tableData);
}
resolve();
} else {
this.tableData = [];
}
}
console.log(" this.appLoading?.close();--->", 111);
this.appLoading?.close();
});
});
},
getSatusArr(state) { getSatusArr(state) {
return this.stateList.filter((item) => { return this.stateList.filter((item) => {
return item.state == state; return item.state == state;
...@@ -902,6 +941,13 @@ export default { ...@@ -902,6 +941,13 @@ export default {
this.$message.error("未输入原因"); this.$message.error("未输入原因");
return; return;
} }
this.appLoading = this.$loading({
lock: true,
text: "审核中",
spinner: "el-icon-loading",
background: "rgba(0, 0, 0, 0.7)",
customClass: "fullLoading",
});
queryCommerDeedTaxDetailInfo({ code: row.code }).then((res) => { queryCommerDeedTaxDetailInfo({ code: row.code }).then((res) => {
if (res.success) { if (res.success) {
let params = { let params = {
...@@ -945,6 +991,8 @@ export default { ...@@ -945,6 +991,8 @@ export default {
: ""; : "";
}); });
this.initTemplate(); this.initTemplate();
} else {
this.appLoading?.close();
} }
}); });
} else { } else {
...@@ -961,6 +1009,7 @@ export default { ...@@ -961,6 +1009,7 @@ export default {
}); });
}, },
initTemplate() { initTemplate() {
return new Promise((resolve) => {
let that = this; let that = this;
let promiseText = that.$store.state.utils.promiseText; let promiseText = that.$store.state.utils.promiseText;
...@@ -1069,8 +1118,10 @@ export default { ...@@ -1069,8 +1118,10 @@ export default {
code: that.detail.code, code: that.detail.code,
fileUrl: res.data, fileUrl: res.data,
}; };
saveCommerFileUrl(params).then((res) => { saveCommerFileUrl(params).then(async (res) => {
console.log("初审通过后的传填充文件给后端---", res); console.log("初审通过后的传填充文件给后端---", res);
await that.initNew();
resolve();
}); });
} else { } else {
that.$message.error(res.msg); that.$message.error(res.msg);
...@@ -1084,9 +1135,11 @@ export default { ...@@ -1084,9 +1135,11 @@ export default {
reviewerId: that.rowDetail.reviewerId, reviewerId: that.rowDetail.reviewerId,
state: res.data.state, state: res.data.state,
}; };
initCommerDepartmentRevocation(params).then((res) => { initCommerDepartmentRevocation(params).then(async (res) => {
console.log(res); console.log(res);
that.init(); await that.initNew();
resolve();
}); });
} }
} }
...@@ -1096,6 +1149,7 @@ export default { ...@@ -1096,6 +1149,7 @@ export default {
// 将目标文件对象保存为目标类型的文件,并命名 // 将目标文件对象保存为目标类型的文件,并命名
// saveAs(out, docxname); // saveAs(out, docxname);
}); });
});
}, },
deny(row) { deny(row) {
this.$prompt(`确定驳回该申请的初审吗?`, "提示", { this.$prompt(`确定驳回该申请的初审吗?`, "提示", {
......
...@@ -996,7 +996,7 @@ export default { ...@@ -996,7 +996,7 @@ export default {
updateDeedTaxState(params).then((res) => { updateDeedTaxState(params).then((res) => {
console.log(res); console.log(res);
this.$message.success(`复审驳回成功`); this.$message.success(`复审驳回成功`);
this.init(); this.initNew();
}); });
} }
}); });
...@@ -1156,15 +1156,6 @@ export default { ...@@ -1156,15 +1156,6 @@ export default {
arr.square = that.detail.square; arr.square = that.detail.square;
arr.bank = that.detail.bank; arr.bank = that.detail.bank;
arr.bankCard = that.detail.bankCard; arr.bankCard = that.detail.bankCard;
arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务
if (this.$route.query.realEstateArea != "句容市") {
arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务
this.docxsrc = "./static/deedTax1.docx"; //模板文件的位置
}
arr.arr1 = that.arr1 || ""; // 财政 arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产 arr.arr2 = that.arr2 || ""; // 不动产
......
...@@ -1276,7 +1276,6 @@ export default { ...@@ -1276,7 +1276,6 @@ export default {
queryDeedTaxDetailInfo(params), queryDeedTaxDetailInfo(params),
queryDeedTaxRecord(params), queryDeedTaxRecord(params),
]).then((res) => { ]).then((res) => {
console.log(res, "111");
// if (res[0].data?.state == 1) { // 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;
...@@ -1369,13 +1368,13 @@ export default { ...@@ -1369,13 +1368,13 @@ export default {
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"; //模板文件的位置
}
if (this.templateType == "danYang") { if (this.templateType == "danYang") {
arr.arr1 = that.arr1 || ""; // 财政 arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产 arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务 arr.arr3 = that.arr3 || ""; // 税务
arr.arr4 = that.arr4 || ""; // 住建 arr.arr4 = that.arr4 || ""; // 住建
this.docxsrc = "./static/deedTax1_danYang.docx"; //模板文件的位置 this.docxsrc = "./static/deedTax1_danYang.docx"; //模板文件的位置
}
} else { } else {
arr.arr3 = that.arr3 || ""; // 税务 arr.arr3 = that.arr3 || ""; // 税务
this.docxsrc = "./static/deedTax2.docx"; //模板文件的位置 this.docxsrc = "./static/deedTax2.docx"; //模板文件的位置
......
...@@ -727,6 +727,7 @@ export default { ...@@ -727,6 +727,7 @@ export default {
date: "", date: "",
docxsrc: "", docxsrc: "",
rowDetail: "", rowDetail: "",
appLoading: null,
}; };
}, },
watch: { watch: {
...@@ -781,6 +782,43 @@ export default { ...@@ -781,6 +782,43 @@ export default {
} }
}); });
}, },
initNew() {
return new Promise((resolve) => {
this.tableData = [];
this.loading = true;
let parmas = {
name: this.searchForm.name,
phone: this.searchForm.phone,
state: this.searchForm.state,
departmentCode: this.searchForm.departmentCode,
pageNum: this.pagination.currentPage,
pageSize: this.pagination.pageSize,
checkArea: this.realEstateArea,
checkArealEstateArea: this.searchForm.checkArealEstateArea,
};
queryListDeedTaxFromInitDepartment(parmas).then((res) => {
this.loading = false;
// console.log(res.data)
if (res.success) {
this.pagination.total = res.data.total;
if (res.data.total) {
this.tableData = res.data.list.map((item) => {
item.stateName = this.getSatusArr(item.reviewerState).stateName;
item.type = this.getSatusArr(item.reviewerState).type;
return item;
});
if (localStorage.getItem("userName") == "admin") {
this.tableData = changeList(this.tableData);
}
resolve();
} else {
this.tableData = [];
}
}
this.appLoading?.close();
});
});
},
getSatusArr(state) { getSatusArr(state) {
return this.stateList.filter((item) => { return this.stateList.filter((item) => {
return item.state == state; return item.state == state;
...@@ -897,6 +935,13 @@ export default { ...@@ -897,6 +935,13 @@ export default {
this.$message.error("未输入原因"); this.$message.error("未输入原因");
return; return;
} }
this.appLoading = this.$loading({
lock: true,
text: "审核中",
spinner: "el-icon-loading",
background: "rgba(0, 0, 0, 0.7)",
customClass: "fullLoading",
});
queryDeedTaxDetailInfo({ code: row.code }).then((res) => { queryDeedTaxDetailInfo({ code: row.code }).then((res) => {
if (res.success) { if (res.success) {
let params = { let params = {
...@@ -942,6 +987,8 @@ export default { ...@@ -942,6 +987,8 @@ export default {
: ""; : "";
}); });
this.initTemplate(); this.initTemplate();
} else {
this.appLoading?.close();
} }
}); });
} else { } else {
...@@ -958,6 +1005,7 @@ export default { ...@@ -958,6 +1005,7 @@ export default {
}); });
}, },
initTemplate() { initTemplate() {
return new Promise((resolve) => {
let that = this; let that = this;
let promiseText = that.$store.state.utils.promiseText; let promiseText = that.$store.state.utils.promiseText;
...@@ -1068,8 +1116,10 @@ export default { ...@@ -1068,8 +1116,10 @@ export default {
code: that.detail.code, code: that.detail.code,
fileUrl: res.data, fileUrl: res.data,
}; };
saveFileUrl(params).then((res) => { saveFileUrl(params).then(async (res) => {
console.log("初审通过后的传填充文件给后端---", res); console.log("初审通过后的传填充文件给后端---", res);
await that.initNew();
resolve();
}); });
} else { } else {
that.$message.error(res.msg); that.$message.error(res.msg);
...@@ -1083,9 +1133,10 @@ export default { ...@@ -1083,9 +1133,10 @@ export default {
reviewerId: that.rowDetail.reviewerId, reviewerId: that.rowDetail.reviewerId,
state: res.data.state, state: res.data.state,
}; };
initDepartmentRevocation(params).then((res) => { initDepartmentRevocation(params).then(async (res) => {
console.log(res); console.log(res);
that.init(); await that.initNew();
resolve();
}); });
} }
} }
...@@ -1095,6 +1146,7 @@ export default { ...@@ -1095,6 +1146,7 @@ export default {
// 将目标文件对象保存为目标类型的文件,并命名 // 将目标文件对象保存为目标类型的文件,并命名
// saveAs(out, docxname); // saveAs(out, docxname);
}); });
});
}, },
deny(row) { deny(row) {
this.$prompt(`确定驳回该申请的初审吗?`, "提示", { this.$prompt(`确定驳回该申请的初审吗?`, "提示", {
......
...@@ -995,7 +995,7 @@ export default { ...@@ -995,7 +995,7 @@ export default {
updateHouseDeedTaxState(params).then((res) => { updateHouseDeedTaxState(params).then((res) => {
console.log(res); console.log(res);
this.$message.success(`复审驳回成功`); this.$message.success(`复审驳回成功`);
this.init(); this.initNew();
}); });
} }
}); });
...@@ -1155,15 +1155,7 @@ export default { ...@@ -1155,15 +1155,7 @@ export default {
arr.square = that.detail.square; arr.square = that.detail.square;
arr.bank = that.detail.bank; arr.bank = that.detail.bank;
arr.bankCard = that.detail.bankCard; arr.bankCard = that.detail.bankCard;
arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务
if (this.$route.query.realEstateArea != "句容市") {
arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务
this.docxsrc = "./static/deedTax1.docx"; //模板文件的位置
}
arr.arr1 = that.arr1 || ""; // 财政 arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产 arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务 arr.arr3 = that.arr3 || ""; // 税务
......
...@@ -185,7 +185,7 @@ ...@@ -185,7 +185,7 @@
> >
<el-dropdown <el-dropdown
size="mini" size="mini"
@command="handleCommand(scope.row, $event)" @command="handleCommand(scope.row, $event, 'default')"
> >
<span class="el-dropdown-link"> <span class="el-dropdown-link">
申请表<i class="el-icon-arrow-down el-icon--right"></i> 申请表<i class="el-icon-arrow-down el-icon--right"></i>
...@@ -1348,6 +1348,7 @@ export default { ...@@ -1348,6 +1348,7 @@ export default {
} }
let arr = {}; let arr = {};
arr.promiseText = text; arr.promiseText = text;
arr.time = that.detail.createTime.split(" ")[0]; arr.time = that.detail.createTime.split(" ")[0];
...@@ -1374,18 +1375,19 @@ export default { ...@@ -1374,18 +1375,19 @@ 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"; //模板文件的位置
}
if (this.templateType == "danYang") { if (this.templateType == "danYang") {
arr.arr1 = that.arr1 || ""; // 财政 arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产 arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务 arr.arr3 = that.arr3 || ""; // 税务
arr.arr4 = that.arr4 || ""; // 住建 arr.arr4 = that.arr4 || ""; // 住建
this.docxsrc = "./static/deedTax1_danYang.docx"; //模板文件的位置 this.docxsrc = "./static/deedTax1_danYang.docx"; //模板文件的位置
}
} else { } else {
arr.arr3 = that.arr3 || ""; // 税务 arr.arr3 = that.arr3 || ""; // 税务
this.docxsrc = "./static/deedTax2.docx"; //模板文件的位置 this.docxsrc = "./static/deedTax2.docx"; //模板文件的位置
...@@ -1447,7 +1449,6 @@ export default { ...@@ -1447,7 +1449,6 @@ export default {
}; };
saveHouseFileUrl(params).then(async (res) => { saveHouseFileUrl(params).then(async (res) => {
console.log("初审通过后的传填充文件给后端---", res); console.log("初审通过后的传填充文件给后端---", res);
await that.initNew(); await that.initNew();
resolve(); resolve();
}); });
......
...@@ -727,6 +727,7 @@ export default { ...@@ -727,6 +727,7 @@ export default {
date: "", date: "",
docxsrc: "", docxsrc: "",
rowDetail: "", rowDetail: "",
appLoading: null,
}; };
}, },
watch: { watch: {
...@@ -781,6 +782,43 @@ export default { ...@@ -781,6 +782,43 @@ export default {
} }
}); });
}, },
initNew() {
return new Promise((resolve) => {
this.tableData = [];
this.loading = true;
let parmas = {
name: this.searchForm.name,
phone: this.searchForm.phone,
state: this.searchForm.state,
departmentCode: this.searchForm.departmentCode,
pageNum: this.pagination.currentPage,
pageSize: this.pagination.pageSize,
checkArea: this.realEstateArea,
checkArealEstateArea: this.searchForm.checkArealEstateArea,
};
queryHouseListDeedTaxFromInitDepartment(parmas).then((res) => {
this.loading = false;
// console.log(res.data)
if (res.success) {
this.pagination.total = res.data.total;
if (res.data.total) {
this.tableData = res.data.list.map((item) => {
item.stateName = this.getSatusArr(item.reviewerState).stateName;
item.type = this.getSatusArr(item.reviewerState).type;
return item;
});
if (localStorage.getItem("userName") == "admin") {
this.tableData = changeList(this.tableData);
}
resolve();
} else {
this.tableData = [];
}
}
this.appLoading?.close();
});
});
},
getSatusArr(state) { getSatusArr(state) {
return this.stateList.filter((item) => { return this.stateList.filter((item) => {
return item.state == state; return item.state == state;
...@@ -899,6 +937,13 @@ export default { ...@@ -899,6 +937,13 @@ export default {
this.$message.error("未输入原因"); this.$message.error("未输入原因");
return; return;
} }
this.appLoading = this.$loading({
lock: true,
text: "审核中",
spinner: "el-icon-loading",
background: "rgba(0, 0, 0, 0.7)",
customClass: "fullLoading",
});
queryHouseDeedTaxDetailInfo({ code: row.code }).then((res) => { queryHouseDeedTaxDetailInfo({ code: row.code }).then((res) => {
if (res.success) { if (res.success) {
let params = { let params = {
...@@ -951,6 +996,8 @@ export default { ...@@ -951,6 +996,8 @@ export default {
: ""; : "";
}); });
this.initTemplate(); this.initTemplate();
} else {
this.appLoading?.close();
} }
}); });
} else { } else {
...@@ -969,6 +1016,7 @@ export default { ...@@ -969,6 +1016,7 @@ export default {
}); });
}, },
initTemplate() { initTemplate() {
return new Promise((resolve) => {
let that = this; let that = this;
let promiseText = that.$store.state.utils.promiseText; let promiseText = that.$store.state.utils.promiseText;
...@@ -1078,8 +1126,10 @@ export default { ...@@ -1078,8 +1126,10 @@ export default {
code: that.detail.code, code: that.detail.code,
fileUrl: res.data, fileUrl: res.data,
}; };
saveHouseFileUrl(params).then((res) => { saveHouseFileUrl(params).then(async (res) => {
console.log("初审通过后的传填充文件给后端---", res); console.log("初审通过后的传填充文件给后端---", res);
await that.initNew();
resolve();
}); });
} else { } else {
that.$message.error(res.msg); that.$message.error(res.msg);
...@@ -1093,9 +1143,10 @@ export default { ...@@ -1093,9 +1143,10 @@ export default {
reviewerId: that.rowDetail.reviewerId, reviewerId: that.rowDetail.reviewerId,
state: res.data.state, state: res.data.state,
}; };
initHouseDepartmentRevocation(params).then((res) => { initHouseDepartmentRevocation(params).then(async (res) => {
console.log(res); console.log(res);
that.init(); await that.initNew();
resolve();
}); });
} }
} }
...@@ -1105,6 +1156,7 @@ export default { ...@@ -1105,6 +1156,7 @@ export default {
// 将目标文件对象保存为目标类型的文件,并命名 // 将目标文件对象保存为目标类型的文件,并命名
// saveAs(out, docxname); // saveAs(out, docxname);
}); });
});
}, },
deny(row) { deny(row) {
this.$prompt(`确定驳回该申请的初审吗?`, "提示", { this.$prompt(`确定驳回该申请的初审吗?`, "提示", {
......
...@@ -995,7 +995,7 @@ export default { ...@@ -995,7 +995,7 @@ export default {
updateMultipleDeedTaxState(params).then((res) => { updateMultipleDeedTaxState(params).then((res) => {
console.log(res); console.log(res);
this.$message.success(`复审驳回成功`); this.$message.success(`复审驳回成功`);
this.init(); this.initNew();
}); });
} }
}); });
...@@ -1155,15 +1155,7 @@ export default { ...@@ -1155,15 +1155,7 @@ export default {
arr.square = that.detail.square; arr.square = that.detail.square;
arr.bank = that.detail.bank; arr.bank = that.detail.bank;
arr.bankCard = that.detail.bankCard; arr.bankCard = that.detail.bankCard;
arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务
if (this.$route.query.realEstateArea != "句容市") {
arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务
this.docxsrc = "./static/deedTax1.docx"; //模板文件的位置
}
arr.arr1 = that.arr1 || ""; // 财政 arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产 arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务 arr.arr3 = that.arr3 || ""; // 税务
......
...@@ -799,6 +799,8 @@ export default { ...@@ -799,6 +799,8 @@ export default {
], ],
}, },
refundForm: {}, refundForm: {},
fileDownload: false,
row: null,
}; };
}, },
watch: { watch: {
...@@ -860,9 +862,18 @@ export default { ...@@ -860,9 +862,18 @@ export default {
} else { } else {
this.tableData = []; this.tableData = [];
} }
if (this.fileDownload && this.row) {
const url = this.tableData.filter((item) => {
return item.code === this.row.code;
})[0]?.fileUrl;
window.location.href = url;
this.fileDownload = false;
this.row = null;
}
} }
}); });
}, },
initNew() { initNew() {
return new Promise((resolve) => { return new Promise((resolve) => {
this.tableData = []; this.tableData = [];
...@@ -894,6 +905,14 @@ export default { ...@@ -894,6 +905,14 @@ export default {
} else { } else {
this.tableData = []; this.tableData = [];
} }
if (this.fileDownload && this.row) {
const url = this.tableData.filter((item) => {
return item.code === this.row.code;
})[0]?.fileUrl;
window.location.href = url;
this.fileDownload = false;
this.row = null;
}
} }
}); });
}); });
...@@ -1275,7 +1294,7 @@ export default { ...@@ -1275,7 +1294,7 @@ export default {
}, },
async handleCommand(row, com, type) { async handleCommand(row, com, type) {
this.templateType = type; this.templateType = type;
// let url = "";
// this.downloadUrl=row.fileUrl // this.downloadUrl=row.fileUrl
switch (com) { switch (com) {
case "reset": case "reset":
...@@ -1283,8 +1302,17 @@ export default { ...@@ -1283,8 +1302,17 @@ export default {
break; break;
default: default:
// await this.resetHandle(row); this.row = row;
window.location.href = row.fileUrl; this.fileDownload = true;
await this.resetHandle(row);
// url = this.tableData.filter(
// ((item) => {
// return item.code === row.code;
// })[0]
// ).fileUrl;
// window.location.href = url;
break; break;
} }
}, },
...@@ -1296,7 +1324,7 @@ export default { ...@@ -1296,7 +1324,7 @@ export default {
Promise.all([ Promise.all([
queryMultipleDeedTaxDetailInfo(params), queryMultipleDeedTaxDetailInfo(params),
queryMultipleDeedTaxRecord(params), queryMultipleDeedTaxRecord(params),
]).then((res) => { ]).then(async (res) => {
this.detail = res[0].data; this.detail = res[0].data;
this.arrList = res[1].data; this.arrList = res[1].data;
if (this.templateType == "default") { if (this.templateType == "default") {
...@@ -1328,7 +1356,7 @@ export default { ...@@ -1328,7 +1356,7 @@ export default {
}); });
} }
this.initTemplate(); await this.initTemplate();
resolve(); resolve();
// } // }
}); });
...@@ -1388,18 +1416,17 @@ export default { ...@@ -1388,18 +1416,17 @@ export default {
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"; //模板文件的位置
}
if (this.templateType == "danYang") { if (this.templateType == "danYang") {
arr.arr1 = that.arr1 || ""; // 财政 arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产 arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务 arr.arr3 = that.arr3 || ""; // 税务
arr.arr4 = that.arr4 || ""; // 住建 arr.arr4 = that.arr4 || ""; // 住建
this.docxsrc = "./static/deedTax1_danYang.docx"; //模板文件的位置 this.docxsrc = "./static/deedTax1_danYang.docx"; //模板文件的位置
}
} else { } else {
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 = '购房契税补贴申请表'; //导出文件的名字
// 读取并获得模板文件的二进制内容 // 读取并获得模板文件的二进制内容
......
...@@ -728,6 +728,7 @@ export default { ...@@ -728,6 +728,7 @@ export default {
date: "", date: "",
docxsrc: "", docxsrc: "",
rowDetail: "", rowDetail: "",
appLoading: null,
}; };
}, },
watch: { watch: {
...@@ -782,6 +783,44 @@ export default { ...@@ -782,6 +783,44 @@ export default {
} }
}); });
}, },
initNew() {
return new Promise((resolve) => {
this.tableData = [];
this.loading = true;
let parmas = {
name: this.searchForm.name,
phone: this.searchForm.phone,
state: this.searchForm.state,
departmentCode: this.searchForm.departmentCode,
pageNum: this.pagination.currentPage,
pageSize: this.pagination.pageSize,
checkArea: this.realEstateArea,
checkArealEstateArea: this.searchForm.checkArealEstateArea,
};
queryMultipleListDeedTaxFromInitDepartment(parmas).then((res) => {
this.loading = false;
// console.log(res.data)
if (res.success) {
this.pagination.total = res.data.total;
if (res.data.total) {
this.tableData = res.data.list.map((item) => {
item.stateName = this.getSatusArr(item.reviewerState).stateName;
item.type = this.getSatusArr(item.reviewerState).type;
return item;
});
if (localStorage.getItem("userName") == "admin") {
this.tableData = changeList(this.tableData);
}
resolve();
} else {
this.tableData = [];
}
}
this.appLoading?.close();
});
});
},
getSatusArr(state) { getSatusArr(state) {
return this.stateList.filter((item) => { return this.stateList.filter((item) => {
return item.state == state; return item.state == state;
...@@ -897,6 +936,13 @@ export default { ...@@ -897,6 +936,13 @@ export default {
this.$message.error("未输入原因"); this.$message.error("未输入原因");
return; return;
} }
this.appLoading = this.$loading({
lock: true,
text: "审核中",
spinner: "el-icon-loading",
background: "rgba(0, 0, 0, 0.7)",
customClass: "fullLoading",
});
queryMultipleDeedTaxDetailInfo({ code: row.code }).then((res) => { queryMultipleDeedTaxDetailInfo({ code: row.code }).then((res) => {
if (res.success) { if (res.success) {
let params = { let params = {
...@@ -926,7 +972,6 @@ export default { ...@@ -926,7 +972,6 @@ export default {
queryMultipleDeedTaxDetailInfo(params), queryMultipleDeedTaxDetailInfo(params),
queryMultipleDeedTaxRecord(params), queryMultipleDeedTaxRecord(params),
]).then((res) => { ]).then((res) => {
console.log(res, "初审");
if (res[0].data.state == 1) { 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;
...@@ -943,6 +988,8 @@ export default { ...@@ -943,6 +988,8 @@ export default {
: ""; : "";
}); });
this.initTemplate(); this.initTemplate();
} else {
this.appLoading?.close();
} }
}); });
} else { } else {
...@@ -961,6 +1008,7 @@ export default { ...@@ -961,6 +1008,7 @@ export default {
}); });
}, },
initTemplate() { initTemplate() {
return new Promise((resolve) => {
let that = this; let that = this;
let promiseText = that.$store.state.utils.promiseText; let promiseText = that.$store.state.utils.promiseText;
...@@ -991,7 +1039,6 @@ export default { ...@@ -991,7 +1039,6 @@ export default {
arr.name = that.detail.name; arr.name = that.detail.name;
arr.idCard = that.detail.idCard; arr.idCard = that.detail.idCard;
arr.title = "多子女家庭"; arr.title = "多子女家庭";
arr.birthDate = arr.birthDate =
that.detail.idCard.substring(6, 10) + that.detail.idCard.substring(6, 10) +
"-" + "-" +
...@@ -1071,13 +1118,16 @@ export default { ...@@ -1071,13 +1118,16 @@ export default {
code: that.detail.code, code: that.detail.code,
fileUrl: res.data, fileUrl: res.data,
}; };
saveMultipleFileUrl(params).then((res) => { saveMultipleFileUrl(params).then(async (res) => {
console.log("初审通过后的传填充文件给后端---", res); console.log("初审通过后的传填充文件给后端---", res);
await that.initNew();
resolve();
}); });
} else { } else {
that.$message.error(res.msg); that.$message.error(res.msg);
queryMultipleDeedTaxDetailInfo({ code: that.rowDetail.code }).then( queryMultipleDeedTaxDetailInfo({
(res) => { code: that.rowDetail.code,
}).then((res) => {
console.log(res); console.log(res);
if (res.success) { if (res.success) {
let params = { let params = {
...@@ -1086,18 +1136,19 @@ export default { ...@@ -1086,18 +1136,19 @@ export default {
reviewerId: that.rowDetail.reviewerId, reviewerId: that.rowDetail.reviewerId,
state: res.data.state, state: res.data.state,
}; };
initMultipleDepartmentRevocation(params).then((res) => { initMultipleDepartmentRevocation(params).then(async (res) => {
console.log(res); console.log(res);
that.init(); await that.initNew();
resolve();
}); });
} }
} });
);
} }
}); });
// 将目标文件对象保存为目标类型的文件,并命名 // 将目标文件对象保存为目标类型的文件,并命名
// saveAs(out, docxname); // saveAs(out, docxname);
}); });
});
}, },
deny(row) { deny(row) {
this.$prompt(`确定驳回该申请的初审吗?`, "提示", { this.$prompt(`确定驳回该申请的初审吗?`, "提示", {
......
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