Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -109,6 +109,7 @@
|
||||
:loading="store.loading"
|
||||
no-data-label="Sipariş bulunamadı"
|
||||
:rows-per-page-options="[0]"
|
||||
v-model:pagination="pagination"
|
||||
hide-bottom
|
||||
>
|
||||
<template #body-cell-IsCreditableConfirmed="props">
|
||||
@@ -252,7 +253,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { onMounted, watch } from 'vue'
|
||||
import { onMounted, ref, watch } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { useQuasar } from 'quasar'
|
||||
import { useOrderListStore } from 'src/stores/OrdernewListStore'
|
||||
@@ -266,6 +267,11 @@ const canReadOrder = canRead('order')
|
||||
const router = useRouter()
|
||||
const $q = useQuasar()
|
||||
const store = useOrderListStore()
|
||||
const pagination = ref({
|
||||
sortBy: 'TotalAmountUSD',
|
||||
descending: true,
|
||||
rowsPerPage: 0
|
||||
})
|
||||
|
||||
let searchTimer = null
|
||||
watch(
|
||||
@@ -320,7 +326,9 @@ async function exportListPdf () {
|
||||
const blob = await download('/orders/export-pdf', {
|
||||
search: store.filters.search || '',
|
||||
CurrAccCode: store.filters.CurrAccCode || '',
|
||||
OrderDate: store.filters.OrderDate || ''
|
||||
OrderDate: store.filters.OrderDate || '',
|
||||
sort_by: pagination.value?.sortBy || 'TotalAmountUSD',
|
||||
descending: String(pagination.value?.descending ?? true)
|
||||
})
|
||||
|
||||
const blobUrl = URL.createObjectURL(blob)
|
||||
|
||||
Reference in New Issue
Block a user