wupengfei
3 天以前 00bf552e6da4ccafec6d486bca2a99fb3a7d0731
src/views/EnterpriseManage/components/WechatConfigureView.vue
@@ -153,6 +153,7 @@
          v-model="form.subject_type"
          :valueEnum="EnumWeChatPayApplymentSubjectTypeText"
          placeholder="请选择主体类型"
          @change="handleSubjectTypeChange"
        >
        </ProFormSelect>
      </ProFormItemV2>
@@ -896,7 +897,7 @@
              v-model:file-url="form.web_authorisation"
              :limit="1"
              :limitFileSize="10"
              accept="jpg/jpeg,png,pdf"
              accept="jpg/jpeg,png"
            ></ProFormUpload>
            <el-button
              style="margin-left: 10px"
@@ -1027,7 +1028,7 @@
      >
        <ProFormSelect
          v-model="form.bank_account_type"
          :valueEnum="EnumWeChatPayApplymentBankAccountTypeText"
          :valueEnum="bank_account_typeList"
          placeholder="请选择结算银行账户类型"
        >
        </ProFormSelect>
@@ -1122,6 +1123,7 @@
  EnumWeChatPayApplymentSalesScenesType,
  EnumWeChatPayApplymentSalesScenesTypeText,
  EnumWeChatPayApplymentBankAccountTypeText,
  EnumWeChatPayApplymentBankAccountTypeTextForGTH,
  BooleanOptions,
} from '@/constants';
import { convertApi2FormUrlOnlyOne, downloadFileByUrl, format, convertApi2FormUrls } from '@/utils';
@@ -1267,6 +1269,13 @@
    return EnumWeChatPayApplymentContactTypeTextForZFJG;
  }
  return EnumWeChatPayApplymentIdDocTypeText;
});
const bank_account_typeList = computed(() => {
  if (form.subject_type === EnumWeChatPayApplymentSubjectType.SUBJECT_TYPE_INDIVIDUAL) {
    return EnumWeChatPayApplymentBankAccountTypeTextForGTH;
  }
  return EnumWeChatPayApplymentBankAccountTypeText;
});
const { isLoading, refetch } = useQuery({
@@ -1739,6 +1748,13 @@
  );
}
function handleSubjectTypeChange() {
  form.cert_type = '' as any as EnumWeChatPayApplymentCertType;
  form.id_holder_type = '' as any as EnumWeChatPayApplymentIdHolderType;
  form.id_doc_type = '' as any as EnumWeChatPayApplymentIdDocType;
  form.bank_account_type = EnumWeChatPayApplymentBankAccountType.BANK_ACCOUNT_TYPE_CORPORATE;
}
defineExpose({
  onConfirm: openEnterpriseWeChatPayWallet,
});