From 9726e9b616d6dbaa8a1ec59b7deaad992c80e768 Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Mon, 17 Feb 2025 15:25:30 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=90=8E=E5=8F=B0=E5=BC=80=E5=8D=A1?= =?UTF-8?q?=E7=BB=91=E5=AE=9A=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Select/SelectUser.vue | 1 + src/views/admin/log/index.vue | 325 +++++++++--------- src/views/hard/hard-order/index.vue | 29 +- src/views/hard/hard-sb/index.vue | 5 +- src/views/hard/hard-sh/index.vue | 5 +- .../wallet/wallet-active/bind-user-form.vue | 97 ++++++ src/views/wallet/wallet-active/form.vue | 155 +++++---- src/views/wallet/wallet-active/index.vue | 32 +- .../wallet/wallet-recharge-water/index.vue | 29 +- src/views/wallet/wallet-xf/index.vue | 11 +- 10 files changed, 372 insertions(+), 317 deletions(-) create mode 100644 src/views/wallet/wallet-active/bind-user-form.vue diff --git a/src/components/Select/SelectUser.vue b/src/components/Select/SelectUser.vue index 0f44675..f805969 100644 --- a/src/components/Select/SelectUser.vue +++ b/src/components/Select/SelectUser.vue @@ -59,6 +59,7 @@ async function getOptions() { try { state.loading = true const _pa = { + userId: selectId.value, ...queryForm, } const { data } = await userApi.pageList(_pa) diff --git a/src/views/admin/log/index.vue b/src/views/admin/log/index.vue index 6bfc3e7..7cad3b1 100644 --- a/src/views/admin/log/index.vue +++ b/src/views/admin/log/index.vue @@ -1,202 +1,215 @@ diff --git a/src/views/hard/hard-order/index.vue b/src/views/hard/hard-order/index.vue index 1092b2a..d5d8ab7 100644 --- a/src/views/hard/hard-order/index.vue +++ b/src/views/hard/hard-order/index.vue @@ -20,7 +20,7 @@ - + @@ -184,19 +184,9 @@ 打印发票 - - 购物车 - - - 钱包明细 - - + 购物车 + 钱包明细 + 订单详情 @@ -219,13 +209,7 @@ > 退款 - 删除 @@ -288,8 +272,7 @@ const state: BasicTableProps = reactive({ }) // table hook -const { getDataList, currentChangeHandle, sizeChangeHandle, sortChangeHandle, downBlobFile, tableStyle } = - useTable(state) +const { getDataList, currentChangeHandle, sizeChangeHandle, sortChangeHandle, downBlobFile, tableStyle } = useTable(state) onMounted(async () => { const { data } = await getDicts("hard_order_type") diff --git a/src/views/hard/hard-sb/index.vue b/src/views/hard/hard-sb/index.vue index 22a58e1..f4b6144 100644 --- a/src/views/hard/hard-sb/index.vue +++ b/src/views/hard/hard-sb/index.vue @@ -5,7 +5,7 @@ - + @@ -92,8 +92,7 @@ const state: BasicTableProps = reactive({ }) // table hook -const { getDataList, currentChangeHandle, sizeChangeHandle, sortChangeHandle, downBlobFile, tableStyle } = - useTable(state) +const { getDataList, currentChangeHandle, sizeChangeHandle, sortChangeHandle, downBlobFile, tableStyle } = useTable(state) // 导出excel const exportExcel = () => { diff --git a/src/views/hard/hard-sh/index.vue b/src/views/hard/hard-sh/index.vue index 7c17e80..6387d16 100644 --- a/src/views/hard/hard-sh/index.vue +++ b/src/views/hard/hard-sh/index.vue @@ -5,7 +5,7 @@ - + @@ -80,8 +80,7 @@ const state: BasicTableProps = reactive({ }) // table hook -const { getDataList, currentChangeHandle, sizeChangeHandle, sortChangeHandle, downBlobFile, tableStyle } = - useTable(state) +const { getDataList, currentChangeHandle, sizeChangeHandle, sortChangeHandle, downBlobFile, tableStyle } = useTable(state) // 清空搜索条件 const resetQuery = () => { diff --git a/src/views/wallet/wallet-active/bind-user-form.vue b/src/views/wallet/wallet-active/bind-user-form.vue new file mode 100644 index 0000000..a993ceb --- /dev/null +++ b/src/views/wallet/wallet-active/bind-user-form.vue @@ -0,0 +1,97 @@ + + + diff --git a/src/views/wallet/wallet-active/form.vue b/src/views/wallet/wallet-active/form.vue index 04f3ad6..61602ad 100644 --- a/src/views/wallet/wallet-active/form.vue +++ b/src/views/wallet/wallet-active/form.vue @@ -1,107 +1,112 @@ \ No newline at end of file + openDialog, +}) + diff --git a/src/views/wallet/wallet-active/index.vue b/src/views/wallet/wallet-active/index.vue index 63c24dc..581a0f9 100644 --- a/src/views/wallet/wallet-active/index.vue +++ b/src/views/wallet/wallet-active/index.vue @@ -29,13 +29,7 @@
- + 开 卡
- + @@ -125,10 +108,12 @@ import { ElLoading } from "element-plus" // 引入组件 const FormDialog = defineAsyncComponent(() => import("./form.vue")) +const BindUserFormDialog = defineAsyncComponent(() => import("./bind-user-form.vue")) // 定义查询字典 const { wallet_type, yes_no_type } = useDict("wallet_type", "yes_no_type") // 定义变量内容 const formDialogRef = ref() +const bindUserFormDialogRef = ref() // 搜索变量 const queryRef = ref() const showSearch = ref(true) @@ -142,8 +127,7 @@ const state: BasicTableProps = reactive({ }) // table hook -const { getDataList, currentChangeHandle, sizeChangeHandle, sortChangeHandle, downBlobFile, tableStyle } = - useTable(state) +const { getDataList, currentChangeHandle, sizeChangeHandle, sortChangeHandle, downBlobFile, tableStyle } = useTable(state) // 清空搜索条件 const resetQuery = () => { diff --git a/src/views/wallet/wallet-recharge-water/index.vue b/src/views/wallet/wallet-recharge-water/index.vue index ff70c7f..206ebe1 100644 --- a/src/views/wallet/wallet-recharge-water/index.vue +++ b/src/views/wallet/wallet-recharge-water/index.vue @@ -25,11 +25,7 @@ - + @@ -111,12 +107,7 @@ @@ -133,12 +124,7 @@ import { useDict } from "/@/hooks/dict" import { useMessage, useMessageBox } from "/@/hooks/message" import * as walletRechargeImportApi from "/@/api/wallet/wallet-recharge-import" -const { wallet_biz_recharge, wallet_type, check_status } = useDict( - "wallet_biz_recharge", - "wallet_type", - "check_status", - "check_status", -) +const { wallet_biz_recharge, wallet_type, check_status } = useDict("wallet_biz_recharge", "wallet_type", "check_status", "check_status") // 搜索变量 const queryRef = ref() const showSearch = ref(true) @@ -155,8 +141,7 @@ const state: BasicTableProps = reactive({ }) // table hook -const { getDataList, currentChangeHandle, sizeChangeHandle, sortChangeHandle, downBlobFile, tableStyle } = - useTable(state) +const { getDataList, currentChangeHandle, sizeChangeHandle, sortChangeHandle, downBlobFile, tableStyle } = useTable(state) // 恢复操作 const handleRecover = async (id: string) => { @@ -188,11 +173,7 @@ const getSummaries = (param: any) => { // 导出excel const exportExcel = () => { - downBlobFile( - "/wallet/walletRechargeApply/export", - Object.assign(state.queryForm, { ids: selectObjs }), - "walletRechargeApply.xlsx", - ) + downBlobFile("/wallet/walletRechargeApply/export", Object.assign(state.queryForm, { ids: selectObjs }), "walletRechargeApply.xlsx") } // 多选事件 diff --git a/src/views/wallet/wallet-xf/index.vue b/src/views/wallet/wallet-xf/index.vue index f0a10ec..0d9b724 100644 --- a/src/views/wallet/wallet-xf/index.vue +++ b/src/views/wallet/wallet-xf/index.vue @@ -89,13 +89,7 @@ @click="formDialogRef.openDialog(row.id)" >编辑 - 删除 @@ -137,8 +131,7 @@ const state: BasicTableProps = reactive({ }) // table hook -const { getDataList, currentChangeHandle, sizeChangeHandle, sortChangeHandle, downBlobFile, tableStyle } = - useTable(state) +const { getDataList, currentChangeHandle, sizeChangeHandle, sortChangeHandle, downBlobFile, tableStyle } = useTable(state) // 清空搜索条件 const resetQuery = () => {