Fixed order
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
f71a2a3665
commit
613937dc8d
|
@ -4,7 +4,7 @@
|
||||||
user-params="::$ctrl.filterParams"
|
user-params="::$ctrl.filterParams"
|
||||||
limit="20"
|
limit="20"
|
||||||
data="requests"
|
data="requests"
|
||||||
order="shipped DESC, isOk ASC"
|
order="shippedDate ASC, isOk ASC"
|
||||||
auto-load="true">
|
auto-load="true">
|
||||||
</vn-crud-model>
|
</vn-crud-model>
|
||||||
<vn-portal slot="topbar">
|
<vn-portal slot="topbar">
|
||||||
|
|
|
@ -8,16 +8,16 @@ export default class Controller extends Section {
|
||||||
|
|
||||||
if (!this.$state.q) {
|
if (!this.$state.q) {
|
||||||
const today = new Date();
|
const today = new Date();
|
||||||
today.setHours(23, 59, 59, 59);
|
today.setHours(0, 0, 0, 0);
|
||||||
|
|
||||||
const lastWeek = new Date();
|
const nextWeek = new Date();
|
||||||
lastWeek.setHours(0, 0, 0, 0);
|
nextWeek.setHours(23, 59, 59, 59);
|
||||||
lastWeek.setDate(lastWeek.getDate() - 7);
|
nextWeek.setDate(nextWeek.getDate() + 7);
|
||||||
|
|
||||||
this.filterParams = {
|
this.filterParams = {
|
||||||
mine: true,
|
mine: true,
|
||||||
from: lastWeek,
|
from: today,
|
||||||
to: today
|
to: nextWeek
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -115,6 +115,7 @@ module.exports = Self => {
|
||||||
s.itemFk,
|
s.itemFk,
|
||||||
i.name AS itemDescription,
|
i.name AS itemDescription,
|
||||||
t.shipped,
|
t.shipped,
|
||||||
|
DATE(t.shipped) AS shippedDate,
|
||||||
t.nickname,
|
t.nickname,
|
||||||
t.warehouseFk,
|
t.warehouseFk,
|
||||||
t.clientFk,
|
t.clientFk,
|
||||||
|
|
Loading…
Reference in New Issue