Commit eee0cab7 by swl

feat: gx

parent 7c818779
No preview for this file type
No preview for this file type
const domain = {
// dev: "http://192.168.3.87:8881", // 姚镇接口
// dev: "http://81.69.231.72:8881", // 姚镇接口
dev: "http://81.69.231.72:8881", // 测试接口
// dev: "https://exam.smart-zj.cn:9100/smartExam/", // 新正式接口
// dev: "http://81.69.231.72:8881", // 测试接口
dev: "https://exam.smart-zj.cn:9100/smartExam/", // 新正式接口
};
// 腾讯地图 key
const map = {
......
......@@ -5,9 +5,9 @@ import { TokenKey } from "@/utils/auth";
const config = {
// 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: "https://exam.smart-zj.cn:9100/smartExam", // 新正式接口zs
proxy: "https://exam.smart-zj.cn:9100/smartExam", // 新正式接口zs
// proxy: "http://81.69.231.72:9089/", // 测试地址
// proxy1: "http://81.69.231.72:8881/admin-api", // 测试地址
// proxy1: "https://exam.smart-zj.cn:9100/smartExam/admin-api", // 新正式接口
......
......@@ -996,7 +996,7 @@ export default {
updateCommerDeedTaxState(params).then(() => {
this.$message.success(`复审驳回成功`);
this.init();
this.initNew();
});
}
});
......@@ -1157,15 +1157,6 @@ export default {
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.arr2 = that.arr2 || ""; // 不动产
......
......@@ -1382,13 +1382,13 @@ export default {
arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务
this.docxsrc = "./static/deedTax1.docx"; //模板文件的位置
}
if (this.templateType == "danYang") {
arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务
arr.arr4 = that.arr4 || ""; // 住建
this.docxsrc = "./static/deedTax1_danYang.docx"; //模板文件的位置
if (this.templateType == "danYang") {
arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务
arr.arr4 = that.arr4 || ""; // 住建
this.docxsrc = "./static/deedTax1_danYang.docx"; //模板文件的位置
}
} else {
arr.arr3 = that.arr3 || ""; // 税务
this.docxsrc = "./static/deedTax2.docx"; //模板文件的位置
......
......@@ -996,7 +996,7 @@ export default {
updateDeedTaxState(params).then((res) => {
console.log(res);
this.$message.success(`复审驳回成功`);
this.init();
this.initNew();
});
}
});
......@@ -1156,15 +1156,6 @@ export default {
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.arr2 = that.arr2 || ""; // 不动产
......
......@@ -1276,7 +1276,6 @@ export default {
queryDeedTaxDetailInfo(params),
queryDeedTaxRecord(params),
]).then((res) => {
console.log(res, "111");
// if (res[0].data?.state == 1) {
this.detail = res[0].data;
this.arrList = res[1].data;
......@@ -1369,13 +1368,13 @@ export default {
arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务
this.docxsrc = "./static/deedTax1.docx"; //模板文件的位置
}
if (this.templateType == "danYang") {
arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务
arr.arr4 = that.arr4 || ""; // 住建
this.docxsrc = "./static/deedTax1_danYang.docx"; //模板文件的位置
if (this.templateType == "danYang") {
arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务
arr.arr4 = that.arr4 || ""; // 住建
this.docxsrc = "./static/deedTax1_danYang.docx"; //模板文件的位置
}
} else {
arr.arr3 = that.arr3 || ""; // 税务
this.docxsrc = "./static/deedTax2.docx"; //模板文件的位置
......
......@@ -995,7 +995,7 @@ export default {
updateHouseDeedTaxState(params).then((res) => {
console.log(res);
this.$message.success(`复审驳回成功`);
this.init();
this.initNew();
});
}
});
......@@ -1155,15 +1155,7 @@ export default {
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.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务
......
......@@ -185,7 +185,7 @@
>
<el-dropdown
size="mini"
@command="handleCommand(scope.row, $event)"
@command="handleCommand(scope.row, $event, 'default')"
>
<span class="el-dropdown-link">
申请表<i class="el-icon-arrow-down el-icon--right"></i>
......@@ -1348,6 +1348,7 @@ export default {
}
let arr = {};
arr.promiseText = text;
arr.time = that.detail.createTime.split(" ")[0];
......@@ -1374,18 +1375,19 @@ export default {
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 (this.templateType == "danYang") {
arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务
arr.arr4 = that.arr4 || ""; // 住建
this.docxsrc = "./static/deedTax1_danYang.docx"; //模板文件的位置
if (this.templateType == "danYang") {
arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务
arr.arr4 = that.arr4 || ""; // 住建
this.docxsrc = "./static/deedTax1_danYang.docx"; //模板文件的位置
}
} else {
arr.arr3 = that.arr3 || ""; // 税务
this.docxsrc = "./static/deedTax2.docx"; //模板文件的位置
......@@ -1447,7 +1449,6 @@ export default {
};
saveHouseFileUrl(params).then(async (res) => {
console.log("初审通过后的传填充文件给后端---", res);
await that.initNew();
resolve();
});
......
......@@ -995,7 +995,7 @@ export default {
updateMultipleDeedTaxState(params).then((res) => {
console.log(res);
this.$message.success(`复审驳回成功`);
this.init();
this.initNew();
});
}
});
......@@ -1155,15 +1155,7 @@ export default {
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.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务
......
......@@ -799,6 +799,8 @@ export default {
],
},
refundForm: {},
fileDownload: false,
row: null,
};
},
watch: {
......@@ -860,9 +862,18 @@ export default {
} else {
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() {
return new Promise((resolve) => {
this.tableData = [];
......@@ -894,6 +905,14 @@ export default {
} else {
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 {
},
async handleCommand(row, com, type) {
this.templateType = type;
// let url = "";
// this.downloadUrl=row.fileUrl
switch (com) {
case "reset":
......@@ -1283,8 +1302,17 @@ export default {
break;
default:
// await this.resetHandle(row);
window.location.href = row.fileUrl;
this.row = row;
this.fileDownload = true;
await this.resetHandle(row);
// url = this.tableData.filter(
// ((item) => {
// return item.code === row.code;
// })[0]
// ).fileUrl;
// window.location.href = url;
break;
}
},
......@@ -1296,7 +1324,7 @@ export default {
Promise.all([
queryMultipleDeedTaxDetailInfo(params),
queryMultipleDeedTaxRecord(params),
]).then((res) => {
]).then(async (res) => {
this.detail = res[0].data;
this.arrList = res[1].data;
if (this.templateType == "default") {
......@@ -1328,7 +1356,7 @@ export default {
});
}
this.initTemplate();
await this.initTemplate();
resolve();
// }
});
......@@ -1388,18 +1416,17 @@ export default {
arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务
this.docxsrc = "./static/deedTax1.docx"; //模板文件的位置
}
if (this.templateType == "danYang") {
arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务
arr.arr4 = that.arr4 || ""; // 住建
this.docxsrc = "./static/deedTax1_danYang.docx"; //模板文件的位置
if (this.templateType == "danYang") {
arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务
arr.arr4 = that.arr4 || ""; // 住建
this.docxsrc = "./static/deedTax1_danYang.docx"; //模板文件的位置
}
} else {
arr.arr3 = that.arr3 || ""; // 税务
this.docxsrc = "./static/deedTax2.docx"; //模板文件的位置
}
console.log(this.docxsrc, "docxsrc");
// let docxname = '购房契税补贴申请表'; //导出文件的名字
// 读取并获得模板文件的二进制内容
......
const env = process.env.NODE_ENV === "production";
// const publicPath = env ? "/manage-h5/" : "/"; //正式
const publicPath = env ? "/smartExam-h5/" : "/"; //测试
const publicPath = env ? "/manage-h5/" : "/"; //正式
// const publicPath = env ? "/smartExam-h5/" : "/"; //测试
module.exports = {
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