| | |
| | | </QueryFilterItem> |
| | | </template> |
| | | </ProTableQueryFilterBar> |
| | | <ProTableV2 |
| | | v-bind="proTableProps" |
| | | :columns="CustomerRechargeManageColumns" |
| | | :operationBtns="operationBtns" |
| | | > |
| | | <ProTableV2 v-bind="proTableProps" :columns="column" :operationBtns="operationBtns"> |
| | | </ProTableV2> |
| | | </AppContainer> |
| | | <CustomerRechargeDialog v-bind="dialogProps" /> |
| | |
| | | } from '@bole-core/components'; |
| | | import * as enterpriseCooperationWalletServices from '@/services/api/enterpriseCooperationWallet'; |
| | | import CustomerRechargeDialog from './components/CustomerRechargeDialog.vue'; |
| | | import { CustomerRechargeManageColumns } from './constants'; |
| | | import { Message } from '@bole-core/core'; |
| | | |
| | | defineOptions({ |
| | | name: 'CustomerRechargeManage', |
| | | }); |
| | | |
| | | const operationBtns = defineOperationBtns([ |
| | | { |
| | | data: { |
| | | enCode: 'confirmBtn', |
| | | name: '确认', |
| | | }, |
| | | const operationBtnMap: Record<string, OperationBtnType> = { |
| | | confirmBtn: { |
| | | emits: { |
| | | onClick: (role) => openDialog(role, false), |
| | | }, |
| | |
| | | role.transactionStatus !== EnumEnterpriseCooperationWalletTransactionStatus.WaitSure, |
| | | }, |
| | | }, |
| | | { |
| | | data: { |
| | | enCode: 'detailBtn', |
| | | name: '详情', |
| | | }, |
| | | detailBtn: { |
| | | emits: { |
| | | onClick: (role) => openDialog(role, true), |
| | | }, |
| | |
| | | role.transactionStatus === EnumEnterpriseCooperationWalletTransactionStatus.WaitSure, |
| | | }, |
| | | }, |
| | | ]); |
| | | }; |
| | | const { column, operationBtns, checkSubModuleItemShow } = useAccess({ |
| | | operationBtnMap, |
| | | }); |
| | | |
| | | const router = useRouter(); |
| | | const BaseState = { |