催办接口完成

This commit is contained in:
2026-09-23 14:05:32 +08:00
parent 86a3520ecb
commit c73d5ba8a6
5 changed files with 36 additions and 12 deletions
+9 -4
View File
@@ -7,7 +7,7 @@ import { useRoute } from 'vue-router';
import { getColorWithOpacity, tagTextColor, tagBgColor, tagBorderColor, formatTimestamp } from '@/utils/common';
import { AiError, aiTypeJudge } from "@/service/api/ai";
import { systemConfigApi } from '@/service/api/system';
import { getChangeDetailApi } from '@/service/api/change';
import { getChangeDetailApi, urgeApi } from '@/service/api/change';
import { myTasksDisposalSubmitApi, myTasksAddItemApi } from '@/service/api/myTasks';
import previewComponent from '@/components/previewFile/index.vue'
@@ -225,9 +225,14 @@ const openPreview = (file:any) => {
}
// 催办
const handleReminder = (m: any) => {
window.$message?.info('还差接口')
window.$message?.success(`已催办 ${m.user_name}(系统消息 + 企业微信 + 短信),连续 2 次未响应将上报部门负责人`)
const handleReminder = async (m: any) => {
if(loading.value) return;
loading.value = true;
const {error} = await urgeApi(currentId.value);
if(!error){
window.$message?.success('催办成功');
}
loading.value = false;
}
// 更新选中审批人 user_id
+9 -4
View File
@@ -7,7 +7,7 @@ import { useRoute } from 'vue-router';
import { tagTextColor, tagBgColor, tagBorderColor, downloadFileFun } from '@/utils/common';
import { AiError, aiTypeJudge } from "@/service/api/ai";
import { systemConfigApi } from '@/service/api/system';
import { getChangeDetailApi } from '@/service/api/change';
import { getChangeDetailApi, urgeApi } from '@/service/api/change';
import previewComponent from '@/components/previewFile/index.vue'
const themeStore = useThemeStore();
@@ -197,9 +197,14 @@ const openPreview = (file:any) => {
}
// 催办
const handleReminder = (m: any) => {
window.$message?.info('还差接口')
window.$message?.success(`已催办 ${m.user_name}(系统消息 + 企业微信 + 短信),连续 2 次未响应将上报部门负责人`)
const handleReminder = async (m: any) => {
if(loading.value) return;
loading.value = true;
const {error} = await urgeApi(currentId.value);
if(!error){
window.$message?.success('催办成功');
}
loading.value = false;
}
// 匹配评分依据