fix(order): complete checkout details and deposit warning

This commit is contained in:
yml2213
2026-08-09 21:35:40 +08:00
parent 192f7957b8
commit 89bf5f30ba
4 changed files with 60 additions and 6 deletions
@@ -367,11 +367,17 @@ export function useOrderActions(options: UseOrderActionsOptions) {
async function handleSubmitCheckout() {
if (!order.value) return
const depositDeductAmountYuan = Number(checkoutForm.value.otherAmountYuan || 0)
if (needsConfirm('submitCheckout')) {
const depositWarning =
depositDeductAmountYuan > 0
? `\n\n注意:押金赔付扣除 ¥${depositDeductAmountYuan.toFixed(2)} 将直接从预收押金中扣除,并计入号主赔付。`
: ''
const ok = await options.confirm({
title: '确认提交结账',
message:
'结账数据会影响租金、押金赔付和双方结算金额。请确认哈夫币消耗、额外消耗品、押金赔付和证据链接已认真核对,提交后将发送给号主确认。',
'结账数据会影响租金、押金赔付和双方结算金额。请确认哈夫币消耗、额外消耗品、押金赔付和证据链接已认真核对,提交后将发送给号主确认。' +
depositWarning,
})
if (!ok) return
}