hotfix ticketFutureAdvance warehouse
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alexandre Riera 2023-02-08 13:47:35 +01:00
parent 220f7ee0f8
commit ef5b29d6f3
2 changed files with 18 additions and 12 deletions

View File

@ -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) {

View File

@ -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) {