diff --git a/inventory-web/src/views/borrow/approval/index.vue b/inventory-web/src/views/borrow/approval/index.vue index 6eb8788..11e2d71 100644 --- a/inventory-web/src/views/borrow/approval/index.vue +++ b/inventory-web/src/views/borrow/approval/index.vue @@ -340,7 +340,7 @@ const statusText = (status: number) => { const statusTagType = (status: number) => { const map: Record = { - 0: 'warning', 1: 'success', 2: 'danger', 3: 'info', 4: 'info' + 0: 'primary', 1: 'success', 2: 'danger', 3: 'info', 4: 'warning' } return map[status] ?? 'info' } diff --git a/inventory-web/src/views/my-requests/index.vue b/inventory-web/src/views/my-requests/index.vue index a22685c..a3053ee 100644 --- a/inventory-web/src/views/my-requests/index.vue +++ b/inventory-web/src/views/my-requests/index.vue @@ -146,9 +146,15 @@ const statusText = (s: number) => { } return map[s] ?? '-' } +// 状态配色: +// 0 待审批 → 蓝(primary,待处理) +// 1 已通过 → 绿(success,正向结果) +// 2 已驳回 → 红(danger) +// 3 已完成 → 灰(info,终态、不再需要关注) +// 4 已撤回 → 黄(warning,需留意但非错误) const statusTagType = (s: number) => { const map: Record = { - 0: 'warning', 1: 'success', 2: 'danger', 3: 'info', 4: 'info', + 0: 'primary', 1: 'success', 2: 'danger', 3: 'info', 4: 'warning', } return map[s] ?? 'info' } diff --git a/inventory-web/src/views/operation/scrap/approval/index.vue b/inventory-web/src/views/operation/scrap/approval/index.vue index d1aa718..cf826c7 100644 --- a/inventory-web/src/views/operation/scrap/approval/index.vue +++ b/inventory-web/src/views/operation/scrap/approval/index.vue @@ -217,7 +217,7 @@ const statusText = (status: number) => { return map[status] ?? '-' } const statusTagType = (status: number) => { - const map: Record = { 0: 'warning', 1: 'success', 2: 'danger', 3: 'info', 4: 'info' } + const map: Record = { 0: 'primary', 1: 'success', 2: 'danger', 3: 'info', 4: 'warning' } return map[status] ?? 'info' } const sourceLabel = (st: string) => ({ stock_buy: '采购件', stock_semi: '半成品', stock_product: '成品' } as any)[st] || st || '-' diff --git a/inventory-web/src/views/outbound/approval/index.vue b/inventory-web/src/views/outbound/approval/index.vue index f25f5ac..f172d4b 100644 --- a/inventory-web/src/views/outbound/approval/index.vue +++ b/inventory-web/src/views/outbound/approval/index.vue @@ -228,7 +228,7 @@ const statusText = (status: number) => { const statusTagType = (status: number) => { const map: Record = { - 0: 'warning', 1: 'success', 2: 'danger', 3: 'info', 4: 'info' + 0: 'primary', 1: 'success', 2: 'danger', 3: 'info', 4: 'warning' } return map[status] ?? 'info' }