master
xy 1 year ago
parent d7b14e6d4d
commit eb769ca299

@ -1508,7 +1508,7 @@ export default {
this.btnLoading = false this.btnLoading = false
//this.step = 3; //this.step = 3;
this.$router.push({ this.$router.push({
path: (this.form.is_simple || !this.form.is_purchase) ? '/contractAll' : '/contract/contractList', path: (this.form.is_simple || !this.form.is_purchase) ? '/contract/contractAll' : '/contract/contractList',
query: { query: {
keyword: this.form.name, keyword: this.form.name,
}, },

@ -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;

Loading…
Cancel
Save