diff --git a/src/views/wallet/wallet-recharge-apply/index.vue b/src/views/wallet/wallet-recharge-apply/index.vue index 97e8d47..6af6d30 100644 --- a/src/views/wallet/wallet-recharge-apply/index.vue +++ b/src/views/wallet/wallet-recharge-apply/index.vue @@ -1,8 +1,7 @@ - + @@ -11,32 +10,34 @@ - + - + - + - {{ $t("common.queryBtn") - }} + {{ $t("common.queryBtn") }} {{ $t("common.resetBtn") }} - + 导 入 - + 删除 @@ -44,15 +45,26 @@ - + - + @@ -99,51 +111,93 @@ - + - + 数据 - + 申请 - + 编辑 - + 开始处理 + icon="delete" + text + type="primary" + v-auth="'wallet_walletRechargeApply_del'" + @click="handleDelete([row.id])" + > 删除 + 打印发票 - + - + + + + @@ -161,6 +215,7 @@ const { push } = useRouter() // 引入组件 const FormDialog = defineAsyncComponent(() => import("./form.vue")) +const PrintDialog = defineAsyncComponent(() => import("./print-dialog.vue")) // 定义查询字典 const { wallet_biz_recharge, wallet_type, check_status } = useDict("wallet_biz_recharge", "wallet_type", "check_status") // store @@ -179,6 +234,15 @@ const multiple = ref(true) const activeName = ref() const tabItems = ref([{}]) const processDrawerRef = ref() +const printDialogVisible = ref(false) +const receiptData = ref({ + receiptNo: "", + date: "", + payer: "", + content: "", + amount: "", + amountInWords: "", +}) const state: BasicTableProps = reactive({ queryForm: {}, @@ -294,6 +358,12 @@ const deal = (row: any) => { const taskSubmitEvent = () => { getDataList() } + +// 预览发票 +const previewInvoice = (row: any) => { + // receiptData.value = row + printDialogVisible.value = true +}