| | |
| | | v-model.trim="form.contact_type" |
| | | :value-enum="EnumWeChatPayApplymentContactTypeText" |
| | | :button-style="false" |
| | | :convertEnumValue="false" |
| | | /> |
| | | </ProFormItemV2> |
| | | <ProFormItemV2 |
| | |
| | | :checkRules="[{ message: '请输入线下场所省市编码', type: 'number' }]" |
| | | > |
| | | <ProFormText v-model.trim="form.biz_address_code" placeholder="请输入线下场所省市编码" /> |
| | | <el-button type="primary" link @click="downloadAddressCodeTemplate" |
| | | >省市编码模板</el-button |
| | | > |
| | | </ProFormItemV2> |
| | | <ProFormItemV2 |
| | | label="线下场所地址:" |
| | |
| | | prop="account_bank" |
| | | :checkRules="[{ message: '请输入开户银行' }]" |
| | | > |
| | | <ProFormText v-model.trim="form.account_bank" placeholder="请输入开户银行" /> |
| | | <!-- <ProFormText v-model.trim="form.account_bank" placeholder="请输入开户银行" /> --> |
| | | <WeChatPayWalletBanksSelect |
| | | v-model.trim="form.account_bank" |
| | | placeholder="请输入开户银行" |
| | | clearable |
| | | /> |
| | | </ProFormItemV2> |
| | | <ProFormItemV2 |
| | | label="开户银行省市编码:" |
| | |
| | | :checkRules="[{ message: '请输入开户银行省市编码' }]" |
| | | > |
| | | <ProFormText v-model.trim="form.bank_address_code" placeholder="请输入开户银行省市编码" /> |
| | | <el-button type="primary" link @click="downloadAddressCodeTemplate">省市编码模板</el-button> |
| | | </ProFormItemV2> |
| | | <ProFormItemV2 |
| | | label="开户银行银行号:" |
| | |
| | | EnumWeChatPayApplymentSalesScenesTypeText, |
| | | EnumWeChatPayApplymentBankAccountTypeText, |
| | | } from '@/constants'; |
| | | import { convertApi2FormUrl, convertApi2FormUrlOnlyOne, downloadFileByUrl, format } from '@/utils'; |
| | | import { |
| | | convertApi2FormUrl, |
| | | convertApi2FormUrlOnlyOne, |
| | | downloadFileByUrl, |
| | | format, |
| | | convertApi2FormUrls, |
| | | } from '@/utils'; |
| | | import { Message } from '@bole-core/core'; |
| | | import WeChatPayWalletBanksSelect from './WeChatPayWalletBanksSelect.vue'; |
| | | |
| | | defineOptions({ |
| | | name: 'WechatConfigureView', |
| | |
| | | |
| | | const form = reactive({ |
| | | business_code: '', |
| | | contact_type: '' as any as EnumWeChatPayApplymentContactType, |
| | | contact_type: EnumWeChatPayApplymentContactType.LEGAL, |
| | | contact_name: '', |
| | | contact_id_doc_type: '' as any as EnumWeChatPayApplymentIdDocType, |
| | | contact_id_number: '', |
| | |
| | | format(x.ubo_period_end, 'YYYY-MM-DD'), |
| | | ], |
| | | })) |
| | | : []; |
| | | : [ |
| | | { |
| | | ubo_id_doc_type: '' as any as EnumWeChatPayApplymentIdDocType, |
| | | ubo_id_doc_copy: [], |
| | | ubo_id_doc_name: '', |
| | | ubo_id_doc_number: '', |
| | | ubo_id_doc_address: '', |
| | | ubo_period: [], |
| | | }, |
| | | ]; |
| | | form.merchant_shortname = data.business_info?.merchant_shortname ?? ''; |
| | | form.service_phone = data.business_info?.service_phone ?? ''; |
| | | form.sales_scenes_type = data.business_info?.sales_info?.sales_scenes_type ?? []; |
| | |
| | | form.biz_address_code = data.business_info?.sales_info?.biz_store_info?.biz_address_code; |
| | | form.biz_store_address = |
| | | data.business_info?.sales_info?.biz_store_info?.biz_store_address ?? ''; |
| | | form.store_entrance_pic = |
| | | data.business_info?.sales_info?.biz_store_info?.store_entrance_pic.length > 0 |
| | | ? data.business_info?.sales_info?.biz_store_info?.store_entrance_pic.map((x) => |
| | | convertApi2FormUrl(x) |
| | | ) |
| | | : []; |
| | | form.indoor_pic = |
| | | data.business_info?.sales_info?.biz_store_info?.indoor_pic.length > 0 |
| | | ? data.business_info?.sales_info?.biz_store_info?.indoor_pic.map((x) => |
| | | convertApi2FormUrl(x) |
| | | ) |
| | | : []; |
| | | form.store_entrance_pic = convertApi2FormUrls( |
| | | data.business_info?.sales_info?.biz_store_info?.store_entrance_pic |
| | | ); |
| | | form.indoor_pic = convertApi2FormUrls( |
| | | data.business_info?.sales_info?.biz_store_info?.indoor_pic |
| | | ); |
| | | form.mp_appid = data.business_info?.sales_info?.mp_info?.mp_appid ?? ''; |
| | | form.mp_sub_appid = data.business_info?.sales_info?.mp_info?.mp_sub_appid ?? ''; |
| | | form.mp_pics = |
| | | data.business_info?.sales_info?.mp_info?.mp_pics.length > 0 |
| | | ? data.business_info?.sales_info?.mp_info?.mp_pics.map((x) => convertApi2FormUrl(x)) |
| | | : []; |
| | | form.mp_pics = convertApi2FormUrls(data.business_info?.sales_info?.mp_info?.mp_pics); |
| | | form.mini_program_appid = |
| | | data.business_info?.sales_info?.mini_program_info?.mini_program_appid ?? ''; |
| | | form.mini_program_sub_appid = |
| | | data.business_info?.sales_info?.mini_program_info?.mini_program_sub_appid ?? ''; |
| | | form.mini_program_pics = |
| | | data.business_info?.sales_info?.mini_program_info?.mini_program_pics.length > 0 |
| | | ? data.business_info?.sales_info?.mini_program_info?.mini_program_pics.map((x) => |
| | | convertApi2FormUrl(x) |
| | | ) |
| | | : []; |
| | | form.mini_program_pics = convertApi2FormUrls( |
| | | data.business_info?.sales_info?.mini_program_info?.mini_program_pics |
| | | ); |
| | | form.app_appid = data.business_info?.sales_info?.app_info?.app_appid ?? ''; |
| | | form.app_sub_appid = data.business_info?.sales_info?.app_info?.app_sub_appid ?? ''; |
| | | form.app_pics = |
| | | data.business_info?.sales_info?.app_info?.app_pics.length > 0 |
| | | ? data.business_info?.sales_info?.app_info?.app_pics.map((x) => convertApi2FormUrl(x)) |
| | | : []; |
| | | form.app_pics = convertApi2FormUrls(data.business_info?.sales_info?.app_info?.app_pics); |
| | | form.domain = data.business_info?.sales_info?.web_info?.domain ?? ''; |
| | | form.web_authorisation = convertApi2FormUrlOnlyOne( |
| | | data.business_info?.sales_info?.web_info?.web_authorisation ?? '' |
| | | ); |
| | | form.sub_corp_id = data.business_info?.sales_info?.wework_info?.sub_corp_id ?? ''; |
| | | form.wework_pics = |
| | | data.business_info?.sales_info?.wework_info?.wework_pics.length > 0 |
| | | ? data.business_info?.sales_info?.wework_info?.wework_pics.map((x) => convertApi2FormUrl(x)) |
| | | : []; |
| | | form.wework_pics = convertApi2FormUrls( |
| | | data.business_info?.sales_info?.wework_info?.wework_pics |
| | | ); |
| | | form.settlement_id = data.settlement_info?.settlement_id ?? ''; |
| | | form.qualification_type = data.settlement_info?.qualification_type ?? ''; |
| | | form.qualifications = |
| | | data.settlement_info?.qualifications?.length > 0 |
| | | ? data.settlement_info?.qualifications.map((x) => convertApi2FormUrl(x)) |
| | | : []; |
| | | form.qualifications = convertApi2FormUrls(data.settlement_info?.qualifications); |
| | | form.bank_account_type = data.bank_account_info?.bank_account_type; |
| | | form.account_name = data.bank_account_info?.account_name ?? ''; |
| | | form.account_bank = data.bank_account_info?.account_bank ?? ''; |
| | |
| | | } |
| | | |
| | | function deleteUboInfo(index: number) { |
| | | if (form.ubo_info_list.length <= 1) { |
| | | Message.errorMessage('至少保留一个受益人'); |
| | | return; |
| | | } |
| | | form.ubo_info_list.splice(index, 1); |
| | | } |
| | | |
| | |
| | | '网站授权函' |
| | | ); |
| | | } |
| | | function downloadAddressCodeTemplate() { |
| | | downloadFileByUrl( |
| | | 'https://parkmanagement.oss-cn-hangzhou.aliyuncs.com/FlexJob/temp/%E3%80%8A%E7%9C%81%E5%B8%82%E5%8C%BA%E7%BC%96%E5%8F%B7%E5%AF%B9%E7%85%A7%E8%A1%A8%E3%80%8B.xlsx', |
| | | '省市编码模版' |
| | | ); |
| | | } |
| | | |
| | | defineExpose({ |
| | | onConfirm: enterpriseWalletExpandindirectCreate, |