salix/print/templates/email/incoterms-authorization/incoterms-authorization.js

36 lines
937 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: 'incoterms-authorization',
data() {
return {
attachments: [
{
filename: 'incoterms-authorization.pdf',
type: 'pdf',
path: `Clients/${this.id}/incoterms-authorization-pdf`
}
]
};
},
components: {
'email-header': emailHeader.build(),
'email-footer': emailFooter.build(),
'attachment': attachment.build()
},
props: {
id: {
type: Number,
required: true,
description: 'The client id'
},
companyId: {
type: Number,
required: true
}
}
};