| | |
| | | import Layout from '@/layout/MainLayout/Layout.vue'; |
| | | import ErrorLayout from '@/layout/ErrorLayout/ErrorLayout.vue'; |
| | | import { AppType } from '@/constants'; |
| | | import { loadEnv } from '@build/index'; |
| | | |
| | | // import { ElIcons } from '@/typings' |
| | | |
| | |
| | | }, |
| | | ]; |
| | | |
| | | const { VITE_PUBLIC_PATH } = loadEnv(); |
| | | |
| | | const createRouterFactory = () => |
| | | createRouter({ |
| | | history: createWebHistory(), // hash模式:createWebHashHistory,history模式:createWebHistory |
| | | history: createWebHistory(VITE_PUBLIC_PATH), // hash模式:createWebHashHistory,history模式:createWebHistory |
| | | scrollBehavior(to, from, savedPosition) { |
| | | return new Promise((resolve) => { |
| | | if (savedPosition) { |
| | |
| | | // @ts-ignore |
| | | import { request } from '@/utils/request'; |
| | | |
| | | /** 新增,编辑保险产品方案 POST /api/Dictionary/CreateOrUpdateInsureProductScheme */ |
| | | export async function createOrUpdateInsureProductScheme( |
| | | body: API.CreateOrUpdateInsureProductSchemeInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<string>('/api/Dictionary/CreateOrUpdateInsureProductScheme', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 新增,编辑保险产品配置 POST /api/Dictionary/CreateOrUpdateInsureProductSetting */ |
| | | export async function createOrUpdateInsureProductSetting( |
| | | body: API.CreateOrUpdateInsureProductSettingInput, |
| | |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 删除保险产品方案 POST /api/Dictionary/DeleteInsureProductScheme */ |
| | | export async function deleteInsureProductScheme( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIdeleteInsureProductSchemeParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/Dictionary/DeleteInsureProductScheme', { |
| | | method: 'POST', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | |
| | | }); |
| | | } |
| | | |
| | | /** 获取保险产品方案列表 POST /api/Dictionary/GetInsureProductSchemePage */ |
| | | export async function getInsureProductSchemePage( |
| | | body: API.GetInsureProductSchemePageInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.InsureProductSchemeDtoPageOutput>( |
| | | '/api/Dictionary/GetInsureProductSchemePage', |
| | | { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 获取已启用的保险产品配置下拉列表 POST /api/Dictionary/GetInsureProductSettingAllList */ |
| | | export async function getInsureProductSettingAllList( |
| | | body: API.GetInsureProductSettingPageInput, |
| | |
| | | id?: string; |
| | | } |
| | | |
| | | interface APIdeleteInsureProductSchemeParams { |
| | | id?: string; |
| | | } |
| | | |
| | | interface APIdeleteInsureProductSettingParams { |
| | | id?: string; |
| | | } |
| | |
| | | enterpriseName?: string; |
| | | } |
| | | |
| | | interface CreateOrUpdateInsureProductSchemeInput { |
| | | /** Id */ |
| | | id?: string; |
| | | /** 保险产品Id */ |
| | | insureProductId: string; |
| | | /** 方案Id */ |
| | | idNumber: string; |
| | | /** 方案代码 */ |
| | | code?: string; |
| | | /** 方案名称 */ |
| | | name: string; |
| | | /** 投保方式 */ |
| | | period: string; |
| | | /** 保额 */ |
| | | insured: number; |
| | | /** 保费 */ |
| | | signPremium: number; |
| | | } |
| | | |
| | | interface CreateOrUpdateInsureProductSettingInput { |
| | | id?: string; |
| | | /** 用户ID */ |
| | | userId?: string; |
| | | /** 产品ID */ |
| | | productIdNumber: string; |
| | | /** 商品代码 */ |
| | | productCode?: string; |
| | | /** 参保机构 */ |
| | | insuranceOrg: string; |
| | | /** 投保方案 */ |
| | | insuranceScheme: string; |
| | | /** 投保方式 */ |
| | | insurancePeriod: string; |
| | | /** 产品名称 */ |
| | | productName: string; |
| | | status?: InsureProductSettingStatusEnum; |
| | | } |
| | | |
| | |
| | | pageModel?: Pagination; |
| | | objectData?: any; |
| | | data?: GetInsuranceStaffPageTemplate[]; |
| | | } |
| | | |
| | | interface GetInsureProductSchemePageInput { |
| | | pageModel?: Pagination; |
| | | /** 保险产品Id */ |
| | | insureProductId?: string; |
| | | } |
| | | |
| | | interface GetInsureProductSettingPageInput { |
| | |
| | | enterpriseName?: string; |
| | | } |
| | | |
| | | interface InsureProductSchemeDto { |
| | | /** Id */ |
| | | id?: string; |
| | | /** 保险产品Id */ |
| | | insureProductId?: string; |
| | | /** 方案Id */ |
| | | idNumber?: string; |
| | | /** 方案代码 */ |
| | | code?: string; |
| | | /** 方案名称 */ |
| | | name?: string; |
| | | /** 投保方式 */ |
| | | period?: string; |
| | | /** 保额 */ |
| | | insured?: number; |
| | | /** 保费 */ |
| | | signPremium?: number; |
| | | } |
| | | |
| | | interface InsureProductSchemeDtoPageOutput { |
| | | pageModel?: Pagination; |
| | | objectData?: any; |
| | | data?: InsureProductSchemeDto[]; |
| | | } |
| | | |
| | | interface InsureProductSettingDto { |
| | | id?: string; |
| | | /** 用户ID */ |
| | | userId?: string; |
| | | /** 产品ID */ |
| | | productIdNumber?: string; |
| | | /** 商品代码 */ |
| | | productCode?: string; |
| | | /** 参保机构 */ |
| | | insuranceOrg?: string; |
| | | /** 投保方案 */ |
| | | insuranceScheme?: string; |
| | | /** 投保方式 */ |
| | | insurancePeriod?: string; |
| | | /** 产品名称 */ |
| | | productName?: string; |
| | | status?: InsureProductSettingStatusEnum; |
| | | /** 创建时间 */ |
| | | creationTime?: string; |