From a0c64a4232d2c57c4a2bdc650e41df788cf8134d Mon Sep 17 00:00:00 2001
From: zhujiyan <17812234322@163.com>
Date: Tue, 4 Jun 2024 16:54:33 +0800
Subject: [PATCH] =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E6=B5=81=E7=A8=8B=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0=E9=87=8D=E6=96=B0=E5=8F=91=E8=B5=B7&=E5=8F=96?=
=?UTF-8?q?=E6=B6=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/supervision-boot/interfere/index.ts | 10 ++
src/api/supervision-boot/leaflet/index.ts | 22 +++
.../supervision-boot/monitorpoint/index.ts | 9 +
src/api/supervision-boot/plan/index.ts | 12 +-
src/api/supervision-boot/terminal/index.ts | 11 ++
.../components/undocumented/addForm.vue | 4 +-
.../components/undocumented/index.vue | 45 +++--
.../pqs/supervise/plan/components/addForm.vue | 24 ++-
src/views/pqs/supervise/plan/index.vue | 79 ++++++---
.../supervise/technology/components/alarm.vue | 75 +++++---
.../technology/components/earlyWarn.vue | 40 ++++-
.../supervise/technology/feedbackPopup.vue | 151 ++++++++++-------
src/views/pqs/supervise/technology/index.vue | 4 +-
.../components/jointDebugList/index.vue | 7 +-
.../components/monitorpoint/addForm.vue | 160 +++++++++++-------
.../components/monitorpoint/detail.vue | 4 +-
.../components/monitorpoint/index.vue | 51 +++++-
.../components/terminainal/addForm.vue | 8 +-
.../components/terminainal/index.vue | 42 ++++-
19 files changed, 532 insertions(+), 226 deletions(-)
diff --git a/src/api/supervision-boot/interfere/index.ts b/src/api/supervision-boot/interfere/index.ts
index f7dac756..f884b2b4 100644
--- a/src/api/supervision-boot/interfere/index.ts
+++ b/src/api/supervision-boot/interfere/index.ts
@@ -27,6 +27,16 @@ export const updateFormData = (data: any) => {
}
+//取消干扰源审批
+export const cancelFormData = (data: any) => {
+ return createAxios({
+ url: '/supervision-boot/userReport/cancel',
+ method: 'POST',
+ data
+ })
+}
+
+
export const submitGoNet = (data: any) => {
return createAxios({
url: '/supervision-boot/userReportNormal/addUserReportNormal',
diff --git a/src/api/supervision-boot/leaflet/index.ts b/src/api/supervision-boot/leaflet/index.ts
index afa3be13..e6e8359c 100644
--- a/src/api/supervision-boot/leaflet/index.ts
+++ b/src/api/supervision-boot/leaflet/index.ts
@@ -16,6 +16,28 @@ export const addFeedback = (data: any) => {
})
}
+/**
+ * 针对有问题的现场测试重新发起告警单
+ */
+export const updateFeedback = (data: any) => {
+ return createAxios({
+ url: MAPPING_PATH + '/update',
+ method: 'POST',
+ data: data
+ })
+}
+
+/**
+ * 针对有问题的现场测试取消发起告警单
+ */
+export const cancelFeedback = (data: any) => {
+ return createAxios({
+ url: MAPPING_PATH + '/cancel',
+ method: 'POST',
+ data: data
+ })
+}
+
/**
* 根据id获取预告警单的详细数据
*/
diff --git a/src/api/supervision-boot/monitorpoint/index.ts b/src/api/supervision-boot/monitorpoint/index.ts
index 3908f9d4..e4fbc4a0 100644
--- a/src/api/supervision-boot/monitorpoint/index.ts
+++ b/src/api/supervision-boot/monitorpoint/index.ts
@@ -24,6 +24,15 @@ export const updateMointorPointFormData = (data: any) => {
})
}
+//取消发起监测点信息
+export const cancelMointorPointFormData = (data: any) => {
+ return createAxios({
+ url: '/supervision-boot/tempLine/cancel',
+ method: 'POST',
+ data: data
+ })
+}
+
/**
* 查询干扰源列表数据
diff --git a/src/api/supervision-boot/plan/index.ts b/src/api/supervision-boot/plan/index.ts
index 333b690e..8efc79a6 100644
--- a/src/api/supervision-boot/plan/index.ts
+++ b/src/api/supervision-boot/plan/index.ts
@@ -18,12 +18,22 @@ export const addPlanFormData = (data: any) => {
//重新发起技术监督计划表单数据
export const updatePlanFormData = (data: any) => {
return createAxios({
- url: '/supervision-boot/superPlan/updatePlan',
+ url: '/supervision-boot/superPlan/update',
method: 'POST',
data: data
})
}
+//取消发起技术监督计划表单数据
+export const cancelPlanFormData = (data: any) => {
+ return createAxios({
+ url: '/supervision-boot/superPlan/cancel',
+ method: 'POST',
+ data: data
+ })
+}
+
+
/**
* 根据当前登陆用户的部门id查询人员
*/
diff --git a/src/api/supervision-boot/terminal/index.ts b/src/api/supervision-boot/terminal/index.ts
index 0b117aa4..90956200 100644
--- a/src/api/supervision-boot/terminal/index.ts
+++ b/src/api/supervision-boot/terminal/index.ts
@@ -26,6 +26,17 @@ export const updateTerminalFormData = (data: any) => {
})
}
+/**
+ * 编辑终端信息表单数据(重新发起)
+ */
+export const cancelTerminalFormData = (data: any) => {
+ return createAxios({
+ url: '/supervision-boot/deVReport/cancel',
+ method: 'POST',
+ data: data
+ })
+}
+
/**
* 获取关联设备列表
*/
diff --git a/src/views/pqs/supervise/interfere/components/undocumented/addForm.vue b/src/views/pqs/supervise/interfere/components/undocumented/addForm.vue
index c6cb8e39..be780cbd 100644
--- a/src/views/pqs/supervise/interfere/components/undocumented/addForm.vue
+++ b/src/views/pqs/supervise/interfere/components/undocumented/addForm.vue
@@ -45,7 +45,7 @@
/>
-
+
{
}
form.value.orgId = adminInfo.$state.deptName
})
+ }else{
+ resendId.value=''
}
}
// 处理上传文件回显
diff --git a/src/views/pqs/supervise/interfere/components/undocumented/index.vue b/src/views/pqs/supervise/interfere/components/undocumented/index.vue
index e63343f2..ae764073 100644
--- a/src/views/pqs/supervise/interfere/components/undocumented/index.vue
+++ b/src/views/pqs/supervise/interfere/components/undocumented/index.vue
@@ -2,10 +2,7 @@
-
+
@@ -43,9 +40,14 @@ import Audit from './audit.vue'
import addForm from './addForm.vue'
import { useDictData } from '@/stores/dictData'
import { getLoadTypeUserList } from '@/api/process-boot/interference'
+import { cancelFormData } from '@/api/supervision-boot/interfere/index'
+import { ElMessage } from 'element-plus'
+import { ElMessageBox } from 'element-plus/es'
+import { useAdminInfo } from '@/stores/adminInfo'
+//获取登陆用户姓名和部门
+const adminInfo = useAdminInfo()
const dictData = useDictData()
const { push } = useRouter()
-
const TableHeaderRef = ref()
const tableRef = ref()
const areaOptionList = dictData.getBasicData('jibei_area')
@@ -141,7 +143,7 @@ const tableStore = new TableStore({
icon: 'el-icon-Open',
render: 'basicButton',
disabled: row => {
- return row.status == 1 || row.status == 2
+ return row.createBy != adminInfo.$state.id || row.status !=3
},
click: row => {
addForms.value.open({
@@ -157,9 +159,11 @@ const tableStore = new TableStore({
icon: 'el-icon-Open',
render: 'basicButton',
disabled: row => {
- return row.status == 3 || row.status == 2 || row.status == 4
+ return row.createBy != adminInfo.$state.id || row.status !=1
},
- click: row => {}
+ click: row => {
+ cancelLeave(row)
+ }
}
]
}
@@ -210,6 +214,27 @@ const exportEvent = () => {
})
})
}
+/**取消流程操作*/
+const cancelLeave = async (row: any) => {
+ // 二次确认
+ const { value } = await ElMessageBox.prompt('请输入取消原因', '取消流程', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格
+ inputErrorMessage: '取消原因不能为空'
+ })
+ // 发起取消
+ let data = {
+ id: row.id,
+ processInstanceId: row.processInstanceId,
+ reason: value
+ }
+ await cancelFormData(data)
+ ElMessage.success('取消成功')
+ // 加载数据
+ tableStore.index()
+}
+
onMounted(() => {
tableStore.index()
})
@@ -252,6 +277,4 @@ const getUserTypeName = (userType: any) => {
}
-
+
diff --git a/src/views/pqs/supervise/plan/components/addForm.vue b/src/views/pqs/supervise/plan/components/addForm.vue
index 54ca3022..f712fd7f 100644
--- a/src/views/pqs/supervise/plan/components/addForm.vue
+++ b/src/views/pqs/supervise/plan/components/addForm.vue
@@ -362,7 +362,12 @@ import { genFileId, ElMessage } from 'element-plus'
import { useDictData } from '@/stores/dictData'
import { useAdminInfo } from '@/stores/adminInfo'
import { uploadFile } from '@/api/system-boot/file'
-import { addPlanFormData, getUserByDeptId, getPlanDetailsById,updatePlanFormData } from '@/api/supervision-boot/plan/index'
+import {
+ addPlanFormData,
+ getUserByDeptId,
+ getPlanDetailsById,
+ updatePlanFormData
+} from '@/api/supervision-boot/plan/index'
import Area from '@/components/form/area/index.vue'
const emits = defineEmits(['onSubmit'])
const dictData = useDictData()
@@ -557,15 +562,17 @@ watch(
immediate: true
}
)
-const resendId=ref('')
+const resendId = ref('')
const open = (row: any) => {
- title.value = row.title;
- dialogFormVisible.value = true;
- resendId.value=row.row.planId;
+ title.value = row.title
+ dialogFormVisible.value = true
if (row.row) {
- getPlanDetailsById({ id: row.row.planId}).then(res => {
+ resendId.value = row.row.planId
+ getPlanDetailsById({ id: row.row.planId }).then(res => {
form.value = res.data
})
+ } else {
+ resendId.value = ''
}
}
const close = () => {
@@ -667,11 +674,12 @@ const confirmForm = () => {
})
} else {
console.log(confirmFormData)
- confirmFormData.id=resendId.value;
+ confirmFormData.id = resendId.value
+ confirmFormData.planSupvDate = confirmFormData.planSupvDate.replace('T', ' ')
updatePlanFormData(confirmFormData).then(res => {
if (res.code == 'A0000') {
ElMessage({
- message: '新建技术监督计划成功',
+ message: '重新发起成功',
type: 'success'
})
ruleFormRef.value.resetFields()
diff --git a/src/views/pqs/supervise/plan/index.vue b/src/views/pqs/supervise/plan/index.vue
index 16f48d79..3ff0386d 100644
--- a/src/views/pqs/supervise/plan/index.vue
+++ b/src/views/pqs/supervise/plan/index.vue
@@ -46,7 +46,10 @@ import addForm from './components/addForm.vue'
import effectProblem from './components/effectProblem/index.vue'
import { planDetailsAudit, sendAlarm } from '@/api/supervision-boot/plan/index'
import { ElMessage } from 'element-plus'
-
+import { useAdminInfo } from '@/stores/adminInfo'
+import { cancelPlanFormData } from '@/api/supervision-boot/plan/index'
+//获取登陆用户姓名和部门
+const adminInfo = useAdminInfo()
defineOptions({
name: 'plan'
})
@@ -169,30 +172,12 @@ const tableStore = new TableStore({
icon: 'el-icon-EditPen',
render: 'basicButton',
click: row => {
- console.log(row.processInstanceId,"000000000");
- handleDetails(row.processInstanceId)
+ handleDetails(row.processInstanceId, row.historyInstanceId)
},
disabled: row => {
return !row.processInstanceId
}
},
- {
- name: 'edit',
- title: '重新发起',
- type: 'warning',
- icon: 'el-icon-Open',
- render: 'basicButton',
- disabled: row => {
- return row.status == 1 || row.status == 2
- },
- click: row => {
- addForms.value.open({
- title: '重新发起',
- row: row
- })
- }
- },
-
{
name: 'productSetting',
title: '实施问题',
@@ -216,7 +201,24 @@ const tableStore = new TableStore({
handleAudit(row)
}
},
-
+ {
+ name: 'edit',
+ title: '重新发起',
+ type: 'warning',
+ icon: 'el-icon-Open',
+ render: 'basicButton',
+ disabled: row => {
+ return (
+ row.createBy != adminInfo.$state.id || row.status !=3
+ )
+ },
+ click: row => {
+ addForms.value.open({
+ title: '重新发起',
+ row: row
+ })
+ }
+ },
{
name: 'cancel',
title: '取消',
@@ -224,10 +226,12 @@ const tableStore = new TableStore({
icon: 'el-icon-Open',
render: 'basicButton',
disabled: row => {
- return row.status == 3 || row.status == 2 || row.status == 4
+ return (
+ row.createBy != adminInfo.$state.id || row.status != 1
+ )
},
click: row => {
- // cancelLeave(row)
+ cancelLeave(row)
}
},
{
@@ -299,17 +303,19 @@ onMounted(() => {
tableStore.index()
})
//
-const handleDetails = (id: any) => {
+const handleDetails = (id: any, historyInstanceId: any) => {
push({
name: 'BpmProcessInstanceDetail',
- query: {
- id: id
+ state: {
+ id: id,
+ historyInstanceId
}
})
}
/** 提交审核按钮 */
const handleAudit = (row: any) => {
planDetailsAudit({ id: row.planId }).then(res => {
+ ElMessage.success('提交审核成功!')
tableStore.index()
})
}
@@ -320,6 +326,26 @@ const handleAlarmForm = (row: any) => {
tableStore.index()
})
}
+/**取消流程操作*/
+const cancelLeave = async (row: any) => {
+ // 二次确认
+ const { value } = await ElMessageBox.prompt('请输入取消原因', '取消流程', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格
+ inputErrorMessage: '取消原因不能为空'
+ })
+ // 发起取消
+ let data = {
+ id: row.id,
+ processInstanceId: row.processInstanceId,
+ reason: value
+ }
+ await cancelPlanFormData(data)
+ ElMessage.success('取消成功')
+ // 加载数据
+ tableStore.index()
+}
// 实施问题按钮
const effectProblemList = ref()
const effectProblemForm: any = ref({})
@@ -333,5 +359,4 @@ const handleEffectProblem = (row: any) => {
}
})
}
-
diff --git a/src/views/pqs/supervise/technology/components/alarm.vue b/src/views/pqs/supervise/technology/components/alarm.vue
index 6582b173..6147b8b9 100644
--- a/src/views/pqs/supervise/technology/components/alarm.vue
+++ b/src/views/pqs/supervise/technology/components/alarm.vue
@@ -1,21 +1,17 @@
-
-
+
-
-
-
+
-
-
+
-
-
+
diff --git a/src/views/pqs/supervise/technology/components/earlyWarn.vue b/src/views/pqs/supervise/technology/components/earlyWarn.vue
index 7c675ad4..f6f5f9bf 100644
--- a/src/views/pqs/supervise/technology/components/earlyWarn.vue
+++ b/src/views/pqs/supervise/technology/components/earlyWarn.vue
@@ -17,7 +17,10 @@ import TableHeader from '@/components/table/header/index.vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import FeedbackPopup from '@/views/pqs/supervise/technology/feedbackPopup.vue'
import { useRouter } from 'vue-router'
-
+import { cancelFeedback } from '@/api/supervision-boot/leaflet'
+import { useAdminInfo } from '@/stores/adminInfo'
+//获取登陆用户姓名和部门
+const adminInfo = useAdminInfo()
const { push } = useRouter()
const tableRef = ref()
const TableHeaderRef = ref()
@@ -113,7 +116,7 @@ const tableStore = new TableStore({
return row.status == 5
},
click: row => {
- handleAudit(row.processInstanceId)
+ handleAudit(row.processInstanceId,row.historyInstanceId)
}
},
{
@@ -123,10 +126,11 @@ const tableStore = new TableStore({
icon: 'el-icon-Open',
render: 'basicButton',
disabled: row => {
- return row.status == 1 || row.status == 2 || row.status == 4 || row.status == 5
+ return row.createBy != adminInfo.$state.id || row.status != 3
},
click: row => {
// deviceQuitPopup.value.open('重新发起', row)
+ feedbackPopup.value.open('重新发起预警单', row.id, row.status, row.issueDetail,row.problemPath,row.takeStep,row.reportPath)
}
},
{
@@ -136,10 +140,10 @@ const tableStore = new TableStore({
icon: 'el-icon-Open',
render: 'basicButton',
disabled: row => {
- return row.status == 3 || row.status == 2 || row.status == 4 || row.status == 5
+ return row.createBy != adminInfo.$state.id || row.status != 1
},
click: row => {
- // cancelLeave(row)
+ cancelLeave(row)
}
}
]
@@ -156,13 +160,33 @@ provide('tableStore', tableStore)
onMounted(() => {
tableStore.index()
})
-
+/**取消流程操作*/
+const cancelLeave = async (row: any) => {
+ // 二次确认
+ const { value } = await ElMessageBox.prompt('请输入取消原因', '取消流程', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格
+ inputErrorMessage: '取消原因不能为空'
+ })
+ // 发起取消
+ let data = {
+ id: row.id,
+ processInstanceId: row.processInstanceId,
+ reason: value
+ }
+ await cancelFeedback(data)
+ ElMessage.success('取消成功')
+ // 加载数据
+ tableStore.index()
+}
/** 流程实例详情 */
-const handleAudit = (instanceId: any) => {
+const handleAudit = (instanceId: any,historyInstanceId:any) => {
push({
name: 'BpmProcessInstanceDetail',
query: {
- id: instanceId
+ id: instanceId,
+ historyInstanceId
}
})
}
diff --git a/src/views/pqs/supervise/technology/feedbackPopup.vue b/src/views/pqs/supervise/technology/feedbackPopup.vue
index 7c2d3dda..aa49b6f5 100644
--- a/src/views/pqs/supervise/technology/feedbackPopup.vue
+++ b/src/views/pqs/supervise/technology/feedbackPopup.vue
@@ -1,77 +1,70 @@
-
+
-
-
-
+
+
-
+
- {{ problemDetail.problemName }}
+ {{ problemDetail.problemName }}
-
+
-
-
+
- 上传文件
+ 上传文件
-
-
-
-
diff --git a/src/views/pqs/supervise/technology/index.vue b/src/views/pqs/supervise/technology/index.vue
index 2563404a..c24d1786 100644
--- a/src/views/pqs/supervise/technology/index.vue
+++ b/src/views/pqs/supervise/technology/index.vue
@@ -7,7 +7,9 @@
-
+
+
+
diff --git a/src/views/pqs/supervise/terminalNetworkDetection/components/jointDebugList/index.vue b/src/views/pqs/supervise/terminalNetworkDetection/components/jointDebugList/index.vue
index 1ea01129..eb7c24c5 100644
--- a/src/views/pqs/supervise/terminalNetworkDetection/components/jointDebugList/index.vue
+++ b/src/views/pqs/supervise/terminalNetworkDetection/components/jointDebugList/index.vue
@@ -38,7 +38,12 @@ import { setTempLinedebugLedgerSync } from '@/api/supervision-boot/jointDebugLis
import debug from './debug.vue'
import { any } from 'vue-types'
const dictData = useDictData()
-const { push } = useRouter()
+const { push, beforeEach } = useRouter()
+beforeEach((to, from) => {
+ if (from.path == '/bpm/instanceDetail') {
+ console.log('联调333')
+ }
+})
const TableHeaderRef = ref()
const tableRef = ref()
const areaOptionList = dictData.getBasicData('jibei_area')
diff --git a/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/addForm.vue b/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/addForm.vue
index c94a4085..66e2a9d3 100644
--- a/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/addForm.vue
+++ b/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/addForm.vue
@@ -161,33 +161,33 @@
>
-
+
-
+
- 是
- 否
+ 是
+ 否