我的任务进度弹框-状态显示修改

This commit is contained in:
2026-10-10 16:12:33 +08:00
parent 69a46e28ae
commit be94e01fe9
+20 -9
View File
@@ -370,6 +370,11 @@ onMounted(() => {
<!-- 变更状态 -->
<NTag v-if="c.status==='APPROVING'" size="small" type="warning">审批中</NTag>
<NTag v-if="c.status==='APPROVED'" size="small" type="success">已通过</NTag>
<NTag v-if="c.status==='IMPLEMENTED'" size="small" type="success">待验收</NTag>
<NTag v-if="c.status==='ACCEPTED'" size="small" type="error">待关闭</NTag>
<NTag v-if="c.status==='CLOSED'" size="small" type="success">已关闭</NTag>
<NTag v-if="c.status==='WITHDRAWN'" size="small" type="error">已撤回</NTag>
<NTag v-if="c.status==='REJECTED'" size="small" type="error">已驳回</NTag>
</div>
<div class="mt-1 flex flex-wrap items-baseline gap-x-2">
<span class="text-sm font-medium text-slate-800">{{ c.title }}</span>
@@ -467,13 +472,13 @@ onMounted(() => {
<div class="text-sm font-semibold text-slate-800">{{ currentRow?.title }}</div>
<div class="mt-1.5 flex flex-wrap items-center gap-1.5 text-[11px] text-slate-400">
<span class="font-mono">{{ currentRow?.change_no }}</span>
<NTag v-if="currentRow?.status==='APPROVING'" size="small" type="warning">审批中</NTag>
<NTag v-if="currentRow?.status==='APPROVED'" size="small" type="success">已通过</NTag>
<NTag v-if="currentRow?.status==='IMPLEMENTED'" size="small" type="warning">待验收</NTag>
<NTag v-if="currentRow?.status==='ACCEPTED'" size="small" type="error">待关闭</NTag>
<NTag v-if="currentRow?.status==='REJECTED'" size="small" type="error">已驳回</NTag>
<NTag v-if="currentRow?.status==='CLOSED'" size="small" type="error">已关闭</NTag>
<NTag v-if="currentRow?.status==='WITHDRAWN'" size="small" type="error">已撤回</NTag>
<NTag v-if="currentRow.status==='APPROVING'" size="small" type="warning">审批中</NTag>
<NTag v-if="currentRow.status==='APPROVED'" size="small" type="success">已通过</NTag>
<NTag v-if="currentRow.status==='IMPLEMENTED'" size="small" type="success">待验收</NTag>
<NTag v-if="currentRow.status==='ACCEPTED'" size="small" type="error">待关闭</NTag>
<NTag v-if="currentRow.status==='CLOSED'" size="small" type="success">已关闭</NTag>
<NTag v-if="currentRow.status==='WITHDRAWN'" size="small" type="error">已撤回</NTag>
<NTag v-if="currentRow.status==='REJECTED'" size="small" type="error">已驳回</NTag>
<span v-if="currentRow?.overdue_status===2" class="font-medium text-red-500">超期 {{ currentRow?.overdue_days }} 天</span>
</div>
<div v-if="currentRow?.dept || currentRow?.applicant" class="mt-1 text-[11px] text-slate-400">{{ [currentRow?.dept, currentRow?.applicant].filter(Boolean).join(' · ') }}</div>
@@ -563,8 +568,14 @@ onMounted(() => {
<NTag v-if="currentRow?.duration_type===1" size="small" type="primary">永久</NTag>
<NTag v-if="currentRow?.urgent===1" size="small" type="error">紧急</NTag>
<!-- 变更状态 -->
<NTag v-if="currentRow?.status==='APPROVING'" size="small" type="warning">审批中</NTag>
<NTag v-if="currentRow?.status==='APPROVED'" size="small" type="success">已通过</NTag>
<NTag v-if="currentRow.status==='APPROVING'" size="small" type="warning">审批中</NTag>
<NTag v-if="currentRow.status==='APPROVED'" size="small" type="success">已通过</NTag>
<NTag v-if="currentRow.status==='IMPLEMENTED'" size="small" type="success">待验收</NTag>
<NTag v-if="currentRow.status==='ACCEPTED'" size="small" type="error">待关闭</NTag>
<NTag v-if="currentRow.status==='CLOSED'" size="small" type="success">已关闭</NTag>
<NTag v-if="currentRow.status==='WITHDRAWN'" size="small" type="error">已撤回</NTag>
<NTag v-if="currentRow.status==='REJECTED'" size="small" type="error">已驳回</NTag>
<span v-if="currentRow?.apply_time" class="text-[11px] text-slate-400">申请 {{ currentRow?.apply_time.slice(0, 16) }}</span>
<!-- 超期/临期/延期 -->
<NTag v-if="currentRow?.overdue_status===2" size="small" type="error">已超期 {{ currentRow?.overdue_days }} 天</NTag>