piyangoDosyaKapamaStore.ts
This commit is contained in:
@ -2,10 +2,13 @@ import { defineStore } from 'pinia'
|
|||||||
import { ref, reactive } from 'vue'
|
import { ref, reactive } from 'vue'
|
||||||
import { useGlobalStore } from '@/stores/globalStore'
|
import { useGlobalStore } from '@/stores/globalStore'
|
||||||
import { usePiyangoStore } from './piyangoStore'
|
import { usePiyangoStore } from './piyangoStore'
|
||||||
|
import { useUsersStore } from '@/stores/usersStore'
|
||||||
|
|
||||||
|
|
||||||
export const usePiyangoDosyaKapamaStore = defineStore('piyangoDosyaKapamaStore', () => {
|
export const usePiyangoDosyaKapamaStore = defineStore('piyangoDosyaKapamaStore', () => {
|
||||||
const globalStore = useGlobalStore()
|
const globalStore = useGlobalStore()
|
||||||
const piyangoStore = usePiyangoStore()
|
const piyangoStore = usePiyangoStore()
|
||||||
|
const usersStore = useUsersStore()
|
||||||
|
|
||||||
const baseDosyaKapamaData = reactive<Record<string, any>>({
|
const baseDosyaKapamaData = reactive<Record<string, any>>({
|
||||||
katilimSekli: '',
|
katilimSekli: '',
|
||||||
@ -49,6 +52,8 @@ export const usePiyangoDosyaKapamaStore = defineStore('piyangoDosyaKapamaStore',
|
|||||||
teslimEdilenIkramiye: '',
|
teslimEdilenIkramiye: '',
|
||||||
alinmayanIkramiye: '',
|
alinmayanIkramiye: '',
|
||||||
aciklama: '',
|
aciklama: '',
|
||||||
|
duzenleyenId: usersStore.userId,
|
||||||
|
ikramiyeId:'',
|
||||||
cekilisId: piyangoStore.selectedLottery
|
cekilisId: piyangoStore.selectedLottery
|
||||||
})
|
})
|
||||||
const dosyaKapamaData = reactive<Record<string, any>>({})
|
const dosyaKapamaData = reactive<Record<string, any>>({})
|
||||||
|
|||||||
Reference in New Issue
Block a user