2020-10-15 06:15:04 +00:00
|
|
|
import ngModule from '../module';
|
|
|
|
import Section from 'salix/components/section';
|
|
|
|
|
2020-11-18 10:47:23 +00:00
|
|
|
export default class Controller extends Section {
|
|
|
|
openSummary(supplier, event) {
|
|
|
|
if (event.defaultPrevented) return;
|
|
|
|
event.preventDefault();
|
|
|
|
event.stopPropagation();
|
|
|
|
|
|
|
|
this.supplierSelected = supplier;
|
|
|
|
this.$.dialogSummarySupplier.show();
|
|
|
|
}
|
|
|
|
}
|
2020-10-15 06:15:04 +00:00
|
|
|
|
|
|
|
ngModule.vnComponent('vnSupplierIndex', {
|
|
|
|
template: require('./index.html'),
|
|
|
|
controller: Controller
|
|
|
|
});
|