| | |
| | | name: 'WeChatPayWalletBanksSelect', |
| | | }); |
| | | |
| | | // type Props = { |
| | | // }; |
| | | type Props = { |
| | | bank_account_type?: EnumWeChatPayApplymentBankAccountType; |
| | | }; |
| | | |
| | | // const props = withDefaults(defineProps<Props>(), {}); |
| | | const props = withDefaults(defineProps<Props>(), {}); |
| | | |
| | | const bank_alias = defineModel<string>('bank_alias'); |
| | | const account_bank = defineModel<string>('account_bank'); |
| | |
| | | onMounted(() => { |
| | | getList(); |
| | | }); |
| | | |
| | | watch( |
| | | () => props.bank_account_type, |
| | | (newVal) => { |
| | | bank_alias.value = ''; |
| | | account_bank.value = ''; |
| | | account_bank_code.value = '' as any as number; |
| | | bank_alias_code.value = ''; |
| | | need_bank_branch.value = false; |
| | | getList(); |
| | | } |
| | | ); |
| | | |
| | | const { |
| | | getDataSource: getList, |
| | |
| | | try { |
| | | let params: API.GetEnterpriseWeChatPayWalletBanksQuery = { |
| | | pageModel: { |
| | | rows: 200, |
| | | rows: pageSize, |
| | | page: pageIndex, |
| | | }, |
| | | bank_account_type: 0, |
| | | bank_account_type: props.bank_account_type, |
| | | }; |
| | | |
| | | let res = await enterpriseWalletServices.getEnterpriseWeChatPayWalletBanks(params, { |
| | |
| | | keywords: '', |
| | | }, |
| | | queryKey: ['enterpriseWalletServices/getEnterpriseWeChatPayWalletBanks'], |
| | | initialPageSize: 200, |
| | | } |
| | | ); |
| | | |
| | | function handleAccountBankChange(bank_alias: string) { |
| | | console.log('bank_alias: ', bank_alias); |
| | | const bank = proTableProps.value.tableData.find((item) => item.bank_alias === bank_alias); |
| | | if (bank) { |
| | | account_bank.value = bank.account_bank; |