|
|
|
@ -2556,6 +2556,18 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//获取合同列表
|
|
|
|
//获取合同列表
|
|
|
|
getContracts: throttle(async function (is_export,noloading=false,isopenOa=false) {
|
|
|
|
getContracts: throttle(async function (is_export,noloading=false,isopenOa=false) {
|
|
|
|
|
|
|
|
let tokens = getToken();
|
|
|
|
|
|
|
|
if (is_export && this.select.is_export === 1) {
|
|
|
|
|
|
|
|
var url = "/api/ht/contract/index?is_auth=1&token=" + tokens;
|
|
|
|
|
|
|
|
Object.keys(this.select).map((key, item) => {
|
|
|
|
|
|
|
|
url += "&" + key + "=" + this.select[key];
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
url = location.host + url;
|
|
|
|
|
|
|
|
console.log(url);
|
|
|
|
|
|
|
|
window.open("http://" + url, "_blank");
|
|
|
|
|
|
|
|
this.select.is_export = 0;
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
if (/contractLedger/g.test(this.$route.path)) {
|
|
|
|
if (/contractLedger/g.test(this.$route.path)) {
|
|
|
|
this.select.is_contract = 1
|
|
|
|
this.select.is_contract = 1
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
@ -2569,19 +2581,6 @@ export default {
|
|
|
|
},noloading);
|
|
|
|
},noloading);
|
|
|
|
delete this.select.id;
|
|
|
|
delete this.select.id;
|
|
|
|
|
|
|
|
|
|
|
|
let tokens = getToken();
|
|
|
|
|
|
|
|
if (is_export && this.select.is_export == 1) {
|
|
|
|
|
|
|
|
var url = "/api/ht/contract/index?is_auth=1&token=" + tokens;
|
|
|
|
|
|
|
|
Object.keys(this.select).map((key, item) => {
|
|
|
|
|
|
|
|
url += "&" + key + "=" + this.select[key];
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
url = location.host + url;
|
|
|
|
|
|
|
|
console.log(url);
|
|
|
|
|
|
|
|
window.open("http://" + url, "_blank");
|
|
|
|
|
|
|
|
this.select.is_export = 0;
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
res.list.data.forEach(i => this.handleContractFlow(i))
|
|
|
|
res.list.data.forEach(i => this.handleContractFlow(i))
|
|
|
|
this.list = res.list.data;
|
|
|
|
this.list = res.list.data;
|
|
|
|
this.total = res.list.total;
|
|
|
|
this.total = res.list.total;
|
|
|
|
|