State fix & supplier search fix
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2020-09-07 08:15:43 +02:00
parent d1e8bd894f
commit f8bb4d86fb
4 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,10 @@
import ngModule from '../module';
import Section from 'salix/components/section';
ngModule.vnComponent('vnEntryBasicData', {
template: require('./index.html'),
controller: Section,
bindings: {
entry: '<'
}
});

View File

@ -17,7 +17,7 @@
ng-model="$ctrl.entry.supplierFk" ng-model="$ctrl.entry.supplierFk"
url="Suppliers" url="Suppliers"
show-field="nickname" show-field="nickname"
search-function="{or: [{id: $search}, {name: {like: '%'+ $search +'%'}}]}" search-function="{or: [{id: $search}, {nickname: {like: '%'+ $search +'%'}}]}"
value-field="id" value-field="id"
order="nickname" order="nickname"
label="Supplier" label="Supplier"

View File

@ -10,6 +10,7 @@
{"state": "entry.latestBuys", "icon": "icon-latestBuys"} {"state": "entry.latestBuys", "icon": "icon-latestBuys"}
], ],
"card": [ "card": [
{"state": "entry.card.basicData", "icon": "settings"},
{"state": "entry.card.buy", "icon": "icon-lines"}, {"state": "entry.card.buy", "icon": "icon-lines"},
{"state": "entry.card.log", "icon": "history"} {"state": "entry.card.log", "icon": "history"}
] ]
@ -52,6 +53,14 @@
"params": { "params": {
"entry": "$ctrl.entry" "entry": "$ctrl.entry"
} }
}, {
"url": "/basic-data",
"state": "entry.card.basicData",
"component": "vn-entry-basic-data",
"description": "Basic data",
"params": {
"entry": "$ctrl.entry"
}
}, { }, {
"url" : "/log", "url" : "/log",
"state": "entry.card.log", "state": "entry.card.log",