salix/print/templates/reports/vehicle-event-expired/vehicle-event-expired.js

16 lines
422 B
JavaScript
Executable File

const vnReport = require('../../../core/mixins/vn-report.js');
module.exports = {
name: 'vehicle-event-expired',
mixins: [vnReport],
async serverPrefetch() {
this.vehicleEvents = await this.rawSqlFromDef('vehicleEvents', [this.eventIds]);
this.checkMainEntity(this.vehicleEvents);
},
props: {
eventIds: {
type: [Array],
required: true
}
}
};