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

16 lines
407 B
JavaScript
Raw Normal View History

2022-05-24 10:50:22 +00:00
import ngModule from '../module';
import Section from 'salix/components/section';
export default class Controller extends Section {
onSubmit() {
return this.$.watcher.submit().then(res =>
2022-07-20 11:41:33 +00:00
this.$state.go('shelving.card.basicData', {id: res.data.id})
2022-05-24 10:50:22 +00:00
);
}
}
ngModule.vnComponent('vnShelvingCreate', {
template: require('./index.html'),
controller: Controller
});