diff --git a/src/api/his.ts b/src/api/his.ts index b580a43..3d8511a 100644 --- a/src/api/his.ts +++ b/src/api/his.ts @@ -30,6 +30,8 @@ import type { PhysicalExamAddItemListResponse, InputAddItemCustomerInfo, AddItemCustomerInfoResponse, + InputChannelCompanyInfo, + ChannelCompanyInfoListResponse, InputPhysicalExamAddOrder, PhysicalExamQrcodeCreateResponse, InputOrderPaymentInfo, @@ -234,6 +236,18 @@ export const getAddItemCustomerInfo = ( ).then(res => res.data); }; +/** + * 获取挂账公司信息列表 + */ +export const getChannelCompanyList = ( + data: InputChannelCompanyInfo = {} +): Promise => { + return request.post( + `${MEDICAL_EXAM_BASE_PATH}/channel-company-list`, + data + ).then(res => res.data); +}; + /** * Native-生成扫码支付二维码 */ diff --git a/src/api/types.ts b/src/api/types.ts index a9499c6..e3f6166 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -561,6 +561,30 @@ export interface OutputAddItemCustomerInfo { */ export type AddItemCustomerInfoResponse = CommonActionResult; +/** + * 获取挂账公司信息列表入参 + */ +export interface InputChannelCompanyInfo { + // 空对象,无属性 +} + +/** + * 挂账公司信息列表出参 + */ +export interface OutputChannelCompanyInfo { + /** 公司ID */ + company_id: number; + /** 公司名称 */ + company_name?: string | null; + /** 拼音码 */ + pinyin?: string | null; +} + +/** + * 获取挂账公司信息列表响应 + */ +export type ChannelCompanyInfoListResponse = CommonActionResult; + /** * 体检加项支付记录入参(生成扫码支付二维码) */