From f8a394064346e86e68b7c0e1ee78825536c17754 Mon Sep 17 00:00:00 2001 From: burakovec Date: Thu, 18 Dec 2025 16:20:08 +0300 Subject: [PATCH] =?UTF-8?q?Enhance=20PiyangoListe=20and=20MuhasebePiyangoL?= =?UTF-8?q?istesi=20components=20by=20adding=20"Olu=C5=9Fturma=20Tarihi",?= =?UTF-8?q?=20"Sevk=20Durumu",=20and=20"Muhasebele=C5=9Ftirme=20Durumu"=20?= =?UTF-8?q?columns.=20Update=20date=20formatting=20and=20conditional=20ren?= =?UTF-8?q?dering=20for=20improved=20data=20presentation.=20Remove=20redun?= =?UTF-8?q?dant=20code=20for=20special=20columns=20to=20streamline=20compo?= =?UTF-8?q?nent=20structure.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/module/cekilisler/views/PiyangoListe.vue | 94 +++++++++------- .../muhasebe/views/MuhasebePiyangoListesi.vue | 106 +++++++++--------- 2 files changed, 108 insertions(+), 92 deletions(-) diff --git a/src/module/cekilisler/views/PiyangoListe.vue b/src/module/cekilisler/views/PiyangoListe.vue index c05318e..d225d5d 100644 --- a/src/module/cekilisler/views/PiyangoListe.vue +++ b/src/module/cekilisler/views/PiyangoListe.vue @@ -78,7 +78,58 @@ style: { width: '10%' } }) - // 2. MÜDÜRLÜK + // 2. OLUŞTURMA TARİHİ + header.push({ + name: 'olusturmaTarihi', + title: 'Oluşturma Tarihi', + compute: (v: Record): string => { + if (!v.olusturmaTarihi || v.olusturmaTarihi === null || v.olusturmaTarihi.includes('0001-')) return '' + return dateStore.dateFormat({ date: v.olusturmaTarihi, pattern: 'dd-mm-yy', splitDate: '/' }) + }, + sort: true, + filter: { + type: 'date', + between: true + } + }) + + // 3. SEVK DURUMU (Panel User için) + if (usersStore.isPanelUser) { + header.push({ + name: 'atanmis', + title: 'Sevk Durumu', + computeHtml: (v: Record): string => { + if (v.atanmis) { + return ` + ${v.atananlar} + ` + } else { + return ` + Sevk Edilmemiş` + } + } + }) + + // 4. MUHASEBELEŞTİRME DURUMU (Panel User için) + header.push({ + name: 'basvuruBedelNo', + title: 'Muhasebeleştirme Durumu', + computeHtml: (v: Record): string => { + let durum = '' + if (v.basvuruBedelNo !== null) { + durum += `Başvuru Bedel No: + ${v.basvuruBedelNo}
` + } + if (v.izinBedelNo !== null) { + durum += `İzin Bedel No: + ${v.izinBedelNo}` + } + return durum + } + }) + } + + // 5. MÜDÜRLÜK header.push({ name: 'mudurluk', title: 'Müdürlük', @@ -90,7 +141,7 @@ } }) - // 3. PİYANGO AMACI + // 6. PİYANGO AMACI header.push({ name: 'piyangoamac', title: 'Piyango Amacı', @@ -104,7 +155,7 @@ } }) - // 4. DÜZENLEYEN (koşullu) + // 7. DÜZENLEYEN (koşullu) if (usersStore.isAraciFirma || usersStore.isPanelUser) { header.push({ name: 'duzenleyen', @@ -115,7 +166,7 @@ }) } - // 5. ARACI FİRMA + // 8. ARACI FİRMA header.push({ name: 'araciFirma', title: 'Aracı Firma', @@ -360,41 +411,6 @@ } }) - // Panel User için ek sütunlar - if (usersStore.isPanelUser) { - header.push({ - name: 'atanmis', - title: 'Sevk Durumu', - computeHtml: (v: Record): string => { - if (v.atanmis) { - return ` - ${v.atananlar} - ` - } else { - return ` - Sevk Edilmemiş` - } - } - }) - - header.push({ - name: 'basvuruBedelNo', - title: 'Muhasebeleştirme Durumu', - computeHtml: (v: Record): string => { - let durum = '' - if (v.basvuruBedelNo !== null) { - durum += `Başvuru Bedel No: - ${v.basvuruBedelNo}
` - } - if (v.izinBedelNo !== null) { - durum += `İzin Bedel No: - ${v.izinBedelNo}` - } - return durum - } - }) - } - return header }) diff --git a/src/module/muhasebe/views/MuhasebePiyangoListesi.vue b/src/module/muhasebe/views/MuhasebePiyangoListesi.vue index c71d559..487046c 100644 --- a/src/module/muhasebe/views/MuhasebePiyangoListesi.vue +++ b/src/module/muhasebe/views/MuhasebePiyangoListesi.vue @@ -60,7 +60,56 @@ style: { width: '10%' } }) - // 2. MÜDÜRLÜK + // 2. OLUŞTURMA TARİHİ + header.push({ + name: 'olusturmaTarihi', + title: 'Oluşturma Tarihi', + compute: (v: Record): string => { + if (!v.olusturmaTarihi || v.olusturmaTarihi === null || v.olusturmaTarihi.includes('0001-')) return '' + return dateStore.dateFormat({ date: v.olusturmaTarihi, pattern: 'dd-mm-yy', splitDate: '/' }) + }, + sort: true, + filter: { + type: 'date', + between: true + } + }) + + // 3. SEVK DURUMU + header.push({ + name: 'atanmis', + title: 'Sevk Durumu', + computeHtml: (v: Record): string => { + if (v.atanmis) { + return ` + ${v.atananlar} + ` + } else { + return ` + Sevk Edilmemiş` + } + } + }) + + // 4. MUHASEBELEŞTİRME DURUMU + header.push({ + name: 'basvuruBedelNo', + title: 'Muhasebeleştirme Durumu', + computeHtml: (v: Record): string => { + let durum = '' + if (v.basvuruBedelNo !== null) { + durum += `Başvuru Bedel No: + ${v.basvuruBedelNo}
` + } + if (v.izinBedelNo !== null) { + durum += `İzin Bedel No: + ${v.izinBedelNo}` + } + return durum + } + }) + + // 5. MÜDÜRLÜK header.push({ name: 'mudurluk', title: 'Müdürlük', @@ -69,7 +118,7 @@ } }) - // 3. PİYANGO AMACI + // 6. PİYANGO AMACI header.push({ name: 'piyangoamac', title: 'Piyango Amacı', @@ -83,12 +132,12 @@ } }) - // 4. DÜZENLEYEN (koşullu) + // 7. DÜZENLEYEN (koşullu) if (usersStore.isAraciFirma || usersStore.isPanelUser) { header.push({ name: 'duzenleyen', title: 'Düzenleyen' }) } - // 5. ARACI FİRMA + // 8. ARACI FİRMA header.push({ name: 'araciFirma', title: 'Aracı Firma', @@ -171,55 +220,6 @@ } }) - // 11. OLUŞTURMA TARİHİ - header.push({ - name: 'olusturmaTarihi', - title: 'Oluşturma Tarihi', - compute: (v: Record): string => { - if (!v.cekilisTarihi || v.cekilisTarihi.includes('0001-')) return '' - if (v.piyangoAmacId === 3) return '' - return dateStore.dateFormat({ date: v.cekilisTarihi, pattern: 'dd-mm-yy', splitDate: '/' }) - }, - sort: true, - filter: { - type: 'date', - between: true - } - }) - - // Muhasebe özel sütunlar - header.push({ - name: 'atanmis', - title: 'Sevk Durumu', - computeHtml: (v: Record): string => { - if (v.atanmis) { - return ` - ${v.atananlar} - ` - } else { - return ` - Sevk Edilmemiş` - } - } - }) - - header.push({ - name: 'basvuruBedelNo', - title: 'Muhasebeleştirme Durumu', - computeHtml: (v: Record): string => { - let durum = '' - if (v.basvuruBedelNo !== null) { - durum += `Başvuru Bedel No: - ${v.basvuruBedelNo}
` - } - if (v.izinBedelNo !== null) { - durum += `İzin Bedel No: - ${v.izinBedelNo}` - } - return durum - } - }) - // 11. ÇEKİLİŞ TARİHİ header.push({ name: 'cekilisTarihi',