const Component = require(`vn-print/core/component`); const emailBody = new Component('email-body'); 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-body': emailBody.build(), 'attachment': attachment.build() }, props: { id: { type: Number, required: true, description: 'The client id' }, companyId: { type: Number, required: true }, addressId: { type: Number, required: true } } };