2022-10-11 09:43:01 +00:00
|
|
|
import ngModule from '../module';
|
|
|
|
import Section from 'salix/components/section';
|
|
|
|
|
|
|
|
class Controller extends Section {
|
|
|
|
constructor($element, $) {
|
|
|
|
super($element, $);
|
|
|
|
}
|
|
|
|
|
|
|
|
onSubmit() {
|
|
|
|
this.$.watcher.submit().then(
|
2022-10-17 05:25:25 +00:00
|
|
|
json => {
|
2022-10-25 08:42:16 +00:00
|
|
|
this.$state.go(`supplier.card.fiscalData`, {id: json.data.id});
|
2022-10-17 05:25:25 +00:00
|
|
|
}
|
2022-10-11 09:43:01 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Controller.$inject = ['$element', '$scope'];
|
|
|
|
|
|
|
|
ngModule.vnComponent('vnSupplierCreate', {
|
|
|
|
template: require('./index.html'),
|
|
|
|
controller: Controller
|
|
|
|
});
|