From 04728fb7a6c36b06242b9aedee71987f28fb2ef4 Mon Sep 17 00:00:00 2001 From: Sisyphus Date: Tue, 7 Jul 2026 18:34:37 +0800 Subject: [PATCH] =?UTF-8?q?refactor(F006-W17.4.1):=20=E5=95=86=E5=93=81/?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E9=A1=B5=E5=88=97=E5=AE=BD=E7=B2=BE=E7=BB=86?= =?UTF-8?q?=E5=8C=96=20+=20=E5=88=A0=E5=AE=A1=E6=A0=B8=E6=84=8F=E8=A7=81?= =?UTF-8?q?=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 用户原话: - 商品ID 宽度太多 → 140 缩到 100 - 商品名称/服务名称 列再加宽一些 → minWidth 240 加到 320 (业务核心, 最长字段) - 分类列调窄一些 → GoodListView minWidth 240 缩到 180 (3 级合并后 180 足够) - 单位的标题不应该换行 → width 80 + minWidth 80 (DataTable 已有 whiteSpace: nowrap) - 审核意见列不用在列表中展示 → 整列删除 (详情弹窗内可看) 改动: - GoodListView columns 11 列 → 10 列 - ServiceGoodListView columns 12 列 → 11 列 - 整体宽度收敛给商品/服务名称 (核心信息) --- src/modules/supplier/good/GoodListView.vue | 11 +++++------ .../supplier/servicegood/ServiceGoodListView.vue | 5 ++--- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/modules/supplier/good/GoodListView.vue b/src/modules/supplier/good/GoodListView.vue index f752d4f..48a8afa 100644 --- a/src/modules/supplier/good/GoodListView.vue +++ b/src/modules/supplier/good/GoodListView.vue @@ -132,14 +132,13 @@ const batchRejectForm = reactive({ reason: '' }) const columns = [ { type: 'selection' as const, label: '', width: 50 }, - { prop: 'supplierGoodId', label: '商品ID', width: 140 }, - { prop: 'title', label: '商品名称', minWidth: 240, slot: 'title' }, + { prop: 'supplierGoodId', label: '商品ID', width: 100 }, + { prop: 'title', label: '商品名称', minWidth: 320, slot: 'title' }, { prop: 'enterpriseName', label: '供应商', minWidth: 180, showOverflowTooltip: true }, - { prop: 'categoryName', label: '分类', minWidth: 240, slot: 'category' }, - { prop: 'brandName', label: '品牌', width: 120 }, - { prop: 'unitName', label: '单位', width: 80, align: 'center' as const }, + { prop: 'categoryName', label: '分类', minWidth: 180, slot: 'category' }, + { prop: 'brandName', label: '品牌', width: 110 }, + { prop: 'unitName', label: '单位', width: 70, align: 'center' as const }, { prop: 'onShelf', label: '铺货', width: 100, align: 'center' as const, slot: 'onShelf' }, - { prop: 'checkOpinion', label: '审核意见', minWidth: 160, showOverflowTooltip: true }, { prop: 'checkStatus', label: '状态', width: 100, align: 'center' as const, slot: 'checkStatus' }, { prop: 'createDate', label: '申请时间', width: 170 }, { label: '操作', width: 240, align: 'center' as const, fixed: 'right' as const, slot: 'action' } diff --git a/src/modules/supplier/servicegood/ServiceGoodListView.vue b/src/modules/supplier/servicegood/ServiceGoodListView.vue index 92cb11b..d6a15a7 100644 --- a/src/modules/supplier/servicegood/ServiceGoodListView.vue +++ b/src/modules/supplier/servicegood/ServiceGoodListView.vue @@ -72,14 +72,13 @@ const checkStats = reactive({ pending: 0, approved: 0, rejected: 0 }) const columns = [ { type: 'selection' as const, label: '', width: 50 }, - { prop: 'serviceGoodId', label: '服务ID', width: 140 }, - { prop: 'title', label: '服务名称', minWidth: 240, slot: 'title' }, + { prop: 'serviceGoodId', label: '服务ID', width: 100 }, + { prop: 'title', label: '服务名称', minWidth: 320, slot: 'title' }, { prop: 'enterpriseName', label: '供应商', minWidth: 180 }, { prop: 'categoryName', label: '分类', width: 160 }, { prop: 'serviceArea', label: '服务区域', width: 120, align: 'center' as const }, { prop: 'price', label: '价格', width: 160, align: 'right' as const, slot: 'price' }, { prop: 'onShelf', label: '铺货', width: 100, align: 'center' as const, slot: 'onShelf' }, - { prop: 'checkOpinion', label: '审核意见', minWidth: 160 }, { prop: 'checkStatus', label: '状态', width: 100, align: 'center' as const, slot: 'checkStatus' }, { prop: 'createDate', label: '申请时间', width: 170 }, { label: '操作', width: 280, align: 'center' as const, fixed: 'right' as const, slot: 'action' }