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