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

@@ -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)