Compare commits
2 Commits
Kapsam-Dış
...
Dosya-Kapa
| Author | SHA1 | Date | |
|---|---|---|---|
| 216cf1fb73 | |||
| 0d58b0ad10 |
@ -1 +0,0 @@
|
||||
VITE_API_URL=https://panelapi.cekilisevitest.gov.tr/
|
||||
@ -1 +0,0 @@
|
||||
VITE_API_URL=https://localhost:7241/
|
||||
@ -1 +0,0 @@
|
||||
VITE_API_URL=https://panelapi.cekilisevi.gov.tr/
|
||||
7
env.d.ts
vendored
7
env.d.ts
vendored
@ -1,9 +1,2 @@
|
||||
/// <reference types="vite/client" />
|
||||
|
||||
interface ImportMetaEnv {
|
||||
readonly VITE_API_URL: string;
|
||||
}
|
||||
|
||||
interface ImportMeta {
|
||||
readonly env: ImportMetaEnv;
|
||||
}
|
||||
@ -5,12 +5,9 @@
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"localdev": "vite",
|
||||
"build": "run-p type-check \"build-only {@}\" --",
|
||||
"buildtest": "run-p type-check \"build-only-test {@}\" --",
|
||||
"preview": "vite preview",
|
||||
"build-only": "vite build",
|
||||
"build-only-test": "vite build --mode development",
|
||||
"type-check": "vue-tsc --build --force"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
@ -91,9 +91,9 @@
|
||||
|
||||
const emit = defineEmits(['update:modelValue', 'change', 'click'])
|
||||
|
||||
const localValue = ref<(string | number)[] | boolean | null | string | number|undefined>(
|
||||
props.modelValue
|
||||
)
|
||||
const localValue = ref<
|
||||
(string | number)[] | boolean | null | string | number | undefined
|
||||
>(props.modelValue)
|
||||
|
||||
const InvalidMessageText = reactive<Record<string, any>>({})
|
||||
const InvalidMessages = computed<string>(() => {
|
||||
|
||||
@ -14,9 +14,7 @@
|
||||
</span>
|
||||
<template v-if="modelText !== undefined && modelText !== ''">
|
||||
<template v-if="typeof modelText === 'string'">
|
||||
<span :class="[size ? 'form-item-size form-item-size-' + size : '']">
|
||||
{{ price ? globalStore.toTrLocale(modelText) : modelText }}
|
||||
</span>
|
||||
<span>{{ price ? globalStore.toTrLocale(modelText) : modelText }}</span>
|
||||
</template>
|
||||
<template v-if="typeof modelText === 'object'">
|
||||
<ul>
|
||||
@ -27,9 +25,7 @@
|
||||
</template>
|
||||
</template>
|
||||
<template v-else>
|
||||
<span :class="[size ? 'form-item-size form-item-size-' + size : '']">
|
||||
{{ price ? globalStore.toTrLocale(localValue) : localValue }}
|
||||
</span>
|
||||
<span>{{ price ? globalStore.toTrLocale(localValue) : localValue }}</span>
|
||||
</template>
|
||||
<span
|
||||
class="form-item-alert"
|
||||
@ -68,7 +64,6 @@
|
||||
modelText?: any
|
||||
invalidText?: string
|
||||
price?: boolean
|
||||
size?: number | string
|
||||
}
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
half: false,
|
||||
@ -76,23 +71,13 @@
|
||||
})
|
||||
const localValue = ref<any>(props.modelValue)
|
||||
|
||||
if (
|
||||
props.type === 'date' &&
|
||||
props.modelValue !== null &&
|
||||
props.modelValue !== undefined &&
|
||||
props.modelValue !== ''
|
||||
)
|
||||
if (props.type === 'date' && props.modelValue !== null && props.modelValue !== undefined && props.modelValue !== '')
|
||||
localValue.value = dateStore.dateFormat({
|
||||
date: props.modelValue as Date,
|
||||
pattern: 'dd-mm-yy'
|
||||
})
|
||||
|
||||
if (
|
||||
props.type === 'datetime' &&
|
||||
props.modelValue !== null &&
|
||||
props.modelValue !== undefined &&
|
||||
props.modelValue !== ''
|
||||
)
|
||||
if (props.type === 'datetime' && props.modelValue !== null && props.modelValue !== undefined && props.modelValue !== '')
|
||||
localValue.value = dateStore.dateFormat({
|
||||
date: props.modelValue as Date,
|
||||
pattern: 'dd-mm-yy-t'
|
||||
@ -123,14 +108,3 @@
|
||||
}
|
||||
)
|
||||
</script>
|
||||
<style scoped>
|
||||
.form-item-size {
|
||||
font-weight: 600;
|
||||
}
|
||||
.form-item-size-1 {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
.form-item-size-2 {
|
||||
font-size: 1.5em;
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -2,7 +2,7 @@ import axios from 'axios'
|
||||
import { useUsersStore } from '@/stores/usersStore'
|
||||
import router from '@/router'
|
||||
|
||||
axios.defaults.baseURL = import.meta.env.VITE_API_URL
|
||||
axios.defaults.baseURL = 'https://panelapi.cekilisevi.gov.tr/'
|
||||
//axios.defaults.timeout = 2000;
|
||||
axios.defaults.headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
import { useDataStore } from '@/stores/dataStore'
|
||||
|
||||
@ -109,7 +109,7 @@
|
||||
{
|
||||
title: 'Site Yönetimi',
|
||||
ico: 'sitemanagement',
|
||||
show: usersStore.isSuperAdmin,
|
||||
show: usersStore.isPanelUser && !usersStore.isAccounting,
|
||||
sub: [
|
||||
{
|
||||
title: 'Yeni Sayfa',
|
||||
|
||||
@ -355,8 +355,6 @@
|
||||
const globalDataStore = useGlobalDataStore()
|
||||
import { useValidationStore } from '@/stores/validationStore'
|
||||
const validationStore = useValidationStore()
|
||||
import { useUsersStore } from '@/stores/usersStore'
|
||||
const usersStore = useUsersStore()
|
||||
import { useAuthValidationStore } from '../stores/authValidationStore'
|
||||
const authValidationStore = useAuthValidationStore()
|
||||
import router from '@/router'
|
||||
@ -365,12 +363,6 @@
|
||||
const uyeBilgileriStore = useUyeBilgileriStore()
|
||||
uyeBilgileriStore.ResetStore()
|
||||
|
||||
interface IIl {
|
||||
[key: string]: any
|
||||
ad: string
|
||||
id: number
|
||||
}
|
||||
|
||||
const kvkkCheck = ref([
|
||||
{
|
||||
label: '',
|
||||
|
||||
10
src/module/cekilisler/components/TabPiyangoDosyaKapama.vue
Normal file
10
src/module/cekilisler/components/TabPiyangoDosyaKapama.vue
Normal file
@ -0,0 +1,10 @@
|
||||
<template>
|
||||
<div class="form-content">
|
||||
<div class="form-inner-content form-inner-content-left">
|
||||
<form-piyango-dosya-kapama/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import FormPiyangoDosyaKapama from './form/FormPiyangoDosyaKapama.vue'
|
||||
</script>
|
||||
@ -3,10 +3,6 @@
|
||||
<lottery-states
|
||||
:piyangoAmac="piyangoStore.lotteryData.amacpiyangoId"
|
||||
v-if="!isPreview" />
|
||||
<form-display
|
||||
v-model="piyangoStore.lotteryData.piyangoId"
|
||||
label="Piyango ID"
|
||||
size="1" />
|
||||
<template
|
||||
v-if="
|
||||
usersStore.isPanelUser &&
|
||||
|
||||
@ -39,7 +39,7 @@
|
||||
</panel-wrapper>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { ref, reactive, computed, onBeforeMount } from 'vue'
|
||||
import { ref, onBeforeMount } from 'vue'
|
||||
import { usePDF } from 'vue3-pdfmake'
|
||||
import { useUsersStore } from '@/stores/usersStore'
|
||||
const usersStore = useUsersStore()
|
||||
|
||||
@ -0,0 +1,102 @@
|
||||
<template>
|
||||
<div class="form-part form-title" v-if="usersStore.isPanelUser">
|
||||
<div class="form-title-buttons">
|
||||
<button
|
||||
class="button-c button-save"
|
||||
@click="piyangoTeminatService.SaveTeminatDurum"
|
||||
:disabled="!piyangoTeminatValidationStore.formChanged">
|
||||
Kaydet
|
||||
</button>
|
||||
<button
|
||||
v-if="piyangoTeminatValidationStore.formChanged"
|
||||
class="button-c button-cancel panel-close"
|
||||
@click="piyangoTeminatStore.ResetFormData">
|
||||
Vazgeç
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div :class="['form-part', piyangoTeminatValidationStore.formChanged ? 'changed' : '']"> <div
|
||||
class="form-part-content"
|
||||
v-if="piyangoTeminatStore.loaded">
|
||||
<form-select
|
||||
v-if="usersStore.isPanelUser"
|
||||
label="İşlem"
|
||||
:listData="piyangoDataStore.piyangoTeminatDurumlari"
|
||||
listText="value"
|
||||
listVal="id"
|
||||
v-model="piyangoTeminatStore.piyangoTeminatFormData.state"
|
||||
required
|
||||
:invalidText="piyangoTeminatValidationStore.invalidTexts.state"
|
||||
@change="OnKeyup" />
|
||||
|
||||
<form-display
|
||||
v-model="piyangoTeminatStore.piyangoTeminatFormData.amount"
|
||||
half
|
||||
label="Tutarı" />
|
||||
|
||||
<form-display
|
||||
v-model="piyangoTeminatStore.piyangoTeminatFormData.teminatParentTypeText"
|
||||
half
|
||||
label="Para Birimi" />
|
||||
|
||||
<form-display
|
||||
label="Teminat Türü"
|
||||
half
|
||||
v-model="piyangoTeminatStore.piyangoTeminatFormData.teminantChildTypeText" />
|
||||
|
||||
<form-display
|
||||
type="date"
|
||||
half
|
||||
v-model="piyangoTeminatStore.piyangoTeminatFormData.teminantDate"
|
||||
label="Tarih" />
|
||||
|
||||
<form-display
|
||||
v-model="piyangoTeminatStore.piyangoTeminatFormData.teminantNo"
|
||||
half
|
||||
label="No" />
|
||||
<div class="form-item form-item-half"></div>
|
||||
|
||||
<form-display
|
||||
v-model="piyangoTeminatStore.piyangoTeminatFormData.bankName"
|
||||
half
|
||||
label="Banka Adı" />
|
||||
|
||||
<form-display
|
||||
v-model="piyangoTeminatStore.piyangoTeminatFormData.bankBranch"
|
||||
half
|
||||
label="Banka Şubesi" />
|
||||
|
||||
<!--form-display
|
||||
label="İşlem"
|
||||
v-model="piyangoTeminatStore.piyangoTeminatFormData.stateText" /-->
|
||||
|
||||
<file-list-item
|
||||
title="Dosya"
|
||||
:data="piyangoTeminatStore.piyangoTeminatFormData"
|
||||
:editable="false"
|
||||
:filePath="piyangoTeminatStore.piyangoTeminatFormData.teminantDocumentUrl"
|
||||
:usePath="true"
|
||||
:onlyPreview="true" />
|
||||
|
||||
<form-display
|
||||
v-model="piyangoTeminatStore.piyangoTeminatFormData.description"
|
||||
label="Açıklama" />
|
||||
</div></div>
|
||||
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { usePiyangoTeminatStore } from '../../stores/piyangoTeminatStore'
|
||||
const piyangoTeminatStore = usePiyangoTeminatStore()
|
||||
import { useUsersStore } from '@/stores/usersStore'
|
||||
const usersStore = useUsersStore()
|
||||
import { usePiyangoDataStore } from '../../stores/piyangoDataStore'
|
||||
const piyangoDataStore = usePiyangoDataStore()
|
||||
import { usePiyangoTeminatValidationStore } from '../../validation/piyangoTeminatValidationStore'
|
||||
const piyangoTeminatValidationStore = usePiyangoTeminatValidationStore()
|
||||
import { usePiyangoTeminatService } from '../../service/piyangoTeminatService'
|
||||
const piyangoTeminatService = usePiyangoTeminatService()
|
||||
|
||||
const OnKeyup = () => {
|
||||
piyangoTeminatValidationStore.formChanged = true
|
||||
}
|
||||
</script>
|
||||
@ -23,13 +23,6 @@
|
||||
<strong style="font-size: 10pt; margin-bottom: 12px">
|
||||
PİYANGO İLE İLGİLİ BİLGİLER
|
||||
</strong>
|
||||
<br />
|
||||
<br />
|
||||
<strong style="font-size: 10pt; margin-bottom: 12px">
|
||||
PİYANGO ID: {{ piyangoStore.lotteryData.piyangoId }}
|
||||
</strong>
|
||||
<br />
|
||||
<br />
|
||||
<table
|
||||
cellspacing="0"
|
||||
class="table-no-line"
|
||||
|
||||
@ -12,12 +12,6 @@
|
||||
Bahisler ve Oyunlar Dairesi Başkanlığına
|
||||
</strong>
|
||||
<br />
|
||||
<br />
|
||||
<strong style="font-size: 10pt; margin-bottom: 12px">
|
||||
PİYANGO ID: {{ piyangoStore.lotteryData.piyangoId }}
|
||||
</strong>
|
||||
<br />
|
||||
<br />
|
||||
<table
|
||||
cellspacing="0"
|
||||
class="table-no-line"
|
||||
|
||||
@ -31,17 +31,7 @@
|
||||
</div>
|
||||
<div class="form-part-content" v-if="loaded">
|
||||
<lottery-states :piyangoAmac="piyangoStore.lotteryData.amacpiyangoId" />
|
||||
<template
|
||||
v-if="
|
||||
!piyangoStore.isNew &&
|
||||
piyangoStore.lotteryData.piyangoId !== undefined &&
|
||||
piyangoStore.lotteryData.piyangoId !== null
|
||||
">
|
||||
<form-display
|
||||
v-model="piyangoStore.lotteryData.piyangoId"
|
||||
label="Piyango ID"
|
||||
size="1" />
|
||||
</template>
|
||||
|
||||
<form-input
|
||||
modelKey="cekilisBaslik"
|
||||
v-model="piyangoStore.lotteryData.baslik"
|
||||
@ -612,7 +602,7 @@
|
||||
|
||||
let list = await dataStore.dataGet('Auth/userbyuserChildList/' + id)
|
||||
|
||||
childUsers.value = list.data.filter((p: Record<string, any>) => {
|
||||
childUsers.value = list.data.filter((p:Record<string,any>) => {
|
||||
return p.islemTipId === 4 || p.islemTipi === 'Üyelik Onaylandı'
|
||||
})
|
||||
|
||||
|
||||
244
src/module/cekilisler/components/form/FormPiyangoDosyaKapama.vue
Normal file
244
src/module/cekilisler/components/form/FormPiyangoDosyaKapama.vue
Normal file
@ -0,0 +1,244 @@
|
||||
<template>
|
||||
<div class="form-part form-title" v-if="piyangoDosyaKapamaStore.isNew">
|
||||
<div class="form-title-buttons">
|
||||
<div
|
||||
class="button-c button-save"
|
||||
@click="piyangoDosyaKapamaService.SaveDosyaKapama()">
|
||||
Kaydet
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
:class="[
|
||||
'form-part',
|
||||
piyangoDosyaKapamaStore.formChanged && !piyangoDosyaKapamaStore.isNew
|
||||
? 'changed'
|
||||
: ''
|
||||
]">
|
||||
<div class="form-part-title">
|
||||
<h4>Teminat İade Evrak Kontrol</h4>
|
||||
</div>
|
||||
<div class="form-part-content" v-if="piyangoDosyaKapamaStore.loaded">
|
||||
<form-input
|
||||
modelKey="katilimSekli"
|
||||
v-model="piyangoDosyaKapamaStore.dosyaKapamaData.katilimSekli"
|
||||
label="1. Katılım Şekli"
|
||||
placeholder="Katılım Şekli"
|
||||
@keyup="OnKeyup" />
|
||||
|
||||
<form-checkbox
|
||||
label="2. CD"
|
||||
v-model="piyangoDosyaKapamaStore.dosyaKapamaData.cD"
|
||||
@change="OnKeyup" />
|
||||
<form-checkbox
|
||||
label="3. Kutu Mühürleme Tutanağı"
|
||||
v-model="piyangoDosyaKapamaStore.dosyaKapamaData.kutuMuhurlemeTutanagi"
|
||||
@change="OnKeyup" />
|
||||
<form-checkbox
|
||||
label="4. Kutu Açma Tutanağı"
|
||||
v-model="piyangoDosyaKapamaStore.dosyaKapamaData.kutuAcmaTutanagi"
|
||||
@change="OnKeyup" />
|
||||
|
||||
<div class="form-part-title">
|
||||
<h4>5. Çekiliş Tutanağı</h4>
|
||||
</div>
|
||||
<form-checkbox
|
||||
label="Çekiliş Tutanağı"
|
||||
v-model="piyangoDosyaKapamaStore.dosyaKapamaData.cekilisTutanagi"
|
||||
@change="OnKeyup" />
|
||||
<form-checkbox
|
||||
label="Çekiliş izin alınan tarih, saat, adreste yapılmış"
|
||||
v-model="piyangoDosyaKapamaStore.dosyaKapamaData.cekilisIzinAlinanTarihSaatAdres"
|
||||
@change="OnKeyup" />
|
||||
<form-checkbox
|
||||
label="Çekilişte önceden belirlenen ikramiyeler çekiliş"
|
||||
v-model="
|
||||
piyangoDosyaKapamaStore.dosyaKapamaData.cekilisOncedenBelirlenenIkramiyeler
|
||||
"
|
||||
@change="OnKeyup" />
|
||||
<form-checkbox
|
||||
label="Çekilişte önceden belirlenen ikramiyeler çekiliş"
|
||||
v-model="
|
||||
piyangoDosyaKapamaStore.dosyaKapamaData.cekilisOncedenBelirlenenIkramiyeler
|
||||
"
|
||||
@change="OnKeyup" />
|
||||
<form-checkbox
|
||||
label="Çekiliş numara üzerinden/isimden"
|
||||
v-model="piyangoDosyaKapamaStore.dosyaKapamaData.cekilisNumaraUzerindenCekilis"
|
||||
@change="OnKeyup" />
|
||||
<form-checkbox
|
||||
label="Dağıtılmayan kupon tespiti"
|
||||
v-model="piyangoDosyaKapamaStore.dosyaKapamaData.dagitilmayanKuponTespiti"
|
||||
@change="OnKeyup" />
|
||||
|
||||
<div class="form-part-title">
|
||||
<h4>6. Çekiliş Sonucu İlan</h4>
|
||||
</div>
|
||||
<form-checkbox
|
||||
label="Çekiliş Sonucu İlan"
|
||||
v-model="piyangoDosyaKapamaStore.dosyaKapamaData.cekilisSonucuIlani"
|
||||
@change="OnKeyup" />
|
||||
<form-checkbox
|
||||
label="Taahhüt edilen tarih ve gazetede ilan"
|
||||
v-model="piyangoDosyaKapamaStore.dosyaKapamaData.ilandaTarihGazete"
|
||||
@change="OnKeyup" />
|
||||
<form-checkbox
|
||||
label="İlanda toplam katılımcı sayısı"
|
||||
v-model="piyangoDosyaKapamaStore.dosyaKapamaData.ilandaToplamKatilimci"
|
||||
@change="OnKeyup" />
|
||||
<form-checkbox
|
||||
label="Çekiliş tutanağı ile uyumlu kazanan numara/isim"
|
||||
v-model="
|
||||
piyangoDosyaKapamaStore.dosyaKapamaData.cekilisTutanagiIleUyumluKazananlar
|
||||
"
|
||||
@change="OnKeyup" />
|
||||
<form-checkbox
|
||||
label="İlanda ikramiyeler son teslim süresi"
|
||||
v-model="piyangoDosyaKapamaStore.dosyaKapamaData.ilanSonBasvuruTeslimSuresi"
|
||||
@change="OnKeyup" />
|
||||
|
||||
<form-input
|
||||
modelKey="taahhutEdilenIkramiyeAdedi"
|
||||
v-model="piyangoDosyaKapamaStore.dosyaKapamaData.taahhutEdilenIkramiyeAdedi"
|
||||
label="7. Taahhüt Edilen İkramiye"
|
||||
placeholder="Taahhüt Edilen İkramiye"
|
||||
@keyup="OnKeyup" />
|
||||
|
||||
<div class="form-part-title">
|
||||
<h4>8. Teslim Edilen İkramiye</h4>
|
||||
</div>
|
||||
<form-input
|
||||
modelKey="teslimEdilenIkramiyeAdedi"
|
||||
v-model="piyangoDosyaKapamaStore.dosyaKapamaData.teslimEdilenIkramiyeAdedi"
|
||||
label="Teslim Edilen İkramiye"
|
||||
placeholder="Teslim Edilen İkramiye"
|
||||
@keyup="OnKeyup" />
|
||||
<form-input
|
||||
modelKey="asilIkramiyeSayisi"
|
||||
v-model="piyangoDosyaKapamaStore.dosyaKapamaData.asilIkramiyeSayisi"
|
||||
label="Teslim Edilen Asıl İkramiye"
|
||||
placeholder="Teslim Edilen Asıl İkramiye"
|
||||
@keyup="OnKeyup" />
|
||||
<form-input
|
||||
modelKey="yedekIkramiyeSayisi"
|
||||
v-model="piyangoDosyaKapamaStore.dosyaKapamaData.yedekIkramiyeSayisi"
|
||||
label="Teslim Edilen Yedek İkramiye"
|
||||
placeholder="Teslim Edilen Yedek İkramiye"
|
||||
@keyup="OnKeyup" />
|
||||
<form-checkbox
|
||||
label="Nüfus Cüzdanları"
|
||||
v-model="piyangoDosyaKapamaStore.dosyaKapamaData.nufusCuzdani"
|
||||
@change="OnKeyup" />
|
||||
<form-checkbox
|
||||
label="Kazanan numaralı noter onaylı ibraname"
|
||||
v-model="piyangoDosyaKapamaStore.dosyaKapamaData.noterOnayliIbraname"
|
||||
@change="OnKeyup" />
|
||||
<form-checkbox
|
||||
label="Teslim Belgesi"
|
||||
v-model="piyangoDosyaKapamaStore.dosyaKapamaData.teslimBelgesi"
|
||||
@change="OnKeyup" />
|
||||
<form-checkbox
|
||||
label="Fatura fotokopileri"
|
||||
v-model="piyangoDosyaKapamaStore.dosyaKapamaData.faturaFotokopileri"
|
||||
@change="OnKeyup" />
|
||||
<form-checkbox
|
||||
label="Tescile ait belgeler"
|
||||
v-model="piyangoDosyaKapamaStore.dosyaKapamaData.tescileAitBelgeler"
|
||||
@change="OnKeyup" />
|
||||
<div class="form-part-title">
|
||||
<h4>9. Süresi İçinde Alınmayan İkramiye</h4>
|
||||
</div>
|
||||
<form-input
|
||||
modelKey="sureIcindesAlinmayanIkramiyeAdedi"
|
||||
v-model="
|
||||
piyangoDosyaKapamaStore.dosyaKapamaData.sureIcindesAlinmayanIkramiyeAdedi
|
||||
"
|
||||
label="Süresi İçinde Alınmayan İkramiye"
|
||||
placeholder="Süresi İçinde Alınmayan İkramiye"
|
||||
@keyup="OnKeyup" />
|
||||
<form-checkbox
|
||||
label="Tebligat"
|
||||
v-model="piyangoDosyaKapamaStore.dosyaKapamaData.tebligat"
|
||||
@change="OnKeyup" />
|
||||
<form-checkbox
|
||||
label="Feragat"
|
||||
v-model="piyangoDosyaKapamaStore.dosyaKapamaData.feragat"
|
||||
@change="OnKeyup" />
|
||||
<form-checkbox
|
||||
label="Bağış"
|
||||
v-model="piyangoDosyaKapamaStore.dosyaKapamaData.bagis"
|
||||
@change="OnKeyup" />
|
||||
|
||||
<div class="form-part-title">
|
||||
<h4>10. Kupon (Aslı) ve Duyuru Örneği</h4>
|
||||
</div>
|
||||
<form-checkbox
|
||||
label="Kupon Aslı"
|
||||
v-model="piyangoDosyaKapamaStore.dosyaKapamaData.kuponAsli"
|
||||
@change="OnKeyup" />
|
||||
<form-checkbox
|
||||
label="Duyuru Örneği"
|
||||
v-model="piyangoDosyaKapamaStore.dosyaKapamaData.duyuruMateryali"
|
||||
@change="OnKeyup" />
|
||||
|
||||
<form-date
|
||||
type="date"
|
||||
modelKey="ikramiyelerinSonTeslimTarihi"
|
||||
v-model="piyangoDosyaKapamaStore.dosyaKapamaData.ikramiyelerinSonTeslimTarihi"
|
||||
label="11. İkramiyelerin Son Teslim Tarihi"
|
||||
@change="OnKeyup" />
|
||||
<form-date
|
||||
type="date"
|
||||
modelKey="teminatIadeTarihi"
|
||||
v-model="piyangoDosyaKapamaStore.dosyaKapamaData.teminatIadeTarihi"
|
||||
label="12. Teminat İade Tarihi"
|
||||
@change="OnKeyup" />
|
||||
|
||||
<div
|
||||
class="form-item"
|
||||
v-if="piyangoDosyaKapamaStore.formChanged && !piyangoDosyaKapamaStore.isNew">
|
||||
<button
|
||||
class="button-c button-save"
|
||||
@click="piyangoDosyaKapamaService.SaveDosyaKapama()">
|
||||
Kaydet
|
||||
</button>
|
||||
<button class="button-c button-cancel" @click="CancelSave">Vazgeç</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-part form-title" v-if="piyangoDosyaKapamaStore.isNew">
|
||||
<div class="form-title-buttons">
|
||||
<div
|
||||
class="button-c button-save"
|
||||
@click="piyangoDosyaKapamaService.SaveDosyaKapama()">
|
||||
Kaydet
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { onBeforeMount } from 'vue'
|
||||
|
||||
import { usePiyangoDosyaKapamaStore } from '../../stores/piyangoDosyaKapamaStore'
|
||||
const piyangoDosyaKapamaStore = usePiyangoDosyaKapamaStore()
|
||||
import { usePiyangoDosyaKapamaService } from '../../service/piyangoDosyaKapamaService'
|
||||
const piyangoDosyaKapamaService = usePiyangoDosyaKapamaService()
|
||||
|
||||
const OnKeyup = () => {
|
||||
piyangoDosyaKapamaStore.formChanged = true
|
||||
}
|
||||
|
||||
const CancelSave = () => {
|
||||
piyangoDosyaKapamaStore.RestoreFormData()
|
||||
piyangoDosyaKapamaStore.formChanged = false
|
||||
}
|
||||
|
||||
onBeforeMount(async () => {
|
||||
await piyangoDosyaKapamaService.GetDosyaKapama()
|
||||
|
||||
if (piyangoDosyaKapamaStore.isNew) {
|
||||
piyangoDosyaKapamaStore.ResetFormData()
|
||||
piyangoDosyaKapamaStore.loaded = true
|
||||
}
|
||||
})
|
||||
</script>
|
||||
@ -0,0 +1,135 @@
|
||||
<template>
|
||||
<div class="form-part form-title">
|
||||
<div class="form-title-buttons">
|
||||
<button
|
||||
class="button-c button-save"
|
||||
@click="piyangoTeminatService.SaveTeminatDurum"
|
||||
:disabled="!piyangoTeminatValidationStore.formChanged">
|
||||
Kaydet
|
||||
</button>
|
||||
<button
|
||||
v-if="piyangoTeminatValidationStore.formChanged"
|
||||
class="button-c button-cancel panel-close"
|
||||
@click="piyangoTeminatStore.ResetFormData">
|
||||
Vazgeç
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div :class="['form-part', piyangoTeminatValidationStore.formChanged ? 'changed' : '']">
|
||||
<div class="form-part-title">
|
||||
<h4>Teminat Durumu</h4>
|
||||
</div>
|
||||
<div class="form-part-content" v-if="piyangoTeminatStore.loaded">
|
||||
<form-input
|
||||
modelKey="amount"
|
||||
v-model="piyangoTeminatStore.piyangoTeminatFormData.amount"
|
||||
required
|
||||
half
|
||||
label="Tutarı"
|
||||
minlength="2"
|
||||
@keyup="OnKeyup"
|
||||
@keydown="validationStore.allowPrice"
|
||||
:invalidText="piyangoTeminatValidationStore.invalidTexts.amount" />
|
||||
|
||||
<form-select
|
||||
modelKey="teminatParentType"
|
||||
v-model="piyangoTeminatStore.piyangoTeminatFormData.teminatParentType"
|
||||
required
|
||||
half
|
||||
label="Para Birimi"
|
||||
:invalidText="piyangoTeminatValidationStore.invalidTexts.teminatParentType"
|
||||
:listData="piyangoDataStore.piyangoTeminatParaBirimleri"
|
||||
listVal="id"
|
||||
listText="value"
|
||||
@change="OnKeyup" />
|
||||
|
||||
<form-select
|
||||
label="Teminat Türü"
|
||||
:listData="piyangoDataStore.piyangoTeminatTurleri"
|
||||
listText="value"
|
||||
listVal="id"
|
||||
half
|
||||
v-model="piyangoTeminatStore.piyangoTeminatFormData.teminantChildType"
|
||||
required
|
||||
:invalidText="piyangoTeminatValidationStore.invalidTexts.teminantChildType"
|
||||
@change="OnKeyup" />
|
||||
|
||||
<form-date
|
||||
type="date"
|
||||
half
|
||||
required
|
||||
modelKey="teminantDate"
|
||||
v-model="piyangoTeminatStore.piyangoTeminatFormData.teminantDate"
|
||||
label="Tarih"
|
||||
:invalidText="piyangoTeminatValidationStore.invalidTexts.teminantDate"
|
||||
@change="OnKeyup" />
|
||||
|
||||
<form-input
|
||||
modelKey="teminantNo"
|
||||
v-model="piyangoTeminatStore.piyangoTeminatFormData.teminantNo"
|
||||
required
|
||||
half
|
||||
label="No"
|
||||
minlength="2"
|
||||
:invalidText="piyangoTeminatValidationStore.invalidTexts.teminantNo"
|
||||
@keyup="OnKeyup" />
|
||||
<div class="form-item form-item-half"></div>
|
||||
|
||||
<form-input
|
||||
modelKey="bankName"
|
||||
v-model="piyangoTeminatStore.piyangoTeminatFormData.bankName"
|
||||
required
|
||||
half
|
||||
label="Banka Adı"
|
||||
minlength="2"
|
||||
:invalidText="piyangoTeminatValidationStore.invalidTexts.bankName"
|
||||
@keyup="OnKeyup" />
|
||||
|
||||
<form-input
|
||||
modelKey="bankBranch"
|
||||
v-model="piyangoTeminatStore.piyangoTeminatFormData.bankBranch"
|
||||
required
|
||||
half
|
||||
label="Banka Şubesi"
|
||||
minlength="2"
|
||||
:invalidText="piyangoTeminatValidationStore.invalidTexts.bankBranch"
|
||||
@keyup="OnKeyup" />
|
||||
|
||||
<form-display :disabled="!usersStore.isPanelUser"
|
||||
label="İşlem Durumu"
|
||||
v-model="piyangoTeminatStore.piyangoTeminatFormData.stateText" />
|
||||
|
||||
<form-file
|
||||
v-model="piyangoTeminatStore.piyangoTeminatFormData.file"
|
||||
elclass="panel-documents-item"
|
||||
:invalidText="piyangoTeminatValidationStore.invalidTexts.file"
|
||||
@change="OnKeyup" />
|
||||
|
||||
<form-textarea
|
||||
v-model="piyangoTeminatStore.piyangoTeminatFormData.description"
|
||||
:invalidText="piyangoTeminatValidationStore.invalidTexts.description"
|
||||
label="Açıklama"
|
||||
@keyup="OnKeyup" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { usePiyangoDataStore } from '../../stores/piyangoDataStore'
|
||||
const piyangoDataStore = usePiyangoDataStore()
|
||||
import { usePiyangoServices } from '../../service/piyangoServices'
|
||||
const piyangoServices = usePiyangoServices()
|
||||
import { useValidationStore } from '@/stores/validationStore'
|
||||
const validationStore = useValidationStore()
|
||||
import { usePiyangoTeminatStore } from '../../stores/piyangoTeminatStore'
|
||||
const piyangoTeminatStore = usePiyangoTeminatStore()
|
||||
import { usePiyangoTeminatValidationStore } from '../../validation/piyangoTeminatValidationStore'
|
||||
const piyangoTeminatValidationStore = usePiyangoTeminatValidationStore()
|
||||
import { usePiyangoTeminatService } from '../../service/piyangoTeminatService'
|
||||
const piyangoTeminatService = usePiyangoTeminatService()
|
||||
import { useUsersStore } from '@/stores/usersStore'
|
||||
const usersStore = useUsersStore()
|
||||
|
||||
const OnKeyup = () => {
|
||||
piyangoTeminatValidationStore.formChanged = true
|
||||
}
|
||||
</script>
|
||||
@ -9,24 +9,9 @@
|
||||
v-model="piyangoTeminatStore.piyangoTeminatFormData.state"
|
||||
required
|
||||
:invalidText="piyangoTeminatValidationStore.invalidTexts.state"
|
||||
@change="OnKeyup"
|
||||
:disabled="!usersStore.isPanelUser" />
|
||||
@change="OnKeyup"
|
||||
:disabled="!usersStore.isPanelUser"/>
|
||||
|
||||
<template v-if="piyangoTeminatStore.piyangoTeminatFormData.state === 2">
|
||||
<form-date
|
||||
type="date"
|
||||
modelKey="iadeTarihi"
|
||||
v-model="piyangoTeminatStore.piyangoTeminatFormData.iadeTarihi"
|
||||
label="İlan Tarihi"
|
||||
:invalidText="piyangoTeminatValidationStore.invalidTexts.iadeTarihi"
|
||||
@change="OnKeyup" />
|
||||
<form-file
|
||||
v-model="piyangoTeminatStore.piyangoTeminatFormData.iadeFile"
|
||||
elclass="panel-documents-item"
|
||||
:invalidText="piyangoTeminatValidationStore.invalidTexts.iadeFile"
|
||||
@change="OnKeyup" />
|
||||
</template>
|
||||
|
||||
<form-display
|
||||
v-model="piyangoTeminatStore.piyangoTeminatFormData.amount"
|
||||
half
|
||||
@ -66,10 +51,7 @@
|
||||
label="Banka Şubesi" />
|
||||
|
||||
<file-list-item
|
||||
v-if="
|
||||
piyangoTeminatStore.piyangoTeminatFormData.teminantDocumentUrl !== null &&
|
||||
piyangoTeminatStore.piyangoTeminatFormData.teminantDocumentUrl !== undefined
|
||||
"
|
||||
v-if="piyangoTeminatStore.piyangoTeminatFormData.teminantDocumentUrl !== null && piyangoTeminatStore.piyangoTeminatFormData.teminantDocumentUrl !== undefined"
|
||||
title="Dosya"
|
||||
:data="piyangoTeminatStore.piyangoTeminatFormData"
|
||||
:editable="false"
|
||||
|
||||
57
src/module/cekilisler/service/piyangoDosyaKapamaService.ts
Normal file
57
src/module/cekilisler/service/piyangoDosyaKapamaService.ts
Normal file
@ -0,0 +1,57 @@
|
||||
import { defineStore } from 'pinia'
|
||||
import { useDataStore } from '@/stores/dataStore'
|
||||
import { usePiyangoStore } from '../stores/piyangoStore'
|
||||
import { usePiyangoDosyaKapamaStore } from '../stores/piyangoDosyaKapamaStore'
|
||||
import { usePiyangoDosyaKapamaValidationStore } from '../validation/piyangoDosyaKapamaValidationStore'
|
||||
|
||||
export const usePiyangoDosyaKapamaService = defineStore(
|
||||
'piyangoDosyaKapamaService',
|
||||
() => {
|
||||
const dataStore = useDataStore()
|
||||
const piyangoStore = usePiyangoStore()
|
||||
const piyangoDosyaKapamaStore = usePiyangoDosyaKapamaStore()
|
||||
const piyangoDosyaKapamaValidationStore = usePiyangoDosyaKapamaValidationStore()
|
||||
|
||||
const GetDosyaKapama = async () => {
|
||||
let data: Record<string, any> | any = await dataStore.dataGet(
|
||||
'TeminatIadeEvrakKontrol/' + piyangoStore.selectedLottery
|
||||
)
|
||||
|
||||
if (data !== 'errorfalse' || data.data.id === undefined) {
|
||||
Object.assign(piyangoDosyaKapamaStore.dosyaKapamaData, data.data)
|
||||
Object.assign(piyangoDosyaKapamaStore.safeDosyaKapamaData, data.data)
|
||||
piyangoDosyaKapamaStore.isNew = false
|
||||
setTimeout(() => {
|
||||
piyangoDosyaKapamaStore.loaded = true
|
||||
}, 30)
|
||||
} else {
|
||||
piyangoDosyaKapamaStore.isNew = true
|
||||
}
|
||||
}
|
||||
|
||||
const SaveDosyaKapama = async () => {
|
||||
let dt: any
|
||||
dataStore.panelData.yayinlanacagiTarih = new Date(
|
||||
dataStore.panelData.yayinlanacagiTarih
|
||||
)
|
||||
if (!piyangoDosyaKapamaStore.isUpdate) {
|
||||
dt = await dataStore.dataPost('TeminatIadeEvrakKontrol', {
|
||||
data: piyangoDosyaKapamaStore.dosyaKapamaData
|
||||
})
|
||||
} else {
|
||||
dt = await dataStore.dataPut(
|
||||
'TeminatIadeEvrakKontrol/' + piyangoDosyaKapamaStore.dosyaKapamaData.id,
|
||||
{
|
||||
data: piyangoDosyaKapamaStore.dosyaKapamaData
|
||||
}
|
||||
)
|
||||
}
|
||||
if (dt !== 'errorfalse') {
|
||||
piyangoDosyaKapamaStore.isUpdate = false
|
||||
await GetDosyaKapama()
|
||||
}
|
||||
}
|
||||
|
||||
return { GetDosyaKapama, SaveDosyaKapama }
|
||||
}
|
||||
)
|
||||
@ -18,12 +18,9 @@ export const usePiyangoTeminatService = defineStore('piyangoTeminatService', ()
|
||||
if (piyangoTeminatValidationStore.FormCheck()) {
|
||||
let form: any
|
||||
let dataForm = new FormData()
|
||||
|
||||
|
||||
dataForm.append('state', piyangoTeminatStore.piyangoTeminatFormData.state)
|
||||
dataForm.append(
|
||||
'amount',
|
||||
globalStore.floatEnLocale(piyangoTeminatStore.piyangoTeminatFormData.amount)
|
||||
)
|
||||
dataForm.append('amount', globalStore.floatEnLocale(piyangoTeminatStore.piyangoTeminatFormData.amount))
|
||||
dataForm.append('bankName', piyangoTeminatStore.piyangoTeminatFormData.bankName)
|
||||
dataForm.append('bankBranch', piyangoTeminatStore.piyangoTeminatFormData.bankBranch)
|
||||
dataForm.append(
|
||||
@ -46,19 +43,6 @@ export const usePiyangoTeminatService = defineStore('piyangoTeminatService', ()
|
||||
'description',
|
||||
piyangoTeminatStore.piyangoTeminatFormData.description
|
||||
)
|
||||
|
||||
if (usersStore.isPanelUser) {
|
||||
if (piyangoTeminatStore.piyangoTeminatFormData.state !== 2) {
|
||||
piyangoTeminatStore.piyangoTeminatFormData.iadeTarihi = ''
|
||||
piyangoTeminatStore.piyangoTeminatFormData.iadeFile = ''
|
||||
}
|
||||
dataForm.append(
|
||||
'iadeTarihi',
|
||||
String(piyangoTeminatStore.piyangoTeminatFormData.iadeTarihi)
|
||||
)
|
||||
dataForm.append('iadeFile', piyangoTeminatStore.piyangoTeminatFormData.iadeFile)
|
||||
}
|
||||
|
||||
if (piyangoTeminatStore.isNew) {
|
||||
form = await dataStore.dataPost('TeminantStates/', {
|
||||
data: dataForm,
|
||||
@ -77,8 +61,8 @@ export const usePiyangoTeminatService = defineStore('piyangoTeminatService', ()
|
||||
}
|
||||
|
||||
if (form !== 'errorfalse') {
|
||||
piyangoTeminatStore.isNew = false
|
||||
piyangoTeminatValidationStore.formChanged = false
|
||||
piyangoTeminatStore.isNew = false
|
||||
piyangoTeminatValidationStore.formChanged = false
|
||||
piyangoTeminatStore.refreshList = true
|
||||
piyangoTeminatStore.teminatPanel = false
|
||||
}
|
||||
@ -96,7 +80,7 @@ export const usePiyangoTeminatService = defineStore('piyangoTeminatService', ()
|
||||
|
||||
if (form !== 'errorfalse') {
|
||||
piyangoTeminatStore.isNew = false
|
||||
await Object.assign(piyangoTeminatStore.piyangoTeminatFormData, form)
|
||||
await Object.assign(piyangoTeminatStore.piyangoTeminatFormData, form)
|
||||
} else {
|
||||
await piyangoTeminatStore.ResetFormData()
|
||||
await piyangoTeminatStore.RestoreFormData()
|
||||
|
||||
70
src/module/cekilisler/stores/piyangoDosyaKapamaStore.ts
Normal file
70
src/module/cekilisler/stores/piyangoDosyaKapamaStore.ts
Normal file
@ -0,0 +1,70 @@
|
||||
import { defineStore } from 'pinia'
|
||||
import { ref, reactive } from 'vue'
|
||||
import { useGlobalStore } from '@/stores/globalStore'
|
||||
|
||||
export const usePiyangoDosyaKapamaStore = defineStore('piyangoDosyaKapamaStore', () => {
|
||||
const globalStore = useGlobalStore()
|
||||
|
||||
const baseDosyaKapamaData = reactive<Record<string, any>>({
|
||||
katilimSekli: '',
|
||||
cD: false,
|
||||
kutuMuhurlemeTutanagi: false,
|
||||
kutuAcmaTutanagi: false,
|
||||
cekilisTutanagi: false,
|
||||
cekilisIzinAlinanTarihSaatAdres: false,
|
||||
oncedenBelirlenenIkramiyeCekilis: false,
|
||||
cekilisNumaraUzerindenCekilis: false,
|
||||
dagitilmayanKuponTespiti: false,
|
||||
cekilisSonucuIlan: false,
|
||||
ilandaTarihGazete: false,
|
||||
ilandaToplamKatilimci: false,
|
||||
cekilisTutanagiIleUyumluKazananlar: false,
|
||||
ilanSonBasvuruTeslimSuresi: false,
|
||||
taahhutEdilenIkramiyeAdedi: null,
|
||||
teslimEdilenIkramiyeAdedi: null,
|
||||
asilIkramiyeSayisi: null,
|
||||
yedekIkramiyeSayisi: null,
|
||||
nufusCuzdani: false,
|
||||
noterOnayliIbraname: false,
|
||||
teslimBelgesi: false,
|
||||
faturaFotokopileri: false,
|
||||
tescileAitBelgeler: false,
|
||||
sureIcindesAlinmayanIkramiyeAdedi: null,
|
||||
tebligat: false,
|
||||
feragat: false,
|
||||
bagis: false,
|
||||
kuponAsli: false,
|
||||
duyuruMateryali: false,
|
||||
ikramiyelerinSonTeslimTarihi: '',
|
||||
teminatIadeTarihi: ''
|
||||
})
|
||||
const dosyaKapamaData = reactive<Record<string, any>>({})
|
||||
const safeDosyaKapamaData = reactive<Record<string, any>>({})
|
||||
const isNew = ref<boolean>(false)
|
||||
const isUpdate = ref<boolean>(false)
|
||||
const formChanged = ref<boolean>(false)
|
||||
const loaded = ref<boolean>(false)
|
||||
|
||||
|
||||
const ResetFormData = () => {
|
||||
globalStore.ResetObject(dosyaKapamaData, baseDosyaKapamaData)
|
||||
Object.assign(dosyaKapamaData, baseDosyaKapamaData)
|
||||
}
|
||||
|
||||
const RestoreFormData = () => {
|
||||
globalStore.ResetObject(dosyaKapamaData, baseDosyaKapamaData)
|
||||
Object.assign(dosyaKapamaData, safeDosyaKapamaData)
|
||||
}
|
||||
|
||||
return {
|
||||
baseDosyaKapamaData,
|
||||
dosyaKapamaData,
|
||||
safeDosyaKapamaData,
|
||||
isNew,
|
||||
isUpdate,
|
||||
formChanged,
|
||||
loaded,
|
||||
ResetFormData,
|
||||
RestoreFormData
|
||||
}
|
||||
})
|
||||
@ -23,9 +23,7 @@ export const usePiyangoTeminatStore = defineStore('piyangoTeminatStore', () => {
|
||||
cekilisId: piyangoStore.selectedLottery,
|
||||
kisiId: usersStore.userId,
|
||||
description: '',
|
||||
file: '',
|
||||
iadeTarihi: '',
|
||||
iadeFile: ''
|
||||
file: ''
|
||||
})
|
||||
|
||||
const piyangoTeminatFormData = reactive<Record<string, any>>({})
|
||||
@ -33,7 +31,7 @@ export const usePiyangoTeminatStore = defineStore('piyangoTeminatStore', () => {
|
||||
const loaded = ref<boolean>(false)
|
||||
const isNew = ref<boolean>(false)
|
||||
const teminatPanel = ref<boolean>(false)
|
||||
const selectedTeminatId = ref<number | null>(null)
|
||||
const selectedTeminatId = ref<number|null>(null)
|
||||
const refreshList = ref<boolean>(false)
|
||||
|
||||
const ResetFormData = () => {
|
||||
@ -44,7 +42,7 @@ export const usePiyangoTeminatStore = defineStore('piyangoTeminatStore', () => {
|
||||
loaded.value = true
|
||||
}, 30)
|
||||
}
|
||||
const RestoreFormData = () => {
|
||||
const RestoreFormData = () => {
|
||||
Object.assign(piyangoTeminatFormData, piyangoTeminatSafeFormData)
|
||||
}
|
||||
return {
|
||||
|
||||
@ -0,0 +1,35 @@
|
||||
import { defineStore } from 'pinia'
|
||||
import { ref, reactive } from 'vue'
|
||||
import { useValidationStore } from '@/stores/validationStore'
|
||||
import { usePiyangoDosyaKapamaStore } from '../stores/piyangoDosyaKapamaStore'
|
||||
|
||||
export const usePiyangoDosyaKapamaValidationStore = defineStore(
|
||||
'piyangoDosyaKapamaValidationStore',
|
||||
() => {
|
||||
const piyangoDosyaKapamaStore = usePiyangoDosyaKapamaStore()
|
||||
const validationStore = useValidationStore()
|
||||
|
||||
const isFormValid = ref<boolean>(true)
|
||||
const invalidTexts = reactive<Record<string, any>>({})
|
||||
|
||||
const FormCheck = (): boolean => {
|
||||
Object.assign(invalidTexts, {})
|
||||
|
||||
validationStore.IsFieldEmpty(
|
||||
piyangoDosyaKapamaStore.dosyaKapamaData,
|
||||
invalidTexts,
|
||||
'mecraAdi',
|
||||
'Yayınlanacak mecranın adını yazınız.'
|
||||
)
|
||||
|
||||
isFormValid.value = Object.keys(invalidTexts).length === 0
|
||||
return isFormValid.value
|
||||
}
|
||||
|
||||
return {
|
||||
isFormValid,
|
||||
invalidTexts,
|
||||
FormCheck
|
||||
}
|
||||
}
|
||||
)
|
||||
@ -24,12 +24,6 @@ export const usePiyangoTeminatValidationStore = defineStore(
|
||||
'state',
|
||||
'Lütfen işlem tipini seçiniz.'
|
||||
)
|
||||
validationStore.IsFieldEmpty(
|
||||
piyangoTeminatStore.piyangoTeminatFormData,
|
||||
invalidTexts,
|
||||
'iadeTarihi',
|
||||
'Lütfen iade tarihini seçiniz.'
|
||||
)
|
||||
}
|
||||
|
||||
validationStore.IsFieldEmpty(
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
<template #talihliler><tab-piyango-talihli-listesi /></template>
|
||||
<template #itirazsikayet><tab-piyango-itiraz /></template>
|
||||
<template #piyangologlari><tab-piyango-loglari /></template>
|
||||
<template #yetkilendirme>
|
||||
<template #yetkilendirme v-if="usersStore.isPanelUser">
|
||||
<tab-piyango-yetkilendirme />
|
||||
</template>
|
||||
<template #onaydurumu>
|
||||
@ -26,6 +26,9 @@
|
||||
<template #teminatlistesi>
|
||||
<tab-piyango-teminat-durumu />
|
||||
</template>
|
||||
<template #dosyakapama v-if="usersStore.isPanelUser && piyangoStore.lotteryDrawState">
|
||||
<tab-piyango-dosya-kapama />
|
||||
</template>
|
||||
</tabs>
|
||||
</AdminLayout>
|
||||
</template>
|
||||
@ -52,6 +55,7 @@
|
||||
import TabPiyangoBilgileri from '@/module/cekilisler/components/TabPiyangoBilgileri.vue'
|
||||
import TabPiyangoBilgileriDisplay from '../components/TabPiyangoBilgileriDisplay.vue'
|
||||
import TabPiyangoItiraz from '@/module/cekilisler/components/TabPiyangoItiraz.vue'
|
||||
import TabPiyangoDosyaKapama from '@/module/cekilisler/components/TabPiyangoDosyaKapama.vue'
|
||||
|
||||
const loaded = ref<boolean>(false)
|
||||
const tabList = ref<Record<string, any>[]>([
|
||||
@ -60,14 +64,13 @@
|
||||
|
||||
const CreateTabs = () => {
|
||||
if (
|
||||
(piyangoStore.lotteryApprove === 4 ||
|
||||
piyangoStore.lotteryApprove === 10 ||
|
||||
piyangoStore.lotteryApprove === 11 ||
|
||||
piyangoStore.lotteryApprove === 12 ||
|
||||
piyangoStore.lotteryApprove === 13 ||
|
||||
piyangoStore.lotteryApprove === 14 ||
|
||||
usersStore.isPanelUser) &&
|
||||
piyangoStore.lotteryPurposeId !== 3
|
||||
piyangoStore.lotteryApprove === 4 ||
|
||||
piyangoStore.lotteryApprove === 10 ||
|
||||
piyangoStore.lotteryApprove === 11 ||
|
||||
piyangoStore.lotteryApprove === 12 ||
|
||||
piyangoStore.lotteryApprove === 13 ||
|
||||
piyangoStore.lotteryApprove === 14 ||
|
||||
usersStore.isPanelUser
|
||||
) {
|
||||
tabList.value.push(
|
||||
{ text: 'Katılım Listesi', id: 'katilimcilistesi' },
|
||||
@ -83,9 +86,13 @@
|
||||
}
|
||||
tabList.value.push({ text: 'Onay Durumu', id: 'onaydurumu' })
|
||||
|
||||
if (piyangoStore.lotteryApprove !== 0 && piyangoStore.lotteryPurposeId !== 3) {
|
||||
if (piyangoStore.lotteryApprove !== 0) {
|
||||
tabList.value.push({ text: 'Teminat Listesi', id: 'teminatlistesi' })
|
||||
}
|
||||
|
||||
if (usersStore.isPanelUser && piyangoStore.lotteryDrawState) {
|
||||
tabList.value.push({ text: 'Dossya Kapama', id: 'dosyakapama' })
|
||||
}
|
||||
}
|
||||
|
||||
onBeforeMount(async () => {
|
||||
|
||||
@ -67,25 +67,11 @@
|
||||
const tableHeader = computed<Record<string, any>[]>(() => {
|
||||
let header: Record<string, any>[] = []
|
||||
|
||||
header.push({
|
||||
name: 'piyangoId',
|
||||
title: 'Piyango Id',
|
||||
sort: true,
|
||||
style: { width: '10%' }
|
||||
})
|
||||
|
||||
|
||||
if (usersStore.isAraciFirma || usersStore.isPanelUser) {
|
||||
header.push({ name: 'duzenleyen', title: 'Düzenleyen' })
|
||||
}
|
||||
|
||||
header.push(
|
||||
{
|
||||
name: 'piyangoId',
|
||||
title: 'Piyango ID',
|
||||
sort: true,
|
||||
style: { width: '10%' }
|
||||
},
|
||||
{
|
||||
name: 'baslik',
|
||||
title: 'Başlık',
|
||||
@ -115,16 +101,14 @@
|
||||
type: 'date',
|
||||
range: true
|
||||
}
|
||||
}
|
||||
)
|
||||
})
|
||||
|
||||
if (usersStore.isVakifDernek || usersStore.isPanelUser) {
|
||||
header.push({
|
||||
name: 'cekilisTarihi',
|
||||
title: 'Çekiliş Tarihi',
|
||||
compute: (v: Record<string, any>): string => {
|
||||
if(v.piyangoAmacId === 3) return ''
|
||||
else return dateStore.dateFormat({ date: v.cekilisTarihi })
|
||||
return dateStore.dateFormat({ date: v.cekilisTarihi })
|
||||
},
|
||||
sort: true,
|
||||
filter: {
|
||||
@ -162,7 +146,7 @@
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
header.push(
|
||||
{
|
||||
|
||||
@ -54,12 +54,6 @@
|
||||
}
|
||||
|
||||
header.push(
|
||||
{
|
||||
name: 'piyangoId',
|
||||
title: 'Piyango ID',
|
||||
sort: true,
|
||||
style: { width: '10%' }
|
||||
},
|
||||
{
|
||||
name: 'baslik',
|
||||
title: 'Başlık',
|
||||
|
||||
@ -51,7 +51,7 @@
|
||||
</AdminLayout>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { ref, onMounted, computed } from 'vue'
|
||||
import { ref, computed } from 'vue'
|
||||
import AdminLayout from '@/layouts/AdminLayout.vue'
|
||||
import { Breadcrumb } from '@/components/global'
|
||||
import router from '@/router'
|
||||
@ -87,7 +87,7 @@
|
||||
title: 'Resim Url',
|
||||
computeHtml: (v: Record<string, any>) => {
|
||||
if (v.resimUrl !== null && v.resimUrl !== undefined) {
|
||||
return `<a href="${ v.resimUrl }" target="_blank" onclick="event.stopPropagation()"><img class="table-cell-image" src="${ v.resimUrl }" /></a>`
|
||||
return globalStore.TableCellDocument(v.resimUrl)
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@ -78,7 +78,7 @@
|
||||
title: 'Resim Url',
|
||||
computeHtml: (v: Record<string, any>) => {
|
||||
if (v.resimUrl !== null && v.resimUrl !== undefined) {
|
||||
return `<a href="${ v.resimUrl }" target="_blank" onclick="event.stopPropagation()"><img class="table-cell-image" src="${ v.resimUrl }" /></a>`
|
||||
return globalStore.TableCellDocument(v.resimUrl)
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@ -8,7 +8,7 @@ export const useDataStore = defineStore('dataStore', () => {
|
||||
const globalDataStore = useGlobalDataStore()
|
||||
const toastStore = useToastStore()
|
||||
|
||||
const siteBase = ref<string>(import.meta.env.VITE_API_URL)
|
||||
const siteBase = ref<string>('https://panelapi.cekilisevi.gov.tr/')
|
||||
const apiBase = ref<string>('api/')
|
||||
const panelData = reactive<Record<string, any>>({})
|
||||
const pageData = reactive<Record<string, any>>({})
|
||||
@ -40,7 +40,7 @@ export const useDataStore = defineStore('dataStore', () => {
|
||||
}
|
||||
|
||||
const response = await axios.get(apiBase.value + api, sendData)
|
||||
console.log('response --', api, response)
|
||||
//console.log('response --', api, response)
|
||||
|
||||
if (data.full !== undefined && data.full) {
|
||||
return response
|
||||
@ -49,7 +49,7 @@ export const useDataStore = defineStore('dataStore', () => {
|
||||
}
|
||||
} catch (error: any) {
|
||||
CheckApiError(error.response.status, error.response.data)
|
||||
console.error('Hata oluştu -:', error)
|
||||
//console.error('Hata oluştu -:', error)
|
||||
return 'errorfalse'
|
||||
}
|
||||
}
|
||||
@ -86,7 +86,7 @@ export const useDataStore = defineStore('dataStore', () => {
|
||||
} catch (error: any) {
|
||||
CheckApiError(error.response.status, error.response.data)
|
||||
|
||||
console.error('Hata oluştu:', error)
|
||||
//console.error('Hata oluştu:', error)
|
||||
return Promise.resolve('errorfalse')
|
||||
}
|
||||
}
|
||||
@ -122,7 +122,7 @@ export const useDataStore = defineStore('dataStore', () => {
|
||||
} catch (error: any) {
|
||||
CheckApiError(error.response.status, error.response.data)
|
||||
|
||||
console.error('Hata oluştu:', error)
|
||||
//console.error('Hata oluştu:', error)
|
||||
return Promise.resolve('errorfalse')
|
||||
}
|
||||
}
|
||||
@ -156,7 +156,7 @@ export const useDataStore = defineStore('dataStore', () => {
|
||||
}
|
||||
} catch (error: any) {
|
||||
CheckApiError(error.response.status, error.response.data)
|
||||
console.error('Hata oluştu:', error)
|
||||
//console.error('Hata oluştu:', error)
|
||||
return Promise.resolve('errorfalse')
|
||||
}
|
||||
}
|
||||
|
||||
@ -11,8 +11,5 @@ export default defineConfig({
|
||||
alias: {
|
||||
'@': fileURLToPath(new URL('./src', import.meta.url))
|
||||
}
|
||||
},
|
||||
esbuild: {
|
||||
drop: process.env.NODE_ENV === 'production' ? ['console', 'debugger'] : []
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user