2022-09-22 07:42:04 +00:00
|
|
|
const Component = require(`vn-print/core/component`);
|
2022-11-10 07:57:42 +00:00
|
|
|
const reportBody = new Component('report-body');
|
2021-07-19 08:16:15 +00:00
|
|
|
const reportHeader = new Component('report-header');
|
2021-07-19 08:42:12 +00:00
|
|
|
const reportFooter = new Component('report-footer');
|
2021-07-19 08:16:15 +00:00
|
|
|
|
|
|
|
const rptCreditRequest = {
|
|
|
|
name: 'credit-request',
|
2021-07-19 08:57:08 +00:00
|
|
|
computed: {
|
|
|
|
dated: function() {
|
|
|
|
const filters = this.$options.filters;
|
2021-07-19 08:42:12 +00:00
|
|
|
|
2021-07-19 08:57:08 +00:00
|
|
|
return filters.date(new Date(), '%d-%m-%Y');
|
2021-07-19 08:42:12 +00:00
|
|
|
}
|
|
|
|
},
|
2021-07-19 08:16:15 +00:00
|
|
|
components: {
|
2022-11-10 07:57:42 +00:00
|
|
|
'report-body': reportBody.build(),
|
2021-07-19 08:42:12 +00:00
|
|
|
'report-header': reportHeader.build(),
|
|
|
|
'report-footer': reportFooter.build()
|
2021-07-19 08:16:15 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = rptCreditRequest;
|