diff --git a/src/views/wallet/wallet-recharge-apply/index.vue b/src/views/wallet/wallet-recharge-apply/index.vue index a9a01c1..09cb053 100644 --- a/src/views/wallet/wallet-recharge-apply/index.vue +++ b/src/views/wallet/wallet-recharge-apply/index.vue @@ -1,8 +1,7 @@ - + - + - + - - - @@ -163,13 +205,11 @@ import { ElLoading, ElMessage } from "element-plus" import ProcessDrawer from "/@/components/processDrawer/index.vue" import { getDicts } from "/@/api/admin/dict" import { useUserInfo } from "/@/stores/userInfo" -import { getInvoice } from "/@/api/wallet/wallet-recharge-invoice" 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 @@ -188,8 +228,6 @@ const multiple = ref(true) const activeName = ref() const tabItems = ref([{}]) const processDrawerRef = ref() -const printDialogRef = ref() -const getReceiptDataLoading = ref(false) const state: BasicTableProps = reactive({ queryForm: {}, @@ -305,20 +343,6 @@ const deal = (row: any) => { const taskSubmitEvent = () => { getDataList() } - -// 预览发票 -const previewInvoice = async (row: any) => { - try { - getReceiptDataLoading.value = true - const res = await getInvoice({ id: row.id }) - if (res.code == 0 && printDialogRef.value) return printDialogRef.value.openDialog(res.data, res.data.id) - return useMessage().error(res.data.msg || "获取发票信息失败") - } catch (error: any) { - useMessage().error(error.msg) - } finally { - getReceiptDataLoading.value = false - } -}