build hataları
This commit is contained in:
@ -315,10 +315,11 @@
|
|||||||
headers: { 'Content-Type': 'multipart/form-data' }
|
headers: { 'Content-Type': 'multipart/form-data' }
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
console.log('excel response',response)
|
||||||
if (response.data !== 'errorfalse') {
|
if (response !== 'errorfalse') {
|
||||||
// Başarı işlemi zaten onCompleted içinde yapıldı
|
// Başarı işlemi zaten onCompleted içinde yapıldı
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
// Hata olursa paneli kapat
|
// Hata olursa paneli kapat
|
||||||
uploadProgressPanel.value = false
|
uploadProgressPanel.value = false
|
||||||
}
|
}
|
||||||
|
|||||||
@ -34,9 +34,15 @@
|
|||||||
:invalidText="piyangoTeminatValidationStore.invalidTexts.refundCount" />
|
:invalidText="piyangoTeminatValidationStore.invalidTexts.refundCount" />
|
||||||
<form-file
|
<form-file
|
||||||
v-model="piyangoTeminatStore.piyangoTeminatFormData.refundDocumentUrl"
|
v-model="piyangoTeminatStore.piyangoTeminatFormData.refundDocumentUrl"
|
||||||
|
label='Klasör Arşiv'
|
||||||
elclass="panel-documents-item"
|
elclass="panel-documents-item"
|
||||||
:invalidText="piyangoTeminatValidationStore.invalidTexts.refundDocumentUrl"
|
:invalidText="piyangoTeminatValidationStore.invalidTexts.refundDocumentUrl"
|
||||||
@change="OnKeyup" />
|
@change="OnKeyup" />
|
||||||
|
<form-input
|
||||||
|
modelKey="refundDescription"
|
||||||
|
v-model="piyangoTeminatStore.piyangoTeminatFormData.refundDescription"
|
||||||
|
label="İade Açıklama"
|
||||||
|
@keyup="OnKeyup" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<form-display
|
<form-display
|
||||||
|
|||||||
@ -52,6 +52,7 @@ export const usePiyangoTeminatService = defineStore('piyangoTeminatService', ()
|
|||||||
piyangoTeminatStore.piyangoTeminatFormData.refundDate = ''
|
piyangoTeminatStore.piyangoTeminatFormData.refundDate = ''
|
||||||
piyangoTeminatStore.piyangoTeminatFormData.refundCount = ''
|
piyangoTeminatStore.piyangoTeminatFormData.refundCount = ''
|
||||||
piyangoTeminatStore.piyangoTeminatFormData.refundDocumentUrl = ''
|
piyangoTeminatStore.piyangoTeminatFormData.refundDocumentUrl = ''
|
||||||
|
piyangoTeminatStore.piyangoTeminatFormData.refundDescription = ''
|
||||||
}
|
}
|
||||||
dataForm.append(
|
dataForm.append(
|
||||||
'refundDate',
|
'refundDate',
|
||||||
@ -65,6 +66,10 @@ export const usePiyangoTeminatService = defineStore('piyangoTeminatService', ()
|
|||||||
'refundDocumentUrl',
|
'refundDocumentUrl',
|
||||||
piyangoTeminatStore.piyangoTeminatFormData.refundDocumentUrl
|
piyangoTeminatStore.piyangoTeminatFormData.refundDocumentUrl
|
||||||
)
|
)
|
||||||
|
dataForm.append(
|
||||||
|
'refundDescription',
|
||||||
|
piyangoTeminatStore.piyangoTeminatFormData.refundDescription
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (piyangoTeminatStore.isNew) {
|
if (piyangoTeminatStore.isNew) {
|
||||||
|
|||||||
@ -26,7 +26,8 @@ export const usePiyangoTeminatStore = defineStore('piyangoTeminatStore', () => {
|
|||||||
file: '',
|
file: '',
|
||||||
refundDate: '',
|
refundDate: '',
|
||||||
refundCount: '',
|
refundCount: '',
|
||||||
refundDocumentUrl: ''
|
refundDocumentUrl: '',
|
||||||
|
refundDescription:''
|
||||||
})
|
})
|
||||||
|
|
||||||
const piyangoTeminatFormData = reactive<Record<string, any>>({})
|
const piyangoTeminatFormData = reactive<Record<string, any>>({})
|
||||||
|
|||||||
@ -80,12 +80,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
header.push(
|
header.push(
|
||||||
{
|
|
||||||
name: 'piyangoId',
|
|
||||||
title: 'Piyango ID',
|
|
||||||
sort: true,
|
|
||||||
style: { width: '10%' }
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: 'baslik',
|
name: 'baslik',
|
||||||
title: 'Başlık',
|
title: 'Başlık',
|
||||||
|
|||||||
@ -27,7 +27,6 @@
|
|||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, computed, onBeforeMount } from 'vue'
|
import { ref, computed, onBeforeMount } from 'vue'
|
||||||
import ListTableContent from '@/components/global/ListTableContent.vue'
|
|
||||||
import { useIzinBedelOraniStore } from '../store/izinBedelOraniStore'
|
import { useIzinBedelOraniStore } from '../store/izinBedelOraniStore'
|
||||||
import { useIzinBedelOraniService } from '../service/izinBedelOraniService'
|
import { useIzinBedelOraniService } from '../service/izinBedelOraniService'
|
||||||
|
|
||||||
|
|||||||
@ -55,7 +55,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, onBeforeMount, computed } from 'vue'
|
import { ref, onBeforeMount, computed } from 'vue'
|
||||||
import AdminLayout from '@/layouts/AdminLayout.vue'
|
import AdminLayout from '@/layouts/AdminLayout.vue'
|
||||||
import { Breadcrumb, ListTableContent } from '@/components/global'
|
|
||||||
import PanelWrapper from '@/components/PanelWrapper.vue'
|
import PanelWrapper from '@/components/PanelWrapper.vue'
|
||||||
import { useIzinBedelOraniStore } from '../store/izinBedelOraniStore'
|
import { useIzinBedelOraniStore } from '../store/izinBedelOraniStore'
|
||||||
import { useIzinBedelOraniService } from '../service/izinBedelOraniService'
|
import { useIzinBedelOraniService } from '../service/izinBedelOraniService'
|
||||||
|
|||||||
@ -163,17 +163,23 @@ export const useDataStore = defineStore('dataStore', () => {
|
|||||||
|
|
||||||
const CheckApiError = async (status: number, data: Record<string, any>) => {
|
const CheckApiError = async (status: number, data: Record<string, any>) => {
|
||||||
if (status === 400) {
|
if (status === 400) {
|
||||||
const errorKey = data['hata'] || data['errors']
|
const errorKey = typeof data === "string" ? data : data?.hata || data?.errors;
|
||||||
|
|
||||||
if (errorKey !== undefined) {
|
if (errorKey !== undefined) {
|
||||||
|
if (Array.isArray(errorKey)) {
|
||||||
errorKey.forEach((el: string) => {
|
errorKey.forEach((el: string) => {
|
||||||
toastStore.AddToast(el, 'alert')
|
toastStore.AddToast(el, "alert");
|
||||||
})
|
});
|
||||||
|
} else if (typeof errorKey === "string") {
|
||||||
|
toastStore.AddToast(errorKey, "alert");
|
||||||
} else {
|
} else {
|
||||||
toastStore.AddToast('Bir hata oluştu.', 'alert')
|
toastStore.AddToast("Bir hata oluştu.", "alert");
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
toastStore.AddToast("Bir hata oluştu.", "alert");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
|
||||||
const GetCustomerTipList = async () => {
|
const GetCustomerTipList = async () => {
|
||||||
if (globalDataStore.customerTips.length === 0) {
|
if (globalDataStore.customerTips.length === 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user