变更台账列表-操作按钮显示修改
This commit is contained in:
@@ -6,7 +6,6 @@ import { useRouterPush } from '@/hooks/common/router';
|
|||||||
import { tagTextColor, tagBgColor, tagBorderColor, getTimeRangeStamp, formatTimestamp } from '@/utils/common';
|
import { tagTextColor, tagBgColor, tagBorderColor, getTimeRangeStamp, formatTimestamp } from '@/utils/common';
|
||||||
import { systemConfigApi } from '@/service/api/system';
|
import { systemConfigApi } from '@/service/api/system';
|
||||||
import { orgListApi } from '@/service/api/user';
|
import { orgListApi } from '@/service/api/user';
|
||||||
import { urgeApi } from '@/service/api/change';
|
|
||||||
import { changeLedgerListApi, exportChangeLedgerApi } from '@/service/api/changeLedger';
|
import { changeLedgerListApi, exportChangeLedgerApi } from '@/service/api/changeLedger';
|
||||||
|
|
||||||
const { routerPushByKey } = useRouterPush();
|
const { routerPushByKey } = useRouterPush();
|
||||||
@@ -270,16 +269,6 @@ const downloadFiles = (r:any,type:string) => {
|
|||||||
window.$message?.info('还差接口');
|
window.$message?.info('还差接口');
|
||||||
}
|
}
|
||||||
|
|
||||||
// 催办
|
|
||||||
const urge = async (r:any) => {
|
|
||||||
loading.value = true;
|
|
||||||
const {error} = await urgeApi(r.id);
|
|
||||||
if(!error){
|
|
||||||
window.$message?.success('催办成功');
|
|
||||||
}
|
|
||||||
loading.value = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 分页改变
|
// 分页改变
|
||||||
const pageChange = (page: number) => {
|
const pageChange = (page: number) => {
|
||||||
pagination.value.page = page;
|
pagination.value.page = page;
|
||||||
@@ -511,16 +500,15 @@ onMounted(async () => {
|
|||||||
<!-- 操作按钮 -->
|
<!-- 操作按钮 -->
|
||||||
<div class="flex flex-wrap items-center justify-end gap-1 pt-0.5">
|
<div class="flex flex-wrap items-center justify-end gap-1 pt-0.5">
|
||||||
<!-- 审批中 -->
|
<!-- 审批中 -->
|
||||||
<NButton v-if="r.status==='APPROVING'" size="small" ghost type="error" class="text-xs" @click="openModal(r,'withdraw')">撤回</NButton>
|
<!-- <NButton v-if="r.status==='APPROVING'" size="small" ghost type="error" class="text-xs" @click="openModal(r,'withdraw')">撤回</NButton> -->
|
||||||
<!-- 已批准待实施 -->
|
<!-- 已批准待实施 -->
|
||||||
<NButton v-if="r.status==='APPROVED'" size="small" ghost type="primary" class="text-xs" @click="openModal(r,'unimplemented')">未实施情况说明</NButton>
|
<!-- <NButton v-if="r.status==='APPROVED'" size="small" ghost type="primary" class="text-xs" @click="openModal(r,'unimplemented')">未实施情况说明</NButton> -->
|
||||||
<NButton v-if="r.status==='APPROVED'" size="small" ghost type="success" class="text-xs" @click="downloadFiles(r,'apply')">下载申请表</NButton>
|
<!-- <NButton v-if="r.status==='APPROVED'" size="small" ghost type="success" class="text-xs" @click="downloadFiles(r,'apply')">下载申请表</NButton> -->
|
||||||
<!-- 已验收待关闭 -->
|
<!-- 已验收待关闭 -->
|
||||||
<NButton v-if="r.status==='ACCEPTED'" size="small" ghost type="success" class="text-xs" @click="downloadFiles(r,'accepted')">下载</NButton>
|
<!-- <NButton v-if="r.status==='ACCEPTED'" size="small" ghost type="primary" class="text-xs" @click="openModal(r,'unuse')">未投用情况说明</NButton> -->
|
||||||
|
<!-- <NButton v-if="r.status==='ACCEPTED'" size="small" ghost type="success" class="text-xs" @click="downloadFiles(r,'accepted')">下载</NButton> -->
|
||||||
<!-- 已关闭 -->
|
<!-- 已关闭 -->
|
||||||
<NButton v-if="r.status==='CLOSED'" size="small" ghost type="success" class="text-xs" @click="downloadFiles(r,'closed')">下载归档包</NButton>
|
<!-- <NButton v-if="r.status==='CLOSED'" size="small" ghost type="success" class="text-xs" @click="downloadFiles(r,'closed')">下载归档包</NButton> -->
|
||||||
<!-- 催办(超期) -->
|
|
||||||
<NButton v-if="r.overdue_days && r.status!=='CLOSED' && r.status!=='WITHDRAWN' && r.status!=='REJECTED'" size="small" ghost type="warning" :disabled="loading" class="text-xs" @click="urge(r)">催办</NButton>
|
|
||||||
<NButton size="small" type="primary" class="text-xs" @click="jumpTo(r)">详情</NButton>
|
<NButton size="small" type="primary" class="text-xs" @click="jumpTo(r)">详情</NButton>
|
||||||
<NButton size="small" type="default" class="text-xs" @click="openProgress(r)">进度</NButton>
|
<NButton size="small" type="default" class="text-xs" @click="openProgress(r)">进度</NButton>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user