添加orderAmount

This commit is contained in:
xianyi
2026-02-02 16:14:55 +08:00
parent e2158286be
commit 29f6a6e696
2 changed files with 22 additions and 2 deletions

View File

@@ -801,7 +801,8 @@ export const ExamAddonPanel = ({ client, onGoToSign }: ExamAddonPanelProps) => {
}>,
pay_type: number,
company_id: number,
combinationItemCodes: string
combinationItemCodes: string,
orderAmount: number
) => {
if (pollingTimerRef.current) {
clearInterval(pollingTimerRef.current);
@@ -815,6 +816,7 @@ export const ExamAddonPanel = ({ client, onGoToSign }: ExamAddonPanelProps) => {
listAddItemCombination,
pay_type,
company_id,
orderAmount,
});
if (res.Status === 200) {
@@ -928,6 +930,20 @@ export const ExamAddonPanel = ({ client, onGoToSign }: ExamAddonPanelProps) => {
const patient_id = customerInfo.patient_id;
if (paymentMethod === 'self') {
// 自费模式:如果是 0 元支付,直接查询状态,不生成二维码
if (totalCurrent === 0) {
startPaymentPolling(
physical_exam_id,
patient_id,
listAddItemCombination,
12, // 微信支付
0, // 自费模式company_id 传 0
combinationItemCodes,
0
);
return;
}
// 自费模式:生成二维码
const res = await createNativePaymentQrcode({
physical_exam_id,
@@ -952,7 +968,8 @@ export const ExamAddonPanel = ({ client, onGoToSign }: ExamAddonPanelProps) => {
listAddItemCombination,
12, // 微信支付
0, // 自费模式company_id 传 0
combinationItemCodes
combinationItemCodes,
totalCurrent
);
} else {
setPaymentMessage(res.Message || '生成支付二维码失败');
@@ -984,6 +1001,7 @@ export const ExamAddonPanel = ({ client, onGoToSign }: ExamAddonPanelProps) => {
listAddItemCombination,
pay_type: 13, // 挂账公司
company_id: selectedCompany.company_id,
orderAmount: totalCurrent,
});
if (res.Status === 200) {