优化加项
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user