wupengfei
3 天以前 8050d4647fde521b270ce5e1fd0610f95cbd6487
feat: 微信
4个文件已修改
15 ■■■■■ 已修改文件
.eslintrc-auto-import.json 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
auto-imports.d.ts 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/constants/enterpriseWallet.ts 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/EnterpriseManage/components/WechatConfigureView.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.eslintrc-auto-import.json
@@ -136,6 +136,7 @@
    "EnumWeChatPayApplymentSalesScenesType": true,
    "EnumWeChatPayApplymentSalesScenesTypeText": true,
    "EnumWeChatPayApplymentState": true,
    "EnumWeChatPayApplymentStateText": true,
    "EnumWeChatPayApplymentSubjectType": true,
    "EnumWeChatPayApplymentSubjectTypeText": true,
    "EnumWeChatPaySettlementModifyVerifyResult": true,
auto-imports.d.ts
@@ -141,6 +141,7 @@
  const EnumWeChatPayApplymentSalesScenesType: typeof import('./src/constants/apiEnum')['EnumWeChatPayApplymentSalesScenesType']
  const EnumWeChatPayApplymentSalesScenesTypeText: typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentSalesScenesTypeText']
  const EnumWeChatPayApplymentState: typeof import('./src/constants/apiEnum')['EnumWeChatPayApplymentState']
  const EnumWeChatPayApplymentStateText: typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentStateText']
  const EnumWeChatPayApplymentSubjectType: typeof import('./src/constants/apiEnum')['EnumWeChatPayApplymentSubjectType']
  const EnumWeChatPayApplymentSubjectTypeText: typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentSubjectTypeText']
  const EnumWeChatPaySettlementModifyVerifyResult: typeof import('./src/constants/apiEnum')['EnumWeChatPaySettlementModifyVerifyResult']
@@ -483,6 +484,7 @@
    readonly EnumWeChatPayApplymentSalesScenesType: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumWeChatPayApplymentSalesScenesType']>
    readonly EnumWeChatPayApplymentSalesScenesTypeText: UnwrapRef<typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentSalesScenesTypeText']>
    readonly EnumWeChatPayApplymentState: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumWeChatPayApplymentState']>
    readonly EnumWeChatPayApplymentStateText: UnwrapRef<typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentStateText']>
    readonly EnumWeChatPayApplymentSubjectType: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumWeChatPayApplymentSubjectType']>
    readonly EnumWeChatPayApplymentSubjectTypeText: UnwrapRef<typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentSubjectTypeText']>
    readonly EnumWeChatPaySettlementModifyVerifyResult: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumWeChatPaySettlementModifyVerifyResult']>
src/constants/enterpriseWallet.ts
@@ -99,3 +99,7 @@
  [EnumWeChatPayApplymentBankAccountType.BANK_ACCOUNT_TYPE_PERSONAL]:
    '经营者个人银行卡(仅个体户可选择)',
};
export const EnumWeChatPayApplymentStateText = {
  [EnumWeChatPayApplymentState.APPLYMENT_STATE_EDITTING]: '对公银行账户',
};
src/views/EnterpriseManage/components/WechatConfigureView.vue
@@ -1,6 +1,6 @@
<template>
  <LoadingLayout :loading="isLoading">
    <ProForm :model="form" ref="dialogForm" label-width="210px">
    <ProForm :model="form" ref="dialogForm" label-width="210px" :is-read="isDetail">
      <ProFormItemV2
        label="业务申请编号:"
        prop="business_code"
@@ -1161,6 +1161,7 @@
const dialogForm = ref<FormInstance>();
const form = reactive({
  applyment_state: '' as any as EnumWeChatPayApplymentState,
  business_code: '',
  contact_type: '' as any as EnumWeChatPayApplymentContactType,
  contact_name: '',
@@ -1244,6 +1245,10 @@
  bank_branch_area: [] as number[],
});
const isDetail = computed(
  () => form.applyment_state === EnumWeChatPayApplymentState.APPLYMENT_STATE_FINISHED
);
const EnumWeChatPayApplymentCertTypeTextList = computed(() => {
  if (form.subject_type === EnumWeChatPayApplymentSubjectType.SUBJECT_TYPE_INSTITUTIONS) {
    return EnumWeChatPayApplymentCertTypeTextForSYDW;
@@ -1293,6 +1298,7 @@
    });
  },
  onSuccess(data) {
    form.applyment_state = data.applyment_state;
    form.business_code = data.business_code ?? '';
    form.contact_type = data.contact_info?.contact_type;
    form.contact_name = data.contact_info?.contact_name ?? '';