salix/modules/supplier/front/create/index.js

24 lines
534 B
JavaScript
Raw Permalink Normal View History

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
}
);
}
}
Controller.$inject = ['$element', '$scope'];
ngModule.vnComponent('vnSupplierCreate', {
template: require('./index.html'),
controller: Controller
});