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); + } } // 已完结状态样式