Merge remote-tracking branch 'origin/master'

This commit is contained in:
2026-02-13 07:27:57 +03:00
parent d571fe2fd5
commit 7f56bb40c5
38 changed files with 1709 additions and 457 deletions

View File

@@ -1,5 +1,5 @@
<template>
<q-page class="q-pa-md page-col">
<q-page v-if="canReadFinance" class="q-pa-md page-col">
<!-- 🔹 Cari Kod / İsim (sabit) -->
<div class="filter-sticky">
@@ -135,6 +135,7 @@
<!-- PDF Yazdır Dropdown -->
<q-btn-dropdown
v-if="canExportFinance"
flat
color="red"
icon="picture_as_pdf"
@@ -258,6 +259,12 @@
</q-table>
</div>
</q-page>
<q-page v-else class="q-pa-md flex flex-center">
<div class="text-negative text-subtitle1">
Bu module erisim yetkiniz yok.
</div>
</q-page>
</template>
<script setup>
@@ -270,11 +277,9 @@ import { useDownloadstpdfStore } from 'src/stores/downloadstpdfStore'
import dayjs from 'dayjs'
import { usePermission } from 'src/composables/usePermission'
const { canRead, canWrite, canUpdate } = usePermission()
const canReadOrder = canRead('order')
const canWriteOrder = canWrite('order')
const canUpdateOrder = canUpdate('order')
const { canRead, canExport } = usePermission()
const canReadFinance = canRead('finance')
const canExportFinance = canExport('finance')
const $q = useQuasar()
@@ -458,6 +463,15 @@ function toggleLeftCols() {
/* 🔹 PDF İndirme Butonuna bağla */
async function handleDownload() {
if (!canExportFinance.value) {
$q.notify({
type: 'negative',
message: 'PDF export yetkiniz yok',
position: 'top-right'
})
return
}
console.log(" [DEBUG] handleDownload:", selectedCari.value, dateFrom.value, dateTo.value)
if (!selectedCari.value || !dateFrom.value || !dateTo.value) {
@@ -490,6 +504,15 @@ import { useDownloadstHeadStore } from 'src/stores/downloadstHeadStore'
const downloadstHeadStore = useDownloadstHeadStore()
async function CurrheadDownload() {
if (!canExportFinance.value) {
$q.notify({
type: 'negative',
message: 'PDF export yetkiniz yok',
position: 'top-right'
})
return
}
console.log(" [DEBUG] CurrheadDownload:", selectedCari.value, dateFrom.value, dateTo.value)
if (!selectedCari.value || !dateFrom.value || !dateTo.value) {