6895-removeShelving #2388

Merged
carlossa merged 6 commits from 6895-removeShelving into dev 2024-05-02 11:43:36 +00:00
2 changed files with 3 additions and 34 deletions
Showing only changes of commit e546a13e5d - Show all commits

View File

@ -1,19 +0,0 @@
<vn-crud-model
vn-id="model"
url="Shelvings"
filter="$ctrl.filter"
limit="20">
</vn-crud-model>
<vn-portal slot="topbar">
<vn-searchbar
vn-focus
panel="vn-shelving-search-panel"
info="Search shelving by code, parking or worker"
model="model"
expr-builder="$ctrl.exprBuilder(param, value)">
</vn-searchbar>
</vn-portal>
<vn-portal slot="menu">
<vn-left-menu></vn-left-menu>
</vn-portal>
<ui-view></ui-view>

View File

@ -4,22 +4,10 @@ import ModuleMain from 'salix/components/module-main';
export default class Shelving extends ModuleMain {
constructor($element, $) {
super($element, $);
this.filter = {
include: [
{relation: 'parking'}
],
};
}
exprBuilder(param, value) {
switch (param) {
case 'search':
return {code: {like: `%${value}%`}};
case 'parkingFk':
case 'userFk':
case 'isRecyclable':
return {[param]: value};
}
async $onInit() {
const url = await this.vnApp.getUrl(`shelving/`);
window.location.href = url;
carlossa marked this conversation as resolved Outdated
Outdated
Review

si antes de aço fas que torne al dashboard millor sino si tires arrere desde lilium entres en bucle
this.$state.go('XXXXX');

si antes de aço fas que torne al dashboard millor sino si tires arrere desde lilium entres en bucle `this.$state.go('XXXXX');`
}
}