refactor: new order typings

This commit is contained in:
2025-09-29 14:14:07 +02:00
parent 98fda8e849
commit 7784e08f03
5 changed files with 60 additions and 15 deletions
+4 -4
View File
@@ -1,5 +1,5 @@
import { defineStore } from 'pinia';
import { IOrderN, IOrderO, IOrderS, TOrder } from '../types/orderTypes';
import { IOrderData, IOrderN, IOrderO, IOrderS, TOrder } from '../types/orderTypes';
import {
currentFormattedDate,
currentFormattedHours,
@@ -24,6 +24,8 @@ export const useStore = defineStore('store', {
helperModalOpen: false,
orderDarkMode: false,
panelMode: 'OrderMessage',
chosenOrderType: 'orderN' as TOrder,
chosenLocalOrderId: '',
@@ -339,9 +341,7 @@ export const useStore = defineStore('store', {
Y: '',
Z: ''
}
},
panelMode: 'OrderMessage',
} as IOrderData,
orderFooter: {
stationName: '',