30 lines
776 B
JavaScript
Executable File
30 lines
776 B
JavaScript
Executable File
const Component = require(`vn-print/core/component`);
|
|
const emailBody = new Component('email-body');
|
|
const emailHeader = new Component('email-header');
|
|
const emailFooter = new Component('email-footer');
|
|
const attachment = new Component('attachment');
|
|
const attachments = require('./attachments.json');
|
|
|
|
module.exports = {
|
|
name: 'sepa-core',
|
|
data() {
|
|
return {attachments};
|
|
},
|
|
components: {
|
|
'email-body': emailBody.build(),
|
|
'email-header': emailHeader.build(),
|
|
'email-footer': emailFooter.build(),
|
|
'attachment': attachment.build()
|
|
},
|
|
props: {
|
|
id: {
|
|
type: Number,
|
|
required: true
|
|
},
|
|
companyId: {
|
|
type: Number,
|
|
required: true
|
|
}
|
|
}
|
|
};
|