优化加项

This commit is contained in:
xianyi
2026-01-27 15:29:16 +08:00
parent f6802a6e26
commit 510881b52e
2 changed files with 10 additions and 6 deletions

View File

@@ -811,7 +811,13 @@ export const ExamAddonPanel = ({ client, onGoToSign }: ExamAddonPanelProps) => {
if (combinationItemCode === null || combinationItemCode === undefined) {
return null;
}
const combinationItemPrice = parseFloat(item.currentPrice || item.originalPrice || '0');
let combinationItemPrice = parseFloat(item.currentPrice || item.originalPrice || '0');
// 如果自定义结算审核通过,传申请后的均价(按项平摊)
if (customSettlementStatus?.apply_status === 3 && typeof customSettlementStatus.final_settlement_price === 'number') {
combinationItemPrice = customSettlementStatus.final_settlement_price / selectedItems.length;
}
return {
combination_item_code: String(combinationItemCode),
combination_item_price: combinationItemPrice,

View File

@@ -344,9 +344,9 @@ export const ExamDetailPanel = ({
</div>
<div className='col-span-2'>
<div className='text-gray-900 max-h-12 overflow-y-auto custom-scroll inline-block align-top'>
<span className='text-gray-900'>
{loading ? '' : ((client['appointmentRemarks' as keyof ExamClient] as string | null | undefined) || '—')}
</div>
</span>
</div>
<div className='col-span-2'>
<span className='text-gray-900'>{addonSummary as string}</span>
@@ -406,6 +406,4 @@ export const ExamDetailPanel = ({
</div>
</div>
);
};
};