From a8651ec657fd2ef85cacc6660916dc847a932e1f Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期一, 10 十一月 2025 16:36:05 +0800
Subject: [PATCH] fix: bug
---
src/views/FinanceManage/components/CustomerBalanceManageView.vue | 94 +++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 94 insertions(+), 0 deletions(-)
diff --git a/src/views/FinanceManage/components/CustomerBalanceManageView.vue b/src/views/FinanceManage/components/CustomerBalanceManageView.vue
new file mode 100644
index 0000000..fb9a877
--- /dev/null
+++ b/src/views/FinanceManage/components/CustomerBalanceManageView.vue
@@ -0,0 +1,94 @@
+<template>
+ <LoadingLayout :loading="state.loading">
+ <AppContainer>
+ <ProTableV2
+ v-bind="proTableProps"
+ :columns="CustomerBalanceManageColumns"
+ :operationBtns="operationBtns"
+ >
+ </ProTableV2>
+ </AppContainer>
+ </LoadingLayout>
+</template>
+
+<script setup lang="ts">
+import {
+ ProTableV2,
+ LoadingLayout,
+ AppContainer,
+ useTable,
+ defineOperationBtns,
+} from '@bole-core/components';
+import * as enterpriseCooperationWalletServices from '@/services/api/enterpriseCooperationWallet';
+import { CustomerBalanceManageColumns } from '../constants';
+
+defineOptions({
+ name: 'CustomerBalanceManageView',
+});
+
+const operationBtns = defineOperationBtns([
+ {
+ data: {
+ enCode: 'recordBtn',
+ name: '鍏呭�艰褰�',
+ },
+ emits: {
+ onClick: (role: API.GetCooperationWalletsQueryResultItem) => goDetail(role),
+ },
+ },
+]);
+
+const router = useRouter();
+const BaseState = {
+ loading: true,
+};
+
+const state = reactive({ ...BaseState });
+
+onMounted(async () => {
+ await getList();
+ state.loading = false;
+});
+
+const {
+ getDataSource: getList,
+ proTableProps,
+ paginationState,
+ extraParamState,
+ reset,
+} = useTable(
+ async ({ pageIndex, pageSize }, extraParamState) => {
+ try {
+ let params: API.GetCooperationWalletsQuery = {
+ pageModel: {
+ rows: pageSize,
+ page: pageIndex,
+ orderInput: extraParamState.orderInput,
+ },
+ };
+
+ let res = await enterpriseCooperationWalletServices.getCooperationWallets(params, {
+ showLoading: !state.loading,
+ });
+ return res;
+ } catch (error) {}
+ },
+ {
+ defaultExtraParams: {
+ orderInput: [{ property: 'id', order: EnumPagedListOrder.Desc }],
+ },
+ columnsRenderProps: {
+ balance: { type: 'money' },
+ },
+ }
+);
+
+function goDetail(row: API.GetCooperationWalletsQueryResultItem) {
+ router.push({
+ name: 'CustomerRechargeRecord',
+ params: {
+ id: row?.id ?? '',
+ },
+ });
+}
+</script>
--
Gitblit v1.9.1