New file |
| | |
| | | import * as dictionaryServices from '@/services/api/Dictionary'; |
| | | import { useQuery, useQueryClient } from '@tanstack/vue-query'; |
| | | |
| | | export function useInsureProductSettingAllList() { |
| | | const { data: allInsureProductSettingList, refetch } = useQuery({ |
| | | queryKey: ['dictionaryServices/getInsureProductSettingAllList'], |
| | | queryFn: async () => { |
| | | let res = await dictionaryServices.getInsureProductSettingAllList({}, { showLoading: false }); |
| | | return res; |
| | | }, |
| | | placeholderData: () => [] as API.InsureProductSettingDto[], |
| | | }); |
| | | |
| | | return { |
| | | allInsureProductSettingList, |
| | | refetch, |
| | | }; |
| | | } |
| | |
| | | export * from './useUser'; |
| | | export * from './help'; |
| | | export * from './insuranceClaim'; |
| | | export * from './dic'; |
New file |
| | |
| | | /* eslint-disable */ |
| | | // @ts-ignore |
| | | import { request } from '@/utils/request'; |
| | | |
| | | /** 新增,编辑保险产品配置 POST /api/Dictionary/CreateOrUpdateInsureProductSetting */ |
| | | export async function createOrUpdateInsureProductSetting( |
| | | body: API.CreateOrUpdateInsureProductSettingInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<string>('/api/Dictionary/CreateOrUpdateInsureProductSetting', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 删除保险产品配置 GET /api/Dictionary/DeleteInsureProductSetting */ |
| | | export async function deleteInsureProductSetting( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIdeleteInsureProductSettingParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/Dictionary/DeleteInsureProductSetting', { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 获取已启用的保险产品配置下拉列表 POST /api/Dictionary/GetInsureProductSettingAllList */ |
| | | export async function getInsureProductSettingAllList( |
| | | body: API.GetInsureProductSettingPageInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.InsureProductSettingDto[]>('/api/Dictionary/GetInsureProductSettingAllList', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 获取保险产品配置列表 POST /api/Dictionary/GetInsureProductSettingPage */ |
| | | export async function getInsureProductSettingPage( |
| | | body: API.GetInsureProductSettingPageInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.InsureProductSettingDtoPageOutput>( |
| | | '/api/Dictionary/GetInsureProductSettingPage', |
| | | { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 修改保险产品配置状态 POST /api/Dictionary/UpdateInsureProductSettingStatus */ |
| | | export async function updateInsureProductSettingStatus( |
| | | body: API.UpdateInsureProductSettingStatusInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/Dictionary/UpdateInsureProductSettingStatus', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | |
| | | }); |
| | | } |
| | | |
| | | /** 此处后端没有提供注释 POST /api/InsuranceOrder/Demo */ |
| | | export async function demo(options?: API.RequestConfig) { |
| | | return request<any>('/api/InsuranceOrder/Demo', { |
| | | method: 'POST', |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 此处后端没有提供注释 POST /api/InsuranceOrder/Demo2 */ |
| | | export async function demo2(options?: API.RequestConfig) { |
| | | return request<any>('/api/InsuranceOrder/Demo2', { |
| | | method: 'POST', |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 批量减员保单数据 POST /api/InsuranceOrder/DownsizingInsuranceOrderData */ |
| | | export async function downsizingInsuranceOrderData( |
| | | body: API.DownsizingInsuranceOrderData, |
| | |
| | | }); |
| | | } |
| | | |
| | | /** 获取全部用户下拉列表 POST /api/User/GetUserAllList */ |
| | | export async function getUserAllList(body: API.QueryUserPageInput, options?: API.RequestConfig) { |
| | | return request<API.UserListOutput[]>('/api/User/GetUserAllList', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 获取客户余额信息 GET /api/User/GetUserAmountShow */ |
| | | export async function getUserAmountShow(options?: API.RequestConfig) { |
| | | return request<API.UserAmountShowDto>('/api/User/GetUserAmountShow', { |
| | |
| | | import * as AbpApplicationConfiguration from './AbpApplicationConfiguration'; |
| | | import * as Account from './Account'; |
| | | import * as BaseModule from './BaseModule'; |
| | | import * as Dictionary from './Dictionary'; |
| | | import * as Features from './Features'; |
| | | import * as FileRecord from './FileRecord'; |
| | | import * as IdentityRole from './IdentityRole'; |
| | |
| | | AbpApplicationConfiguration, |
| | | Account, |
| | | BaseModule, |
| | | Dictionary, |
| | | Features, |
| | | FileRecord, |
| | | IdentityRole, |
| | |
| | | id?: string; |
| | | } |
| | | |
| | | interface APIdeleteInsureProductSettingParams { |
| | | id?: string; |
| | | } |
| | | |
| | | interface APIdeleteModuleButtonParams { |
| | | id?: string; |
| | | } |
| | |
| | | interface APIimportInsStaffToListParams { |
| | | url?: string; |
| | | serialNum?: string; |
| | | productIdNumber?: string; |
| | | } |
| | | |
| | | interface APIsearchParams { |
| | |
| | | batchUpdateMessage?: boolean; |
| | | /** 企业名称 */ |
| | | enterpriseName?: string; |
| | | } |
| | | |
| | | interface CreateOrUpdateInsureProductSettingInput { |
| | | id?: string; |
| | | /** 用户ID */ |
| | | userId?: string; |
| | | /** 产品ID */ |
| | | productIdNumber: string; |
| | | /** 参保机构 */ |
| | | insuranceOrg: string; |
| | | /** 投保方案 */ |
| | | insuranceScheme: string; |
| | | /** 投保方式 */ |
| | | insurancePeriod: string; |
| | | status?: InsureProductSettingStatusEnum; |
| | | } |
| | | |
| | | interface CreateOrUpdateRoleInput { |
| | |
| | | condition?: string; |
| | | insurancePeriod?: string; |
| | | status?: InsurancePolicyStatusEnum; |
| | | auditStatus?: InsuranceClaimAuditStatusEnum; |
| | | } |
| | | |
| | | interface GetInsurancePageOutput { |
| | |
| | | creationTime?: string; |
| | | companyName?: string; |
| | | isClosedOutTime?: boolean; |
| | | auditStatus?: InsuranceClaimAuditStatusEnum; |
| | | /** 保险产品IdNumber */ |
| | | productIdNumber?: string; |
| | | } |
| | | |
| | | interface GetInsurancePageOutputPageOutput { |
| | |
| | | pageModel?: Pagination; |
| | | objectData?: any; |
| | | data?: GetInsuranceStaffPageTemplate[]; |
| | | } |
| | | |
| | | interface GetInsureProductSettingPageInput { |
| | | pageModel?: Pagination; |
| | | /** 用户ID */ |
| | | userId?: string; |
| | | } |
| | | |
| | | interface GetParkBountyTradeDetailByIdInput { |
| | |
| | | businessType?: InsuranceClaimAttachmentBusinessTypeEnum; |
| | | } |
| | | |
| | | type InsuranceClaimAuditStatusEnum = 10 | 20 | -10; |
| | | |
| | | interface InsuranceClaimDetailOutput { |
| | | id?: string; |
| | | /** 渠道 */ |
| | |
| | | /** 投保人 */ |
| | | enterpriseName?: string; |
| | | } |
| | | |
| | | interface InsureProductSettingDto { |
| | | id?: string; |
| | | /** 用户ID */ |
| | | userId?: string; |
| | | /** 产品ID */ |
| | | productIdNumber?: string; |
| | | /** 参保机构 */ |
| | | insuranceOrg?: string; |
| | | /** 投保方案 */ |
| | | insuranceScheme?: string; |
| | | /** 投保方式 */ |
| | | insurancePeriod?: string; |
| | | status?: InsureProductSettingStatusEnum; |
| | | /** 创建时间 */ |
| | | creationTime?: string; |
| | | } |
| | | |
| | | interface InsureProductSettingDtoPageOutput { |
| | | pageModel?: Pagination; |
| | | objectData?: any; |
| | | data?: InsureProductSettingDto[]; |
| | | } |
| | | |
| | | type InsureProductSettingStatusEnum = 10 | -10; |
| | | |
| | | interface IStringValueType { |
| | | name?: string; |
| | |
| | | phone?: string; |
| | | } |
| | | |
| | | interface UpdateInsureProductSettingStatusInput { |
| | | id?: string; |
| | | status?: InsureProductSettingStatusEnum; |
| | | } |
| | | |
| | | interface UpdatePassWordInput { |
| | | id?: string; |
| | | passWord?: string; |
| | |
| | | row.status === InsurancePolicyStatusEnum.WaitEffect, |
| | | }, |
| | | }, |
| | | { |
| | | data: { |
| | | enCode: 'standarEndoBtn', |
| | | name: '申请退保', |
| | | }, |
| | | emits: { |
| | | onClick: (role) => handleStandarEndo(role), |
| | | }, |
| | | }, |
| | | // { |
| | | // data: { |
| | | // enCode: 'standarEndoBtn', |
| | | // name: '申请退保', |
| | | // }, |
| | | // emits: { |
| | | // onClick: (role) => handleStandarEndo(role), |
| | | // }, |
| | | // }, |
| | | ]).filter(Boolean); |
| | | |
| | | const BaseState = { |
| | |
| | | defaultFormParams: { |
| | | serialNum: '', |
| | | url: [] as UploadUserFile[], |
| | | productIdNumber: '', |
| | | }, |
| | | closeAfterConfirm: false, |
| | | }); |
| | |
| | | let params: API.APIimportInsStaffToListParams = { |
| | | serialNum: editForm.serialNum, |
| | | url: editForm.url?.[0]?.path, |
| | | productIdNumber: editForm.productIdNumber, |
| | | }; |
| | | let res = await insuranceOrderServices.importInsStaffToList(params); |
| | | if (res.length > 0) { |
| | |
| | | <ProForm :model="innerForm" ref="dialogForm" label-width="100px"> |
| | | <ProFormItemV2 |
| | | label="投保产品:" |
| | | prop="serialNum" |
| | | prop="productIdNumber" |
| | | :check-rules="[{ message: '请选择投保产品' }]" |
| | | > |
| | | <ProFormSelect |
| | | placeholder="请选择投保产品" |
| | | :value-enum="[]" |
| | | :value-enum="allInsureProductSettingList" |
| | | clearable |
| | | v-model="form.serialNum" |
| | | v-model="form.productIdNumber" |
| | | enum-label-key="insuranceScheme" |
| | | enum-value-key="productIdNumber" |
| | | ></ProFormSelect> |
| | | </ProFormItemV2> |
| | | <ProFormItemV2 label="批次号:" prop="serialNum" :check-rules="[{ message: '请输入批次号' }]"> |
| | |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import { useInsureProductSettingAllList } from '@/hooks'; |
| | | import { |
| | | ProDialog, |
| | | UploadUserFile, |
| | |
| | | form?: { |
| | | serialNum: string; |
| | | url: UploadUserFile[]; |
| | | productIdNumber: string; |
| | | }; |
| | | }; |
| | | |
| | |
| | | (e: 'onCancel'): void; |
| | | }>(); |
| | | |
| | | // TODO 保险产品要跟当前用户关联 这个获取方式后续要修改 |
| | | const { allInsureProductSettingList } = useInsureProductSettingAllList(); |
| | | |
| | | const innerVisible = computed({ |
| | | get() { |
| | | return props.modelValue; |