领用管理bug修复

prod
郑明梁 2 years ago
parent 79e0e1560c
commit e283fee06c

@ -5,16 +5,16 @@ import axios from "@/utils/request";
export function listApply(query) {
return request({
url: '/purchase/apply/list',
method: 'get',
params: query
method: 'post',
data: query
})
}
export function auditListApply(query) {
return request({
url: '/purchase/apply/auditList',
method: 'get',
params: query
method: 'post',
data: query
})
}

@ -239,6 +239,7 @@ export default {
}
let query = {id: 4};
verifyTemplateFile(query).then((res) => {
debugger
if (res.code === 20000) {
let printParams = {
templateId: res.data,
@ -255,6 +256,8 @@ export default {
this.loading = false;
window.open(url);//pdf
})
}else{
return this.$message.error(res.message);
}
}).catch((error) => {
this.loading = false;
@ -295,6 +298,9 @@ export default {
this.loading = false;
window.open(url);//pdf
})
}else{
this.$message.error(res.message);
return
}
}).catch((error) => {
this.loading = false;

@ -304,6 +304,7 @@ export default {
this.filterQuery.endDate = null;
}
this.loading = true;
console.log(this.filterQuery)
listApply(this.filterQuery)
.then((response) => {
if (response.code == 20000) {
@ -430,7 +431,7 @@ export default {
});
},
initActDateRange(){
let end = new Date();
let start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);

Loading…
Cancel
Save