salix/modules/client/front/basic-data/index.js

23 lines
519 B
JavaScript
Raw Normal View History

2017-06-03 11:01:47 +00:00
import ngModule from '../module';
2020-03-17 10:17:50 +00:00
import Section from 'salix/components/section';
export default class Controller extends Section {
transferorSearchFunction($search) {
return /^\d+$/.test($search)
? {id: $search}
: {name: {like: '%' + $search + '%'}};
}
onSubmit() {
2023-04-20 06:24:43 +00:00
return this.$.watcher.submit();
}
}
ngModule.vnComponent('vnClientBasicData', {
2018-05-23 12:26:51 +00:00
template: require('./index.html'),
controller: Controller,
bindings: {
client: '<'
}
2017-06-03 11:01:47 +00:00
});