30 lines
699 B
JavaScript
30 lines
699 B
JavaScript
import ngModule from '../module';
|
|
import './style.scss';
|
|
|
|
class Controller {
|
|
constructor($scope, $state, aclService) {
|
|
this.$scope = $scope;
|
|
this.$state = $state;
|
|
this.$stateParams = $state.params;
|
|
this.aclService = aclService;
|
|
}
|
|
|
|
onSubmit() {
|
|
if (this.aclService.hasAny(['salesAssistant'])) {
|
|
this.$scope.watcher.submit().then(() => {
|
|
this.$state.go('claim.card.detail');
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
Controller.$inject = ['$scope', '$state', 'aclService'];
|
|
|
|
ngModule.component('vnClaimBasicData', {
|
|
template: require('./index.html'),
|
|
controller: Controller,
|
|
bindings: {
|
|
claim: '<'
|
|
}
|
|
});
|