feat:票号排序

This commit is contained in:
dzc committed 2025-08-01 14:40:38 +08:00
1 parent b3955511b5
commit 5454132f16
3 files changed
+22 -13

No files matched your search

+13 -11
View File
@@ -167,13 +167,13 @@ export const openWindow = (url: string, title: string, w: number, h: number) =>
const width = window.innerWidth
? window.innerWidth
: document.documentElement.clientWidth
? document.documentElement.clientWidth
: screen.width
? document.documentElement.clientWidth
: screen.width
const height = window.innerHeight
? window.innerHeight
: document.documentElement.clientHeight
? document.documentElement.clientHeight
: screen.height
? document.documentElement.clientHeight
: screen.height
const left = width / 2 - w / 2 + dualScreenLeft
const top = height / 2 - h / 2 + dualScreenTop
@@ -181,13 +181,13 @@ export const openWindow = (url: string, title: string, w: number, h: number) =>
url,
title,
"toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, copyhistory=no, width=" +
w +
", height=" +
h +
", top=" +
top +
", left=" +
left,
w +
", height=" +
h +
", top=" +
top +
", left=" +
left,
)
}
@@ -274,6 +274,8 @@ export function postDownBlobFile(url: any, data: any, fileName: string) {
params: {
current: data?.current ?? 1,
size: data?.size ?? 99999,
ascs: data?.ascs ?? [],
descs: data?.descs ?? [],
},
data,
}).then((response) => {
@@ -52,7 +52,7 @@
@sort-change="sortChangeHandle">
<el-table-column type="selection" width="40" align="center" />
<el-table-column type="index" label="#" width="50" />
<el-table-column prop="code" min-width="100" label="发票编号" />
<el-table-column prop="code" min-width="120" label="发票编号" sortable />
<el-table-column prop="time" min-width="120" label="发票日期">
<template #default="{ row }">
{{ parseTime(row.time, "{y}-{m}-{d}") }}
@@ -202,7 +202,11 @@ const doInfo = (row: any) => {
// 导出excel
const exportExcel = () => {
postDownBlobFile("/wallet/walletRechargeInvoice/export", Object.assign(state.queryForm), "充值扣款发票申请.xlsx")
postDownBlobFile("/wallet/walletRechargeInvoice/export", {
...state.queryForm,
ascs: state.ascs,
descs: state.descs,
}, "充值扣款发票申请.xlsx")
}
// 多选事件
@@ -118,6 +118,7 @@ import printJS from "print-js"
import * as WalletRechargeInvoiceApi from "/@/api/wallet/wallet-recharge-invoice"
import { useDict } from "/@/hooks/dict"
interface ReceiptData {
id: string
itemJson: string
@@ -207,6 +208,8 @@ const refreshInvoice = async () => {
}
await WalletRechargeInvoiceApi.refreshInvoice(_data)
useMessage().success("重新生成发票成功")
emit("refresh")
visible.value = false
} catch (err: any) {
console.error(err);
useMessage().error(err.msg)