From 30cc69f43bbfdd1e92c5df3decd21ee43f7d9648 Mon Sep 17 00:00:00 2001 From: zou Date: Tue, 18 Aug 2026 15:49:50 +0800 Subject: [PATCH] =?UTF-8?q?feat(F006):=20=E5=88=97=E8=A1=A8=E9=A1=B5UI?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=20-=208=E9=A1=B5=E7=8A=B6=E6=80=81=E8=83=B6?= =?UTF-8?q?=E5=9B=8A=E5=8C=96(el-tag=E5=85=A8=E5=B1=80=E8=83=B6=E5=9B=8A+s?= =?UTF-8?q?t-pill=E5=9C=86=E7=82=B9)=20+=20=E4=BF=AE=E5=A4=8D=E6=8B=BC?= =?UTF-8?q?=E5=9B=A2/=E7=A7=92=E6=9D=80=E7=BC=BA=E5=A4=B1=E4=B8=BB?= =?UTF-8?q?=E8=A1=A8=20+=20=E6=89=B9=E9=87=8F=E6=A0=8F=E9=80=9A=E7=94=A8?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/inquiry/InquiryListView.vue | 16 +++++--- src/modules/order/OrderListView.vue | 21 ++++++---- .../other/groupbuy/GroupbuyListView.vue | 35 +++++++++++++++-- src/modules/other/seckill/SeckillListView.vue | 35 +++++++++++++++-- .../supplierBrand/SupplierBrandListView.vue | 12 +++--- .../supplier/coupon/CouponListView.vue | 18 ++++----- src/modules/supplier/good/GoodListView.vue | 38 +++++++------------ .../servicegood/ServiceGoodListView.vue | 22 +++++------ src/styles/global-ui.scss | 26 +++++++++++++ 9 files changed, 150 insertions(+), 73 deletions(-) diff --git a/src/modules/inquiry/InquiryListView.vue b/src/modules/inquiry/InquiryListView.vue index f23d5d3..6d48a31 100644 --- a/src/modules/inquiry/InquiryListView.vue +++ b/src/modules/inquiry/InquiryListView.vue @@ -192,15 +192,19 @@ onMounted(() => { load() }) /* 状态徽章(4 种) - 浅底色块(套设计规范 §5.4) */ .rr-badge { - display: inline-block; - padding: 2px 8px; - border-radius: 4px; - font-size: 11.5px; + display: inline-flex; + align-items: center; + gap: 6px; + padding: 2px 12px; + border-radius: 999px; + font-size: 12px; font-weight: 500; - line-height: 17.25px; - height: 21.25px; + line-height: 20px; box-sizing: border-box; } +.rr-badge::before { + content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; +} .rr-badge-pending { background: var(--amber-soft); color: var(--amber); } .rr-badge-quoting { background: var(--brand-soft); color: var(--brand); } .rr-badge-done { background: var(--green-soft); color: var(--green); } diff --git a/src/modules/order/OrderListView.vue b/src/modules/order/OrderListView.vue index b337415..81b7663 100644 --- a/src/modules/order/OrderListView.vue +++ b/src/modules/order/OrderListView.vue @@ -18,6 +18,7 @@ import { ref, onMounted, reactive, computed } from 'vue' import { useRouter, useRoute } from 'vue-router' import { ElMessage, ElMessageBox } from 'element-plus' +import { Clock } from '@element-plus/icons-vue' import { httpGet } from '@/utils/request' import PageHeader from '@/components/PageHeader/PageHeader.vue' import SearchBar from '@/components/SearchBar/SearchBar.vue' @@ -46,6 +47,14 @@ interface Order { const STATUS_LABEL: Record = { 1: '待支付', 2: '待发货', 3: '待收货', 4: '待付尾款', 5: '待评价', 6: '已完成', 7: '已取消', 8: '采购单待审核', 9: '付款单待审核' } +// 状态胶囊配色 (已完成=绿/已取消=灰/其余=品牌蓝, 引用全局 --st-* 变量暗色自适应) +const STATUS_PILL: Record = { + 6: { color: 'var(--st-ok-fg)', bg: 'var(--st-ok-bg)' }, + 7: { color: 'var(--st-lv4-fg)', bg: 'var(--st-lv4-bg)' } +} +function statusPill(status: number) { + return STATUS_PILL[status] || { color: 'var(--primary)', bg: 'var(--primary-soft, #dbeafe)' } +} const STATUS_TABS = [ { value: '', label: '全部' }, @@ -259,19 +268,15 @@ onMounted(load) --