salix/modules/supplier/front/billing-data/index.js

29 lines
577 B
JavaScript
Raw Normal View History

2020-12-14 15:09:17 +00:00
import ngModule from '../module';
import Section from 'salix/components/section';
export default class Controller extends Section {
get supplier() {
return this._supplier;
}
set supplier(value) {
this._supplier = value;
}
onSubmit() {
this.$.watcher.submit()
.then(() => this.card.reload());
2020-12-14 15:09:17 +00:00
}
}
ngModule.vnComponent('vnSupplierBillingData', {
template: require('./index.html'),
controller: Controller,
bindings: {
supplier: '<'
},
require: {
card: '^vnSupplierCard'
2020-12-14 15:09:17 +00:00
}
});