我的任务列表 状态添加
This commit is contained in:
@@ -303,7 +303,31 @@ onMounted(() => {
|
|||||||
<div v-if="item.status==='APPROVED'" class="flex items-center gap-2">
|
<div v-if="item.status==='APPROVED'" class="flex items-center gap-2">
|
||||||
<Icon icon="ix:success" class="size-16px" :style="{ color: themeStore.otherColor.success }" />
|
<Icon icon="ix:success" class="size-16px" :style="{ color: themeStore.otherColor.success }" />
|
||||||
<p class="text-13px font-700" :style="{ color: themeStore.otherColor.success }">审批通过</p>
|
<p class="text-13px font-700" :style="{ color: themeStore.otherColor.success }">审批通过</p>
|
||||||
<p class="text-11px text-#94a3b8">共 {{item.items.length}} 项 · 待实施 / 待验收 / 待关闭 · 处置申请与资料关闭在行内办理</p>
|
<p class="text-11px text-#94a3b8">共 {{item.items.length}} 项 · 待实施 / 待关闭 · 处置申请与资料关闭在行内办理</p>
|
||||||
|
</div>
|
||||||
|
<!-- 待验收 -->
|
||||||
|
<div v-if="item.status==='IMPLEMENTED'" class="flex items-center gap-2">
|
||||||
|
<Icon icon="ant-design:clock-circle-outlined" class="size-16px" :style="{ color: themeStore.otherColor.success }" />
|
||||||
|
<p class="text-13px font-700" :style="{ color: themeStore.otherColor.success }">待验收</p>
|
||||||
|
<p class="text-11px text-#94a3b8">共 {{item.items.length}} 项</p>
|
||||||
|
</div>
|
||||||
|
<!-- 待关闭 -->
|
||||||
|
<div v-if="item.status==='ACCEPTED'" class="flex items-center gap-2">
|
||||||
|
<Icon icon="ant-design:clock-circle-outlined" class="size-16px" :style="{ color: themeStore.otherColor.error }" />
|
||||||
|
<p class="text-13px font-700" :style="{ color: themeStore.otherColor.error }">待关闭</p>
|
||||||
|
<p class="text-11px text-#94a3b8">共 {{item.items.length}} 项</p>
|
||||||
|
</div>
|
||||||
|
<!-- 已关闭 -->
|
||||||
|
<div v-if="item.status==='CLOSED'" class="flex items-center gap-2">
|
||||||
|
<Icon icon="ix:success" class="size-16px" :style="{ color: themeStore.otherColor.success }" />
|
||||||
|
<p class="text-13px font-700" :style="{ color: themeStore.otherColor.success }">已关闭</p>
|
||||||
|
<p class="text-11px text-#94a3b8">共 {{item.items.length}} 项</p>
|
||||||
|
</div>
|
||||||
|
<!-- 已撤回 -->
|
||||||
|
<div v-if="item.status==='WITHDRAWN'" class="flex items-center gap-2">
|
||||||
|
<Icon icon="ix:success" class="size-16px" :style="{ color: themeStore.otherColor.error }" />
|
||||||
|
<p class="text-13px font-700" :style="{ color: themeStore.otherColor.error }">已撤回</p>
|
||||||
|
<p class="text-11px text-#94a3b8">共 {{item.items.length}} 项</p>
|
||||||
</div>
|
</div>
|
||||||
<!-- 已驳回 -->
|
<!-- 已驳回 -->
|
||||||
<div v-if="item.status==='REJECTED'" class="flex items-center gap-2">
|
<div v-if="item.status==='REJECTED'" class="flex items-center gap-2">
|
||||||
@@ -321,8 +345,8 @@ onMounted(() => {
|
|||||||
:style="{ borderRadius: themeStore.themeRadius + 'px' }"
|
:style="{ borderRadius: themeStore.themeRadius + 'px' }"
|
||||||
>
|
>
|
||||||
<!-- 左区 -->
|
<!-- 左区 -->
|
||||||
<!-- 审批中/已通过 -->
|
<!-- 审批中/已通过/待验收/待关闭/已关闭/已撤回 -->
|
||||||
<div v-if="item.status==='APPROVING' || item.status==='APPROVED'" class="min-w-0 flex-1">
|
<div v-if="item.status!=='REJECTED'" class="min-w-0 flex-1">
|
||||||
<div class="flex flex-wrap items-center gap-2">
|
<div class="flex flex-wrap items-center gap-2">
|
||||||
<!-- 变更编号 -->
|
<!-- 变更编号 -->
|
||||||
<span class="font-mono text-[11px] text-slate-400">{{ c.change_no }}</span>
|
<span class="font-mono text-[11px] text-slate-400">{{ c.change_no }}</span>
|
||||||
@@ -393,6 +417,11 @@ onMounted(() => {
|
|||||||
<div v-if="c.todo" class="flex gap-3">
|
<div v-if="c.todo" class="flex gap-3">
|
||||||
<NButton class="text-xs" text type="primary" @click="goApproval(c)">去审批</NButton>
|
<NButton class="text-xs" text type="primary" @click="goApproval(c)">去审批</NButton>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- 待验收 -->
|
||||||
|
<div v-if="c.status === 'IMPLEMENTED'" class="flex gap-3">
|
||||||
|
<NButton class="text-xs" text type="primary" @click="openDetail(c,'detail')">详情</NButton>
|
||||||
|
<NButton class="text-xs" text type="warning" @click="openProgress(c)">进度</NButton>
|
||||||
|
</div>
|
||||||
<!-- 审批中 -->
|
<!-- 审批中 -->
|
||||||
<div v-if="c.status === 'APPROVING'" class="flex gap-3">
|
<div v-if="c.status === 'APPROVING'" class="flex gap-3">
|
||||||
<NButton class="text-xs" text type="primary" @click="openDetail(c,'detail')">详情</NButton>
|
<NButton class="text-xs" text type="primary" @click="openDetail(c,'detail')">详情</NButton>
|
||||||
|
|||||||
Reference in New Issue
Block a user