申请人

This commit is contained in:
xianyi
2026-01-28 13:56:09 +08:00
parent d09bfc4ec6
commit 41ce02512a
2 changed files with 18 additions and 0 deletions

View File

@@ -620,6 +620,12 @@ export const ExamAddonPanel = ({ client, onGoToSign }: ExamAddonPanelProps) => {
? original_settlement_price * (discountRatioValue / 100)
: customFinalPrice;
const apply_user = localStorage.getItem('operatorName');
if (!apply_user) {
setPaymentMessage('请先登录');
return;
}
const res = await customSettlementApply({
physical_exam_id,
listAddItemDetail,
@@ -628,6 +634,7 @@ export const ExamAddonPanel = ({ client, onGoToSign }: ExamAddonPanelProps) => {
discount_ratio: customSettlementType === 1 ? discountRatioValue : undefined,
final_settlement_price,
apply_reason: customApplyReason.trim(),
apply_user,
});
if (res.Status === 200) {
@@ -684,9 +691,16 @@ export const ExamAddonPanel = ({ client, onGoToSign }: ExamAddonPanelProps) => {
return;
}
const cancel_user = localStorage.getItem('operatorName');
if (!cancel_user) {
setPaymentMessage('请先登录');
return;
}
const res = await customSettlementApplyCancel({
physical_exam_id,
add_item_id,
cancel_user,
});
if (res.Status === 200 && res.Data?.is_success === 1) {