salix/modules/invoiceIn/front/card/index.js

22 lines
495 B
JavaScript
Raw Normal View History

2021-02-10 14:03:11 +00:00
import ngModule from '../module';
import ModuleCard from 'salix/components/module-card';
class Controller extends ModuleCard {
reload() {
2021-04-12 10:43:17 +00:00
const filter = {
include: {
relation: 'supplier'
}
};
2021-02-10 14:03:11 +00:00
2021-03-02 13:59:02 +00:00
this.$http.get(`InvoiceIns/${this.$params.id}`, {filter})
.then(res => this.invoiceIn = res.data);
2021-02-10 14:03:11 +00:00
}
}
2021-02-12 11:19:42 +00:00
ngModule.vnComponent('vnInvoiceInCard', {
2021-02-10 14:03:11 +00:00
template: require('./index.html'),
controller: Controller
});