Merge branch 'dev-v1.1' of http://120.26.58.240:8888/r/flexJobAdminBClient into dev-v1.1
| | |
| | | "EnumEnterpriseWalletExpandindirectOrderStatus": true, |
| | | "EnumEnterpriseWalletSignStatus": true, |
| | | "EnumEnterpriseWalletTransactionType": true, |
| | | "EnumGetEnterpriseEmployeesQuerySignContractStatus": true, |
| | | "EnumMenuType": true, |
| | | "EnumMenuVisitLevel": true, |
| | | "EnumOcrAccess": true, |
| | |
| | | "EnumRoleWebApiDataPowerText": true, |
| | | "EnumRoleWebApiDataPowerTextForFilter": true, |
| | | "EnumSettlementCycle": true, |
| | | "EnumSettlementCycleDateMonthArray": true, |
| | | "EnumSettlementCycleDateText": true, |
| | | "EnumSettlementCycleDateUnitText": true, |
| | | "EnumSettlementCycleDateWeekArray": true, |
| | | "EnumSettlementCycleText": true, |
| | | "EnumSmsAccess": true, |
| | | "EnumTaskCheckReceiveStatus": true, |
| | |
| | | const EnumEnterpriseWalletSignStatus: typeof import('./src/constants/apiEnum')['EnumEnterpriseWalletSignStatus'] |
| | | const EnumEnterpriseWalletTransactionStatus: typeof import('./src/constants/apiEnum')['EnumEnterpriseWalletTransactionStatus'] |
| | | const EnumEnterpriseWalletTransactionType: typeof import('./src/constants/apiEnum')['EnumEnterpriseWalletTransactionType'] |
| | | const EnumGetEnterpriseEmployeesQuerySignContractStatus: typeof import('./src/constants/apiEnum')['EnumGetEnterpriseEmployeesQuerySignContractStatus'] |
| | | const EnumMenuType: typeof import('./src/constants/apiEnum')['EnumMenuType'] |
| | | const EnumMenuVisitLevel: typeof import('./src/constants/apiEnum')['EnumMenuVisitLevel'] |
| | | const EnumOcrAccess: typeof import('./src/constants/apiEnum')['EnumOcrAccess'] |
| | |
| | | const EnumRoleWebApiDataPowerText: typeof import('./src/constants/apiEnumText')['EnumRoleWebApiDataPowerText'] |
| | | const EnumRoleWebApiDataPowerTextForFilter: typeof import('./src/constants/apiEnumText')['EnumRoleWebApiDataPowerTextForFilter'] |
| | | const EnumSettlementCycle: typeof import('./src/constants/apiEnum')['EnumSettlementCycle'] |
| | | const EnumSettlementCycleDateMonthArray: typeof import('./src/constants/task')['EnumSettlementCycleDateMonthArray'] |
| | | const EnumSettlementCycleDateText: typeof import('./src/constants/task')['EnumSettlementCycleDateText'] |
| | | const EnumSettlementCycleDateUnitText: typeof import('./src/constants/task')['EnumSettlementCycleDateUnitText'] |
| | | const EnumSettlementCycleDateWeekArray: typeof import('./src/constants/task')['EnumSettlementCycleDateWeekArray'] |
| | | const EnumSettlementCycleText: typeof import('./src/constants/task')['EnumSettlementCycleText'] |
| | | const EnumSmsAccess: typeof import('./src/constants/apiEnum')['EnumSmsAccess'] |
| | | const EnumSmsTemplateType: typeof import('./src/constants/apiEnum')['EnumSmsTemplateType'] |
| | |
| | | export type { Component, Slot, Slots, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue' |
| | | import('vue') |
| | | // @ts-ignore |
| | | export type { EnumBillingMethod, EnumClientType, EnumCodeUrlScene, EnumContractTemplateStatus, EnumContractTemplateValueRecorder, EnumContractTemplateValueType, EnumDataSource, EnumDbAuditOperate, EnumElectronSignAccess, EnumEnterpriseCostStatus, EnumEnterpriseCostType, EnumEnterpriseRealMethod, EnumEnterpriseWalletAccess, EnumEnterpriseWalletExpandindirectOrderFileType, EnumEnterpriseWalletExpandindirectOrderScene, EnumEnterpriseWalletExpandindirectOrderStatus, EnumEnterpriseWalletSignStatus, EnumEnterpriseWalletTransactionType, EnumMenuType, EnumMenuVisitLevel, EnumOcrAccess, EnumPagedListOrder, EnumPayAccess, EnumPersonalFreeTime, EnumPersonalJobSeekingStatus, EnumPersonalRealMethod, EnumPersonalUserRealStatus, EnumRealAccess, EnumResourceController, EnumResourceMethod, EnumRoleWebApiDataPower, EnumSettlementCycle, EnumSmsAccess, EnumTaskCheckReceiveStatus, EnumTaskRecommendStatus, EnumTaskReleaseStatus, EnumTaskSettlementOrderStatus, EnumTaskSettlementStatus, EnumTaskStatus, EnumTaskUserArrangeStatus, EnumTaskUserHireStatus, EnumTaskUserSignContractStatus, EnumTaskUserSubmitCheckReceiveStatus, EnumUserGender, EnumUserRealMethod, EnumUserStatus, EnumUserType, EnumUserWalletTransactionType, EnumWalletTransactionStatus, GetPersonalApplyTaskInfosQueryStatus, GetPersonalHireTaskInfosQueryStatus, GetTaskInfoQueryResultApplyButton, GetTaskInfoQueryResultHireButton, EnumBillingMethod, EnumClientType, EnumCodeUrlScene, EnumContractTemplateStatus, EnumContractTemplateValueRecorder, EnumContractTemplateValueType, EnumDataSource, EnumDbAuditOperate, EnumElectronSignAccess, EnumEnterpriseCostStatus, EnumEnterpriseCostType, EnumEnterpriseRealMethod, EnumEnterpriseWalletAccess, EnumEnterpriseWalletExpandindirectOrderFileType, EnumEnterpriseWalletExpandindirectOrderScene, EnumEnterpriseWalletExpandindirectOrderStatus, EnumEnterpriseWalletSignStatus, EnumEnterpriseWalletTransactionType, EnumMenuType, EnumMenuVisitLevel, EnumOcrAccess, EnumPagedListOrder, EnumPayAccess, EnumPersonalFreeTime, EnumPersonalJobSeekingStatus, EnumPersonalRealMethod, EnumPersonalUserRealStatus, EnumRealAccess, EnumResourceController, EnumResourceMethod, EnumRoleWebApiDataPower, EnumSettlementCycle, EnumSmsAccess, EnumTaskCheckReceiveStatus, EnumTaskRecommendStatus, EnumTaskReleaseStatus, EnumTaskSettlementOrderStatus, EnumTaskSettlementStatus, EnumTaskStatus, EnumTaskUserArrangeStatus, EnumTaskUserHireStatus, EnumTaskUserSignContractStatus, EnumTaskUserSubmitCheckReceiveStatus, EnumUserGender, EnumUserRealMethod, EnumUserStatus, EnumUserType, EnumUserWalletTransactionType, EnumWalletTransactionStatus, GetPersonalApplyTaskInfosQueryStatus, GetPersonalHireTaskInfosQueryStatus, GetTaskInfoQueryResultApplyButton, GetTaskInfoQueryResultHireButton } from './src/constants/apiEnum' |
| | | export type { EnumBillingMethod, EnumClientType, EnumCodeUrlScene, EnumContractTemplateStatus, EnumContractTemplateValueRecorder, EnumContractTemplateValueType, EnumDataSource, EnumDbAuditOperate, EnumElectronSignAccess, EnumEnterpriseCostStatus, EnumEnterpriseCostType, EnumEnterpriseRealMethod, EnumEnterpriseWalletAccess, EnumEnterpriseWalletExpandindirectOrderFileType, EnumEnterpriseWalletExpandindirectOrderScene, EnumEnterpriseWalletExpandindirectOrderStatus, EnumEnterpriseWalletSignStatus, EnumEnterpriseWalletTransactionType, EnumGetEnterpriseEmployeesQuerySignContractStatus, EnumMenuType, EnumMenuVisitLevel, EnumOcrAccess, EnumPagedListOrder, EnumPayAccess, EnumPersonalFreeTime, EnumPersonalJobSeekingStatus, EnumPersonalRealMethod, EnumPersonalUserRealStatus, EnumRealAccess, EnumResourceController, EnumResourceMethod, EnumRoleWebApiDataPower, EnumSettlementCycle, EnumSmsAccess, EnumTaskCheckReceiveStatus, EnumTaskRecommendStatus, EnumTaskReleaseStatus, EnumTaskSettlementOrderStatus, EnumTaskSettlementStatus, EnumTaskStatus, EnumTaskUserArrangeStatus, EnumTaskUserHireStatus, EnumTaskUserSignContractStatus, EnumTaskUserSubmitCheckReceiveStatus, EnumUserGender, EnumUserRealMethod, EnumUserStatus, EnumUserType, EnumUserWalletTransactionType, EnumWalletTransactionStatus, GetPersonalApplyTaskInfosQueryStatus, GetPersonalHireTaskInfosQueryStatus, GetTaskInfoQueryResultApplyButton, GetTaskInfoQueryResultHireButton, EnumBillingMethod, EnumClientType, EnumCodeUrlScene, EnumContractTemplateStatus, EnumContractTemplateValueRecorder, EnumContractTemplateValueType, EnumDataSource, EnumDbAuditOperate, EnumElectronSignAccess, EnumEnterpriseCostStatus, EnumEnterpriseCostType, EnumEnterpriseRealMethod, EnumEnterpriseWalletAccess, EnumEnterpriseWalletExpandindirectOrderFileType, EnumEnterpriseWalletExpandindirectOrderScene, EnumEnterpriseWalletExpandindirectOrderStatus, EnumEnterpriseWalletSignStatus, EnumEnterpriseWalletTransactionType, EnumGetEnterpriseEmployeesQuerySignContractStatus, EnumMenuType, EnumMenuVisitLevel, EnumOcrAccess, EnumPagedListOrder, EnumPayAccess, EnumPersonalFreeTime, EnumPersonalJobSeekingStatus, EnumPersonalRealMethod, EnumPersonalUserRealStatus, EnumRealAccess, EnumResourceController, EnumResourceMethod, EnumRoleWebApiDataPower, EnumSettlementCycle, EnumSmsAccess, EnumTaskCheckReceiveStatus, EnumTaskRecommendStatus, EnumTaskReleaseStatus, EnumTaskSettlementOrderStatus, EnumTaskSettlementStatus, EnumTaskStatus, EnumTaskUserArrangeStatus, EnumTaskUserHireStatus, EnumTaskUserSignContractStatus, EnumTaskUserSubmitCheckReceiveStatus, EnumUserGender, EnumUserRealMethod, EnumUserStatus, EnumUserType, EnumUserWalletTransactionType, EnumWalletTransactionStatus, GetPersonalApplyTaskInfosQueryStatus, GetPersonalHireTaskInfosQueryStatus, GetTaskInfoQueryResultApplyButton, GetTaskInfoQueryResultHireButton } from './src/constants/apiEnum' |
| | | import('./src/constants/apiEnum') |
| | | // @ts-ignore |
| | | export type { CategoryCode, IdentityCodeEnum, EducationCodeEnum, CertificateTypeCodeEnum, WelfareCodeEnum } from './src/constants/dic' |
| | |
| | | readonly EnumEnterpriseWalletExpandindirectOrderStatus: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumEnterpriseWalletExpandindirectOrderStatus']> |
| | | readonly EnumEnterpriseWalletSignStatus: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumEnterpriseWalletSignStatus']> |
| | | readonly EnumEnterpriseWalletTransactionType: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumEnterpriseWalletTransactionType']> |
| | | readonly EnumGetEnterpriseEmployeesQuerySignContractStatus: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumGetEnterpriseEmployeesQuerySignContractStatus']> |
| | | readonly EnumMenuType: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumMenuType']> |
| | | readonly EnumMenuVisitLevel: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumMenuVisitLevel']> |
| | | readonly EnumOcrAccess: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumOcrAccess']> |
| | |
| | | readonly EnumRoleWebApiDataPowerText: UnwrapRef<typeof import('./src/constants/apiEnumText')['EnumRoleWebApiDataPowerText']> |
| | | readonly EnumRoleWebApiDataPowerTextForFilter: UnwrapRef<typeof import('./src/constants/apiEnumText')['EnumRoleWebApiDataPowerTextForFilter']> |
| | | readonly EnumSettlementCycle: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumSettlementCycle']> |
| | | readonly EnumSettlementCycleDateMonthArray: UnwrapRef<typeof import('./src/constants/task')['EnumSettlementCycleDateMonthArray']> |
| | | readonly EnumSettlementCycleDateText: UnwrapRef<typeof import('./src/constants/task')['EnumSettlementCycleDateText']> |
| | | readonly EnumSettlementCycleDateUnitText: UnwrapRef<typeof import('./src/constants/task')['EnumSettlementCycleDateUnitText']> |
| | | readonly EnumSettlementCycleDateWeekArray: UnwrapRef<typeof import('./src/constants/task')['EnumSettlementCycleDateWeekArray']> |
| | | readonly EnumSettlementCycleText: UnwrapRef<typeof import('./src/constants/task')['EnumSettlementCycleText']> |
| | | readonly EnumSmsAccess: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumSmsAccess']> |
| | | readonly EnumTaskCheckReceiveStatus: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumTaskCheckReceiveStatus']> |
| | |
| | | "dependencies": { |
| | | "@bole-12333/chat-kit": "latest", |
| | | "@bole-12333/customer-chat": "latest", |
| | | "@bole-core/components": "^1.3.13", |
| | | "@bole-core/components": "^1.3.17", |
| | | "@bole-core/core": "^1.0.7", |
| | | "@bole-core/pretty-layout": "latest", |
| | | "@bole-core/sass-utils": "latest", |
| | |
| | | Transfer = 20, |
| | | } |
| | | |
| | | /** 没写注释 */ |
| | | export enum EnumGetEnterpriseEmployeesQuerySignContractStatus { |
| | | /**灵工待签约 */ |
| | | UserWait = 10, |
| | | /**企业待签约 */ |
| | | EnterpriseWait = 20, |
| | | /**已签约 */ |
| | | Pass = 30, |
| | | } |
| | | |
| | | /** 菜单类型 */ |
| | | export enum EnumMenuType { |
| | | /**菜单 */ |
| | |
| | | export enum EnumPersonalUserRealStatus { |
| | | /**未实名 */ |
| | | UnReal = 0, |
| | | /**校验中 */ |
| | | /**认证中 */ |
| | | Checking = 10, |
| | | /**实名失败 */ |
| | | /**认证失败 */ |
| | | Fail = 99, |
| | | /**已实名 */ |
| | | Real = 100, |
| | |
| | | [EnumSettlementCycle.Week]: '每周', |
| | | }; |
| | | |
| | | export const EnumSettlementCycleDateUnitText = { |
| | | [EnumSettlementCycle.Month]: '日结算', |
| | | [EnumSettlementCycle.Week]: '结算', |
| | | }; |
| | | |
| | | export const EnumSettlementCycleDateWeekArray = [ |
| | | { label: '星期一', value: 1 }, |
| | | { label: '星期二', value: 2 }, |
| | | { label: '星期三', value: 3 }, |
| | | { label: '星期四', value: 4 }, |
| | | { label: '星期五', value: 5 }, |
| | | { label: '星期六', value: 6 }, |
| | | { label: '星期日', value: 7 }, |
| | | ]; |
| | | |
| | | export const EnumSettlementCycleDateMonthArray = [ |
| | | { label: '1日', value: 1 }, |
| | | { label: '2日', value: 2 }, |
| | | { label: '3日', value: 3 }, |
| | | { label: '4日', value: 4 }, |
| | | { label: '5日', value: 5 }, |
| | | { label: '6日', value: 6 }, |
| | | { label: '7日', value: 7 }, |
| | | { label: '8日', value: 8 }, |
| | | { label: '9日', value: 9 }, |
| | | { label: '10日', value: 10 }, |
| | | { label: '11日', value: 11 }, |
| | | { label: '12日', value: 12 }, |
| | | { label: '13日', value: 13 }, |
| | | { label: '14日', value: 14 }, |
| | | { label: '15日', value: 15 }, |
| | | { label: '16日', value: 16 }, |
| | | { label: '17日', value: 17 }, |
| | | { label: '18日', value: 18 }, |
| | | { label: '19日', value: 19 }, |
| | | { label: '20日', value: 20 }, |
| | | { label: '21日', value: 21 }, |
| | | { label: '22日', value: 22 }, |
| | | { label: '23日', value: 23 }, |
| | | { label: '24日', value: 24 }, |
| | | { label: '25日', value: 25 }, |
| | | { label: '26日', value: 26 }, |
| | | { label: '27日', value: 27 }, |
| | | { label: '28日', value: 28 }, |
| | | { label: '29日', value: 29 }, |
| | | { label: '30日', value: 30 }, |
| | | { label: '31日', value: 31 }, |
| | | ]; |
| | | |
| | | export const EnumTaskReleaseStatusText = { |
| | | [EnumTaskReleaseStatus.InProcess]: '发布中', |
| | | [EnumTaskReleaseStatus.Stopped]: '已停止', |
| | |
| | | }); |
| | | } |
| | | |
| | | /** 编辑结算名单 POST /api/flexjob/task/editTaskSettlementOrderRoster */ |
| | | export async function editTaskSettlementOrderRoster( |
| | | body: API.EditTaskSettlementOrderRosterCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<string>('/api/flexjob/task/editTaskSettlementOrderRoster', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 导出结算名单 POST /api/flexjob/task/exportTaskSettlementOrderRosters */ |
| | | export async function exportTaskSettlementOrderRosters( |
| | | body: API.ExportTaskSettlementOrderRostersCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<string>('/api/flexjob/task/exportTaskSettlementOrderRosters', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 查询开放任务分页列表 POST /api/flexjob/task/getOpenTaskInfos */ |
| | | export async function getOpenTaskInfos( |
| | | body: API.GetOpenTaskInfosQuery, |
| | |
| | | ); |
| | | } |
| | | |
| | | /** 查询任务结算日 GET /api/flexjob/task/getTaskSettlementDates */ |
| | | export async function getTaskSettlementDates( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIgetTaskSettlementDatesParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<string[]>('/api/flexjob/task/getTaskSettlementDates', { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 导入结算名单 POST /api/flexjob/task/importTaskSettlementOrderRosters */ |
| | | export async function importTaskSettlementOrderRosters( |
| | | body: API.ImportTaskSettlementOrderRostersCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.ImportTaskSettlementOrderRostersCommandResult>( |
| | | '/api/flexjob/task/importTaskSettlementOrderRosters', |
| | | { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 撤回结算 POST /api/flexjob/task/revokeTaskSettlementOrder */ |
| | | export async function revokeTaskSettlementOrder( |
| | | body: API.RevokeTaskSettlementOrderCommand, |
| | |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<string>('/api/flexjob/task/sureTaskSettlement', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 确认结算单 POST /api/flexjob/task/sureTaskSettlementOrder */ |
| | | export async function sureTaskSettlementOrder( |
| | | body: API.SureTaskSettlementOrderCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<string>('/api/flexjob/task/sureTaskSettlementOrder', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | |
| | | interface APIgetEnabledElectronSignSettingsParams { |
| | | /** 企业Id */ |
| | | enterpriseId?: string; |
| | | /** 是否查询全部 */ |
| | | all?: boolean; |
| | | } |
| | | |
| | | interface APIgetEnterpriseContractTemplateSelectParams { |
| | |
| | | } |
| | | |
| | | interface APIgetSettlementTaskUsersParams { |
| | | /** 任务Id */ |
| | | taskInfoId?: string; |
| | | /** 结算单地址 */ |
| | | settlementOrderUrl?: string; |
| | | /** 结算订单Id */ |
| | | id?: string; |
| | | } |
| | | |
| | | interface APIgetTaskEnterpriseParams { |
| | |
| | | interface APIgetTaskSelectParams { |
| | | /** 关键字 */ |
| | | keywords?: string; |
| | | } |
| | | |
| | | interface APIgetTaskSettlementDatesParams { |
| | | /** 任务开始时间 */ |
| | | beginTime?: string; |
| | | /** 任务结束时间 */ |
| | | endTime?: string; |
| | | /** 结算方式 */ |
| | | settlementCycle?: EnumSettlementCycle; |
| | | /** 结算日期 */ |
| | | settlementDate?: number; |
| | | } |
| | | |
| | | interface APIgetTaskUserHireStatusParams { |
| | |
| | | identityBackImg?: string; |
| | | /** Id */ |
| | | id?: string; |
| | | } |
| | | |
| | | interface EditTaskSettlementOrderRosterCommand { |
| | | /** 名单Id */ |
| | | id?: string; |
| | | /** 结算金额 */ |
| | | settlementAmount: number; |
| | | /** 实发金额 */ |
| | | actualSettlementAmount: number; |
| | | /** 收款账户 */ |
| | | receiveAccount: string; |
| | | /** 所属银行 */ |
| | | bank: string; |
| | | /** 开户支行名称 */ |
| | | bankBranch?: string; |
| | | } |
| | | |
| | | interface ElectronSignCallbackCommand { |
| | |
| | | Transfer = 20, |
| | | } |
| | | |
| | | enum EnumGetEnterpriseEmployeesQuerySignContractStatus { |
| | | /**灵工待签约 */ |
| | | UserWait = 10, |
| | | /**企业待签约 */ |
| | | EnterpriseWait = 20, |
| | | /**已签约 */ |
| | | Pass = 30, |
| | | } |
| | | |
| | | enum EnumMenuType { |
| | | /**菜单 */ |
| | | Menu = 10, |
| | |
| | | enum EnumPersonalUserRealStatus { |
| | | /**未实名 */ |
| | | UnReal = 0, |
| | | /**校验中 */ |
| | | /**认证中 */ |
| | | Checking = 10, |
| | | /**实名失败 */ |
| | | /**认证失败 */ |
| | | Fail = 99, |
| | | /**已实名 */ |
| | | Real = 100, |
| | |
| | | |
| | | interface ExportTaskCheckReceiveTaskUsersCommand { |
| | | /** 任务Id */ |
| | | id?: string; |
| | | } |
| | | |
| | | interface ExportTaskSettlementOrderRostersCommand { |
| | | /** 结算订单Id */ |
| | | id?: string; |
| | | } |
| | | |
| | |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultGetPersonalUserWalletBalancesQueryResult { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: GetPersonalUserWalletBalancesQueryResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultGetResourceLogsQueryResult { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultImportTaskSettlementOrderRostersCommandResult { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: ImportTaskSettlementOrderRostersCommandResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultInt32 { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | |
| | | errorCode?: string; |
| | | /** 数据 */ |
| | | data?: number; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultListDateTime { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | /** 数据 */ |
| | | data?: string[]; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | |
| | | date?: string; |
| | | /** 提交时间 */ |
| | | createdTime?: string; |
| | | checkReceiveStatus?: EnumTaskUserSubmitCheckReceiveStatus; |
| | | /** 验收照片 */ |
| | | files?: string[]; |
| | | } |
| | |
| | | |
| | | interface GetEnabledElectronSignSettingsQueryResultItem { |
| | | access?: EnumElectronSignAccess; |
| | | /** 是否禁用 */ |
| | | isDisabled?: boolean; |
| | | /** 实名费用 */ |
| | | realVerifyCost?: number; |
| | | /** 签约费用 */ |
| | |
| | | isReal?: boolean; |
| | | userSignContractStatus?: EnumTaskUserSignContractStatus; |
| | | enterpriseSignContractStatus?: EnumTaskUserSignContractStatus; |
| | | signContractStatus?: EnumGetEnterpriseEmployeesQuerySignContractStatus; |
| | | pageModel?: PagedListQueryPageModel; |
| | | } |
| | | |
| | |
| | | /** 钱包Id */ |
| | | id?: string; |
| | | access?: EnumEnterpriseWalletAccess; |
| | | /** 账号 */ |
| | | account?: string; |
| | | /** 商户Id */ |
| | | merchantId?: string; |
| | | /** 协议号 */ |
| | | code?: string; |
| | | /** 通道协议号 */ |
| | |
| | | /** 协议失效时间 */ |
| | | invalidTime?: string; |
| | | signStatus?: EnumEnterpriseWalletSignStatus; |
| | | /** 支付宝姓名 */ |
| | | name?: string; |
| | | /** 支付宝登录账号 */ |
| | | identity?: string; |
| | | scene?: EnumEnterpriseWalletExpandindirectOrderScene; |
| | | /** 转账场景说明 */ |
| | | sceneDirections?: string; |
| | | orderStatus?: EnumEnterpriseWalletExpandindirectOrderStatus; |
| | | /** 进件单任务完结时间 */ |
| | | taskFinishTime?: string; |
| | | /** 进件单审核不通过原因 */ |
| | | riskReviewRemark?: string; |
| | | sitesInfo?: GetEnterpriseWalletExpandindirectOrderQueryResultSites; |
| | | /** 附件 */ |
| | | files?: GetEnterpriseWalletExpandindirectOrderQueryResultFile[]; |
| | | expandindirectOrderStatus?: EnumEnterpriseWalletExpandindirectOrderStatus; |
| | | } |
| | | |
| | |
| | | contactPhoneNumber?: string; |
| | | /** 是否实名 */ |
| | | isReal?: boolean; |
| | | realStatus?: EnumPersonalUserRealStatus; |
| | | /** 实名失败消息 */ |
| | | realFailMessage?: string; |
| | | realMethod?: EnumUserRealMethod; |
| | | /** 我的报名 */ |
| | | taskCount?: number; |
| | |
| | | hirePassTaskCount?: number; |
| | | /** 已取消 */ |
| | | hireRefuseTaskCount?: number; |
| | | /** 余额 */ |
| | | balance?: number; |
| | | } |
| | | |
| | | type GetPersonalUserBankCardQuery = Record<string, any>; |
| | |
| | | interface GetPersonalUserInfoSignContractsQuery { |
| | | /** 用户Id */ |
| | | id?: string; |
| | | /** 灵工Id */ |
| | | enterpriseEmployeeId?: string; |
| | | pageModel?: PagedListQueryPageModel; |
| | | } |
| | | |
| | |
| | | settlementAmount?: number; |
| | | /** 实发金额/提现金额 */ |
| | | amount?: number; |
| | | /** 收款人姓名 */ |
| | | receiveName?: string; |
| | | /** 付款人账户 */ |
| | | payerAccount?: string; |
| | | /** 付款人名称 */ |
| | | payerName?: string; |
| | | /** 付款人开户行 */ |
| | | payerBank?: string; |
| | | /** 付款人支行 */ |
| | | payerBankBranch?: string; |
| | | /** 收款账户 */ |
| | | receiveAccount?: string; |
| | | /** 收款人名称 */ |
| | | receiveName?: string; |
| | | /** 收款人开户行 */ |
| | | receiveBank?: string; |
| | | /** 收款人支行 */ |
| | | receiveBankBranch?: string; |
| | | /** 币种 */ |
| | | currency?: string; |
| | | /** 用途 */ |
| | | purpose?: string; |
| | | /** 服务费 */ |
| | | serviceFee?: number; |
| | | /** 实际到账 */ |
| | | actualAmount?: number; |
| | | /** 预计到账时间 */ |
| | | arrivalTimeEnd?: string; |
| | | /** 订单支付时间 */ |
| | | transDate?: string; |
| | | /** 创建时间 */ |
| | | createdTime?: string; |
| | | transactionStatus?: EnumWalletTransactionStatus; |
| | | /** 失败原因 */ |
| | | failReason?: string; |
| | | } |
| | | |
| | | interface GetPersonalUserTransactionsQuery { |
| | |
| | | interface GetPersonalUserTransactionsQueryResultItem { |
| | | /** 收支Id */ |
| | | id?: string; |
| | | type?: EnumUserWalletTransactionType; |
| | | /** 标题 */ |
| | | title?: string; |
| | | /** 创建时间 */ |
| | | createdTime?: string; |
| | | /** 金额 */ |
| | | amount?: number; |
| | | /** 余额 */ |
| | | balance?: number; |
| | | /** 企业名称 */ |
| | | enterpriseName?: string; |
| | | /** 付款人账户 */ |
| | | payerAccount?: string; |
| | | /** 付款人名称 */ |
| | | payerName?: string; |
| | | /** 付款人账号 */ |
| | | payerUserName?: string; |
| | | /** 付款人联系人 */ |
| | | payerContacts?: string; |
| | | /** 付款人联系电话 */ |
| | | payerContactPhoneNumber?: string; |
| | | /** 收款账户 */ |
| | | receiveAccount?: string; |
| | | /** 收款人名称 */ |
| | | receiveName?: string; |
| | | /** 用途 */ |
| | | purpose?: string; |
| | | /** 创建时间 */ |
| | | createdTime?: string; |
| | | /** 交易时间 */ |
| | | transDate?: string; |
| | | } |
| | | |
| | | interface GetPersonalUserTransactionsQueryResultObjectData { |
| | |
| | | /** 总提现 */ |
| | | sumWithdraw?: number; |
| | | } |
| | | |
| | | interface GetPersonalUserWalletBalancesQuery { |
| | | /** 最小余额 */ |
| | | balanceMin?: number; |
| | | /** 最大余额 */ |
| | | balanceMax?: number; |
| | | /** 关键字 */ |
| | | keywords?: string; |
| | | pageModel?: PagedListQueryPageModel; |
| | | } |
| | | |
| | | interface GetPersonalUserWalletBalancesQueryResult { |
| | | /** 用户Id */ |
| | | id?: string; |
| | | /** 姓名 */ |
| | | name?: string; |
| | | /** 手机号 */ |
| | | contactPhoneNumber?: string; |
| | | /** 身份证号 */ |
| | | identity?: string; |
| | | /** 余额 */ |
| | | balance?: number; |
| | | pageModel?: PagedListQueryResultPageModel; |
| | | /** 数据 */ |
| | | data?: GetPersonalUserWalletBalancesQueryResultItem[]; |
| | | } |
| | | |
| | | type GetPersonalUserWalletBalancesQueryResultItem = Record<string, any>; |
| | | |
| | | interface GetResourceFieldsQueryResultItem { |
| | | /** 编号 */ |
| | |
| | | keywords?: string; |
| | | settlementOrderStatus?: EnumTaskSettlementOrderStatus; |
| | | settlementStatus?: EnumTaskSettlementStatus; |
| | | /** 结算时间-起始 */ |
| | | settlementTimeBegin?: string; |
| | | /** 结算时间-截止 */ |
| | | settlementTimeEnd?: string; |
| | | pageModel?: PagedListQueryPageModel; |
| | | } |
| | | |
| | |
| | | |
| | | interface GetSettlementTasksQueryResultItem { |
| | | /** 任务Id */ |
| | | id?: string; |
| | | /** 所属任务 */ |
| | | name?: string; |
| | | /** 任务单号 */ |
| | | code?: string; |
| | | checkReceiveStatus?: EnumTaskCheckReceiveStatus; |
| | | settlementOrderStatus?: EnumTaskSettlementOrderStatus; |
| | | /** 结算单名称 */ |
| | | settlementOrderName?: string; |
| | | /** 上传时间 */ |
| | | settlementOrderTime?: string; |
| | | /** 实发金额 */ |
| | | actualSettlementAmount?: number; |
| | | /** 结算金额 */ |
| | | settlementAmount?: number; |
| | | settlementStatus?: EnumTaskSettlementStatus; |
| | | /** 创建时间 */ |
| | | createdTime?: string; |
| | | /** 结算时间 */ |
| | | settlementTime?: string; |
| | | /** 备注 */ |
| | | settlementRemark?: string; |
| | | /** 结算人数 */ |
| | | settlementUserCount?: number; |
| | | } |
| | | |
| | | interface GetSettlementTaskUsersQueryResult { |
| | | detail?: GetSettlementTaskUsersQueryResultDetail; |
| | | /** 结算名单 */ |
| | | data?: GetSettlementTaskUsersQueryResultItem[]; |
| | | } |
| | | |
| | | interface GetSettlementTaskUsersQueryResultDetail { |
| | | /** 结算订单Id */ |
| | | id?: string; |
| | | /** 任务名称 */ |
| | | name?: string; |
| | |
| | | settlementTime?: string; |
| | | /** 备注 */ |
| | | settlementRemark?: string; |
| | | /** 结算人数 */ |
| | | settlementUserCount?: number; |
| | | } |
| | | |
| | | interface GetSettlementTaskUsersQueryResult { |
| | | detail?: GetSettlementTaskQueryResult; |
| | | /** 结算名单 */ |
| | | data?: GetSettlementTaskUsersQueryResultItem[]; |
| | | /** 错误信息 */ |
| | | errors?: GetSettlementTaskUsersQueryResultError[]; |
| | | } |
| | | |
| | | interface GetSettlementTaskUsersQueryResultError { |
| | | /** 错误信息 */ |
| | | errorMessage?: string; |
| | | /** 姓名 */ |
| | | name?: string; |
| | | /** 身份证号 */ |
| | | identity?: string; |
| | | /** 结算金额 */ |
| | | settlementAmount?: number; |
| | | /** 实发金额 */ |
| | | actualSettlementAmount?: number; |
| | | /** 收款账户 */ |
| | | receiveAccount?: string; |
| | | /** 所属银行 */ |
| | | bank?: string; |
| | | /** 开户支行名称 */ |
| | | bankBranch?: string; |
| | | /** 任务名称 */ |
| | | taskName?: string; |
| | | } |
| | | |
| | | interface GetSettlementTaskUsersQueryResultItem { |
| | | /** 任务用户Id */ |
| | | /** 结算名单Id */ |
| | | id?: string; |
| | | /** 姓名 */ |
| | | name?: string; |
| | |
| | | identity?: string; |
| | | /** 手机号 */ |
| | | contactPhoneNumber?: string; |
| | | checkReceiveStatus?: EnumTaskCheckReceiveStatus; |
| | | settlementStatus?: EnumTaskSettlementStatus; |
| | | /** 所属银行 */ |
| | | bank?: string; |
| | |
| | | /** 服务费 */ |
| | | serviceFee?: number; |
| | | settlementCycle?: EnumSettlementCycle; |
| | | /** 结算日期 */ |
| | | settlementDate?: number; |
| | | /** 福利 */ |
| | | benefits?: GetTaskInfoQueryResultBenefit[]; |
| | | /** 年龄范围最小 */ |
| | |
| | | endTime?: string; |
| | | releaseStatus?: EnumTaskReleaseStatus; |
| | | checkReceiveStatus?: EnumTaskCheckReceiveStatus; |
| | | settlementStatus?: EnumTaskSettlementStatus; |
| | | recommendStatus?: EnumTaskRecommendStatus; |
| | | /** 推荐时间 */ |
| | | recommendTime?: string; |
| | |
| | | identity?: string; |
| | | } |
| | | |
| | | interface ImportTaskSettlementOrderRostersCommand { |
| | | /** 结算订单Id */ |
| | | id?: string; |
| | | /** 导入文件地址 */ |
| | | url: string; |
| | | } |
| | | |
| | | interface ImportTaskSettlementOrderRostersCommandResult { |
| | | /** Id */ |
| | | id?: string; |
| | | /** 任务名称 */ |
| | | name?: string; |
| | | /** 任务单号 */ |
| | | code?: string; |
| | | settlementOrderStatus?: EnumTaskSettlementOrderStatus; |
| | | /** 结算单名称 */ |
| | | settlementOrderName?: string; |
| | | /** 上传时间 */ |
| | | settlementOrderTime?: string; |
| | | /** 实发金额 */ |
| | | actualSettlementAmount?: number; |
| | | /** 结算金额 */ |
| | | settlementAmount?: number; |
| | | settlementStatus?: EnumTaskSettlementStatus; |
| | | /** 结算时间 */ |
| | | settlementTime?: string; |
| | | /** 备注 */ |
| | | settlementRemark?: string; |
| | | errors?: ImportTaskSettlementOrderRostersCommandResultError[]; |
| | | } |
| | | |
| | | interface ImportTaskSettlementOrderRostersCommandResultError { |
| | | /** 错误信息 */ |
| | | errorMessage?: string; |
| | | /** 姓名 */ |
| | | name?: string; |
| | | /** 身份证号 */ |
| | | identity?: string; |
| | | /** 结算金额 */ |
| | | settlementAmount?: number; |
| | | /** 实发金额 */ |
| | | actualSettlementAmount?: number; |
| | | /** 收款账户 */ |
| | | receiveAccount?: string; |
| | | /** 所属银行 */ |
| | | bank?: string; |
| | | /** 开户支行名称 */ |
| | | bankBranch?: string; |
| | | /** 任务名称 */ |
| | | taskName?: string; |
| | | } |
| | | |
| | | interface InviteElectronSignCommand { |
| | | /** 灵工Id */ |
| | | ids?: string[]; |
| | |
| | | /** 企业Id */ |
| | | enterpriseId?: string; |
| | | access?: EnumEnterpriseWalletAccess; |
| | | /** 账号 */ |
| | | account?: string; |
| | | /** 商户Id */ |
| | | merchantId?: string; |
| | | } |
| | | |
| | | interface OpenEnterpriseWalletCommandResult { |
| | |
| | | /** 服务费 */ |
| | | serviceFee: number; |
| | | settlementCycle: EnumSettlementCycle; |
| | | /** 结算日期 */ |
| | | settlementDate: number; |
| | | /** 福利编号 */ |
| | | benefits?: string[]; |
| | | /** 年龄范围最小 */ |
| | |
| | | interface SureTaskSettlementCommand { |
| | | /** 任务Id */ |
| | | taskInfoId?: string; |
| | | } |
| | | |
| | | interface SureTaskSettlementOrderCommand { |
| | | /** 任务Id */ |
| | | taskInfoId?: string; |
| | | /** 结算单地址 */ |
| | | settlementOrderUrl?: string; |
| | | /** 结算名单 */ |
| | | taskInfoUsers?: SureTaskSettlementOrderCommandUser[]; |
| | | } |
| | | |
| | | interface SureTaskSettlementOrderCommandUser { |
| | | /** 任务用户Id */ |
| | | id?: string; |
| | | /** 姓名 */ |
| | | name?: string; |
| | | /** 所属银行 */ |
| | | bank?: string; |
| | | /** 开户支行名称 */ |
| | | bankBranch?: string; |
| | | /** 收款账户 */ |
| | | receiveAccount: string; |
| | | /** 结算金额 */ |
| | | settlementAmount: number; |
| | | /** 实发金额 */ |
| | | actualSettlementAmount: number; |
| | | } |
| | | |
| | | type SyncDatabaseCommand = Record<string, any>; |
| | |
| | | ); |
| | | } |
| | | |
| | | /** 查询个人钱包余额分页列表 POST /api/user/user/getPersonalUserWalletBalances */ |
| | | export async function getPersonalUserWalletBalances( |
| | | body: API.GetPersonalUserWalletBalancesQuery, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetPersonalUserWalletBalancesQueryResult>( |
| | | '/api/user/user/getPersonalUserWalletBalances', |
| | | { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 查询用户角色列表 GET /api/user/user/getUserInfoRoles */ |
| | | export async function getUserInfoRoles( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | |
| | | v-model="form.settlementCycle" |
| | | :value-enum="EnumSettlementCycleText" |
| | | :button-style="false" |
| | | @change="handleSettlementCycleChange" |
| | | ></ProFormRadio> |
| | | </ProFormItemV2> |
| | | </ProFormColItem> |
| | | </ProFormCol> |
| | | <ProFormCol> |
| | | <ProFormColItem :span="12"> |
| | | <ProFormColItem :span="12" class="settlement-cycle-date-form-item"> |
| | | <ProFormItemV2 |
| | | label="结算日期:" |
| | | prop="settlementCycle" |
| | | :check-rules="[{ message: '请选择结算日期' }]" |
| | | class="settlement-cycle-date-form-item" |
| | | > |
| | | {{ EnumSettlementCycleDateText[form.settlementCycle] }} |
| | | <ProFormSelect |
| | | v-model="form.settlementCycle" |
| | | :value-enum="[]" |
| | | v-model="form.settlementDate" |
| | | :value-enum="settlementDateList" |
| | | :button-style="false" |
| | | ></ProFormSelect> |
| | | {{ '日结算' }} |
| | | {{ '结算' }} |
| | | </ProFormItemV2> |
| | | </ProFormColItem> |
| | | </ProFormCol> |
| | |
| | | v-model="form.ageMaxLimit" |
| | | placeholder="请输入" |
| | | ></ProFormInputNumber> |
| | | 岁 |
| | | </ProFormItemV2> |
| | | </ProFormColItem> |
| | | </ProFormCol> |
| | |
| | | EnumBillingMethodUnitText, |
| | | EnumSettlementCycleText, |
| | | EnumSettlementCycleDateText, |
| | | EnumSettlementCycleDateMonthArray, |
| | | EnumSettlementCycleDateWeekArray, |
| | | } from '@/constants'; |
| | | import { format, FormValidator } from '@/utils'; |
| | | import dayjs from 'dayjs'; |
| | |
| | | categoryCode: CategoryCode.CertificateType, |
| | | }); |
| | | |
| | | const settlementDateList = computed(() => { |
| | | if (form.settlementCycle === EnumSettlementCycle.Month) { |
| | | return EnumSettlementCycleDateMonthArray; |
| | | } |
| | | if (form.settlementCycle === EnumSettlementCycle.Week) { |
| | | return EnumSettlementCycleDateWeekArray; |
| | | } |
| | | return []; |
| | | }); |
| | | |
| | | const state = reactive({ |
| | | checkBenefitsAll: false, |
| | | isBenefitsIndeterminate: false, |
| | |
| | | billingMethod: EnumBillingMethod.Day, |
| | | serviceFee: null, |
| | | settlementCycle: EnumSettlementCycle.Day, |
| | | settlementDate: null as number, |
| | | benefits: [] as string[], |
| | | ageMinLimit: null, |
| | | ageMaxLimit: null, |
| | |
| | | form.billingMethod = data.billingMethod; |
| | | form.serviceFee = data.serviceFee; |
| | | form.settlementCycle = data.settlementCycle; |
| | | form.settlementDate = data.settlementDate; |
| | | form.benefits = data.benefits?.map((x) => x.benefitCode) ?? []; |
| | | form.ageMinLimit = data.ageMinLimit; |
| | | form.ageMaxLimit = data.ageMaxLimit; |
| | |
| | | enabled: isEdit, |
| | | }); |
| | | |
| | | function handleSettlementCycleChange() { |
| | | form.settlementDate = null as number; |
| | | } |
| | | |
| | | function handleBack() { |
| | | closeViewPush(route, { |
| | | name: 'TaskManageList', |
| | |
| | | } |
| | | async function submit() { |
| | | try { |
| | | console.log('form.weMapInfo: ', form.weMapInfo); |
| | | let params: API.SaveTaskInfoCommand = { |
| | | name: form.name, |
| | | billingMethod: form.billingMethod, |
| | | serviceFee: form.serviceFee, |
| | | settlementCycle: form.settlementCycle, |
| | | settlementDate: form.settlementDate, |
| | | benefits: form.benefits, |
| | | ageMinLimit: form.ageMinLimit, |
| | | ageMaxLimit: form.ageMaxLimit, |
| | |
| | | min-width: 0; |
| | | flex: 1; |
| | | } |
| | | |
| | | .pro-from-item-read-content-wrapper { |
| | | width: auto; |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import { useTable, ProTableV2, defineColumns } from '@bole-core/components'; |
| | | import { useTable, ProTableV2, defineColumns, PreviewBtn } from '@bole-core/components'; |
| | | import { setOSSLink } from '@/utils'; |
| | | import { |
| | | EnumTaskUserSignContractStatus, |
| | |
| | | page: pageIndex, |
| | | orderInput: extraParamState.orderInput, |
| | | }, |
| | | id: form.value.id, |
| | | enterpriseEmployeeId: form.value.id, |
| | | }; |
| | | let res = await userServices.getPersonalUserInfoSignContracts(params); |
| | | return res; |
| | |
| | | > |
| | | <el-button text type="primary" class="pro-table-operation-btn">导入</el-button> |
| | | </BlFileUpload> |
| | | <el-button type="primary" link @click="handleDownload()">导出</el-button> |
| | | <el-button type="primary" link @click="handleExport()">导出</el-button> |
| | | </template> |
| | | </ProTableQueryFilterBar> |
| | | <ProTableV2 |
| | | v-bind="proTableProps" |
| | | :columns="SettlementListColumns" |
| | | :show-operation-column="false" |
| | | :operationBtns="operationBtns" |
| | | :auto-height="false" |
| | | ref="proTable" |
| | | :tableProps="{ |
| | |
| | | v-if="isSettlement" |
| | | class="chuck-add-or-edit-actions" |
| | | type="primary" |
| | | @click="handleSubmit" |
| | | @click="handleSubmit()" |
| | | >结算</el-button |
| | | > |
| | | </div> |
| | |
| | | import EditAccountInfoDialog from './components/EditAccountInfoDialog.vue'; |
| | | import SettleDetailDialog from './components/SettleDetailDialog.vue'; |
| | | import { Message } from '@bole-core/core'; |
| | | import { paginateList, setOssFileName, toThousand } from '@/utils'; |
| | | import { downloadFile, paginateList, setOssFileName, toThousand } from '@/utils'; |
| | | import _ from 'lodash'; |
| | | |
| | | defineOptions({ |
| | | name: 'ServiceChargeDetail', |
| | |
| | | ]); |
| | | const route = useRoute(); |
| | | const id = (route.params.id as string) ?? ''; |
| | | const url = (route.query.url as string) ?? ''; |
| | | const settlement = (route.query.settlement as string) ?? ''; |
| | | |
| | | const isSettlement = computed(() => !!url || !!settlement); |
| | | const isSettlement = computed(() => !!settlement); |
| | | |
| | | const form = reactive({ |
| | | name: '', |
| | |
| | | const state = reactive({ ...BaseState }); |
| | | |
| | | const { isLoading } = useQuery({ |
| | | queryKey: ['taskUserServices/getSettlementTaskUsers', id, url], |
| | | queryKey: ['taskUserServices/getSettlementTaskUsers', id], |
| | | queryFn: async () => { |
| | | return await taskUserServices.getSettlementTaskUsers( |
| | | { taskInfoId: id, settlementOrderUrl: url }, |
| | | { id: id }, |
| | | { |
| | | showLoading: false, |
| | | } |
| | |
| | | form.settlementOrderName = setOssFileName(res?.detail?.settlementOrderName); |
| | | form.settlementOrderTime = res?.detail?.settlementOrderTime ?? ''; |
| | | } |
| | | if (res?.errors?.length > 0) { |
| | | Message.tipMessage('存在导入错误的数据,是否导出?').then(() => { |
| | | XLSXUtils.exportToXLSX({ |
| | | workbookDataList: res.errors, |
| | | fileName: '结算导入-错误数据', |
| | | workbookHeaderMap: { |
| | | name: '姓名', |
| | | identity: '身份证号', |
| | | taskName: '任务名称', |
| | | settlementAmount: '结算金额', |
| | | actualSettlementAmount: '实发金额', |
| | | receiveAccount: '收款账户', |
| | | bank: '所属银行', |
| | | bankBranch: '开户支行名称', |
| | | errorMessage: '错误信息', |
| | | }, |
| | | }); |
| | | }); |
| | | } |
| | | // if (res?.errors?.length > 0) { |
| | | // Message.tipMessage('存在导入错误的数据,是否导出?').then(() => { |
| | | // XLSXUtils.exportToXLSX({ |
| | | // workbookDataList: res.errors, |
| | | // fileName: '结算导入-错误数据', |
| | | // workbookHeaderMap: { |
| | | // name: '姓名', |
| | | // identity: '身份证号', |
| | | // taskName: '任务名称', |
| | | // settlementAmount: '结算金额', |
| | | // actualSettlementAmount: '实发金额', |
| | | // receiveAccount: '收款账户', |
| | | // bank: '所属银行', |
| | | // bankBranch: '开户支行名称', |
| | | // errorMessage: '错误信息', |
| | | // }, |
| | | // }); |
| | | // }); |
| | | // } |
| | | getList(); |
| | | }, |
| | | enabled: !!id, |
| | |
| | | onConfirm: handleAddOrEdit, |
| | | defaultFormParams: { |
| | | id: '', |
| | | name: '', |
| | | settlementAmount: null as number, |
| | | actualSettlementAmount: null as number, |
| | | receiveAccount: '', |
| | | bank: '', |
| | | bankBranch: '', |
| | | }, |
| | | }); |
| | | |
| | | function openDialog(row?) { |
| | | function openDialog(row?: API.GetSettlementTaskUsersQueryResultItem) { |
| | | if (row) { |
| | | handleEdit({ |
| | | id: row?.id, |
| | | name: row?.name, |
| | | settlementAmount: row?.settlementAmount ?? null, |
| | | actualSettlementAmount: row?.actualSettlementAmount ?? null, |
| | | receiveAccount: row?.receiveAccount ?? '', |
| | | bank: row?.bank ?? '', |
| | | bankBranch: row?.bankBranch ?? '', |
| | | }); |
| | | } |
| | | } |
| | | |
| | | async function handleAddOrEdit() {} |
| | | |
| | | async function sureTaskSettlementOrder() { |
| | | async function handleAddOrEdit() { |
| | | try { |
| | | let params: API.SureTaskSettlementOrderCommand = { |
| | | taskInfoId: id, |
| | | settlementOrderUrl: url, |
| | | taskInfoUsers: |
| | | proTableProps.value.tableData?.length > 0 |
| | | ? proTableProps.value.tableData.map( |
| | | (x) => ({ ...x } as API.SureTaskSettlementOrderCommandUser) |
| | | ) |
| | | : [], |
| | | let params: API.EditTaskSettlementOrderRosterCommand = { |
| | | id: editForm.id, |
| | | settlementAmount: editForm.settlementAmount, |
| | | actualSettlementAmount: editForm.actualSettlementAmount, |
| | | receiveAccount: editForm.receiveAccount, |
| | | bank: editForm.bank, |
| | | bankBranch: editForm.bankBranch, |
| | | }; |
| | | let res = await taskServices.sureTaskSettlementOrder(params); |
| | | let res = await taskServices.editTaskSettlementOrderRoster(params); |
| | | if (res) { |
| | | Message.successMessage('操作成功'); |
| | | eventContext.emit('sureTaskSettlementOrder'); |
| | | handleBack(); |
| | | getList(paginationState.pageIndex); |
| | | } |
| | | } catch (error) {} |
| | | } |
| | | |
| | | function handleUploadSuccess(response: UploadUserFile & { file: File & { uid: number } }) { |
| | | if (response.path) { |
| | | // sureTaskSettlementOrder(); |
| | | importTaskSettlementOrderRosters(response.path); |
| | | } |
| | | } |
| | | |
| | | async function importTaskSettlementOrderRosters(url: string) { |
| | | try { |
| | | let params: API.ImportTaskSettlementOrderRostersCommand = { |
| | | id: id, |
| | | url: url, |
| | | }; |
| | | let res = await taskServices.importTaskSettlementOrderRosters(params); |
| | | if (res) { |
| | | Message.successMessage('操作成功'); |
| | | getList(paginationState.pageIndex); |
| | | if (res?.errors?.length > 0) { |
| | | Message.tipMessage('存在导入错误的数据,是否导出?').then(() => { |
| | | XLSXUtils.exportToXLSX({ |
| | | workbookDataList: res.errors, |
| | | fileName: '结算导入-错误数据', |
| | | workbookHeaderMap: { |
| | | name: '姓名', |
| | | identity: '身份证号', |
| | | taskName: '任务名称', |
| | | settlementAmount: '结算金额', |
| | | actualSettlementAmount: '实发金额', |
| | | receiveAccount: '收款账户', |
| | | bank: '所属银行', |
| | | bankBranch: '开户支行名称', |
| | | errorMessage: '错误信息', |
| | | }, |
| | | }); |
| | | }); |
| | | } |
| | | } |
| | | } catch (error) { |
| | | } finally { |
| | | form.settlementUrl = [] as UploadUserFile[]; |
| | | } |
| | | } |
| | | |
| | |
| | | }); |
| | | |
| | | async function handleSettle() { |
| | | sureTaskSettlementOrder(); |
| | | } |
| | | |
| | | async function sureTaskSettlementOrder() { |
| | | try { |
| | | let params: API.SureTaskSettlementCommand = { |
| | | taskInfoId: settleEditForm.id, |
| | | taskInfoId: id, |
| | | }; |
| | | console.log('params: ', params); |
| | | // let res = await taskServices.sureTaskSettlement(params); |
| | | // if (res) { |
| | | // Message.successMessage('操作成功'); |
| | | // eventContext.emit('sureTaskSettlementOrder'); |
| | | // handleBack(); |
| | | // } |
| | | let res = await taskServices.sureTaskSettlement(params); |
| | | if (res) { |
| | | Message.successMessage('操作成功'); |
| | | eventContext.emit('sureTaskSettlementOrder'); |
| | | handleBack(); |
| | | } |
| | | } catch (error) {} |
| | | } |
| | | |
| | | function handleDownload() {} |
| | | const handleExport = _.debounce( |
| | | async () => { |
| | | // if (paginationState.total === 0) { |
| | | // Message.warnMessage('没有数据可以导出哦~'); |
| | | // return; |
| | | // } |
| | | try { |
| | | let params: API.ExportTaskSettlementOrderRostersCommand = { |
| | | id: id, |
| | | }; |
| | | let res = await taskServices.exportTaskSettlementOrderRosters(params, { |
| | | responseType: 'blob', |
| | | getResponse: true, |
| | | }); |
| | | if (res) { |
| | | console.log('res: ', res); |
| | | //@ts-ignore |
| | | downloadFile(res?.data, `${form.name}-${form.code}`, 'xlsx'); |
| | | } |
| | | } catch (error) {} |
| | | }, |
| | | 1000, |
| | | { leading: true, trailing: false } |
| | | ); |
| | | |
| | | function handleBack() { |
| | | closeViewPush(route, { |
| | |
| | | @change="getList()" |
| | | /> |
| | | </QueryFilterItem> |
| | | <!-- <QueryFilterItem> |
| | | <QueryFilterItem> |
| | | <FieldDatePicker |
| | | v-model="extraParamState.time" |
| | | type="daterange" |
| | |
| | | end-placeholder="截止日期" |
| | | clearable |
| | | @change="getList()" |
| | | tooltipContent="创建时间" |
| | | tooltipContent="结算时间" |
| | | ></FieldDatePicker> |
| | | </QueryFilterItem> --> |
| | | </QueryFilterItem> |
| | | <QueryFilterItem> |
| | | <SearchInput |
| | | v-model="extraParamState.keywords" |
| | | style="width: 250px" |
| | | placeholder="任务名称" |
| | | @on-click-search="getList" |
| | | @on-click-search="getList()" |
| | | @keyup.enter="getList()" |
| | | > |
| | | </SearchInput> |
| | |
| | | </template> |
| | | <template #btn> |
| | | <el-button type="primary" link @click="handleDownloadTemplate()">结算单模板</el-button> |
| | | <el-button type="primary" @click="handleAdd()">上传结算单</el-button> |
| | | <!-- <el-button type="primary" @click="handleAdd()">上传结算单</el-button> --> |
| | | <!-- <el-button type="primary" @click="handleDownloadTemplate()">导出</el-button> --> |
| | | </template> |
| | | </ProTableQueryFilterBar> |
| | |
| | | EnumTaskSettlementOrderStatus, |
| | | EnumTaskSettlementStatus, |
| | | } from '@/constants'; |
| | | import { downloadFileByUrl, setOssFileName } from '@/utils'; |
| | | import { downloadFileByUrl, format, setOssFileName } from '@/utils'; |
| | | import * as taskServices from '@/services/api/task'; |
| | | import { ModelValueType } from 'element-plus'; |
| | | import UploadStatementDialog from './components/UploadStatementDialog.vue'; |
| | |
| | | extraProps: { |
| | | hide: (role: API.GetSettlementTasksQueryResultItem) => |
| | | !( |
| | | role.settlementOrderStatus === EnumTaskSettlementOrderStatus.Completed && |
| | | role.settlementStatus === EnumTaskSettlementStatus.Wait |
| | | role.settlementStatus === EnumTaskSettlementStatus.Wait && |
| | | role.checkReceiveStatus === EnumTaskCheckReceiveStatus.Completed |
| | | ), |
| | | }, |
| | | }, |
| | |
| | | }, |
| | | extraProps: { |
| | | hide: (role: API.GetSettlementTasksQueryResultItem) => |
| | | role.settlementStatus !== EnumTaskSettlementStatus.InProcess, |
| | | !( |
| | | role.settlementStatus === EnumTaskSettlementStatus.InProcess && |
| | | role.checkReceiveStatus === EnumTaskCheckReceiveStatus.Completed |
| | | ), |
| | | }, |
| | | }, |
| | | { |
| | |
| | | emits: { |
| | | onClick: (role: API.GetSettlementTasksQueryResultItem) => goDetail(role), |
| | | }, |
| | | extraProps: { |
| | | hide: (role: API.GetSettlementTasksQueryResultItem) => |
| | | role.settlementOrderStatus === EnumTaskSettlementOrderStatus.Wait, |
| | | }, |
| | | // extraProps: { |
| | | // hide: (role: API.GetSettlementTasksQueryResultItem) => |
| | | // role.settlementOrderStatus === EnumTaskSettlementOrderStatus.Wait, |
| | | // }, |
| | | }, |
| | | { |
| | | data: { |
| | |
| | | keywords: extraParamState.keywords, |
| | | settlementOrderStatus: extraParamState.settlementOrderStatus, |
| | | settlementStatus: extraParamState.settlementStatus, |
| | | settlementTimeBegin: format(extraParamState.time?.[0] ?? '', 'YYYY-MM-DD 00:00:00'), |
| | | settlementTimeEnd: format(extraParamState.time?.[1] ?? '', 'YYYY-MM-DD 23:59:59'), |
| | | }; |
| | | |
| | | let res = await taskServices.getSettlementTasks(params, { |
| | |
| | | columnsRenderProps: { |
| | | settlementOrderStatus: { type: 'enum', valueEnum: EnumTaskSettlementOrderStatusText }, |
| | | settlementStatus: { type: 'enum', valueEnum: EnumTaskSettlementStatusText }, |
| | | checkReceiveStatus: { type: 'enum', valueEnum: EnumTaskCheckReceiveStatusText }, |
| | | actualSettlementAmount: { type: 'money' }, |
| | | settlementAmount: { type: 'money' }, |
| | | settlementTime: { type: 'date', format: 'YYYY-MM-DD HH:mm:ss' }, |
| | | createdTime: { type: 'date', format: 'YYYY-MM-DD HH:mm:ss' }, |
| | | settlementOrderTime: { type: 'date', format: 'YYYY-MM-DD HH:mm:ss' }, |
| | | settlementOrderName: { |
| | | formatter: (row: API.GetSettlementTasksQueryResultItem) => |
| | |
| | | }); |
| | | |
| | | async function handleAddOrEdit() { |
| | | goSettlementDetail(editForm.id, editForm.settlementUrl[0]?.path); |
| | | try { |
| | | let params: API.ImportTaskSettlementOrderRostersCommand = { |
| | | id: editForm.id, |
| | | url: editForm.settlementUrl[0]?.path, |
| | | }; |
| | | let res = await taskServices.importTaskSettlementOrderRosters(params); |
| | | if (res) { |
| | | goSettlementDetail(editForm.id, editForm.settlementUrl[0]?.path); |
| | | } |
| | | } catch (error) {} |
| | | } |
| | | |
| | | const { |
| | |
| | | name: 'ServiceChargeDetail', |
| | | params: { |
| | | id: id, |
| | | }, |
| | | query: { |
| | | url: url ? url : '', |
| | | }, |
| | | }); |
| | | editForm.settlementUrl = [] as UploadUserFile[]; |
| | |
| | | :width="700" |
| | | > |
| | | <ProForm :model="form" ref="dialogForm" label-width="120px"> |
| | | <ProFormItemV2 label="所属银行:" prop="name" :check-rules="[{ message: '请输入所属银行' }]"> |
| | | <ProFormText placeholder="请输入所属银行" v-model.trim="form.name"></ProFormText> |
| | | <ProFormItemV2 label="所属银行:" prop="bank" :check-rules="[{ message: '请输入所属银行' }]"> |
| | | <ProFormText placeholder="请输入所属银行" v-model.trim="form.bank"></ProFormText> |
| | | </ProFormItemV2> |
| | | <ProFormItemV2 label="收款账户:" prop="name" :check-rules="[{ message: '请输入收款账户' }]"> |
| | | <ProFormText placeholder="请输入收款账户" v-model.trim="form.name"></ProFormText> |
| | | <ProFormItemV2 |
| | | label="开户支行:" |
| | | prop="bankBranch" |
| | | :check-rules="[{ message: '请输入所属银行' }]" |
| | | > |
| | | <ProFormText placeholder="请输入开户支行" v-model.trim="form.bankBranch"></ProFormText> |
| | | </ProFormItemV2> |
| | | <ProFormItemV2 label="结算金额:" prop="name" :check-rules="[{ message: '请输入结算金额' }]"> |
| | | <ProFormItemV2 |
| | | label="收款账户:" |
| | | prop="receiveAccount" |
| | | :check-rules="[{ message: '请输入收款账户' }]" |
| | | > |
| | | <ProFormText placeholder="请输入收款账户" v-model.trim="form.receiveAccount"></ProFormText> |
| | | </ProFormItemV2> |
| | | <ProFormItemV2 |
| | | label="结算金额:" |
| | | prop="settlementAmount" |
| | | :check-rules="[{ message: '请输入结算金额' }]" |
| | | > |
| | | <ProFormInputNumber |
| | | placeholder="请输入结算金额" |
| | | v-model.trim="form.name" |
| | | v-model.trim="form.settlementAmount" |
| | | :controls="false" |
| | | :min="0" |
| | | ></ProFormInputNumber> |
| | | </ProFormItemV2> |
| | | <ProFormItemV2 label="实发金额:" prop="name" :check-rules="[{ message: '请输入实发金额' }]"> |
| | | <ProFormItemV2 |
| | | label="实发金额:" |
| | | prop="actualSettlementAmount" |
| | | :check-rules="[{ message: '请输入实发金额' }]" |
| | | > |
| | | <ProFormInputNumber |
| | | placeholder="请输入实发金额" |
| | | v-model.trim="form.name" |
| | | v-model.trim="form.actualSettlementAmount" |
| | | :controls="false" |
| | | :min="0" |
| | | ></ProFormInputNumber> |
| | |
| | | |
| | | type Form = { |
| | | title?: string; |
| | | name: string; |
| | | id?: string; |
| | | settlementAmount: number; |
| | | actualSettlementAmount: number; |
| | | receiveAccount: string; |
| | | bank: string; |
| | | bankBranch?: string; |
| | | }; |
| | | |
| | | const visible = defineModel({ type: Boolean }); |
| | |
| | | function handleCodeChange(value: string) { |
| | | if (value) { |
| | | form.value.code = taskSelect.value?.find((item) => item.id === value)?.code ?? ''; |
| | | form.value.id = value; |
| | | } else { |
| | | Message.errorMessage('请选择任务名称'); |
| | | } |
| | |
| | | }, |
| | | { |
| | | id: '3', |
| | | enCode: 'checkReceiveStatus', |
| | | name: '验收状态', |
| | | }, |
| | | { |
| | | id: '4', |
| | | enCode: 'settlementOrderStatus', |
| | | name: '结算单状态', |
| | | }, |
| | | { |
| | | id: '4', |
| | | id: '5', |
| | | enCode: 'settlementOrderName', |
| | | name: '结算单名称', |
| | | }, |
| | | { |
| | | id: '5', |
| | | id: '6', |
| | | enCode: 'settlementOrderTime', |
| | | name: '上传时间', |
| | | }, |
| | | { |
| | | id: '6', |
| | | id: '7', |
| | | enCode: 'actualSettlementAmount', |
| | | name: '实发金额', |
| | | }, |
| | | { |
| | | id: '7', |
| | | id: '8', |
| | | enCode: 'settlementAmount', |
| | | name: '结算金额', |
| | | }, |
| | | { |
| | | id: '8', |
| | | id: '9', |
| | | enCode: 'settlementStatus', |
| | | name: '结算状态', |
| | | }, |
| | | { |
| | | id: '9', |
| | | id: '10', |
| | | enCode: 'createdTime', |
| | | name: '创建时间', |
| | | }, |
| | | { |
| | | id: '11', |
| | | enCode: 'settlementTime', |
| | | name: '结算时间', |
| | | }, |
| | | { |
| | | id: '10', |
| | | id: '12', |
| | | enCode: 'settlementRemark', |
| | | name: '备注', |
| | | }, |