This commit is contained in:
2022-07-20 23:45:31 +02:00
parent 091e5bd212
commit 4a6366c04a
4 changed files with 267 additions and 9 deletions
+53 -5
View File
@@ -3,7 +3,7 @@ import { defineStore } from 'pinia';
export const useStore = defineStore('store', {
state: () => {
return {
chosenOrderType: 'OrderN',
chosenOrderType: 'OrderO',
orderFooter: {
stationName: '',
@@ -17,6 +17,58 @@ export const useStore = defineStore('store', {
orderMessage: '',
footerMessage: '',
orderO: {
header: {
orderNo: '1',
trainNo: '',
date: new Date().toLocaleDateString('pl-PL', { day: '2-digit', month: 'long' }),
},
orderList: [
{
name: '',
from: '',
to: '',
vmax: '',
jo: false,
reason: '',
},
{
name: '',
from: '',
to: '',
vmax: '',
jo: false,
reason: '',
},
{
name: '',
from: '',
to: '',
vmax: '',
jo: false,
reason: '',
},
{
name: '',
from: '',
to: '',
vmax: '',
jo: false,
reason: '',
},
{
name: '',
from: '',
to: '',
vmax: '',
jo: false,
reason: '',
},
],
other: '',
},
orderN: {
header: {
orderNo: '1',
@@ -127,7 +179,3 @@ export const useStore = defineStore('store', {
},
});