From 321274a312dd91d09db73bcf838c5576ee018552 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 8 Jan 2026 09:39:27 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BB=BB=E5=8A=A1=E5=8D=A1=E7=89=87?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=BE=85=E5=A1=AB=E5=86=99=E5=95=86=E5=93=81?= =?UTF-8?q?ID=E9=86=92=E7=9B=AE=E7=8A=B6=E6=80=81=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/TaskHall.vue | 48 ++++++++++++++++++++++++++++----- 1 file changed, 42 insertions(+), 6 deletions(-) diff --git a/frontend/src/views/TaskHall.vue b/frontend/src/views/TaskHall.vue index d9dad6b..fe61b9f 100644 --- a/frontend/src/views/TaskHall.vue +++ b/frontend/src/views/TaskHall.vue @@ -1568,7 +1568,7 @@

{{ task.title }}

- + {{ getTaskStatusText(task.status, task) }} @@ -1576,7 +1576,7 @@ 指定 - + 紧急
@@ -4576,6 +4576,31 @@ const getTaskStatusText = (status: string, task?: any) => { return statusMap[status] || status } +// 获取任务状态的CSS类名 +const getTaskStatusClass = (task: any) => { + if (!task) return 'status-pending' + + // 驳回状态 + if (task.approvalStatus === 'rejected_by_demand' || + task.approvalStatus === 'rejected_by_receiving' || + task.status === 'rejected') { + return 'status-rejected' + } + + // 已完成但未填写商品ID - 使用醒目的警告色 + if (task.status === 'completed' && (!task.productIdFilled || task.productIdFilled === 0)) { + return 'status-pending-id' + } + + // 已完结 + if (task.status === 'completed') { + return 'status-completed' + } + + // 其他状态 + return `status-${task.status}` +} + // 加载所有Tab的数量统计 const loadAllTabCounts = async () => { try { @@ -5203,11 +5228,22 @@ onUnmounted(() => { color: #1890ff; } -// 待填写ID状态样式 -.status-pending_id { - background: rgba(250, 173, 20, 0.1); - border: 1px solid rgba(250, 173, 20, 0.3); +// 待填写ID状态样式 - 醒目警告色 +.status-pending-id { + background: rgba(250, 173, 20, 0.2); + border: 1px solid rgba(250, 173, 20, 0.5); color: #faad14; + font-weight: 600; + animation: pulse-warning 2s infinite; +} + +@keyframes pulse-warning { + 0%, 100% { + box-shadow: 0 0 0 0 rgba(250, 173, 20, 0.4); + } + 50% { + box-shadow: 0 0 8px 2px rgba(250, 173, 20, 0.3); + } } // 已完结状态样式