From fee3b131225e4733bce1fd75ebbe521bc4a52748 Mon Sep 17 00:00:00 2001 From: M_Kececi Date: Fri, 19 Jun 2026 23:17:52 +0300 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- .../product_pricing_price_list_export.go | 2 +- ui/src/pages/OrderPriceList.vue | 86 +++++++++++++------ 2 files changed, 63 insertions(+), 25 deletions(-) diff --git a/svc/routes/product_pricing_price_list_export.go b/svc/routes/product_pricing_price_list_export.go index b61aff7..ad2885f 100644 --- a/svc/routes/product_pricing_price_list_export.go +++ b/svc/routes/product_pricing_price_list_export.go @@ -517,7 +517,7 @@ func ExportProductPriceListPDFHandler(pg *sql.DB) http.HandlerFunc { now := time.Now() w.Header().Set("Content-Type", "application/pdf") - w.Header().Set("Content-Disposition", fmt.Sprintf("inline; filename=%q", fmt.Sprintf("baggi_guncel_fiyat_listesi_%s.pdf", now.Format("20060102")))) + w.Header().Set("Content-Disposition", fmt.Sprintf("attachment; filename=%q", fmt.Sprintf("Fiyat_Listesi-%s.pdf", now.Format("20060102-1504")))) w.WriteHeader(http.StatusOK) _, _ = w.Write(buf.Bytes()) } diff --git a/ui/src/pages/OrderPriceList.vue b/ui/src/pages/OrderPriceList.vue index baf87d0..9fee32d 100644 --- a/ui/src/pages/OrderPriceList.vue +++ b/ui/src/pages/OrderPriceList.vue @@ -1576,33 +1576,68 @@ function exportVisibleExcel () { void notifyExportTaken('excel') } -function printVisibleRows () { - const cols = visibleColumns.value - const body = filteredRows.value.map((row) => `${cols.map((c) => { - if (c.name === 'image' && row.imageUrl) return `` - return `${escapeHtml(exportCell(row, c))}` - }).join('')}`).join('') - const html = `Fiyat Listesi

Fiyat Listesi

${cols.map((c) => ``).join('')}${body}
${escapeHtml(c.label || 'Gorsel')}