Commit 7c818779 by swl

feat: gx

parent 249dbfbd
No preview for this file type
No preview for this file type
No preview for this file type
...@@ -7,10 +7,9 @@ ...@@ -7,10 +7,9 @@
</template> </template>
<script> <script>
export default { export default {
name: 'App', name: "App",
} };
</script> </script>
<style> <style>
...@@ -27,4 +26,10 @@ export default { ...@@ -27,4 +26,10 @@ export default {
background-color: #a1a3a9; background-color: #a1a3a9;
border-radius: 2px; border-radius: 2px;
} }
.fullLoading .el-loading-text {
font-size: 20px !important;
}
.fullLoading .el-loading-spinner {
font-size: 30px;
}
</style> </style>
...@@ -38,8 +38,6 @@ export function uploadVideo(params) { ...@@ -38,8 +38,6 @@ export function uploadVideo(params) {
* 上传文件 * 上传文件
*/ */
export function uploadFile(params) { export function uploadFile(params) {
console.log("params---", params);
let header = { let header = {
"Content-Type": "multipart/form-data", "Content-Type": "multipart/form-data",
}; };
...@@ -56,8 +54,6 @@ export function uploadFile(params) { ...@@ -56,8 +54,6 @@ export function uploadFile(params) {
* 上传文件 * 上传文件
*/ */
export function uploadWordFile(params) { export function uploadWordFile(params) {
console.log("params---", params);
let header = { let header = {
"Content-Type": "multipart/form-data", "Content-Type": "multipart/form-data",
}; };
...@@ -74,8 +70,6 @@ export function uploadWordFile(params) { ...@@ -74,8 +70,6 @@ export function uploadWordFile(params) {
* 上传人才政策文件 * 上传人才政策文件
*/ */
export function uploadTalentFile(params) { export function uploadTalentFile(params) {
console.log("params---", params);
let header = { let header = {
"Content-Type": "multipart/form-data", "Content-Type": "multipart/form-data",
}; };
......
...@@ -95,4 +95,4 @@ ...@@ -95,4 +95,4 @@
.lineChart { .lineChart {
width: 100%; width: 100%;
height: 350px; height: 350px;
} }
\ No newline at end of file
...@@ -642,6 +642,7 @@ export default { ...@@ -642,6 +642,7 @@ export default {
}, },
], ],
detail: {}, detail: {},
appLoading: null,
}; };
}, },
watch: { watch: {
...@@ -704,6 +705,43 @@ export default { ...@@ -704,6 +705,43 @@ export default {
this.tableData = []; this.tableData = [];
} }
} }
// this.appLoading?.close();
});
},
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,
};
queryCommerListDeedTax(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) => {
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);
}
resolve();
} else {
this.tableData = [];
}
}
this.appLoading?.close();
});
}); });
}, },
onSubmit() { onSubmit() {
...@@ -871,6 +909,13 @@ export default { ...@@ -871,6 +909,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 = {
...@@ -889,7 +934,7 @@ export default { ...@@ -889,7 +934,7 @@ export default {
updateCommerDeedTaxState(params).then((res) => { updateCommerDeedTaxState(params).then((res) => {
if (res.success) { if (res.success) {
this.$message.success(`复审通过`); this.$message.success(`复审通过`);
this.init();
this.resetHandle(row); this.resetHandle(row);
// if (this.$route.query.realEstateArea != '句容市') { // if (this.$route.query.realEstateArea != '句容市') {
...@@ -926,6 +971,14 @@ export default { ...@@ -926,6 +971,14 @@ 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 = {
...@@ -941,8 +994,7 @@ export default { ...@@ -941,8 +994,7 @@ export default {
reason: value, reason: value,
}; };
updateCommerDeedTaxState(params).then((res) => { updateCommerDeedTaxState(params).then(() => {
console.log(res);
this.$message.success(`复审驳回成功`); this.$message.success(`复审驳回成功`);
this.init(); this.init();
}); });
...@@ -1033,7 +1085,7 @@ export default { ...@@ -1033,7 +1085,7 @@ export default {
Promise.all([ Promise.all([
queryCommerDeedTaxDetailInfo(params), queryCommerDeedTaxDetailInfo(params),
queryCommerDeedTaxRecord(params), queryCommerDeedTaxRecord(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;
...@@ -1053,144 +1105,149 @@ export default { ...@@ -1053,144 +1105,149 @@ export default {
: ""; : "";
}); });
this.initTemplate(); await this.initTemplate();
resolve(); resolve();
}); });
}); });
}, },
initTemplate() { initTemplate() {
let that = this; return new Promise((resolve) => {
let promiseText = that.$store.state.utils.promiseText; let that = this;
let text = ""; let promiseText = that.$store.state.utils.promiseText;
if ( let text = "";
that.realEstateArea == "丹阳市" && if (
that.detail.commitmentType == "1" that.detail.realEstateArea == "丹阳市" &&
) { that.detail.commitmentType == "1"
// 单独所有、共同共有 ) {
text = promiseText.alone; // 单独所有、共同共有
} else if ( text = promiseText.alone;
that.realEstateArea == "丹阳市" && } else if (
that.detail.commitmentType == "2" that.detail.realEstateArea == "丹阳市" &&
) { that.detail.commitmentType == "2"
// 按份共有 ) {
// 按份共有
text = promiseText.together; text = promiseText.together;
} else { } else {
text = promiseText.default; text = promiseText.default;
} }
let arr = {};
arr.promiseText = text;
arr.time = that.detail.createTime.split(" ")[0]; let arr = {};
arr.promiseText = text;
arr.commitmentTypeName = arr.time = that.detail.createTime.split(" ")[0];
that.detail.commitmentType == 1 ? "单独所有、共同共有" : "按份共有";
arr.name = that.detail.name; arr.commitmentTypeName =
arr.idCard = that.detail.idCard; that.detail.commitmentType == 1 ? "单独所有、共同共有" : "按份共有";
arr.title = "商办用房";
arr.birthDate = arr.name = that.detail.name;
that.detail.idCard.substring(6, 10) + arr.idCard = that.detail.idCard;
"-" + arr.title = "商办用房";
that.detail.idCard.substring(10, 12) + arr.birthDate =
"-" + that.detail.idCard.substring(6, 10) +
that.detail.idCard.substring(12, 14); "-" +
arr.address = that.detail.address; that.detail.idCard.substring(10, 12) +
arr.phone = that.detail.phone; "-" +
arr.realEstateAddress = that.detail.realEstateAddress; that.detail.idCard.substring(12, 14);
arr.realEstateCard = that.detail.realEstateCard; arr.address = that.detail.address;
arr.square = that.detail.square; arr.phone = that.detail.phone;
arr.bank = that.detail.bank; arr.realEstateAddress = that.detail.realEstateAddress;
arr.bankCard = that.detail.bankCard; arr.realEstateCard = that.detail.realEstateCard;
arr.arr1 = that.arr1 || ""; // 财政 arr.square = that.detail.square;
arr.arr2 = that.arr2 || ""; // 不动产 arr.bank = that.detail.bank;
arr.arr3 = that.arr3 || ""; // 税务 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"; //模板文件的位置
}
if (that.detail.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 || ""; // 税务
arr.arr4 = that.arr4 || ""; // 住建 arr.arr4 = that.arr4 || ""; // 住建
this.docxsrc = "./static/deedTax1_danYang.docx"; //模板文件的位置 this.docxsrc = "./static/deedTax1_danYang.docx"; //模板文件的位置
}
console.log(this.docxsrc, "docxsrc");
// let docxname = '购房契税补贴申请表'; //导出文件的名字 // let docxname = '购房契税补贴申请表'; //导出文件的名字
// 读取并获得模板文件的二进制内容 // 读取并获得模板文件的二进制内容
JSZipUtils.getBinaryContent(this.docxsrc, function (error, content) { JSZipUtils.getBinaryContent(this.docxsrc, function (error, content) {
// docxsrc是模板。我们在导出的时候,会根据此模板来导出对应的数据 // docxsrc是模板。我们在导出的时候,会根据此模板来导出对应的数据
// 抛出异常
// debugger
if (error) {
throw error;
}
// 创建一个PizZip实例,内容为模板的内容
let zip = new PizZip(content);
// 创建并加载docx templater实例对象
let doc = new docxtemplater().loadZip(zip);
// 设置模板变量的值
// console.log("arr666---", arr);
doc.setData({
...arr, // e中的数据可以再模板中直接使用
});
try {
// 用模板变量的值替换所有模板变量
doc.render();
} catch (error) {
// 抛出异常 // 抛出异常
let e = { // debugger
message: error.message, if (error) {
name: error.name, throw error;
stack: error.stack, }
properties: error.properties, // 创建一个PizZip实例,内容为模板的内容
}; let zip = new PizZip(content);
console.log( // 创建并加载docx templater实例对象
JSON.stringify({ let doc = new docxtemplater().loadZip(zip);
error: e, // 设置模板变量的值
// console.log("arr666---", arr);
doc.setData({
...arr, // e中的数据可以再模板中直接使用
});
doc.render();
// try {
// // 用模板变量的值替换所有模板变量
// doc.render();
// }
// catch (error) {
// // // 抛出异常
// // let e = {
// // message: error.message,
// // name: error.name,
// // stack: error.stack,
// // properties: error.properties,
// // };
// throw error;
// }
// 生成一个代表docxtemplater对象的zip文件(不是一个真实的文件,而是在内存中的表示)
let out = doc.getZip().generate({
type: "blob",
mimeType:
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
});
uploadWordFile(
new File([out], "deed-text" + new Date().valueOf() + ".docx", {
type: out.type,
}) })
); ).then((res) => {
throw error; if (res.success) {
} let params = {
// 生成一个代表docxtemplater对象的zip文件(不是一个真实的文件,而是在内存中的表示) code: that.detail.code,
let out = doc.getZip().generate({ fileUrl: res.data,
type: "blob", };
mimeType: saveCommerFileUrl(params).then(async (res) => {
"application/vnd.openxmlformats-officedocument.wordprocessingml.document", await that.initNew();
}); resolve(res);
uploadWordFile( });
new File([out], "deed-text" + new Date().valueOf() + ".docx", { } else {
type: out.type, that.$message.error(res.msg);
}) queryCommerDeedTaxDetailInfo({ code: that.rowDetail.code }).then(
).then((res) => { (res) => {
console.log("文件的res----", res); if (res.success) {
if (res.success) { let params = {
let params = { code: that.rowDetail.code,
code: that.detail.code, phone: res.data.phone,
fileUrl: res.data, reviewerId: that.rowDetail.reviewerId,
}; state: res.data.state,
saveCommerFileUrl(params).then((res) => { };
console.log("初审通过后的传填充文件给后端---", res); initCommerDepartmentRevocation(params).then(async (res) => {
that.init(); await that.initNew();
}); resolve(res);
} else { });
that.$message.error(res.msg); }
queryCommerDeedTaxDetailInfo({ code: that.rowDetail.code }).then(
(res) => {
console.log(res);
if (res.success) {
let params = {
code: that.rowDetail.code,
phone: res.data.phone,
reviewerId: that.rowDetail.reviewerId,
state: res.data.state,
};
initCommerDepartmentRevocation(params).then((res) => {
console.log(res);
that.init();
});
} }
} );
); }
} });
}); });
}); });
}, },
......
...@@ -1276,7 +1276,7 @@ export default { ...@@ -1276,7 +1276,7 @@ export default {
break; break;
default: default:
await this.resetHandle(row); // await this.resetHandle(row);
window.location.href = row.fileUrl; window.location.href = row.fileUrl;
break; break;
} }
......
...@@ -889,7 +889,6 @@ export default { ...@@ -889,7 +889,6 @@ export default {
})[0]; })[0];
}, },
pass(row) { pass(row) {
console.log(row);
this.rowDetail = row; this.rowDetail = row;
this.$prompt(`确定通过该申请的初审吗?`, "提示", { this.$prompt(`确定通过该申请的初审吗?`, "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
...@@ -1239,8 +1238,9 @@ export default { ...@@ -1239,8 +1238,9 @@ export default {
} }
const loading = this.$loading({ const loading = this.$loading({
lock: true, lock: true,
text: "Loading", text: "审核中",
spinner: "el-icon-loading", spinner: "el-icon-loading",
customClass: "fullLoading",
}); });
userCommerExport(this.downLoadParams) userCommerExport(this.downLoadParams)
.then((res) => { .then((res) => {
......
...@@ -642,6 +642,7 @@ export default { ...@@ -642,6 +642,7 @@ export default {
}, },
], ],
detail: {}, detail: {},
appLoading: null,
}; };
}, },
watch: { watch: {
...@@ -704,6 +705,43 @@ export default { ...@@ -704,6 +705,43 @@ export default {
this.tableData = []; this.tableData = [];
} }
} }
this.appLoading?.close();
});
},
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,
};
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) => {
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);
}
resolve();
} else {
this.tableData = [];
}
}
this.appLoading?.close();
});
}); });
}, },
onSubmit() { onSubmit() {
...@@ -871,6 +909,13 @@ export default { ...@@ -871,6 +909,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 = {
...@@ -889,7 +934,7 @@ export default { ...@@ -889,7 +934,7 @@ export default {
updateDeedTaxState(params).then((res) => { updateDeedTaxState(params).then((res) => {
if (res.success) { if (res.success) {
this.$message.success(`复审通过`); this.$message.success(`复审通过`);
this.init();
this.resetHandle(row); this.resetHandle(row);
// if (this.$route.query.realEstateArea != '句容市') { // if (this.$route.query.realEstateArea != '句容市') {
...@@ -926,6 +971,13 @@ export default { ...@@ -926,6 +971,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 = {
...@@ -1059,138 +1111,150 @@ export default { ...@@ -1059,138 +1111,150 @@ export default {
}); });
}, },
initTemplate() { initTemplate() {
let that = this; return new Promise((resolve) => {
let promiseText = that.$store.state.utils.promiseText; let that = this;
let text = ""; let promiseText = that.$store.state.utils.promiseText;
if ( let text = "";
that.realEstateArea == "丹阳市" && if (
that.detail.commitmentType == "1" that.detail.realEstateArea == "丹阳市" &&
) { that.detail.commitmentType == "1"
// 单独所有、共同共有 ) {
text = promiseText.alone; // 单独所有、共同共有
} else if ( text = promiseText.alone;
that.realEstateArea == "丹阳市" && } else if (
that.detail.commitmentType == "2" that.detail.realEstateArea == "丹阳市" &&
) { that.detail.commitmentType == "2"
// 按份共有 ) {
// 按份共有
text = promiseText.together; text = promiseText.together;
} else { } else {
text = promiseText.default; text = promiseText.default;
} }
let arr = {};
arr.promiseText = text;
arr.time = that.detail.createTime.split(" ")[0]; let arr = {};
arr.promiseText = text;
arr.commitmentTypeName = arr.time = that.detail.createTime.split(" ")[0];
that.detail.commitmentType == 1 ? "单独所有、共同共有" : "按份共有";
arr.name = that.detail.name;
arr.idCard = that.detail.idCard;
arr.title = "首套商品住房";
arr.birthDate =
that.detail.idCard.substring(6, 10) +
"-" +
that.detail.idCard.substring(10, 12) +
"-" +
that.detail.idCard.substring(12, 14);
arr.address = that.detail.address;
arr.phone = that.detail.phone;
arr.realEstateAddress = that.detail.realEstateAddress;
arr.realEstateCard = that.detail.realEstateCard;
arr.square = that.detail.square;
arr.bank = that.detail.bank;
arr.bankCard = that.detail.bankCard;
// arr.arr1 = that.arr1 || ""; // 财政
// arr.arr2 = that.arr2 || ""; // 不动产
// arr.arr3 = that.arr3 || ""; // 税务
console.log(that.detail.realEstateArea, "that.detail.realEstateArea"); arr.commitmentTypeName =
// if (that.detail.realEstateArea == "丹阳市") { that.detail.commitmentType == 1 ? "单独所有、共同共有" : "按份共有";
arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务
arr.arr4 = that.arr4 || ""; // 住建
this.docxsrc = "./static/deedTax1_danYang.docx"; //模板文件的位置
// }
// let docxname = '购房契税补贴申请表'; //导出文件的名字 arr.name = that.detail.name;
// 读取并获得模板文件的二进制内容 arr.idCard = that.detail.idCard;
JSZipUtils.getBinaryContent(this.docxsrc, function (error, content) { arr.title = "首套商品住房";
// docxsrc是模板。我们在导出的时候,会根据此模板来导出对应的数据 arr.birthDate =
// 抛出异常 that.detail.idCard.substring(6, 10) +
// debugger "-" +
if (error) { that.detail.idCard.substring(10, 12) +
throw error; "-" +
that.detail.idCard.substring(12, 14);
arr.address = that.detail.address;
arr.phone = that.detail.phone;
arr.realEstateAddress = that.detail.realEstateAddress;
arr.realEstateCard = that.detail.realEstateCard;
arr.square = that.detail.square;
arr.bank = that.detail.bank;
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"; //模板文件的位置
} }
// 创建一个PizZip实例,内容为模板的内容
let zip = new PizZip(content); arr.arr1 = that.arr1 || ""; // 财政
// 创建并加载docx templater实例对象 arr.arr2 = that.arr2 || ""; // 不动产
let doc = new docxtemplater().loadZip(zip); arr.arr3 = that.arr3 || ""; // 税务
// 设置模板变量的值 arr.arr4 = that.arr4 || ""; // 住建
// console.log("arr666---", arr); this.docxsrc = "./static/deedTax1_danYang.docx"; //模板文件的位置
doc.setData({
...arr, // e中的数据可以再模板中直接使用 console.log(this.docxsrc, "docxsrc");
});
try { // let docxname = '购房契税补贴申请表'; //导出文件的名字
// 用模板变量的值替换所有模板变量 // 读取并获得模板文件的二进制内容
doc.render(); JSZipUtils.getBinaryContent(this.docxsrc, function (error, content) {
} catch (error) { // docxsrc是模板。我们在导出的时候,会根据此模板来导出对应的数据
// 抛出异常 // 抛出异常
let e = { // debugger
message: error.message, if (error) {
name: error.name, throw error;
stack: error.stack, }
properties: error.properties, // 创建一个PizZip实例,内容为模板的内容
}; let zip = new PizZip(content);
console.log( // 创建并加载docx templater实例对象
JSON.stringify({ let doc = new docxtemplater().loadZip(zip);
error: e, // 设置模板变量的值
}) // console.log("arr666---", arr);
); doc.setData({
throw error; ...arr, // e中的数据可以再模板中直接使用
} });
// 生成一个代表docxtemplater对象的zip文件(不是一个真实的文件,而是在内存中的表示) try {
let out = doc.getZip().generate({ // 用模板变量的值替换所有模板变量
type: "blob", doc.render();
mimeType: } catch (error) {
"application/vnd.openxmlformats-officedocument.wordprocessingml.document", // 抛出异常
}); let e = {
uploadWordFile( message: error.message,
new File([out], "deed-text" + new Date().valueOf() + ".docx", { name: error.name,
type: out.type, stack: error.stack,
}) properties: error.properties,
).then((res) => {
console.log("文件的res----", res);
if (res.success) {
let params = {
code: that.detail.code,
fileUrl: res.data,
}; };
saveFileUrl(params).then((res) => { console.log(
console.log("初审通过后的传填充文件给后端---", res); JSON.stringify({
that.init(); error: e,
}); })
} else {
that.$message.error(res.msg);
queryDeedTaxDetailInfo({ code: that.rowDetail.code }).then(
(res) => {
console.log(res);
if (res.success) {
let params = {
code: that.rowDetail.code,
phone: res.data.phone,
reviewerId: that.rowDetail.reviewerId,
state: res.data.state,
};
initDepartmentRevocation(params).then((res) => {
console.log(res);
that.init();
});
}
}
); );
throw error;
} }
// 生成一个代表docxtemplater对象的zip文件(不是一个真实的文件,而是在内存中的表示)
let out = doc.getZip().generate({
type: "blob",
mimeType:
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
});
uploadWordFile(
new File([out], "deed-text" + new Date().valueOf() + ".docx", {
type: out.type,
})
).then((res) => {
console.log("文件的res----", res);
if (res.success) {
let params = {
code: that.detail.code,
fileUrl: res.data,
};
saveFileUrl(params).then(async (res) => {
console.log("初审通过后的传填充文件给后端---", res);
await that.initNew();
resolve();
});
} else {
that.$message.error(res.msg);
queryDeedTaxDetailInfo({ code: that.rowDetail.code }).then(
(res) => {
console.log(res);
if (res.success) {
let params = {
code: that.rowDetail.code,
phone: res.data.phone,
reviewerId: that.rowDetail.reviewerId,
state: res.data.state,
};
initDepartmentRevocation(params).then(async (res) => {
console.log(res);
await that.initNew();
resolve();
});
}
}
);
}
});
}); });
}); });
}, },
......
...@@ -1261,7 +1261,7 @@ export default { ...@@ -1261,7 +1261,7 @@ export default {
break; break;
default: default:
await this.resetHandle(row); // await this.resetHandle(row);
window.location.href = row.fileUrl; window.location.href = row.fileUrl;
break; break;
......
...@@ -884,7 +884,6 @@ export default { ...@@ -884,7 +884,6 @@ export default {
})[0]; })[0];
}, },
pass(row) { pass(row) {
console.log(row);
this.rowDetail = row; this.rowDetail = row;
this.$prompt(`确定通过该申请的初审吗?`, "提示", { this.$prompt(`确定通过该申请的初审吗?`, "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
...@@ -1238,8 +1237,9 @@ export default { ...@@ -1238,8 +1237,9 @@ export default {
} }
const loading = this.$loading({ const loading = this.$loading({
lock: true, lock: true,
text: "Loading", text: "审核中",
spinner: "el-icon-loading", spinner: "el-icon-loading",
customClass: "fullLoading",
}); });
userExport(this.downLoadParams) userExport(this.downLoadParams)
.then((res) => { .then((res) => {
......
...@@ -642,6 +642,7 @@ export default { ...@@ -642,6 +642,7 @@ export default {
}, },
], ],
detail: {}, detail: {},
appLoading: null,
}; };
}, },
watch: { watch: {
...@@ -706,6 +707,42 @@ export default { ...@@ -706,6 +707,42 @@ 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,
};
queryHouseListDeedTax(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) => {
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);
}
resolve();
} else {
this.tableData = [];
}
}
this.appLoading?.close();
});
});
},
onSubmit() { onSubmit() {
this.pagination.currentPage = 1; this.pagination.currentPage = 1;
this.init(); this.init();
...@@ -871,6 +908,13 @@ export default { ...@@ -871,6 +908,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 = {
...@@ -889,7 +933,7 @@ export default { ...@@ -889,7 +933,7 @@ export default {
updateHouseDeedTaxState(params).then((res) => { updateHouseDeedTaxState(params).then((res) => {
if (res.success) { if (res.success) {
this.$message.success(`复审通过`); this.$message.success(`复审通过`);
this.init();
this.resetHandle(row); this.resetHandle(row);
// if (this.$route.query.realEstateArea != '句容市') { // if (this.$route.query.realEstateArea != '句容市') {
...@@ -926,6 +970,13 @@ export default { ...@@ -926,6 +970,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 = {
...@@ -1059,139 +1110,149 @@ export default { ...@@ -1059,139 +1110,149 @@ export default {
}); });
}, },
initTemplate() { initTemplate() {
let that = this; return new Promise((resolve) => {
let promiseText = that.$store.state.utils.promiseText; let that = this;
let text = ""; let promiseText = that.$store.state.utils.promiseText;
if ( let text = "";
this.realEstateArea == "丹阳市" && if (
that.detail.commitmentType == "1" that.detail.realEstateArea == "丹阳市" &&
) { that.detail.commitmentType == "1"
// 单独所有、共同共有 ) {
text = promiseText.alone; // 单独所有、共同共有
} else if ( text = promiseText.alone;
this.realEstateArea == "丹阳市" && } else if (
that.detail.commitmentType == "2" that.detail.realEstateArea == "丹阳市" &&
) { that.detail.commitmentType == "2"
// 按份共有 ) {
// 按份共有
text = promiseText.together; text = promiseText.together;
} else { } else {
text = promiseText.default; text = promiseText.default;
} }
let arr = {};
arr.promiseText = text;
arr.time = that.detail.createTime.split(" ")[0]; let arr = {};
arr.promiseText = text;
arr.commitmentTypeName = arr.time = that.detail.createTime.split(" ")[0];
that.detail.commitmentType == 1 ? "单独所有、共同共有" : "按份共有";
arr.name = that.detail.name;
arr.idCard = that.detail.idCard;
arr.title = "改善型住房";
arr.birthDate = arr.commitmentTypeName =
that.detail.idCard.substring(6, 10) + that.detail.commitmentType == 1 ? "单独所有、共同共有" : "按份共有";
"-" +
that.detail.idCard.substring(10, 12) +
"-" +
that.detail.idCard.substring(12, 14);
arr.address = that.detail.address;
arr.phone = that.detail.phone;
arr.realEstateAddress = that.detail.realEstateAddress;
arr.realEstateCard = that.detail.realEstateCard;
arr.square = that.detail.square;
arr.bank = that.detail.bank;
arr.bankCard = that.detail.bankCard;
arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务
if (this.detail.realEstateArea == "丹阳市") { arr.name = that.detail.name;
arr.idCard = that.detail.idCard;
arr.title = "改善型住房";
arr.birthDate =
that.detail.idCard.substring(6, 10) +
"-" +
that.detail.idCard.substring(10, 12) +
"-" +
that.detail.idCard.substring(12, 14);
arr.address = that.detail.address;
arr.phone = that.detail.phone;
arr.realEstateAddress = that.detail.realEstateAddress;
arr.realEstateCard = that.detail.realEstateCard;
arr.square = that.detail.square;
arr.bank = that.detail.bank;
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 || ""; // 税务
arr.arr4 = that.arr4 || ""; // 住建 arr.arr4 = that.arr4 || ""; // 住建
this.docxsrc = "./static/deedTax1_danYang.docx"; //模板文件的位置 this.docxsrc = "./static/deedTax1_danYang.docx"; //模板文件的位置
}
console.log(this.docxsrc, "docxsrc");
// let docxname = '购房契税补贴申请表'; //导出文件的名字 console.log(this.docxsrc, "docxsrc");
// 读取并获得模板文件的二进制内容
JSZipUtils.getBinaryContent(this.docxsrc, function (error, content) { // let docxname = '购房契税补贴申请表'; //导出文件的名字
// docxsrc是模板。我们在导出的时候,会根据此模板来导出对应的数据 // 读取并获得模板文件的二进制内容
// 抛出异常 JSZipUtils.getBinaryContent(this.docxsrc, function (error, content) {
// debugger // docxsrc是模板。我们在导出的时候,会根据此模板来导出对应的数据
if (error) {
throw error;
}
// 创建一个PizZip实例,内容为模板的内容
let zip = new PizZip(content);
// 创建并加载docx templater实例对象
let doc = new docxtemplater().loadZip(zip);
// 设置模板变量的值
// console.log("arr666---", arr);
doc.setData({
...arr, // e中的数据可以再模板中直接使用
});
try {
// 用模板变量的值替换所有模板变量
doc.render();
} catch (error) {
// 抛出异常 // 抛出异常
let e = { // debugger
message: error.message, if (error) {
name: error.name, throw error;
stack: error.stack, }
properties: error.properties, // 创建一个PizZip实例,内容为模板的内容
}; let zip = new PizZip(content);
console.log( // 创建并加载docx templater实例对象
JSON.stringify({ let doc = new docxtemplater().loadZip(zip);
error: e, // 设置模板变量的值
}) // console.log("arr666---", arr);
); doc.setData({
throw error; ...arr, // e中的数据可以再模板中直接使用
} });
// 生成一个代表docxtemplater对象的zip文件(不是一个真实的文件,而是在内存中的表示) try {
let out = doc.getZip().generate({ // 用模板变量的值替换所有模板变量
type: "blob", doc.render();
mimeType: } catch (error) {
"application/vnd.openxmlformats-officedocument.wordprocessingml.document", // 抛出异常
}); let e = {
uploadWordFile( message: error.message,
new File([out], "deed-text" + new Date().valueOf() + ".docx", { name: error.name,
type: out.type, stack: error.stack,
}) properties: error.properties,
).then((res) => {
console.log("文件的res----", res);
if (res.success) {
let params = {
code: that.detail.code,
fileUrl: res.data,
}; };
saveHouseFileUrl(params).then((res) => { console.log(
console.log("初审通过后的传填充文件给后端---", res); JSON.stringify({
that.init(); error: e,
}); })
} else {
that.$message.error(res.msg);
queryHouseDeedTaxDetailInfo({ code: that.rowDetail.code }).then(
(res) => {
console.log(res);
if (res.success) {
let params = {
code: that.rowDetail.code,
phone: res.data.phone,
reviewerId: that.rowDetail.reviewerId,
state: res.data.state,
};
initHouseDepartmentRevocation(params).then((res) => {
console.log(res);
that.init();
});
}
}
); );
throw error;
} }
// 生成一个代表docxtemplater对象的zip文件(不是一个真实的文件,而是在内存中的表示)
let out = doc.getZip().generate({
type: "blob",
mimeType:
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
});
uploadWordFile(
new File([out], "deed-text" + new Date().valueOf() + ".docx", {
type: out.type,
})
).then((res) => {
console.log("文件的res----", res);
if (res.success) {
let params = {
code: that.detail.code,
fileUrl: res.data,
};
saveHouseFileUrl(params).then(async (res) => {
console.log("初审通过后的传填充文件给后端---", res);
await that.initNew();
resolve();
});
} else {
that.$message.error(res.msg);
queryHouseDeedTaxDetailInfo({ code: that.rowDetail.code }).then(
(res) => {
console.log(res);
if (res.success) {
let params = {
code: that.rowDetail.code,
phone: res.data.phone,
reviewerId: that.rowDetail.reviewerId,
state: res.data.state,
};
initHouseDepartmentRevocation(params).then(async (res) => {
console.log(res);
await that.initNew();
resolve();
});
}
}
);
}
});
}); });
}); });
}, },
......
...@@ -1275,7 +1275,7 @@ export default { ...@@ -1275,7 +1275,7 @@ export default {
break; break;
default: default:
await this.resetHandle(row); // await this.resetHandle(row);
window.location.href = row.fileUrl; window.location.href = row.fileUrl;
break; break;
} }
......
...@@ -886,7 +886,6 @@ export default { ...@@ -886,7 +886,6 @@ export default {
})[0]; })[0];
}, },
pass(row) { pass(row) {
console.log(row);
this.rowDetail = row; this.rowDetail = row;
this.$prompt(`确定通过该申请的初审吗?`, "提示", { this.$prompt(`确定通过该申请的初审吗?`, "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
...@@ -1248,8 +1247,9 @@ export default { ...@@ -1248,8 +1247,9 @@ export default {
} }
const loading = this.$loading({ const loading = this.$loading({
lock: true, lock: true,
text: "Loading", text: "审核中",
spinner: "el-icon-loading", spinner: "el-icon-loading",
customClass: "fullLoading",
}); });
userHouseExport(this.downLoadParams) userHouseExport(this.downLoadParams)
.then((res) => { .then((res) => {
......
...@@ -642,6 +642,7 @@ export default { ...@@ -642,6 +642,7 @@ export default {
}, },
], ],
detail: {}, detail: {},
appLoading: null,
}; };
}, },
watch: { watch: {
...@@ -706,6 +707,42 @@ export default { ...@@ -706,6 +707,42 @@ 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,
};
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) => {
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);
}
resolve();
} else {
this.tableData = [];
}
}
this.appLoading?.close();
});
});
},
onSubmit() { onSubmit() {
this.pagination.currentPage = 1; this.pagination.currentPage = 1;
this.init(); this.init();
...@@ -871,6 +908,13 @@ export default { ...@@ -871,6 +908,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 = {
...@@ -889,7 +933,7 @@ export default { ...@@ -889,7 +933,7 @@ export default {
updateMultipleDeedTaxState(params).then((res) => { updateMultipleDeedTaxState(params).then((res) => {
if (res.success) { if (res.success) {
this.$message.success(`复审通过`); this.$message.success(`复审通过`);
this.init();
this.resetHandle(row); this.resetHandle(row);
// if (this.$route.query.realEstateArea != '句容市') { // if (this.$route.query.realEstateArea != '句容市') {
...@@ -926,6 +970,13 @@ export default { ...@@ -926,6 +970,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 = {
...@@ -1059,123 +1110,133 @@ export default { ...@@ -1059,123 +1110,133 @@ export default {
}); });
}, },
initTemplate() { initTemplate() {
let that = this; return new Promise((resolve) => {
let promiseText = that.$store.state.utils.promiseText; let that = this;
let text = ""; let promiseText = that.$store.state.utils.promiseText;
if ( let text = "";
this.realEstateArea == "丹阳市" && if (
that.detail.commitmentType == "1" that.detail.realEstateArea == "丹阳市" &&
) { that.detail.commitmentType == "1"
// 单独所有、共同共有 ) {
text = promiseText.alone; // 单独所有、共同共有
} else if ( text = promiseText.alone;
this.realEstateArea == "丹阳市" && } else if (
that.detail.commitmentType == "2" that.detail.realEstateArea == "丹阳市" &&
) { that.detail.commitmentType == "2"
// 按份共有 ) {
// 按份共有
text = promiseText.together; text = promiseText.together;
} else { } else {
text = promiseText.default; text = promiseText.default;
} }
let arr = {};
arr.promiseText = text;
arr.time = that.detail.createTime.split(" ")[0]; let arr = {};
arr.promiseText = text;
arr.commitmentTypeName = arr.time = that.detail.createTime.split(" ")[0];
that.detail.commitmentType == 1 ? "单独所有、共同共有" : "按份共有";
arr.name = that.detail.name;
arr.idCard = that.detail.idCard;
arr.title = "多子女家庭";
arr.birthDate = arr.commitmentTypeName =
that.detail.idCard.substring(6, 10) + that.detail.commitmentType == 1 ? "单独所有、共同共有" : "按份共有";
"-" +
that.detail.idCard.substring(10, 12) +
"-" +
that.detail.idCard.substring(12, 14);
arr.address = that.detail.address;
arr.phone = that.detail.phone;
arr.realEstateAddress = that.detail.realEstateAddress;
arr.realEstateCard = that.detail.realEstateCard;
arr.square = that.detail.square;
arr.bank = that.detail.bank;
arr.bankCard = that.detail.bankCard;
arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务
if (this.detail.realEstateArea == "丹阳市") { arr.name = that.detail.name;
arr.idCard = that.detail.idCard;
arr.title = "多子女家庭";
arr.birthDate =
that.detail.idCard.substring(6, 10) +
"-" +
that.detail.idCard.substring(10, 12) +
"-" +
that.detail.idCard.substring(12, 14);
arr.address = that.detail.address;
arr.phone = that.detail.phone;
arr.realEstateAddress = that.detail.realEstateAddress;
arr.realEstateCard = that.detail.realEstateCard;
arr.square = that.detail.square;
arr.bank = that.detail.bank;
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 || ""; // 税务
arr.arr4 = that.arr4 || ""; // 住建 arr.arr4 = that.arr4 || ""; // 住建
this.docxsrc = "./static/deedTax1_danYang.docx"; //模板文件的位置 this.docxsrc = "./static/deedTax1_danYang.docx"; //模板文件的位置
}
console.log(this.docxsrc, "docxsrc");
// let docxname = '购房契税补贴申请表'; //导出文件的名字 console.log(this.docxsrc, "docxsrc");
// 读取并获得模板文件的二进制内容
JSZipUtils.getBinaryContent(this.docxsrc, function (error, content) { // let docxname = '购房契税补贴申请表'; //导出文件的名字
// docxsrc是模板。我们在导出的时候,会根据此模板来导出对应的数据 // 读取并获得模板文件的二进制内容
// 抛出异常 JSZipUtils.getBinaryContent(this.docxsrc, function (error, content) {
// debugger // docxsrc是模板。我们在导出的时候,会根据此模板来导出对应的数据
if (error) {
throw error;
}
// 创建一个PizZip实例,内容为模板的内容
let zip = new PizZip(content);
// 创建并加载docx templater实例对象
let doc = new docxtemplater().loadZip(zip);
// 设置模板变量的值
// console.log("arr666---", arr);
doc.setData({
...arr, // e中的数据可以再模板中直接使用
});
try {
// 用模板变量的值替换所有模板变量
doc.render();
} catch (error) {
// 抛出异常 // 抛出异常
let e = { // debugger
message: error.message, if (error) {
name: error.name, throw error;
stack: error.stack, }
properties: error.properties, // 创建一个PizZip实例,内容为模板的内容
}; let zip = new PizZip(content);
console.log( // 创建并加载docx templater实例对象
JSON.stringify({ let doc = new docxtemplater().loadZip(zip);
error: e, // 设置模板变量的值
}) // console.log("arr666---", arr);
); doc.setData({
throw error; ...arr, // e中的数据可以再模板中直接使用
} });
// 生成一个代表docxtemplater对象的zip文件(不是一个真实的文件,而是在内存中的表示) try {
let out = doc.getZip().generate({ // 用模板变量的值替换所有模板变量
type: "blob", doc.render();
mimeType: } catch (error) {
"application/vnd.openxmlformats-officedocument.wordprocessingml.document", // 抛出异常
}); let e = {
uploadWordFile( message: error.message,
new File([out], "deed-text" + new Date().valueOf() + ".docx", { name: error.name,
type: out.type, stack: error.stack,
}) properties: error.properties,
).then((res) => {
console.log("文件的res----", res);
if (res.success) {
let params = {
code: that.detail.code,
fileUrl: res.data,
}; };
saveMultipleFileUrl(params).then((res) => { console.log(
console.log("初审通过后的传填充文件给后端---", res); JSON.stringify({
that.init(); error: e,
}); })
} else { );
that.$message.error(res.msg); throw error;
queryMultipleDeedTaxDetailInfo({ code: that.rowDetail.code }).then( }
(res) => { // 生成一个代表docxtemplater对象的zip文件(不是一个真实的文件,而是在内存中的表示)
let out = doc.getZip().generate({
type: "blob",
mimeType:
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
});
uploadWordFile(
new File([out], "deed-text" + new Date().valueOf() + ".docx", {
type: out.type,
})
).then((res) => {
console.log("文件的res----", res);
if (res.success) {
let params = {
code: that.detail.code,
fileUrl: res.data,
};
saveMultipleFileUrl(params).then(async (res) => {
console.log("初审通过后的传填充文件给后端---", res);
await that.initNew();
resolve();
});
} else {
that.$message.error(res.msg);
queryMultipleDeedTaxDetailInfo({
code: that.rowDetail.code,
}).then((res) => {
console.log(res); console.log(res);
if (res.success) { if (res.success) {
let params = { let params = {
...@@ -1184,14 +1245,15 @@ export default { ...@@ -1184,14 +1245,15 @@ 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();
}); });
} }
} });
); }
} });
}); });
}); });
}, },
......
...@@ -1283,7 +1283,7 @@ export default { ...@@ -1283,7 +1283,7 @@ export default {
break; break;
default: default:
await this.resetHandle(row); // await this.resetHandle(row);
window.location.href = row.fileUrl; window.location.href = row.fileUrl;
break; break;
} }
......
...@@ -884,7 +884,6 @@ export default { ...@@ -884,7 +884,6 @@ export default {
})[0]; })[0];
}, },
pass(row) { pass(row) {
console.log(row);
this.rowDetail = row; this.rowDetail = row;
this.$prompt(`确定通过该申请的初审吗?`, "提示", { this.$prompt(`确定通过该申请的初审吗?`, "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
...@@ -1241,8 +1240,9 @@ export default { ...@@ -1241,8 +1240,9 @@ export default {
} }
const loading = this.$loading({ const loading = this.$loading({
lock: true, lock: true,
text: "Loading", text: "审核中",
spinner: "el-icon-loading", spinner: "el-icon-loading",
customClass: "fullLoading",
}); });
userMultipleExport(this.downLoadParams) userMultipleExport(this.downLoadParams)
.then((res) => { .then((res) => {
......
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