Commit 9278c578 by swl

gx

parent 32581678
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://192.168.3.87:8881/", //本地
proxy: "https://exam.smart-zj.cn:9100/smartExam", // 新正式接口zs
proxy: "http://81.69.231.72:8881", // 测试地址
// proxy: "http://192.168.3.87:8881", //本地
// 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", // 新正式接口
......
......@@ -1051,7 +1051,7 @@ export default {
return item.state === state;
})[0];
},
handleCommand(row, com) {
async handleCommand(row, com) {
console.log(row, com);
switch (com) {
......@@ -1060,46 +1060,46 @@ export default {
break;
default:
await this.resetHandle(row);
window.location.href = row.fileUrl;
break;
}
},
resetHandle(row) {
let params = {
code: row.code,
};
Promise.all([
queryCommerDeedTaxDetailInfo(params),
queryCommerDeedTaxRecord(params),
]).then((res) => {
console.log(res);
// if (res[0].data?.state == 1) {
this.detail = res[0].data;
this.arrList = res[1].data;
this.detail.recordVos.forEach((item) => {
item.departmentName.search("财政") != -1
? (this.arr1 = item.reason)
: "";
item.departmentName.search("不动产") != -1
? (this.arr2 = item.reason)
: "";
item.departmentName.search("税务") != -1
? (this.arr3 = item.reason)
: "";
return new Promise((resolve) => {
let params = {
code: row.code,
};
Promise.all([
queryCommerDeedTaxDetailInfo(params),
queryCommerDeedTaxRecord(params),
]).then((res) => {
this.detail = res[0].data;
this.arrList = res[1].data;
this.detail.recordVos.forEach((item) => {
item.departmentName.search("财政") != -1
? (this.arr1 = item.reason)
: "";
item.departmentName.search("不动产") != -1
? (this.arr2 = item.reason)
: "";
item.departmentName.search("税务") != -1
? (this.arr3 = item.reason)
: "";
});
this.initTemplate();
resolve();
});
console.log(111);
this.initTemplate();
// }
});
},
initTemplate() {
let that = this;
console.log("-------", that.detail);
console.log(that.arrList);
console.log(that.arr1, that.arr2, that.arr3);
let arr = {};
arr.name = that.detail.name;
arr.idCard = that.detail.idCard;
arr.title = "商办用房";
arr.birthDate =
that.detail.idCard.substring(6, 10) +
"-" +
......@@ -1125,6 +1125,8 @@ export default {
arr.arr3 = that.arr3 || ""; // 税务
this.docxsrc = "./static/deedTax2.docx"; //模板文件的位置
}
console.log(this.docxsrc, "docxsrc");
// let docxname = '购房契税补贴申请表'; //导出文件的名字
// 读取并获得模板文件的二进制内容
JSZipUtils.getBinaryContent(this.docxsrc, function (error, content) {
......@@ -1167,7 +1169,6 @@ export default {
mimeType:
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
});
console.log("out----", out);
uploadWordFile(
new File([out], "deed-text" + new Date().valueOf() + ".docx", {
type: out.type,
......
......@@ -1055,8 +1055,7 @@ export default {
return item.state === state;
})[0];
},
handleCommand(row, com) {
console.log(row, com);
async handleCommand(row, com) {
// this.downloadUrl=row.fileUrl
switch (com) {
case "reset":
......@@ -1064,46 +1063,50 @@ export default {
break;
default:
await this.resetHandle(row);
window.location.href = row.fileUrl;
break;
}
},
resetHandle(row) {
let params = {
code: row.code,
};
Promise.all([
queryDeedTaxDetailInfo(params),
queryDeedTaxRecord(params),
]).then((res) => {
console.log(res);
// if (res[0].data?.state == 1) {
console.log(111);
this.detail = res[0].data;
this.arrList = res[1].data;
this.detail.recordVos.forEach((item) => {
item.departmentName.search("财政") != -1
? (this.arr1 = item.reason)
: "";
item.departmentName.search("不动产") != -1
? (this.arr2 = item.reason)
: "";
item.departmentName.search("税务") != -1
? (this.arr3 = item.reason)
: "";
new Promise((resolve) => {
let params = {
code: row.code,
};
Promise.all([
queryDeedTaxDetailInfo(params),
queryDeedTaxRecord(params),
]).then((res) => {
console.log(res);
// if (res[0].data?.state == 1) {
this.detail = res[0].data;
this.arrList = res[1].data;
this.detail.recordVos.forEach((item) => {
item.departmentName.search("财政") != -1
? (this.arr1 = item.reason)
: "";
item.departmentName.search("不动产") != -1
? (this.arr2 = item.reason)
: "";
item.departmentName.search("税务") != -1
? (this.arr3 = item.reason)
: "";
});
this.initTemplate();
// }
resolve();
});
this.initTemplate();
// }
});
},
initTemplate() {
let that = this;
console.log("-------", that.detail);
console.log(that.arrList);
console.log(that.arr1, that.arr2, that.arr3);
let arr = {};
arr.name = that.detail.name;
arr.idCard = that.detail.idCard;
arr.title = "用首套商品住房";
arr.birthDate =
that.detail.idCard.substring(6, 10) +
"-" +
......
......@@ -679,6 +679,10 @@ export default {
label: "句容市",
value: "句容市",
},
{
label: "丹阳市",
value: "丹阳市",
},
],
// 以下是填充模板字段
detail: {},
......@@ -948,12 +952,12 @@ export default {
},
initTemplate() {
let that = this;
console.log("-------", that.detail);
console.log(that.arrList);
console.log(that.arr1, that.arr2, that.arr3);
let arr = {};
arr.name = that.detail.name;
arr.idCard = that.detail.idCard;
arr.title = "用首套商品住房";
arr.birthDate =
that.detail.idCard.substring(6, 10) +
"-" +
......
......@@ -1055,7 +1055,7 @@ export default {
return item.state === state;
})[0];
},
handleCommand(row, com) {
async handleCommand(row, com) {
console.log(row, com);
// this.downloadUrl=row.fileUrl
switch (com) {
......@@ -1064,46 +1064,46 @@ export default {
break;
default:
await this.resetHandle(row);
window.location.href = row.fileUrl;
break;
}
},
resetHandle(row) {
let params = {
code: row.code,
};
Promise.all([
queryHouseDeedTaxDetailInfo(params),
queryHouseDeedTaxRecord(params),
]).then((res) => {
console.log(res);
// if (res[0].data?.state == 1) {
console.log(111);
this.detail = res[0].data;
this.arrList = res[1].data;
this.detail.recordVos.forEach((item) => {
item.departmentName.search("财政") != -1
? (this.arr1 = item.reason)
: "";
item.departmentName.search("不动产") != -1
? (this.arr2 = item.reason)
: "";
item.departmentName.search("税务") != -1
? (this.arr3 = item.reason)
: "";
return new Promise((resolve) => {
let params = {
code: row.code,
};
Promise.all([
queryHouseDeedTaxDetailInfo(params),
queryHouseDeedTaxRecord(params),
]).then((res) => {
this.detail = res[0].data;
this.arrList = res[1].data;
this.detail.recordVos.forEach((item) => {
item.departmentName.search("财政") != -1
? (this.arr1 = item.reason)
: "";
item.departmentName.search("不动产") != -1
? (this.arr2 = item.reason)
: "";
item.departmentName.search("税务") != -1
? (this.arr3 = item.reason)
: "";
});
this.initTemplate();
resolve();
// }
});
this.initTemplate();
// }
});
},
initTemplate() {
let that = this;
console.log("-------", that.detail);
console.log(that.arrList);
console.log(that.arr1, that.arr2, that.arr3);
let arr = {};
arr.name = that.detail.name;
arr.idCard = that.detail.idCard;
arr.title = "改善型住房";
arr.birthDate =
that.detail.idCard.substring(6, 10) +
"-" +
......
......@@ -679,6 +679,10 @@ export default {
label: "句容市",
value: "句容市",
},
{
label: "丹阳市",
value: "丹阳市",
},
],
// 以下是填充模板字段
detail: {},
......@@ -962,6 +966,7 @@ export default {
let arr = {};
arr.name = that.detail.name;
arr.idCard = that.detail.idCard;
arr.title = "改善型住房";
arr.birthDate =
that.detail.idCard.substring(6, 10) +
"-" +
......
......@@ -1077,7 +1077,7 @@ export default {
return item.state === state;
})[0];
},
handleCommand(row, com) {
async handleCommand(row, com) {
console.log(row, com);
// this.downloadUrl=row.fileUrl
switch (com) {
......@@ -1086,46 +1086,46 @@ export default {
break;
default:
await this.resetHandle(row);
window.location.href = row.fileUrl;
break;
}
},
resetHandle(row) {
let params = {
code: row.code,
};
Promise.all([
queryMultipleDeedTaxDetailInfo(params),
queryMultipleDeedTaxRecord(params),
]).then((res) => {
console.log(res);
// if (res[0].data?.state == 1) {
console.log(111);
this.detail = res[0].data;
this.arrList = res[1].data;
this.detail.recordVos.forEach((item) => {
item.departmentName.search("财政") != -1
? (this.arr1 = item.reason)
: "";
item.departmentName.search("不动产") != -1
? (this.arr2 = item.reason)
: "";
item.departmentName.search("税务") != -1
? (this.arr3 = item.reason)
: "";
return new Promise((resolve) => {
let params = {
code: row.code,
};
Promise.all([
queryMultipleDeedTaxDetailInfo(params),
queryMultipleDeedTaxRecord(params),
]).then((res) => {
this.detail = res[0].data;
this.arrList = res[1].data;
this.detail.recordVos.forEach((item) => {
item.departmentName.search("财政") != -1
? (this.arr1 = item.reason)
: "";
item.departmentName.search("不动产") != -1
? (this.arr2 = item.reason)
: "";
item.departmentName.search("税务") != -1
? (this.arr3 = item.reason)
: "";
});
this.initTemplate();
resolve();
// }
});
this.initTemplate();
// }
});
},
initTemplate() {
let that = this;
console.log("-------", that.detail);
console.log(that.arrList);
console.log(that.arr1, that.arr2, that.arr3);
let arr = {};
arr.name = that.detail.name;
arr.idCard = that.detail.idCard;
arr.title = "多子女家庭";
arr.birthDate =
that.detail.idCard.substring(6, 10) +
"-" +
......
......@@ -680,6 +680,10 @@ export default {
label: "句容市",
value: "句容市",
},
{
label: "丹阳市",
value: "丹阳市",
},
],
// 以下是填充模板字段
detail: {},
......@@ -950,12 +954,12 @@ export default {
},
initTemplate() {
let that = this;
console.log("-------", that.detail);
console.log(that.arrList);
console.log(that.arr1, that.arr2, that.arr3);
let arr = {};
arr.name = that.detail.name;
arr.idCard = that.detail.idCard;
arr.title = "多子女家庭";
arr.birthDate =
that.detail.idCard.substring(6, 10) +
"-" +
......
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