Add raid transport feature and related updates: Introduce new raid transport functionality in FalukantService and FalukantController, including methods for retrieving raid transport regions and handling guard counts. Update frontend components to support guard count input and display related costs. Enhance localization files to include new terms for raid transport and associated metrics in English, German, and Spanish.
This commit is contained in:
@@ -258,6 +258,13 @@
|
||||
</option>
|
||||
</select>
|
||||
</label>
|
||||
<label>
|
||||
{{ $t('falukant.branch.transport.guardCount') }}
|
||||
<input v-model.number="sendVehicleDialog.guardCount" type="number" min="0" max="20" />
|
||||
</label>
|
||||
<p class="transport-guards-hint">
|
||||
{{ $t('falukant.branch.transport.guardHint', { cost: formatMoney((sendVehicleDialog.guardCount || 0) * 4) }) }}
|
||||
</p>
|
||||
<div class="modal-buttons">
|
||||
<button @click="sendVehicles" :disabled="!sendVehicleDialog.targetBranchId">
|
||||
{{ $t('falukant.branch.transport.send') }}
|
||||
@@ -407,6 +414,7 @@ export default {
|
||||
vehicleTypeId: null,
|
||||
targetBranchId: null,
|
||||
success: false,
|
||||
guardCount: 0,
|
||||
},
|
||||
repairVehicleDialog: {
|
||||
show: false,
|
||||
@@ -991,6 +999,7 @@ export default {
|
||||
vehicleTypeId: null,
|
||||
targetBranchId: null,
|
||||
success: false,
|
||||
guardCount: 0,
|
||||
};
|
||||
},
|
||||
|
||||
@@ -1002,6 +1011,7 @@ export default {
|
||||
vehicleTypeId: vehicleTypeId,
|
||||
targetBranchId: null,
|
||||
success: false,
|
||||
guardCount: 0,
|
||||
};
|
||||
},
|
||||
|
||||
@@ -1013,6 +1023,7 @@ export default {
|
||||
vehicleTypeId: null,
|
||||
targetBranchId: null,
|
||||
success: false,
|
||||
guardCount: 0,
|
||||
};
|
||||
},
|
||||
|
||||
@@ -1038,6 +1049,7 @@ export default {
|
||||
targetBranchId: this.sendVehicleDialog.targetBranchId,
|
||||
productId: null,
|
||||
quantity: 0,
|
||||
guardCount: this.sendVehicleDialog.guardCount || 0,
|
||||
};
|
||||
|
||||
if (this.sendVehicleDialog.vehicleIds && this.sendVehicleDialog.vehicleIds.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user