From 9d5f838b6423e1212d904108227925e3b169d40c Mon Sep 17 00:00:00 2001 From: buaixuexideshitongxue <2936013465@qq.com> Date: Wed, 22 Apr 2026 17:03:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=A2=84=E8=AD=A6=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/warning/business.ts | 79 +++ .../reportAudit/finishDistrbute.vue | 7 +- src/components/reportAudit/start.vue | 13 +- src/permission.ts | 2 +- src/views/warning/business.vue | 591 ++++++++++++++++++ src/views/warning/compile/compileTable.vue | 30 +- src/views/warning/index.vue | 15 +- src/views/work/work.vue | 16 +- 8 files changed, 716 insertions(+), 37 deletions(-) create mode 100644 src/api/warning/business.ts create mode 100644 src/views/warning/business.vue diff --git a/src/api/warning/business.ts b/src/api/warning/business.ts new file mode 100644 index 0000000..c504c4c --- /dev/null +++ b/src/api/warning/business.ts @@ -0,0 +1,79 @@ +import request from "@/api/request"; + +// 预警业务 API + +/** + * 获取预警详情 + */ +export function getWarningBusiness(reportId: string) { + return request.get({ + url: `/warning/business/${reportId}` + }); +} + +/** + * 保存预警内容 + */ +export function saveWarningBusiness(data: any) { + return request.post({ + url: '/warning/business/save', + body: data + }); +} + +/** + * 提交给领导审批 + */ +export function submitWarningBusiness(data: any) { + return request.post({ + url: '/warning/business/submit', + body: data + }); +} + +/** + * 直接结束预警 + */ +export function endWarningBusiness(data: any) { + return request.post({ + url: '/warning/business/end', + body: data + }); +} + +/** + * 领导审批-通过(带问题数据分发) + */ +export function auditPassWarningDistribute(data: any) { + return request.post({ + url: '/warning/business/audit/pass/distribute', + body: data + }); +} + +/** + * 领导审批-驳回 + */ +export function auditRejectWarning(data: any) { + return request.post({ + url: '/warning/business/audit/reject', + body: data + }); +} + +/** + * 获取预警审批记录 + */ +export function getWarningFlowList(reportId: string) { + return request.get({ + url: `/warning/business/flow/${reportId}` + }); +} + + +export const getCompilePage=(body)=>{ + return request.post({ + url:`/warning/business/compile/page`, + body + }) +} diff --git a/src/components/reportAudit/finishDistrbute.vue b/src/components/reportAudit/finishDistrbute.vue index 87c4ce5..004e50d 100644 --- a/src/components/reportAudit/finishDistrbute.vue +++ b/src/components/reportAudit/finishDistrbute.vue @@ -1,13 +1,14 @@ + + + + diff --git a/src/views/warning/compile/compileTable.vue b/src/views/warning/compile/compileTable.vue index 7b80909..5089ee9 100644 --- a/src/views/warning/compile/compileTable.vue +++ b/src/views/warning/compile/compileTable.vue @@ -4,6 +4,7 @@ import {timeFormat} from "@/utils/util"; import {invertRecorPage} from "@/api/investRecord/index"; import feedback from "@/utils/feedback"; import useUserStore from "@/stores/modules/user"; +import {getCompilePage} from "@/api/warning/business.ts"; const showDetail = ref(false) const loading =ref(false) const tableData = ref([]) @@ -24,6 +25,15 @@ const updataFun =(row)=>{ isEdit:row.warningState == '0' } }) + + let routeQuery ={ + reportId:row.id, + } + router.push({ + path:`/warning/business`, + query: routeQuery + }); + } //重置 @@ -32,12 +42,14 @@ const resetFun = ()=>{ size:10, current:1 } + getList() } //分页查询 const getList = async ()=>{ loading.value=true; - const res = await invertRecorPage(query.value); + // const res = await invertRecorPage(query.value); + const res = await getCompilePage(query.value); tableData.value=res.records; total.value=res.total loading.value=false; @@ -70,9 +82,9 @@ watch(()=>route.query.load,(val)=>{ - - - + + + @@ -100,14 +112,14 @@ watch(()=>route.query.load,(val)=>{ {{timeFormat(row.supervisionTime)}} - - + + + + diff --git a/src/views/warning/index.vue b/src/views/warning/index.vue index 4bdb6dc..f42b12a 100644 --- a/src/views/warning/index.vue +++ b/src/views/warning/index.vue @@ -53,16 +53,14 @@ const getList = async ()=>{ const router = useRouter(); const editFun = (row) =>{ console.log('row',row) - const listQuery = query.value let routeQuery ={ - isEnd:row.reportType === "结算项目", + // isEnd:row.reportType === "结算项目", reportId:row.id, - isEdit:true, + // isEdit:true, backPath:'/warning', - listQuery: JSON.stringify(listQuery) } router.push({ - path:`/warning/edit`, + path:`/warning/business`, query: routeQuery }); } @@ -180,12 +178,12 @@ watch(()=>route.query.load,(val)=>{ route.query.load,(val)=>{ diff --git a/src/views/work/work.vue b/src/views/work/work.vue index 9ef1081..78ed4ed 100644 --- a/src/views/work/work.vue +++ b/src/views/work/work.vue @@ -55,21 +55,21 @@ const getWorkTabFun = async () => { //我的待办点击 const rowWorkClick = (row) => { console.log('当前待办项目节点',row.flowCode) + if (activeName.value === 'second') { + return; + } let isEnd = row.reportType === "结算项目"; if(row.isWarning){ - //跳转值审计预警审核 + //跳转至审计预警业务页面(新) let query ={ - isEnd:row.reportType === "项目控制价", reportId:row.reportId, - warningId:row.warningId, - isAudit:true, - backPath:'/work', - warningCode:row.flowCode, - flowId: row.flowId + flowId: row.flowId, + isAudit: row.flowState === 'start', // 领导待办时为true + isLeader: row.flowState === 'start' // 领导审批模式 } router.push({ - path:`/warning/edit`, + path:`/warning/business`, query: query }); }