催办接口完成
This commit is contained in:
@@ -7,6 +7,7 @@ import { tagTextColor, tagBgColor, tagBorderColor, getTimeRangeStamp, formatTime
|
||||
import { systemConfigApi } from '@/service/api/system';
|
||||
import { orgListApi } from '@/service/api/user';
|
||||
import { changeLedgerListApi } from '@/service/api/changeLedger';
|
||||
import { urgeApi } from '@/service/api/change';
|
||||
|
||||
const { routerPushByKey } = useRouterPush();
|
||||
const themeStore = useThemeStore();
|
||||
@@ -237,8 +238,13 @@ const downloadFiles = (r:any,type:string) => {
|
||||
}
|
||||
|
||||
// 催办
|
||||
const urge = (r:any) => {
|
||||
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;
|
||||
}
|
||||
|
||||
// 分页改变
|
||||
@@ -478,7 +484,7 @@ onMounted(async () => {
|
||||
<!-- 已关闭 -->
|
||||
<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" size="small" ghost type="error" class="text-xs" @click="urge(r)">催办</NButton>
|
||||
<NButton v-if="r.overdue_days && r.status!=='CLOSED' && r.status!=='WITHDRAWN' && r.status!=='REJECTED'" size="small" ghost type="error" :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="default" class="text-xs" @click="openProgress(r)">进度</NButton>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user