salix/print/templates/email/credit-request/credit-request.js

31 lines
783 B
JavaScript
Executable File

const Component = require(`vn-print/core/component`);
const emailHeader = new Component('email-header');
const emailFooter = new Component('email-footer');
const attachment = new Component('attachment');
module.exports = {
name: 'credit-request',
components: {
'email-header': emailHeader.build(),
'email-footer': emailFooter.build(),
'attachment': attachment.build()
},
data() {
return {
attachments: [
{
filename: 'credit-request.pdf',
type: 'pdf',
path: `Clients/${this.id}/credit-request-pdf`
}
]
};
},
props: {
id: {
type: Number,
required: true
}
}
};