内部码打印搜索问题修改

prod
郑明梁 3 years ago
parent a56913828a
commit 147bcb4520

@ -307,7 +307,7 @@ export default {
}); });
this.query = { this.query = {
billNo: "", billNo: "",
status: "3", status: "",
page: 1, page: 1,
limit: 10, limit: 10,
startTime: "", startTime: "",
@ -322,14 +322,6 @@ export default {
this.showSearch = !this.showSearch; this.showSearch = !this.showSearch;
}, },
onSubmit() { onSubmit() {
if (this.actDateRange !== null) {
this.query.startTime = this.actDateRange[0];
this.query.endTime = this.actDateRange[1];
} else {
this.query.startTime = null;
this.query.endTime = null;
}
this.getList(); this.getList();
this.haveDistributionVisible = true; this.haveDistributionVisible = true;
}, },
@ -354,6 +346,13 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
this.query.corpId = store.getters.customerId; this.query.corpId = store.getters.customerId;
if (this.actDateRange !== null) {
this.query.startTime = this.actDateRange[0];
this.query.endTime = this.actDateRange[1];
} else {
this.query.startTime = null;
this.query.endTime = null;
}
stockOrderList(this.query) stockOrderList(this.query)
.then(response => { .then(response => {
this.loading = false; this.loading = false;
@ -492,10 +491,6 @@ export default {
this.getSubInvList(); this.getSubInvList();
this.getBusType(); this.getBusType();
this.getList(); this.getList();
let end = new Date();
let start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
this.actDateRange = [start, end];
} }
} }
</script> </script>

Loading…
Cancel
Save