From 0e77c98ead8775240a6fe1ecb21ad7f9b9ccf0c7 Mon Sep 17 00:00:00 2001 From: "weicw1996@qq.com" Date: Wed, 30 Sep 2026 10:13:23 +0800 Subject: [PATCH] =?UTF-8?q?feat(order):=20=E5=AE=98=E7=BD=91=E3=80=8C?= =?UTF-8?q?=E6=88=91=E7=9A=84=E8=AE=A2=E5=8D=95=E3=80=8D=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E5=8A=A0=E7=8A=B6=E6=80=81=E7=AD=9B=E9=80=89=20tab?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 加一排 tab(全部/待支付/已完成/已取消)与各状态计数,点一下只看该状态的订单。数据本来就是全量返回(/hjc/order/my 不分页、也没有状态参数),所以在前端筛,切 tab 不重新请求。选中项写进 URL(?status=pending),刷新、分享、浏览器后退都保持;认不出的值回落「全部」而不是筛成空列表。状态口径复用 utils/orderStatus.ts,页面不重写判定。不新增「已退款」tab:标书售卖没有退款(ADR 0005),payStatus=3 只是防御性展示。 Closes .scratch/web-order-status-tabs/issues/01-orders-status-tabs.md --- app/pages/tender/orders/index.vue | 105 ++++++++++++++++++++++++++++-- app/utils/orderStatus.ts | 63 ++++++++++++++++++ 2 files changed, 164 insertions(+), 4 deletions(-) diff --git a/app/pages/tender/orders/index.vue b/app/pages/tender/orders/index.vue index 7e99354..82c04e4 100644 --- a/app/pages/tender/orders/index.vue +++ b/app/pages/tender/orders/index.vue @@ -15,8 +15,35 @@ @@ -106,9 +147,15 @@