hotfix ticketFutureAdvance warehouse #1316
|
@ -65,12 +65,15 @@ export default class Controller extends Section {
|
|||
let today = new Date();
|
||||
const tomorrow = new Date(today);
|
||||
tomorrow.setDate(tomorrow.getDate() + 1);
|
||||
this.filterParams = {
|
||||
dateFuture: tomorrow,
|
||||
dateToAdvance: today,
|
||||
warehouseFk: this.vnConfig.warehouseFk
|
||||
};
|
||||
this.$.model.applyFilter(null, this.filterParams);
|
||||
this.$http.get(`UserConfigs/getUserConfig`)
|
||||
.then(res => {
|
||||
this.filterParams = {
|
||||
dateFuture: tomorrow,
|
||||
dateToAdvance: today,
|
||||
warehouseFk: res.data.warehouseFk
|
||||
};
|
||||
this.$.model.addFilter({}, this.filterParams);
|
||||
});
|
||||
}
|
||||
|
||||
compareDate(date) {
|
||||
|
|
|
@ -59,12 +59,15 @@ export default class Controller extends Section {
|
|||
setDefaultFilter() {
|
||||
const today = new Date();
|
||||
|
||||
this.filterParams = {
|
||||
originDated: today,
|
||||
futureDated: today,
|
||||
warehouseFk: this.vnConfig.warehouseFk
|
||||
};
|
||||
this.$.model.applyFilter(null, this.filterParams);
|
||||
this.$http.get(`UserConfigs/getUserConfig`)
|
||||
.then(res => {
|
||||
this.filterParams = {
|
||||
originDated: today,
|
||||
futureDated: today,
|
||||
warehouseFk: res.data.warehouseFk
|
||||
};
|
||||
this.$.model.applyFilter(null, this.filterParams);
|
||||
});
|
||||
}
|
||||
|
||||
compareDate(date) {
|
||||
|
|
Loading…
Reference in New Issue