21 lines
492 B
JavaScript
21 lines
492 B
JavaScript
import ngModule from '../module';
|
|
import Section from 'salix/components/section';
|
|
import './style.scss';
|
|
|
|
class Controller extends Section {
|
|
onSubmit() {
|
|
this.$.watcher.submit().then(() => {
|
|
if (this.aclService.hasAny(['salesAssistant']))
|
|
this.$state.go('claim.card.detail');
|
|
});
|
|
}
|
|
}
|
|
|
|
ngModule.vnComponent('vnClaimBasicData', {
|
|
template: require('./index.html'),
|
|
controller: Controller,
|
|
bindings: {
|
|
claim: '<'
|
|
}
|
|
});
|