From 932eb9d8c6906235b45efadbdde907af03a389d4 Mon Sep 17 00:00:00 2001 From: pengwei Date: Wed, 3 Sep 2025 12:02:33 +0800 Subject: [PATCH] =?UTF-8?q?fit:1=E3=80=81=E9=97=AE=E9=A2=98=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mobileSupervision/taskProblem.ts | 7 + src/api/system/police.ts | 9 +- src/views/mobileSupervise/Inspection.vue | 20 ++- src/views/mobileSupervise/TaskProblem.vue | 194 ++++++++++++++++++++-- 4 files changed, 207 insertions(+), 23 deletions(-) diff --git a/src/api/mobileSupervision/taskProblem.ts b/src/api/mobileSupervision/taskProblem.ts index 3746f1b..b52e93f 100644 --- a/src/api/mobileSupervision/taskProblem.ts +++ b/src/api/mobileSupervision/taskProblem.ts @@ -14,6 +14,13 @@ export function getTaskProblem(id) { }); } +export function upTaskProblem(body){ + return request.post({ + url:'/task/problem/upData', + body + }) +} + export function delTaskProblem(id){ return request.del({ diff --git a/src/api/system/police.ts b/src/api/system/police.ts index d4e3cd4..de71b1b 100644 --- a/src/api/system/police.ts +++ b/src/api/system/police.ts @@ -6,6 +6,13 @@ export function listPolice(query) { query }); } +export function listPoliceData(body) { + return request.post({ + url: '/police/postList', + body + }); +} + export function listAbnormalPolice(query) { return request.get({ @@ -58,4 +65,4 @@ export function updatePoliceAuths(idCode, body) { url: `/police/auth/${idCode}`, body }); -} \ No newline at end of file +} diff --git a/src/views/mobileSupervise/Inspection.vue b/src/views/mobileSupervise/Inspection.vue index c63bdad..eb48f1d 100644 --- a/src/views/mobileSupervise/Inspection.vue +++ b/src/views/mobileSupervise/Inspection.vue @@ -1745,6 +1745,7 @@ { switch (key){ case "selfexamination": + issueForm.value.taskId = selfPeopleQuery.value.id; issueForm.value.problemVo = row break; case "inspection": + issueForm.value.taskId = problemQuery.value.id; issueForm.value.problemVo = row break; case "testing_alcohol": @@ -2518,18 +2528,20 @@ const issueMatterFun =(row,key)=>{ issueForm.value.empNo =row.empNo; break; case "risk_personal": + issueForm.value.taskId = riskPersonalQuery.value.id; issueForm.value.supRecordId =row.id break; } issueForm.value.tableKey = key + console.log('actrow',row) distributeShow.value=true; } //下发问题 const handleSubmitTask =async ()=>{ await formRefs.value.validate(); issueLoading.value = true - + console.log('activeRow----------',activeRow.value) try { await TestingAlcoholIssueMatterFun(issueForm.value) } catch(e) { diff --git a/src/views/mobileSupervise/TaskProblem.vue b/src/views/mobileSupervise/TaskProblem.vue index fd571cf..5487b4f 100644 --- a/src/views/mobileSupervise/TaskProblem.vue +++ b/src/views/mobileSupervise/TaskProblem.vue @@ -10,7 +10,7 @@ - @@ -118,6 +118,13 @@ > {{row.problemState == '1'?'删除':'恢复'}} + + 编辑 + +
+ + {{ activeRow.createName || '/' }} +
+
+ + {{ activeRow.issueUserName || '/' }} +
{{ activeRow.problemType || '/' }} @@ -347,31 +362,101 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ 确认 +
+
+ +