Merge pull request 'hotfix ticketFutureAdvance warehouse' (!1316) from hotFix-ticketFutureAdvance-warehouse into master
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #1316
This commit is contained in:
Alexandre Riera 2023-02-09 07:18:06 +00:00
commit 0e75a5f23a
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(); let today = new Date();
const tomorrow = new Date(today); const tomorrow = new Date(today);
tomorrow.setDate(tomorrow.getDate() + 1); tomorrow.setDate(tomorrow.getDate() + 1);
this.filterParams = { this.$http.get(`UserConfigs/getUserConfig`)
dateFuture: tomorrow, .then(res => {
dateToAdvance: today, this.filterParams = {
warehouseFk: this.vnConfig.warehouseFk dateFuture: tomorrow,
}; dateToAdvance: today,
this.$.model.applyFilter(null, this.filterParams); warehouseFk: res.data.warehouseFk
};
this.$.model.addFilter({}, this.filterParams);
});
} }
compareDate(date) { compareDate(date) {

View File

@ -59,12 +59,15 @@ export default class Controller extends Section {
setDefaultFilter() { setDefaultFilter() {
const today = new Date(); const today = new Date();
this.filterParams = { this.$http.get(`UserConfigs/getUserConfig`)
originDated: today, .then(res => {
futureDated: today, this.filterParams = {
warehouseFk: this.vnConfig.warehouseFk originDated: today,
}; futureDated: today,
this.$.model.applyFilter(null, this.filterParams); warehouseFk: res.data.warehouseFk
};
this.$.model.applyFilter(null, this.filterParams);
});
} }
compareDate(date) { compareDate(date) {