diff --git a/changelogs/2026-03/2026-03-23_balance_proof_button_condition.md b/changelogs/2026-03/2026-03-23_balance_proof_button_condition.md index f8ebf4d..777c37b 100644 --- a/changelogs/2026-03/2026-03-23_balance_proof_button_condition.md +++ b/changelogs/2026-03/2026-03-23_balance_proof_button_condition.md @@ -19,16 +19,18 @@ ## 前端尾款凭证上传按钮条件(简化了) ```js -// 尾款凭证上传按钮 +// 尾款凭证上传按钮:定金模式 + 尾款未付 + 允许的状态 const showBalanceProofBtn = - order.status === 'PENDING_BALANCE' - || (order.status === 'PENDING_DEPARTURE' && order.paymentType === 'DEPOSIT' && !order.balanceProofUrl); + order.paymentType === 'DEPOSIT' + && !order.balanceProofUrl + && ['PENDING_BALANCE', 'PENDING_DEPARTURE', 'TRAVELLING'].includes(order.status); ``` | 条件 | 说明 | |------|------| | `status === 'PENDING_BALANCE'` | **主条件**:定金模式清单确认后自动进入此状态,等待上传凭证 | -| `status === 'PENDING_DEPARTURE' && paymentType === 'DEPOSIT' && !balanceProofUrl` | **补传**:已到待出行但凭证为空,允许补传 | +| `status === 'PENDING_DEPARTURE'` | 已到待出行但凭证未传,允许补传 | +| `status === 'TRAVELLING'` | 已在出行中但凭证未传,允许补传 | ### 不再需要判断 `processStatus === 'READY'`