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

29 lines
679 B
JavaScript
Executable File

const Component = require(`vn-print/core/component`);
const emailBody = new Component('email-body');
const attachment = new Component('attachment');
module.exports = {
name: 'credit-request',
components: {
'email-body': emailBody.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
}
}
};