salix/print/report/rpt-informe/index.js

34 lines
793 B
JavaScript
Raw Normal View History

2019-02-06 09:53:12 +00:00
const strftime = require('strftime');
module.exports = {
name: 'rpt-informe',
created() {
if (this.locale)
this.$i18n.locale = this.locale;
2019-02-07 06:47:09 +00:00
const embeded = [];
this.files.map(file => {
embeded[file] = `file://${__dirname + file}`;
});
this.embeded = embeded;
2019-02-06 09:53:12 +00:00
},
data() {
return {
client: {
2019-02-07 06:47:09 +00:00
id: 101,
name: 'Batman'
2019-02-06 09:53:12 +00:00
},
2019-02-07 06:47:09 +00:00
files: ['/assets/images/signature.png'],
2019-02-06 09:53:12 +00:00
};
},
methods: {
2019-02-07 06:47:09 +00:00
/* dated: () => {
2019-02-06 09:53:12 +00:00
return strftime('%d-%m-%Y', new Date());
2019-02-07 06:47:09 +00:00
}, */
2019-02-06 09:53:12 +00:00
},
components: {
'report-header': require('../report-header'),
'report-footer': require('../report-footer'),
},
};