| | |
| | | CommonServerCodeUrls = 4, |
| | | /**文件 */ |
| | | CommonServerFileUtils = 5, |
| | | /**事件 */ |
| | | CommonServerEventUtils = 6, |
| | | /**文字识别 */ |
| | | CommonServerOcrUtils = 6, |
| | | CommonServerOcrUtils = 7, |
| | | /**日志记录 */ |
| | | CommonServerLogRecords = 7, |
| | | CommonServerLogRecords = 8, |
| | | /**同步数据库 */ |
| | | CommonServerSyncDatabase = 8, |
| | | CommonServerSyncDatabase = 9, |
| | | /**短信工具 */ |
| | | CommonServerSmsUtils = 9, |
| | | CommonServerSmsUtils = 10, |
| | | /**配置 */ |
| | | CommonServerSettings = 10, |
| | | CommonServerSettings = 11, |
| | | /**用户认证 */ |
| | | UserServerAuth = 11, |
| | | UserServerAuth = 12, |
| | | /**用户菜单 */ |
| | | UserServerMenu = 12, |
| | | UserServerMenu = 13, |
| | | /**用户资源 */ |
| | | UserServerResource = 13, |
| | | UserServerResource = 14, |
| | | /**用户角色 */ |
| | | UserServerRole = 14, |
| | | UserServerRole = 15, |
| | | /**用户信息 */ |
| | | UserServerUser = 15, |
| | | UserServerUser = 16, |
| | | /**用户钱包 */ |
| | | UserServerUserWallet = 16, |
| | | UserServerUserWallet = 17, |
| | | /**电子签 */ |
| | | UserServerElectronSign = 17, |
| | | UserServerElectronSign = 18, |
| | | /**用户简历 */ |
| | | UserServerUserResume = 18, |
| | | UserServerUserResume = 19, |
| | | /**企业信息 */ |
| | | UserServerEnterprise = 19, |
| | | UserServerEnterprise = 20, |
| | | /**企业钱包 */ |
| | | UserServerEnterpriseWallet = 20, |
| | | UserServerEnterpriseWallet = 21, |
| | | /**企业合作钱包 */ |
| | | UserServerEnterpriseCooperationWallet = 21, |
| | | UserServerEnterpriseCooperationWallet = 22, |
| | | /**灵工信息 */ |
| | | UserServerEnterpriseEmployee = 22, |
| | | UserServerEnterpriseEmployee = 23, |
| | | /**电子签 */ |
| | | ElectronSignServerElectronSign = 23, |
| | | ElectronSignServerElectronSign = 24, |
| | | /**电子签 */ |
| | | ToolServerSms = 24, |
| | | ToolServerSms = 25, |
| | | } |
| | | |
| | | /** 资源请求方式 */ |
| New file |
| | |
| | | /* eslint-disable */ |
| | | // @ts-ignore |
| | | import { request } from '@/utils/request'; |
| | | |
| | | /** 测试事件 POST /api/common/eventUtils/testEvent */ |
| | | export async function testEvent(body: API.TestEventCommand, options?: API.RequestConfig) { |
| | | return request<boolean>('/api/common/eventUtils/testEvent', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | |
| | | import * as enterpriseWallet from './enterpriseWallet'; |
| | | import * as ocrUtils from './ocrUtils'; |
| | | import * as resource from './resource'; |
| | | import * as enterpriseCooperationWallet from './enterpriseCooperationWallet'; |
| | | import * as logRecords from './logRecords'; |
| | | import * as dictionary from './dictionary'; |
| | | import * as taskCheckReceive from './taskCheckReceive'; |
| | |
| | | import * as userResume from './userResume'; |
| | | import * as auth from './auth'; |
| | | import * as taskUser from './taskUser'; |
| | | import * as enterpriseCooperationWallet from './enterpriseCooperationWallet'; |
| | | import * as codeUrl from './codeUrl'; |
| | | import * as syncDatabase from './syncDatabase'; |
| | | import * as menu from './menu'; |
| | |
| | | import * as userWallet from './userWallet'; |
| | | import * as fileUtils from './fileUtils'; |
| | | import * as settings from './settings'; |
| | | import * as eventUtils from './eventUtils'; |
| | | export default { |
| | | enterprise, |
| | | enterpriseEmployee, |
| | |
| | | enterpriseWallet, |
| | | ocrUtils, |
| | | resource, |
| | | enterpriseCooperationWallet, |
| | | logRecords, |
| | | dictionary, |
| | | taskCheckReceive, |
| | |
| | | userResume, |
| | | auth, |
| | | taskUser, |
| | | enterpriseCooperationWallet, |
| | | codeUrl, |
| | | syncDatabase, |
| | | menu, |
| | |
| | | userWallet, |
| | | fileUtils, |
| | | settings, |
| | | eventUtils, |
| | | }; |
| | |
| | | CommonServerCodeUrls = 4, |
| | | /**文件 */ |
| | | CommonServerFileUtils = 5, |
| | | /**事件 */ |
| | | CommonServerEventUtils = 6, |
| | | /**文字识别 */ |
| | | CommonServerOcrUtils = 6, |
| | | CommonServerOcrUtils = 7, |
| | | /**日志记录 */ |
| | | CommonServerLogRecords = 7, |
| | | CommonServerLogRecords = 8, |
| | | /**同步数据库 */ |
| | | CommonServerSyncDatabase = 8, |
| | | CommonServerSyncDatabase = 9, |
| | | /**短信工具 */ |
| | | CommonServerSmsUtils = 9, |
| | | CommonServerSmsUtils = 10, |
| | | /**配置 */ |
| | | CommonServerSettings = 10, |
| | | CommonServerSettings = 11, |
| | | /**用户认证 */ |
| | | UserServerAuth = 11, |
| | | UserServerAuth = 12, |
| | | /**用户菜单 */ |
| | | UserServerMenu = 12, |
| | | UserServerMenu = 13, |
| | | /**用户资源 */ |
| | | UserServerResource = 13, |
| | | UserServerResource = 14, |
| | | /**用户角色 */ |
| | | UserServerRole = 14, |
| | | UserServerRole = 15, |
| | | /**用户信息 */ |
| | | UserServerUser = 15, |
| | | UserServerUser = 16, |
| | | /**用户钱包 */ |
| | | UserServerUserWallet = 16, |
| | | UserServerUserWallet = 17, |
| | | /**电子签 */ |
| | | UserServerElectronSign = 17, |
| | | UserServerElectronSign = 18, |
| | | /**用户简历 */ |
| | | UserServerUserResume = 18, |
| | | UserServerUserResume = 19, |
| | | /**企业信息 */ |
| | | UserServerEnterprise = 19, |
| | | UserServerEnterprise = 20, |
| | | /**企业钱包 */ |
| | | UserServerEnterpriseWallet = 20, |
| | | UserServerEnterpriseWallet = 21, |
| | | /**企业合作钱包 */ |
| | | UserServerEnterpriseCooperationWallet = 21, |
| | | UserServerEnterpriseCooperationWallet = 22, |
| | | /**灵工信息 */ |
| | | UserServerEnterpriseEmployee = 22, |
| | | UserServerEnterpriseEmployee = 23, |
| | | /**电子签 */ |
| | | ElectronSignServerElectronSign = 23, |
| | | ElectronSignServerElectronSign = 24, |
| | | /**电子签 */ |
| | | ToolServerSms = 24, |
| | | ToolServerSms = 25, |
| | | } |
| | | |
| | | enum EnumResourceMethod { |
| | |
| | | createdTimeEnd?: string; |
| | | } |
| | | |
| | | interface ExportPersonalUserTransactionEreceiptsCommand { |
| | | /** 关键字 */ |
| | | keywords?: string; |
| | | transactionStatus?: EnumWalletTransactionStatus; |
| | | /** 创建时间-起始 */ |
| | | createdTimeStart?: string; |
| | | /** 创建时间-截止 */ |
| | | createdTimeEnd?: string; |
| | | /** 用户Id */ |
| | | userId?: string; |
| | | /** 企业钱包Id */ |
| | | enterpriseWalletId?: string; |
| | | } |
| | | |
| | | interface ExportTaskCheckReceiveTaskUsersCommand { |
| | | /** 任务Id */ |
| | | id?: string; |
| | |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: EnterpriseUserElectronSignCommandResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultFileContentResult { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | /** 数据 */ |
| | | data?: string; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | |
| | | billingMethod?: EnumBillingMethod; |
| | | /** 服务费 */ |
| | | serviceFee?: number; |
| | | /** 预计服务费 */ |
| | | estimatedServiceFee?: number; |
| | | /** 核定工时 */ |
| | | verifyWorkHours?: number; |
| | | /** 超时服务费 */ |
| | |
| | | billingMethod: EnumBillingMethod; |
| | | /** 服务费 */ |
| | | serviceFee?: number; |
| | | /** 预计服务费 */ |
| | | estimatedServiceFee?: number; |
| | | /** 核定工时 */ |
| | | verifyWorkHours?: number; |
| | | /** 超时服务费 */ |
| | |
| | | remark?: string; |
| | | } |
| | | |
| | | type TestEventCommand = Record<string, any>; |
| | | |
| | | interface UpdateEnterpriseWeChatPayWalletBankAccountInfoCommand { |
| | | /** 企业Id */ |
| | | enterpriseId?: string; |
| | |
| | | }); |
| | | } |
| | | |
| | | /** 导出个人用户收支明细电子回单 POST /api/user/user/exportPersonalUserTransactionEreceipts */ |
| | | export async function exportPersonalUserTransactionEreceipts( |
| | | body: API.ExportPersonalUserTransactionEreceiptsCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<string>('/api/user/user/exportPersonalUserTransactionEreceipts', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 查询个人用户银行卡信息 GET /api/user/user/getPersonalUserBankCard */ |
| | | export async function getPersonalUserBankCard( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | |
| | | </QueryFilterItem> |
| | | </template> |
| | | <template #btn> |
| | | <el-button type="primary" @click="exportPersonalUserTransactionEreceipts()" |
| | | >回单导出</el-button |
| | | > |
| | | <el-button type="primary" @click="handleExport()">导出</el-button> |
| | | </template> |
| | | </ProTableQueryFilterBar> |
| | |
| | | { leading: true, trailing: false } |
| | | ); |
| | | |
| | | const exportPersonalUserTransactionEreceipts = _.debounce( |
| | | async () => { |
| | | if (paginationState.total === 0) { |
| | | Message.warnMessage('没有数据可以导出哦~'); |
| | | return; |
| | | } |
| | | try { |
| | | let params: API.ExportPersonalUserTransactionEreceiptsCommand = { |
| | | enterpriseWalletId: id, |
| | | createdTimeStart: format(extraParamState.creationTime?.[0] ?? '', 'YYYY-MM-DD 00:00:00'), |
| | | createdTimeEnd: format(extraParamState.creationTime?.[1] ?? '', 'YYYY-MM-DD 23:59:59'), |
| | | }; |
| | | let res = await userServices.exportPersonalUserTransactionEreceipts(params, { |
| | | responseType: 'blob', |
| | | getResponse: true, |
| | | }); |
| | | if (res) { |
| | | // @ts-ignore |
| | | downloadFile(res?.data, `电子回单`, 'zip'); |
| | | } |
| | | } catch (error) {} |
| | | }, |
| | | 1000, |
| | | { leading: true, trailing: false } |
| | | ); |
| | | |
| | | onMounted(() => { |
| | | state.loading = false; |
| | | getList(); |