领用管理bug修复

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

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

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

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

Loading…
Cancel
Save