| | |
| | | "FlexEnterpriseCertificationStatusText": true, |
| | | "FlexEnterpriseSettingStatus": true, |
| | | "FlexEnterpriseSettingStatusText": true, |
| | | "FlexEnterpriseStatus": true, |
| | | "FlexEnterpriseStatusText": true, |
| | | "FlexTaskWorkerHireEnum": true, |
| | | "FlexTaskWorkerHireEnumText": true, |
| | | "FlexWorkerEleSignEnum": true, |
| | |
| | | export type { EditorType, EditorType } from './src/constants/editor' |
| | | import('./src/constants/editor') |
| | | // @ts-ignore |
| | | export type { EnterpriseConfigureType, FlexEnterpriseSettingStatus, FlexEnterpriseStatus, VerifyStatus, FlexEnterpriseCertificationStatus, MessageChannelEnum, SignChannelEnum, ChargeTypeEnum, EnterpriseConfigureType, FlexEnterpriseSettingStatus, FlexEnterpriseStatus, VerifyStatus, FlexEnterpriseCertificationStatus, MessageChannelEnum, SignChannelEnum, ChargeTypeEnum } from './src/constants/enterprise' |
| | | export type { EnterpriseConfigureType, FlexEnterpriseSettingStatus, VerifyStatus, FlexEnterpriseCertificationStatus, MessageChannelEnum, SignChannelEnum, ChargeTypeEnum, EnterpriseConfigureType, FlexEnterpriseSettingStatus, VerifyStatus, FlexEnterpriseCertificationStatus, MessageChannelEnum, SignChannelEnum, ChargeTypeEnum } from './src/constants/enterprise' |
| | | import('./src/constants/enterprise') |
| | | // @ts-ignore |
| | | export type { AreaType, AuthorizeType, Gender, AreaType, AuthorizeType, Gender } from './src/constants/enum' |
| | |
| | | readonly FlexEnterpriseCertificationStatusText: UnwrapRef<typeof import('./src/constants/enterprise')['FlexEnterpriseCertificationStatusText']> |
| | | readonly FlexEnterpriseSettingStatus: UnwrapRef<typeof import('./src/constants/enterprise')['FlexEnterpriseSettingStatus']> |
| | | readonly FlexEnterpriseSettingStatusText: UnwrapRef<typeof import('./src/constants/enterprise')['FlexEnterpriseSettingStatusText']> |
| | | readonly FlexEnterpriseStatus: UnwrapRef<typeof import('./src/constants/enterprise')['FlexEnterpriseStatus']> |
| | | readonly FlexEnterpriseStatusText: UnwrapRef<typeof import('./src/constants/enterprise')['FlexEnterpriseStatusText']> |
| | | readonly FlexTaskWorkerHireEnum: UnwrapRef<typeof import('./src/constants/cPerson')['FlexTaskWorkerHireEnum']> |
| | | readonly FlexTaskWorkerHireEnumText: UnwrapRef<typeof import('./src/constants/cPerson')['FlexTaskWorkerHireEnumText']> |
| | | readonly FlexWorkerEleSignEnum: UnwrapRef<typeof import('./src/constants/cPerson')['FlexWorkerEleSignEnum']> |
| | |
| | | [FlexEnterpriseSettingStatus.IsSetting]: '已配置', |
| | | }; |
| | | |
| | | export enum FlexEnterpriseStatus { |
| | | /** |
| | | * 冻结 |
| | | */ |
| | | Frozen = -10, |
| | | /** |
| | | * 正常 |
| | | */ |
| | | Normal = 10, |
| | | } |
| | | |
| | | export const FlexEnterpriseStatusText = { |
| | | [FlexEnterpriseStatus.Frozen]: '冻结', |
| | | [FlexEnterpriseStatus.Normal]: '正常', |
| | | }; |
| | | |
| | | export enum VerifyStatus { |
| | | /** |
| | | * 未验证 |
| | |
| | | // @ts-ignore |
| | | import { request } from '@/utils/request'; |
| | | |
| | | /** 查询企业详情 GET /api/user/enterprise/getEnterprise */ |
| | | export async function getEnterprise( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIgetEnterpriseParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetEnterpriseQueryResult>('/api/user/enterprise/getEnterprise', { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 查询企业电子签配置 GET /api/user/enterprise/getEnterpriseElectronSignSetting */ |
| | | export async function getEnterpriseElectronSignSetting( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIgetEnterpriseElectronSignSettingParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetEnterpriseElectronSignSettingQueryResult>( |
| | | '/api/user/enterprise/getEnterpriseElectronSignSetting', |
| | | { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 查询企业信息分页列表数据 POST /api/user/enterprise/getEnterprises */ |
| | | export async function getEnterprises(body: API.GetEnterprisesQuery, options?: API.RequestConfig) { |
| | | return request<API.PagedListQueryResultGetEnterprisesQueryResultItem>( |
| | |
| | | ); |
| | | } |
| | | |
| | | /** 查询企业短信配置 GET /api/user/enterprise/getEnterpriseSmsSetting */ |
| | | export async function getEnterpriseSmsSetting( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIgetEnterpriseSmsSettingParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetEnterpriseSmsSettingQueryResult>( |
| | | '/api/user/enterprise/getEnterpriseSmsSetting', |
| | | { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 保存企业 POST /api/user/enterprise/saveEnterprise */ |
| | | export async function saveEnterprise(body: API.SaveEnterpriseCommand, options?: API.RequestConfig) { |
| | | return request<string>('/api/user/enterprise/saveEnterprise', { |
| | |
| | | parentId?: string; |
| | | } |
| | | |
| | | interface APIgetEnterpriseElectronSignSettingParams { |
| | | /** Id */ |
| | | id?: string; |
| | | } |
| | | |
| | | interface APIgetEnterpriseParams { |
| | | /** Id */ |
| | | id?: string; |
| | | } |
| | | |
| | | interface APIgetEnterpriseSmsSettingParams { |
| | | /** Id */ |
| | | id?: string; |
| | | } |
| | | |
| | | interface APIgetMenuParams { |
| | | /** Id */ |
| | | id?: string; |
| | |
| | | |
| | | interface DeleteRoleCommand { |
| | | ids: string[]; |
| | | } |
| | | |
| | | interface DictionaryCategory { |
| | | id?: string; |
| | | createdTime?: string; |
| | | updatedTime?: string; |
| | | /** 排序 */ |
| | | sort?: number; |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 创建操作人 */ |
| | | createdUserInfoId?: string; |
| | | /** 最后更新操作人 */ |
| | | updatedUserInfoId?: string; |
| | | /** 是否删除 */ |
| | | isDeleted?: boolean; |
| | | /** 编号 */ |
| | | code: string; |
| | | /** 名称 */ |
| | | name: string; |
| | | /** 字段名(逗号隔开) */ |
| | | fieldNames?: string; |
| | | /** 备注 */ |
| | | remark?: string; |
| | | } |
| | | |
| | | interface DictionaryData { |
| | | id?: string; |
| | | createdTime?: string; |
| | | updatedTime?: string; |
| | | /** 排序 */ |
| | | sort?: number; |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 创建操作人 */ |
| | | createdUserInfoId?: string; |
| | | /** 最后更新操作人 */ |
| | | updatedUserInfoId?: string; |
| | | /** 是否删除 */ |
| | | isDeleted?: boolean; |
| | | /** 类别Id */ |
| | | categoryId?: string; |
| | | category?: DictionaryCategory; |
| | | /** 上级Id */ |
| | | parentId?: string; |
| | | parent?: DictionaryData; |
| | | /** 下级 */ |
| | | children?: DictionaryData[]; |
| | | /** 字典路径 */ |
| | | path?: string; |
| | | /** 编号 */ |
| | | code?: string; |
| | | /** 显示内容 */ |
| | | content: string; |
| | | /** 字段1 */ |
| | | field1?: string; |
| | | /** 字段2 */ |
| | | field2?: string; |
| | | /** 字段3 */ |
| | | field3?: string; |
| | | /** 字段4 */ |
| | | field4?: string; |
| | | /** 字段5 */ |
| | | field5?: string; |
| | | /** 是否禁用 */ |
| | | isDisabled?: boolean; |
| | | } |
| | | |
| | | interface DictionaryDataQueryResult { |
| | | /** 内容 */ |
| | | content?: string; |
| | | } |
| | | |
| | | enum EnumClientType { |
| | |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: GetAliyunOSSAcsQueryResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultGetEnterpriseElectronSignSettingQueryResult { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: GetEnterpriseElectronSignSettingQueryResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultGetEnterpriseQueryResult { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: GetEnterpriseQueryResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultGetEnterpriseSmsSettingQueryResult { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: GetEnterpriseSmsSettingQueryResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | |
| | | categoryCode?: string; |
| | | /** 类别名称 */ |
| | | categoryName?: string; |
| | | category?: GetDictionaryDatasQueryResultItemCategory; |
| | | /** 上级Id */ |
| | | parentId?: string; |
| | | /** 编号 */ |
| | |
| | | isDisabled?: boolean; |
| | | } |
| | | |
| | | interface GetDictionaryDatasQueryResultItemCategory { |
| | | /** 类别编号 */ |
| | | code?: string; |
| | | /** 名称 */ |
| | | name?: string; |
| | | interface GetEnterpriseElectronSignSettingQueryResult { |
| | | /** Id */ |
| | | id?: string; |
| | | realAccess?: EnumRealAccess; |
| | | /** 实名费用 */ |
| | | realVerifyCost?: number; |
| | | /** 签约费用 */ |
| | | signCost?: number; |
| | | /** 一口价 */ |
| | | mergeSignCost?: number; |
| | | } |
| | | |
| | | interface GetEnterpriseQueryResult { |
| | | /** Id */ |
| | | id?: string; |
| | | /** 企业全称 */ |
| | | enterpriseName?: string; |
| | | /** 统一社会信用代码 */ |
| | | societyCreditCode?: string; |
| | | /** 法人姓名 */ |
| | | legalPerson?: string; |
| | | /** 法人身份证号 */ |
| | | legalIdentity?: string; |
| | | /** 所在省份 */ |
| | | provinceContent?: string; |
| | | /** 所在城市 */ |
| | | cityContent?: string; |
| | | /** 所属行业 */ |
| | | industryTypeContent?: string; |
| | | /** 主营业务 */ |
| | | mainBusiness?: string; |
| | | /** 联系人 */ |
| | | contacts?: string; |
| | | /** 联系电话 */ |
| | | contactPhoneNumber?: string; |
| | | /** 联系邮箱 */ |
| | | contactEmail?: string; |
| | | /** 账号 */ |
| | | userName?: string; |
| | | } |
| | | |
| | | interface GetEnterpriseSmsSettingQueryResult { |
| | | /** Id */ |
| | | id?: string; |
| | | smsAccess?: EnumSmsAccess; |
| | | /** 短信费用 */ |
| | | smsCost?: number; |
| | | } |
| | | |
| | | interface GetEnterprisesQuery { |
| | |
| | | interface GetEnterprisesQueryResultItem { |
| | | /** Id */ |
| | | id?: string; |
| | | /** 企业全称 */ |
| | | enterpriseName?: string; |
| | | /** 法人姓名 */ |
| | | legalPerson?: string; |
| | | /** 统一社会信用代码 */ |
| | | societyCreditCode?: string; |
| | | /** 是否实名 */ |
| | | isReal?: boolean; |
| | | /** 联系人 */ |
| | | contacts?: string; |
| | | /** 联系电话 */ |
| | | contactNumber?: string; |
| | | /** 所在省份Id */ |
| | | provinceId?: string; |
| | | province?: DictionaryDataQueryResult; |
| | | /** 所在城市Id */ |
| | | cityId?: string; |
| | | city?: DictionaryDataQueryResult; |
| | | /** 所属行业Id */ |
| | | industryTypeId?: string; |
| | | industryType?: DictionaryDataQueryResult; |
| | | /** 是否已校验银行账户 */ |
| | | isCheckedBankCard?: boolean; |
| | | realAccess?: EnumRealAccess; |
| | | smsAccess?: EnumSmsAccess; |
| | | contactPhoneNumber?: string; |
| | | /** 所在省份 */ |
| | | provinceContent?: string; |
| | | /** 所在城市 */ |
| | | cityContent?: string; |
| | | /** 所属行业 */ |
| | | industryTypeContent?: string; |
| | | /** 是否已配置 */ |
| | | isConfigured?: boolean; |
| | | } |
| | |
| | | } |
| | | |
| | | interface GetOperationUserInfosQueryResultItemRole { |
| | | /** 用户Id */ |
| | | userInfoId?: string; |
| | | /** 角色Id */ |
| | | id?: string; |
| | | /** 名称 */ |
| | |
| | | interface SaveEnterpriseCommand { |
| | | /** Id */ |
| | | id?: string; |
| | | enterpriseAuth: SaveEnterpriseCommandAuth; |
| | | /** 企业全称 */ |
| | | enterpriseName: string; |
| | | /** 统一社会信用代码 */ |
| | | societyCreditCode: string; |
| | | /** 法人姓名 */ |
| | | legalPerson?: string; |
| | | /** 法人身份证号 */ |
| | | legalIdentity?: string; |
| | | /** 所在省份Id */ |
| | | provinceId?: string; |
| | | province?: DictionaryData; |
| | | /** 所在城市Id */ |
| | | cityId?: string; |
| | | city?: DictionaryData; |
| | | /** 所属行业Id */ |
| | | industryTypeId?: string; |
| | | industryType?: DictionaryData; |
| | | /** 主营业务 */ |
| | | mainBusiness?: string; |
| | | /** 联系人 */ |
| | |
| | | userName?: string; |
| | | /** 密码 */ |
| | | password?: string; |
| | | } |
| | | |
| | | interface SaveEnterpriseCommandAuth { |
| | | /** 企业全称 */ |
| | | enterpriseName: string; |
| | | /** 统一社会信用代码 */ |
| | | societyCreditCode: string; |
| | | /** 法人姓名 */ |
| | | legalPerson?: string; |
| | | /** 法人身份证号 */ |
| | | legalIdentity?: string; |
| | | } |
| | | |
| | | interface SaveMenuButtonCommand { |
| | |
| | | <template #query> |
| | | <QueryFilterItem tip-content="配置状态"> |
| | | <FieldRadio |
| | | v-model="extraParamState.flexEnterpriseSettingStatus" |
| | | :value-enum="FlexEnterpriseSettingStatusText" |
| | | v-model="extraParamState.isConfigured" |
| | | :value-enum="[ |
| | | { |
| | | value: true, |
| | | label: '已配置', |
| | | }, |
| | | { |
| | | value: false, |
| | | label: '未配置', |
| | | }, |
| | | ]" |
| | | buttonStyle |
| | | showAllBtn |
| | | @change="getList()" |
| | |
| | | </QueryFilterItem> |
| | | <QueryFilterItem> |
| | | <SearchInput |
| | | v-model="extraParamState.searchWord" |
| | | v-model="extraParamState.keywords" |
| | | style="width: 200px" |
| | | placeholder="企业名称/法人/联系人" |
| | | @on-click-search="getList" |
| | |
| | | <ProTableV2 v-bind="proTableProps" :columns="column" :operationBtns="operationBtns"> |
| | | </ProTableV2> |
| | | </AppContainer> |
| | | <ConfigureDialog v-bind="dialogProps" /> |
| | | <!-- <ConfigureDialog v-bind="dialogProps" /> --> |
| | | </LoadingLayout> |
| | | </template> |
| | | |
| | |
| | | FieldRadio, |
| | | } from '@bole-core/components'; |
| | | import { useAccess, useGlobalEventContext } from '@/hooks'; |
| | | import { |
| | | SearchType, |
| | | FlexEnterpriseSettingStatusText, |
| | | FlexEnterpriseSettingStatus, |
| | | FlexEnterpriseCertificationStatusText, |
| | | EnterpriseConfigureType, |
| | | MessageChannelEnum, |
| | | VerifyStatus, |
| | | SignChannelEnum, |
| | | ChargeTypeEnum, |
| | | FlexEnterpriseStatus, |
| | | } from '@/constants'; |
| | | import { EnterpriseConfigureType } from '@/constants'; |
| | | import ConfigureDialog from './components/ConfigureDialog.vue'; |
| | | import { OrderInputType, Message } from '@bole-core/core'; |
| | | import { useQueryClient } from '@tanstack/vue-query'; |
| | | import { Message } from '@bole-core/core'; |
| | | import * as enterpriseServices from '@/services/api/enterprise'; |
| | | |
| | | defineOptions({ |
| | | name: 'EnterpriseManageList', |
| | |
| | | editBtn: { emits: { onClick: (role) => addOrEditEnterprise(role) } }, |
| | | detailBtn: { emits: { onClick: (role) => handleDetail(role) } }, |
| | | configBtn: { emits: { onClick: (role) => openDialog(role) } }, |
| | | freezeBtn: { emits: { onClick: (role) => handleSetStatus(role) } }, |
| | | }; |
| | | |
| | | const { checkSubModuleItemShow, column, operationBtns } = useAccess({ |
| | |
| | | const BaseState = { |
| | | loading: true, |
| | | }; |
| | | const queryClient = useQueryClient(); |
| | | const typeList = ref([]); |
| | | |
| | | const state = reactive({ ...BaseState }); |
| | | |
| | |
| | | } = useTable( |
| | | async ({ pageIndex, pageSize }, extraParamState) => { |
| | | try { |
| | | let params: API.GetFlexEnterpriseInput = { |
| | | let params: API.GetEnterprisesQuery = { |
| | | pageModel: { |
| | | rows: pageSize, |
| | | page: pageIndex, |
| | | orderInput: extraParamState.orderInput, |
| | | }, |
| | | flexEnterpriseSettingStatus: extraParamState.flexEnterpriseSettingStatus, |
| | | searchWord: extraParamState.searchWord, |
| | | isConfigured: extraParamState.isConfigured, |
| | | keywords: extraParamState.keywords, |
| | | }; |
| | | |
| | | let res = await flexEnterpriseServices.getFlexEnterpriseList(params, { |
| | | let res = await enterpriseServices.getEnterprises(params, { |
| | | showLoading: !state.loading, |
| | | }); |
| | | return res; |
| | |
| | | }, |
| | | { |
| | | defaultExtraParams: { |
| | | searchWord: '', |
| | | orderInput: [{ property: 'id', order: OrderInputType.Desc }], |
| | | flexEnterpriseSettingStatus: '' as any as FlexEnterpriseSettingStatus, |
| | | keywords: '', |
| | | orderInput: [{ property: 'id', order: EnumPagedListOrder.Desc }], |
| | | isConfigured: '' as any as boolean, |
| | | }, |
| | | queryKey: ['flexEnterpriseServices/getFlexEnterpriseList'], |
| | | columnsRenderProps: { |
| | | settingStatus: { type: 'enum', valueEnum: FlexEnterpriseSettingStatusText }, |
| | | certificationStatus: { type: 'enum', valueEnum: FlexEnterpriseCertificationStatusText }, |
| | | }, |
| | | columnsRenderProps: {}, |
| | | } |
| | | ); |
| | | |
| | | function openDialog(row?: API.FlexEnterpriseDto) { |
| | | function openDialog(row?: API.GetEnterprisesQueryResultItem) { |
| | | if (row) { |
| | | handleEdit({ |
| | | id: row.id, |
| | | enterpriseConfigureType: EnterpriseConfigureType.Bank, |
| | | flexEnterpirseId: row.id, |
| | | openBank: row.flexEnterpriseBankDto?.openBank, |
| | | openBranchBank: row.flexEnterpriseBankDto?.openBranchBank, |
| | | bankAccount: row.flexEnterpriseBankDto?.bankAccount, |
| | | verifyStatus: row.flexEnterpriseBankDto?.verifyStatus, |
| | | signChannel: row.enterpriseSignSettingDto?.signChannel, |
| | | chargeType: row.enterpriseSignSettingDto?.chargeType, |
| | | realVerifyCost: row.enterpriseSignSettingDto?.realVerifyCost ?? 0, |
| | | signCost: row.enterpriseSignSettingDto?.signCost ?? 0, |
| | | mergeSignCost: row.enterpriseSignSettingDto?.mergeSignCost ?? 0, |
| | | messageCost: row.flexEnterpriseMessageSettingDto?.messageCost ?? 0, |
| | | messageChannel: row.flexEnterpriseMessageSettingDto?.messageChannel, |
| | | }); |
| | | } else { |
| | | handleAdd({ |
| | | enterpriseConfigureType: EnterpriseConfigureType.Bank, |
| | | }); |
| | | handleAdd(); |
| | | } |
| | | } |
| | | |
| | |
| | | onConfirm: handleAddOrEdit, |
| | | defaultFormParams: { |
| | | id: '', |
| | | flexEnterpirseId: '', |
| | | enterpriseConfigureType: '' as any as EnterpriseConfigureType, |
| | | openBank: '', |
| | | openBranchBank: '', |
| | | bankAccount: '', |
| | | verifyStatus: '' as any as VerifyStatus, |
| | | signChannel: '' as any as SignChannelEnum, |
| | | chargeType: '' as any as ChargeTypeEnum, |
| | | realVerifyCost: 0, |
| | | signCost: 0, |
| | | mergeSignCost: 0, |
| | | messageCost: 0, |
| | | messageChannel: '' as any as MessageChannelEnum, |
| | | }, |
| | | }); |
| | | |
| | | async function handleAddOrEdit(type: EnterpriseConfigureType) { |
| | | try { |
| | | let res; |
| | | if (type === EnterpriseConfigureType.Bank) { |
| | | res = await createOrEditFlexEnterpriseBankSetting(); |
| | | } |
| | | // if (type === EnterpriseConfigureType.Bank) { |
| | | // res = await createOrEditFlexEnterpriseBankSetting(); |
| | | // } |
| | | if (type === EnterpriseConfigureType.Electronic) { |
| | | res = await createOrEditFlexEnterpriseSignSetting(); |
| | | } |
| | |
| | | } catch (error) {} |
| | | } |
| | | |
| | | async function createOrEditFlexEnterpriseBankSetting() { |
| | | try { |
| | | let params: API.CreateOrEditFlexEnterpriseBankInput = { |
| | | id: editForm.id, |
| | | openBank: editForm.openBank, |
| | | openBranchBank: editForm.openBranchBank, |
| | | bankAccount: editForm.bankAccount, |
| | | verifyStatus: editForm.verifyStatus, |
| | | flexEnterpirseId: editForm.flexEnterpirseId, |
| | | }; |
| | | return await flexEnterpriseServices.createOrEditFlexEnterpriseBankSetting(params); |
| | | } catch (error) {} |
| | | } |
| | | // async function createOrEditFlexEnterpriseBankSetting() { |
| | | // try { |
| | | // let params: API.CreateOrEditFlexEnterpriseBankInput = { |
| | | // id: editForm.id, |
| | | // openBank: editForm.openBank, |
| | | // openBranchBank: editForm.openBranchBank, |
| | | // bankAccount: editForm.bankAccount, |
| | | // verifyStatus: editForm.verifyStatus, |
| | | // flexEnterpirseId: editForm.flexEnterpirseId, |
| | | // }; |
| | | // return await flexEnterpriseServices.createOrEditFlexEnterpriseBankSetting(params); |
| | | // } catch (error) {} |
| | | // } |
| | | async function createOrEditFlexEnterpriseSignSetting() { |
| | | try { |
| | | let params: API.CreateOrEditFlexEnterpriseSignSettingInput = { |
| | | let params: API.SetEnterpriseElectronSignSettingCommand = { |
| | | id: editForm.id, |
| | | flexEnterpirseId: editForm.flexEnterpirseId, |
| | | signChannel: editForm.signChannel, |
| | | chargeType: editForm.chargeType, |
| | | realVerifyCost: editForm.realVerifyCost, |
| | | signCost: editForm.signCost, |
| | | mergeSignCost: editForm.mergeSignCost, |
| | | }; |
| | | return await flexEnterpriseServices.createOrEditFlexEnterpriseSignSetting(params); |
| | | return await enterpriseServices.setEnterpriseElectronSignSetting(params); |
| | | } catch (error) {} |
| | | } |
| | | async function createOrEditFlexEnterpriseMessageSetting() { |
| | | try { |
| | | let params: API.CreateOrEditFlexEnterpriseMessageSettingInput = { |
| | | let params: API.SetEnterpriseSmsSettingCommand = { |
| | | id: editForm.id, |
| | | flexEnterpirseId: editForm.flexEnterpirseId, |
| | | messageChannel: editForm.messageChannel, |
| | | messageCost: editForm.messageCost, |
| | | }; |
| | | return await flexEnterpriseServices.createOrEditFlexEnterpriseMessageSetting(params); |
| | | return await enterpriseServices.setEnterpriseSmsSetting(params); |
| | | } catch (error) {} |
| | | } |
| | | |
| | | async function handleSetStatus(row: API.FlexEnterpriseDto) { |
| | | try { |
| | | let params: API.SetFlexEnterpriseStatusInput = { |
| | | id: row.id, |
| | | status: |
| | | row.status === FlexEnterpriseStatus.Frozen |
| | | ? FlexEnterpriseStatus.Normal |
| | | : FlexEnterpriseStatus.Frozen, |
| | | }; |
| | | let res = await flexEnterpriseServices.setFlexEnterpriseStatus(params); |
| | | if (res) { |
| | | Message.successMessage('操作成功'); |
| | | getList(paginationState.pageIndex); |
| | | } |
| | | } catch (error) {} |
| | | } |
| | | |
| | | function addOrEditEnterprise(row?: API.FlexEnterpriseDto) { |
| | | function addOrEditEnterprise(row?: API.GetEnterprisesQueryResultItem) { |
| | | router.push({ name: 'AddOrEditEnterprise', params: { id: row?.id ?? '' } }); |
| | | } |
| | | function handleDetail(row: API.FlexEnterpriseDto) { |
| | | function handleDetail(row: API.GetEnterprisesQueryResultItem) { |
| | | router.push({ name: 'EnterpriseDetail', params: { id: row?.id ?? '' } }); |
| | | } |
| | | </script> |
| | |
| | | </ProFormCol> |
| | | <ProFormCol> |
| | | <ProFormColItem :span="12"> |
| | | <ProFormItemV2 label="法人姓名:" prop="legalPersonName"> |
| | | <ProFormItemV2 label="法人姓名:" prop="legalPerson"> |
| | | <ProFormText |
| | | v-model.trim="form.legalPersonName" |
| | | v-model.trim="form.legalPerson" |
| | | :maxlength="30" |
| | | placeholder="请输入法人姓名" |
| | | /> |
| | |
| | | </ProFormCol> |
| | | <ProFormCol> |
| | | <ProFormColItem :span="12"> |
| | | <ProFormItemV2 label="法人身份证号:" prop="legalPersonIdNumber"> |
| | | <ProFormItemV2 label="法人身份证号:" prop="legalIdentity"> |
| | | <ProFormText |
| | | v-model.trim="form.legalPersonIdNumber" |
| | | v-model.trim="form.legalIdentity" |
| | | :maxlength="30" |
| | | placeholder="请输入法人身份证号" |
| | | /> |
| | |
| | | </ProFormCol> |
| | | <ProFormCol> |
| | | <ProFormColItem :span="12"> |
| | | <ProFormItemV2 label="所在省份:" prop="proviceName"> |
| | | <ProFormItemV2 label="所在省份:" prop="proviceId"> |
| | | <ProFormText |
| | | v-model.trim="form.proviceName" |
| | | v-model.trim="form.proviceId" |
| | | :maxlength="30" |
| | | placeholder="请输入所在省份" |
| | | /> |
| | |
| | | </ProFormCol> |
| | | <ProFormCol> |
| | | <ProFormColItem :span="12"> |
| | | <ProFormItemV2 label="所属行业:" prop="belongIndustryType"> |
| | | <ProFormItemV2 label="所属行业:" prop="industryTypeId"> |
| | | <ProFormSelect |
| | | v-model="form.industryTypeId" |
| | | placeholder="请选择所属行业" |
| | | :value-enum="typeList" |
| | | enum-value-key="id" |
| | | enum-label-key="name" |
| | | clearable |
| | | v-model="form.belongIndustryType" |
| | | ></ProFormSelect> |
| | | </ProFormItemV2> |
| | | </ProFormColItem> |
| | | </ProFormCol> |
| | | <ProFormCol> |
| | | <ProFormColItem :span="12"> |
| | | <ProFormItemV2 label="所在城市:" prop="cityName"> |
| | | <ProFormItemV2 label="所在城市:" prop="cityId"> |
| | | <ProFormText |
| | | v-model.trim="form.cityName" |
| | | v-model.trim="form.cityId" |
| | | :maxlength="30" |
| | | placeholder="请输入所在城市" |
| | | /> |
| | |
| | | </ProFormCol> |
| | | <ProFormCol> |
| | | <ProFormColItem :span="24"> |
| | | <ProFormItemV2 label="主营业务:" prop="cityName"> |
| | | <ProFormItemV2 label="主营业务:" prop="mainBusiness"> |
| | | <ProFormTextArea |
| | | v-model="form.cityName" |
| | | v-model="form.mainBusiness" |
| | | maxlength="200" |
| | | :rows="6" |
| | | show-word-limit |
| | |
| | | <ProFormColItem :span="12"> |
| | | <ProFormItemV2 |
| | | label="联系人:" |
| | | prop="contact" |
| | | prop="contacts" |
| | | :check-rules="[{ message: '请输入联系人' }]" |
| | | > |
| | | <ProFormText |
| | | v-model.trim="form.contact" |
| | | v-model.trim="form.contacts" |
| | | :maxlength="30" |
| | | placeholder="请输入联系人" |
| | | /> |
| | |
| | | <ProFormColItem :span="12"> |
| | | <ProFormItemV2 |
| | | label="联系电话:" |
| | | prop="contactPhone" |
| | | prop="contactPhoneNumber" |
| | | :check-rules="[{ message: '请输入联系电话', type: 'phone' }]" |
| | | > |
| | | <ProFormText v-model.trim="form.contactPhone" placeholder="请输入联系电话" /> |
| | | <ProFormText v-model.trim="form.contactPhoneNumber" placeholder="请输入联系电话" /> |
| | | </ProFormItemV2> |
| | | </ProFormColItem> |
| | | </ProFormCol> |
| | | <ProFormCol> |
| | | <ProFormColItem :span="12"> |
| | | <ProFormItemV2 label="邮箱:" prop="email"> |
| | | <ProFormItemV2 label="邮箱:" prop="contactEmail"> |
| | | <ProFormText |
| | | v-model.trim="form.email" |
| | | v-model.trim="form.contactEmail" |
| | | :maxlength="30" |
| | | placeholder="请输入邮箱" |
| | | :formatter="filterCN" |
| | |
| | | <ProFormColItem :span="12"> |
| | | <ProFormItemV2 |
| | | label="账号:" |
| | | prop="contact" |
| | | prop="userName" |
| | | :check-rules="[{ message: '请输入账号' }]" |
| | | > |
| | | <ProFormText v-model.trim="form.contact" :maxlength="30" placeholder="请输入账号" /> |
| | | <ProFormText |
| | | v-model.trim="form.userName" |
| | | :maxlength="30" |
| | | placeholder="请输入账号" |
| | | /> |
| | | </ProFormItemV2> |
| | | </ProFormColItem> |
| | | </ProFormCol> |
| | |
| | | ProFormColItem, |
| | | } from '@bole-core/components'; |
| | | import { FormRules, FormInstance } from 'element-plus'; |
| | | import { SearchType } from '@/constants'; |
| | | import * as enterpriseServices from '@/services/api/enterprise'; |
| | | import { useRouteView, useGlobalEventContext, GlobalEvent } from '@/hooks'; |
| | | import _ from 'lodash'; |
| | | import { validateFormList, filterCN } from '@/utils'; |
| | |
| | | const form = reactive({ |
| | | id: '', |
| | | enterpriseName: '', |
| | | legalPersonName: '', |
| | | legalPersonIdNumber: '', |
| | | legalPerson: '', |
| | | legalIdentity: '', |
| | | societyCreditCode: '', |
| | | proviceName: '', |
| | | cityName: '', |
| | | belongIndustryType: '', |
| | | contact: '', |
| | | contactPhone: '', |
| | | email: '', |
| | | industryTypeId: '', |
| | | mainBusiness: '', |
| | | proviceId: '', |
| | | cityId: '', |
| | | contacts: '', |
| | | contactPhoneNumber: '', |
| | | contactEmail: '', |
| | | userName: '', |
| | | }); |
| | | |
| | | onMounted(async () => {}); |
| | | |
| | | const { isLoading } = useQuery({ |
| | | // queryKey: ['insureSupplierService/getInsureSupplierInfoById', props.id], |
| | | // queryFn: async () => { |
| | | // return await insureSupplierService.getInsureSupplierInfoById( |
| | | // { id: props.id }, |
| | | // { |
| | | // showLoading: false, |
| | | // } |
| | | // ); |
| | | // }, |
| | | queryKey: ['enterpriseServices/getEnterprise', props.id], |
| | | queryFn: async () => { |
| | | return await enterpriseServices.getEnterprise( |
| | | { id: props.id }, |
| | | { |
| | | showLoading: false, |
| | | } |
| | | ); |
| | | }, |
| | | onSuccess(data) {}, |
| | | enabled: computed(() => !!props.id), |
| | | }); |
| | |
| | | |
| | | async function handleCreateOrEditFlexEnterprise() { |
| | | try { |
| | | let params: API.CreateOrEditFlexEnterpriseInput = { |
| | | let params: API.SaveEnterpriseCommand = { |
| | | enterpriseName: form.enterpriseName, |
| | | legalPersonName: form.legalPersonName, |
| | | legalPersonIdNumber: form.legalPersonIdNumber, |
| | | legalPerson: form.legalPerson, |
| | | legalIdentity: form.legalIdentity, |
| | | societyCreditCode: form.societyCreditCode, |
| | | proviceName: form.proviceName, |
| | | cityName: form.cityName, |
| | | belongIndustryType: form.belongIndustryType, |
| | | contact: form.contact, |
| | | contactPhone: form.contactPhone, |
| | | // email: form.email, |
| | | provinceId: form.proviceId, |
| | | cityId: form.cityId, |
| | | industryTypeId: form.industryTypeId, |
| | | mainBusiness: form.mainBusiness, |
| | | contacts: form.contacts, |
| | | contactPhoneNumber: form.contactPhoneNumber, |
| | | contactEmail: form.contactEmail, |
| | | userName: form.userName, |
| | | }; |
| | | if (isEdit.value) { |
| | | params.id = props.id; |
| | | } |
| | | let res = await flexEnterpriseServices.createOrEditFlexEnterprise(params); |
| | | let res = await enterpriseServices.saveEnterprise(params); |
| | | if (res) { |
| | | Message.successMessage(isEdit ? '编辑成功' : '发布成功'); |
| | | eventContext.emit(isEdit ? 'enterprise:edit' : 'enterprise:add'); |
| | |
| | | SignChannelEnum, |
| | | SignChannelEnumText, |
| | | VerifyStatusText, |
| | | VerifyStatusColor, |
| | | VerifyStatus, |
| | | MessageChannelEnum, |
| | | MessageChannelEnumText, |
New file |
| | |
| | | <template> |
| | | <div>SignDetailView</div> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | defineOptions({ |
| | | name: 'SignDetailView', |
| | | }); |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | @use '@/style/common.scss' as *; |
| | | </style> |
| | |
| | | <ProFormCol> |
| | | <ProFormColItem :span="12"> |
| | | <ProFormItemV2 label="任务名称:" prop="name"> |
| | | <ProFormText v-model.trim="detail.name" /> |
| | | <ProFormText v-model.trim="detail?.name" /> |
| | | </ProFormItemV2> |
| | | </ProFormColItem> |
| | | </ProFormCol> |
| | | <ProFormCol> |
| | | <ProFormColItem :span="12"> |
| | | <ProFormItemV2 label="任务名称:" prop="name"> |
| | | <RadioWithExtra |
| | | v-model="detail" |
| | | :value-enum="TrainSalaryTypeTextList" |
| | | enumLabelKey="text" |
| | | enum-value-key="value" |
| | | :showExtra="state.consultForm.salaryType === ConsultSalaryType.Input" |
| | | > |
| | | <template #extra> |
| | | <ProFormInputNumber |
| | | :controls="false" |
| | | :min="0" |
| | | :max="999" |
| | | v-model="state.consultForm.startMonthlySalary" |
| | | placeholder="请输入" |
| | | ></ProFormInputNumber> |
| | | </template> |
| | | </RadioWithExtra> |
| | | </ProFormItemV2> |
| | | <ProFormItemV2 label="任务名称:" prop="name"> </ProFormItemV2> |
| | | </ProFormColItem> |
| | | </ProFormCol> |
| | | </ProForm> |
| | |
| | | // queryFn: async () => { |
| | | // return await customerServices.getParkCustomerManageBaseDetail({ id: id }); |
| | | // }, |
| | | placeholderData: () => ({} as API.GetUserClientForBackOutput), |
| | | placeholderData: () => ({}), |
| | | // enabled: !!id, |
| | | }); |
| | | </script> |