Train picker: uzupełnianie danych

This commit is contained in:
2022-11-15 17:38:34 +01:00
parent b18f268010
commit a4ae72a3cc
3 changed files with 43 additions and 10 deletions
+4 -5
View File
@@ -1,5 +1,6 @@
import { defineStore } from 'pinia';
import { IOrderN, IOrderO, IOrderS, TOrder } from '../types/orderTypes';
import { currentFormattedDate } from '../utils/dateUtils';
export const useStore = defineStore('store', {
state: () => {
@@ -27,7 +28,7 @@ export const useStore = defineStore('store', {
header: {
orderNo: '1',
trainNo: '',
date: new Date().toLocaleDateString('pl-PL', { day: 'numeric', month: 'numeric', year: 'numeric' }) + "r.",
date: currentFormattedDate(),
},
orderList: [
@@ -79,7 +80,7 @@ export const useStore = defineStore('store', {
header: {
orderNo: '1',
trainNo: '',
date: new Date().toLocaleDateString('pl-PL', { day: 'numeric', month: 'numeric', year: 'numeric' }) + "r.",
date: currentFormattedDate(),
},
rows: [
@@ -141,7 +142,7 @@ export const useStore = defineStore('store', {
orderNo: '1',
trainNo: '',
for: 'pociągu',
date: new Date().toLocaleDateString('pl-PL', { day: 'numeric', month: 'numeric', year: 'numeric' }) + "r.",
date: currentFormattedDate(),
},
rows: [
@@ -183,5 +184,3 @@ export const useStore = defineStore('store', {
},
});