From 70db8db974c2f9656f8db16fdc5a1f16bb8e4ad5 Mon Sep 17 00:00:00 2001 From: xianyi Date: Mon, 22 Dec 2025 17:37:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20Native-=E7=94=9F=E6=88=90?= =?UTF-8?q?=E6=89=AB=E7=A0=81=E6=94=AF=E4=BB=98=E4=BA=8C=E7=BB=B4=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/his.ts | 14 ++++++++++++++ src/api/types.ts | 27 +++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/src/api/his.ts b/src/api/his.ts index 0ba0927..7974d2f 100644 --- a/src/api/his.ts +++ b/src/api/his.ts @@ -24,6 +24,8 @@ import type { CustomerDetailEditResponse, InputPhysicalExamAddItem, PhysicalExamAddItemListResponse, + InputPhysicalExamAddOrder, + PhysicalExamQrcodeCreateResponse, InputPhysicalExamDiningLog, PhysicalExamDiningLogResponse, InputTijianDiningLog, @@ -210,6 +212,18 @@ export const searchPhysicalExamAddItem = ( ).then(res => res.data); }; +/** + * Native-生成扫码支付二维码 + */ +export const createNativePaymentQrcode = ( + data: InputPhysicalExamAddOrder +): Promise => { + return request.post( + `${MEDICAL_EXAM_BASE_PATH}/qrcode-create`, + data + ).then(res => res.data); +}; + /** * 提交体检签名生成导检单PDF */ diff --git a/src/api/types.ts b/src/api/types.ts index 5045d35..b51c27b 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -416,6 +416,33 @@ export interface OutputPhysicalExamAddItem { */ export type PhysicalExamAddItemListResponse = CommonActionResult; +/** + * 体检加项支付记录入参(生成扫码支付二维码) + */ +export interface InputPhysicalExamAddOrder { + /** 体检ID */ + physical_exam_id: number; + /** 用户姓名 */ + userName: string; + /** 用户手机号 */ + userPhone: string; + /** 体检加项产品ID列表(逗号分隔) */ + addItemIds: string; + /** 微信Native产品ID */ + nativeProductId: string; + /** 订单金额(元) */ + orderAmount: number; + /** 订单来源(mini_program-小程序,app-app应用等) */ + source: string; + /** 商户ID(可选,不传则使用默认商户) */ + merchantId?: string | null; +} + +/** + * 生成扫码支付二维码响应 + */ +export type PhysicalExamQrcodeCreateResponse = CommonActionResult; + /** * 体检用餐登记列表入参 */