2018-08-29 07:45:37 +00:00
|
|
|
import ngModule from '../module';
|
2020-03-16 10:58:14 +00:00
|
|
|
import Section from 'salix/components/section';
|
2018-08-29 09:43:25 +00:00
|
|
|
import './style.scss';
|
2018-08-29 07:45:37 +00:00
|
|
|
|
2020-03-16 10:58:14 +00:00
|
|
|
class Controller extends Section {
|
2019-04-08 07:01:10 +00:00
|
|
|
onSubmit() {
|
2020-03-16 10:58:14 +00:00
|
|
|
this.$.watcher.submit().then(() => {
|
2020-10-26 11:16:57 +00:00
|
|
|
if (this.aclService.hasAny(['claimManager']))
|
2019-04-08 07:01:10 +00:00
|
|
|
this.$state.go('claim.card.detail');
|
2019-05-16 07:33:56 +00:00
|
|
|
});
|
2019-01-29 10:14:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-24 12:22:30 +00:00
|
|
|
ngModule.vnComponent('vnClaimBasicData', {
|
2018-08-29 07:45:37 +00:00
|
|
|
template: require('./index.html'),
|
2019-01-29 10:14:01 +00:00
|
|
|
controller: Controller,
|
2018-08-29 07:45:37 +00:00
|
|
|
bindings: {
|
|
|
|
claim: '<'
|
|
|
|
}
|
|
|
|
});
|