salix/print/templates/reports/sign-pda/sign-pda.js

27 lines
659 B
JavaScript
Raw Normal View History

2024-05-21 21:58:25 +00:00
const vnReport = require('../../../core/mixins/vn-report.js');
module.exports = {
2024-05-22 06:39:24 +00:00
name: 'sign-pda',
2024-05-21 21:58:25 +00:00
mixins: [vnReport],
async serverPrefetch() {
2024-05-22 06:39:24 +00:00
this.device = await this.findOneFromDef('device', [this.id]);
this.worker = await this.findOneFromDef('worker', [this.workerFk]);
2024-05-21 21:58:25 +00:00
},
props: {
id: {
type: Number,
required: true,
description: 'The device id'
},
workerFk: {
type: Number,
required: true,
description: 'The worker id'
2024-05-21 21:58:25 +00:00
},
type: {
type: String,
required: false
}
}
};