2022-09-26 11:33:27 +00:00
|
|
|
const Component = require(`vn-print/core/component`);
|
2022-11-10 08:51:28 +00:00
|
|
|
const emailBody = new Component('email-body');
|
2022-05-19 05:31:00 +00:00
|
|
|
const attachment = new Component('attachment');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
name: 'incoterms-authorization',
|
|
|
|
data() {
|
2022-10-04 11:41:37 +00:00
|
|
|
return {
|
|
|
|
attachments: [
|
|
|
|
{
|
|
|
|
filename: 'incoterms-authorization.pdf',
|
|
|
|
type: 'pdf',
|
|
|
|
path: `Clients/${this.id}/incoterms-authorization-pdf`
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|
2022-05-19 05:31:00 +00:00
|
|
|
},
|
|
|
|
components: {
|
2022-11-10 08:51:28 +00:00
|
|
|
'email-body': emailBody.build(),
|
2022-05-19 05:31:00 +00:00
|
|
|
'attachment': attachment.build()
|
|
|
|
},
|
|
|
|
props: {
|
2022-09-26 06:07:45 +00:00
|
|
|
id: {
|
2022-10-28 13:53:57 +00:00
|
|
|
type: Number,
|
2022-09-29 05:35:20 +00:00
|
|
|
required: true,
|
|
|
|
description: 'The client id'
|
2022-06-13 09:03:11 +00:00
|
|
|
},
|
|
|
|
companyId: {
|
2022-10-28 13:53:57 +00:00
|
|
|
type: Number,
|
2022-05-19 05:31:00 +00:00
|
|
|
required: true
|
2023-10-05 12:01:07 +00:00
|
|
|
},
|
|
|
|
addressId: {
|
|
|
|
type: Number,
|
|
|
|
required: true
|
2022-05-19 05:31:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|