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]);
|
2024-06-06 23:59:39 +00:00
|
|
|
this.worker = await this.findOneFromDef('worker', [this.workerFk]);
|
2024-05-21 21:58:25 +00:00
|
|
|
},
|
|
|
|
props: {
|
|
|
|
id: {
|
|
|
|
type: Number,
|
|
|
|
required: true,
|
2024-06-06 23:59:39 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|