From 29339e426fa3b4bb202fd293fbc5d2cdaf4d9720 Mon Sep 17 00:00:00 2001 From: API Changelog Bot Date: Mon, 23 Mar 2026 10:14:59 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E5=B0=BE=E6=AC=BE=E5=87=AD=E8=AF=81?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E5=A2=9E=E5=8A=A0TRAVELLING=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- .../2026-03-23_balance_proof_button_condition.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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'`