联调 技术监督 草稿功能
This commit is contained in:
@@ -213,8 +213,8 @@ export function addComplaintsData(data) {
|
|||||||
export function sureInitiateWarningLeaflet(query) {
|
export function sureInitiateWarningLeaflet(query) {
|
||||||
return createAxios({
|
return createAxios({
|
||||||
url: '/supervision-boot/SupervisionUserComplaint/initiateWarningLeaflet',
|
url: '/supervision-boot/SupervisionUserComplaint/initiateWarningLeaflet',
|
||||||
method: 'GET',
|
method: 'POST',
|
||||||
params: query
|
data: query
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -40,10 +40,11 @@ export const updateSurveyTest = (data: any) => {
|
|||||||
/**
|
/**
|
||||||
* 针对有问题的现场测试发起告警单
|
* 针对有问题的现场测试发起告警单
|
||||||
*/
|
*/
|
||||||
export const initiateWarningLeaflet = (id: string) => {
|
export const initiateWarningLeaflet = (data:any) => {
|
||||||
return createAxios({
|
return createAxios({
|
||||||
url: MAPPING_PATH + '/initiateWarningLeaflet?id=' + id,
|
url: MAPPING_PATH + '/initiateWarningLeaflet',
|
||||||
method: 'GET'
|
method: 'POST',
|
||||||
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -102,17 +102,19 @@ const tableStore = new TableStore({
|
|||||||
// title: '请确认发起告警单!'
|
// title: '请确认发起告警单!'
|
||||||
// },
|
// },
|
||||||
click: async row => {
|
click: async row => {
|
||||||
const { value } = await ElMessageBox.prompt('请输入取消原因', '取消流程', {
|
const { value } = await ElMessageBox.prompt('', '整改意见', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
|
|
||||||
inputType: 'textarea',
|
inputType: 'textarea',
|
||||||
inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格
|
inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格
|
||||||
inputErrorMessage: '取消原因不能为空'
|
inputErrorMessage: '请输入整改意见'
|
||||||
})
|
})
|
||||||
// sureInitiateWarningLeaflet({ id: row.id })
|
sureInitiateWarningLeaflet({ id: row.id, reformAdvice: value }).then(res=>{
|
||||||
// ElMessage.success('发起告警单成功!')
|
ElMessage.success('发起告警单成功!')
|
||||||
// tableStore.index()
|
tableStore.index()
|
||||||
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,16 +4,29 @@
|
|||||||
<TableHeader area datePicker nextFlag ref="TableHeaderRef">
|
<TableHeader area datePicker nextFlag ref="TableHeaderRef">
|
||||||
<template v-slot:select>
|
<template v-slot:select>
|
||||||
<el-form-item label="超标指标">
|
<el-form-item label="超标指标">
|
||||||
<el-select
|
<el-select v-model="tableStore.table.params.targetId" clearable placeholder="请选择超标指标">
|
||||||
v-model="tableStore.table.params.evaluateType"
|
|
||||||
multiple
|
|
||||||
collapse-tags
|
|
||||||
clearable
|
|
||||||
placeholder="请选择超标指标"
|
|
||||||
>
|
|
||||||
<el-option v-for="item in exceeded" :key="item.id" :label="item.name" :value="item.id" />
|
<el-option v-for="item in exceeded" :key="item.id" :label="item.name" :value="item.id" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="预警阈值">
|
||||||
|
<!-- <el-input v-model="tableStore.table.params.alertThreshold" placeholder="请输入预警阈值" clearable></el-input> -->
|
||||||
|
<el-input-number
|
||||||
|
v-model="tableStore.table.params.alertThreshold"
|
||||||
|
:min="0"
|
||||||
|
:step="1"
|
||||||
|
step-strictly
|
||||||
|
@change="changeAlert"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="告警阈值">
|
||||||
|
<el-input-number
|
||||||
|
v-model="tableStore.table.params.alarmThreshold"
|
||||||
|
:min="0"
|
||||||
|
:step="1"
|
||||||
|
step-strictly
|
||||||
|
@change="changeAlarm"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
</template>
|
</template>
|
||||||
</TableHeader>
|
</TableHeader>
|
||||||
<Table ref="tableRef" />
|
<Table ref="tableRef" />
|
||||||
@@ -25,19 +38,18 @@ import Table from '@/components/table/index.vue'
|
|||||||
import TableHeader from '@/components/table/header/index.vue'
|
import TableHeader from '@/components/table/header/index.vue'
|
||||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||||
import { useDictData } from '@/stores/dictData'
|
import { useDictData } from '@/stores/dictData'
|
||||||
import { ValueType } from 'exceljs'
|
|
||||||
import { handleWarningAlarmFlag } from '@/api/process-boot/electricitymanagement'
|
import { handleWarningAlarmFlag } from '@/api/process-boot/electricitymanagement'
|
||||||
// Steady_Statis
|
// Steady_Statis
|
||||||
const dictData = useDictData()
|
const dictData = useDictData()
|
||||||
//字典获取超标指标
|
//字典获取超标指标
|
||||||
const exceeded = dictData.getBasicData('Indicator_Type')
|
const exceeded = dictData.getBasicData('Steady_Statis')
|
||||||
const tableRef = ref()
|
const tableRef = ref()
|
||||||
const planAddRef = ref()
|
const industry = dictData.getBasicData('Business_Type')
|
||||||
const listFormRef = ref()
|
|
||||||
const TableHeaderRef = ref()
|
const TableHeaderRef = ref()
|
||||||
|
|
||||||
const tableStore = new TableStore({
|
const tableStore = new TableStore({
|
||||||
url: '/harmonic-boot/rmppartharmonicdetail/getRMpPartHarmonicDetail',
|
url: '/supervision-boot/onlineMonitor/list',
|
||||||
publicHeight: 65,
|
publicHeight: 65,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
// isWebPaging:true,
|
// isWebPaging:true,
|
||||||
@@ -51,34 +63,34 @@ const tableStore = new TableStore({
|
|||||||
return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1
|
return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ field: 'sustationName', title: '变电站名称', width: 170 },
|
{ field: 'substation', title: '变电站名称' },
|
||||||
{ field: 'barName', title: '母线名称', width: 170 },
|
{ field: 'lineName', title: '监测点名称' },
|
||||||
{ field: 'dutyOrgName', title: '负责单位', minWidth: '150' },
|
{ field: 'deviceName', title: '终端名称' },
|
||||||
{ field: 'measurementPointName', title: '监测点名称', width: 170 },
|
|
||||||
{ field: 'voltageLevel', title: '电压等级', width: 170 },
|
|
||||||
{ field: 'loadType', title: '监测点对象类型', width: 170 },
|
|
||||||
{ field: 'objName', title: '监测点对象名称', width: 170 },
|
|
||||||
{ field: 'dateList', title: '超标天数详情', width: 170 },
|
|
||||||
{
|
{
|
||||||
field: 'overLimitContinuous',
|
field: 'businessType',
|
||||||
title: '连续超标天数',
|
title: '监测对象类型',
|
||||||
width: 170
|
|
||||||
},
|
|
||||||
{
|
|
||||||
field: 'overLimitDay',
|
|
||||||
title: '超标天数',
|
|
||||||
width: 170
|
|
||||||
},
|
|
||||||
{
|
|
||||||
field: 'overLimitrate',
|
|
||||||
title: '超标占比',
|
|
||||||
width: 170,
|
|
||||||
formatter: (row: any) => {
|
formatter: (row: any) => {
|
||||||
console.log(row.cellValue, row)
|
return industry.find((item: any) => item.id == row.cellValue)?.name || '/'
|
||||||
let value = parseFloat(row.cellValue * 100).toFixed(2) + '%'
|
|
||||||
return value
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{ field: 'objectName', title: '监测对象名称' },
|
||||||
|
{ field: 'dept', title: '负责单位' },
|
||||||
|
{
|
||||||
|
field: 'dataResource',
|
||||||
|
title: '数据来源',
|
||||||
|
render: 'tag',
|
||||||
|
custom: {
|
||||||
|
0: 'primary',
|
||||||
|
1: 'success'
|
||||||
|
},
|
||||||
|
replaceValue: {
|
||||||
|
0: '系统默认',
|
||||||
|
1: '自定义'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ field: 'overLimitDay', title: '累计超标天数' },
|
||||||
|
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
width: '180',
|
width: '180',
|
||||||
@@ -91,19 +103,26 @@ const tableStore = new TableStore({
|
|||||||
title: '发起告警单',
|
title: '发起告警单',
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
disabled: row => {
|
disabled: row => {
|
||||||
return row.alarmFlag != 1
|
return row.overLimitDay < tableStore.table.params.alarmThreshold
|
||||||
},
|
},
|
||||||
icon: 'el-icon-EditPen',
|
icon: 'el-icon-EditPen',
|
||||||
render: 'confirmButton',
|
render: 'basicButton',
|
||||||
popconfirm: {
|
|
||||||
confirmButtonText: '确认',
|
click: async row => {
|
||||||
cancelButtonText: '取消',
|
// handleWarningAlarmFlag(row).then(res => {
|
||||||
confirmButtonType: 'primary',
|
// console.log(res)
|
||||||
title: '请确认发起告警单!'
|
// ElMessage.success('发起告警单成功!')
|
||||||
},
|
// tableStore.index()
|
||||||
click: row => {
|
// })
|
||||||
handleWarningAlarmFlag(row).then(res => {
|
const { value } = await ElMessageBox.prompt('', '整改意见', {
|
||||||
console.log(res)
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
|
||||||
|
inputType: 'textarea',
|
||||||
|
inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格
|
||||||
|
inputErrorMessage: '请输入整改意见'
|
||||||
|
})
|
||||||
|
handleWarningAlarmFlag({ ...row, reformAdvice: value }).then(res => {
|
||||||
ElMessage.success('发起告警单成功!')
|
ElMessage.success('发起告警单成功!')
|
||||||
tableStore.index()
|
tableStore.index()
|
||||||
})
|
})
|
||||||
@@ -115,19 +134,25 @@ const tableStore = new TableStore({
|
|||||||
type: 'primary',
|
type: 'primary',
|
||||||
icon: 'el-icon-Open',
|
icon: 'el-icon-Open',
|
||||||
disabled: row => {
|
disabled: row => {
|
||||||
return row.warningFlag != 1
|
return row.overLimitDay >= tableStore.table.params.alarmThreshold
|
||||||
},
|
|
||||||
render: 'confirmButton',
|
|
||||||
popconfirm: {
|
|
||||||
confirmButtonText: '确认',
|
|
||||||
cancelButtonText: '取消',
|
|
||||||
confirmButtonType: 'primary',
|
|
||||||
title: '请确认发起预警单!'
|
|
||||||
},
|
},
|
||||||
|
render: 'basicButton',
|
||||||
|
|
||||||
click: row => {
|
click: async row => {
|
||||||
handleWarningAlarmFlag(row).then(res => {
|
// handleWarningAlarmFlag(row).then(res => {
|
||||||
console.log(res)
|
// console.log(res)
|
||||||
|
// ElMessage.success('发起预警单成功!')
|
||||||
|
// tableStore.index()
|
||||||
|
// })
|
||||||
|
const { value } = await ElMessageBox.prompt('', '整改意见', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
|
||||||
|
inputType: 'textarea',
|
||||||
|
inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格
|
||||||
|
inputErrorMessage: '请输入整改意见'
|
||||||
|
})
|
||||||
|
handleWarningAlarmFlag({ ...row, reformAdvice: value }).then(res => {
|
||||||
ElMessage.success('发起预警单成功!')
|
ElMessage.success('发起预警单成功!')
|
||||||
tableStore.index()
|
tableStore.index()
|
||||||
})
|
})
|
||||||
@@ -137,7 +162,7 @@ const tableStore = new TableStore({
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
beforeSearchFun: () => {
|
beforeSearchFun: () => {
|
||||||
tableStore.table.params.orgNo = tableStore.table.params.deptIndex
|
tableStore.table.params.deptId = tableStore.table.params.deptIndex
|
||||||
tableStore.table.params.currentPage = tableStore.table.params.pageNum
|
tableStore.table.params.currentPage = tableStore.table.params.pageNum
|
||||||
},
|
},
|
||||||
loadCallback: () => {
|
loadCallback: () => {
|
||||||
@@ -161,12 +186,35 @@ const tableStore = new TableStore({
|
|||||||
// ]
|
// ]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
tableStore.table.params.alertThreshold = 10
|
||||||
|
|
||||||
|
tableStore.table.params.alarmThreshold = 15
|
||||||
|
// tableStore.table.params.targetId = ''
|
||||||
provide('tableStore', tableStore)
|
provide('tableStore', tableStore)
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
tableStore.index()
|
tableStore.index()
|
||||||
})
|
})
|
||||||
|
const changeAlert = e => {
|
||||||
|
if (e == null) {
|
||||||
|
tableStore.table.params.alertThreshold = 10
|
||||||
|
} else {
|
||||||
|
if (e > tableStore.table.params.alarmThreshold) {
|
||||||
|
ElMessage.warning('预警阈值不能大于报警阈值')
|
||||||
|
tableStore.table.params.alertThreshold = 10
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const changeAlarm = e => {
|
||||||
|
if (e == null) {
|
||||||
|
tableStore.table.params.alarmThreshold = 15
|
||||||
|
} else {
|
||||||
|
if (e < tableStore.table.params.alertThreshold) {
|
||||||
|
ElMessage.warning('报警阈值不能小于预警阈值')
|
||||||
|
tableStore.table.params.alarmThreshold = 15
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss"></style>
|
<style scoped lang="scss"></style>
|
||||||
|
|||||||
@@ -3,7 +3,12 @@
|
|||||||
<TableHeader area datePicker nextFlag ref="TableHeaderRef">
|
<TableHeader area datePicker nextFlag ref="TableHeaderRef">
|
||||||
<template v-slot:select>
|
<template v-slot:select>
|
||||||
<el-form-item label="计划名称">
|
<el-form-item label="计划名称">
|
||||||
<el-input style="width: 200px;" v-model="tableStore.table.params.searchValue" clearable placeholder="请输入计划名称"></el-input>
|
<el-input
|
||||||
|
style="width: 200px"
|
||||||
|
v-model="tableStore.table.params.searchValue"
|
||||||
|
clearable
|
||||||
|
placeholder="请输入计划名称"
|
||||||
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</template>
|
</template>
|
||||||
</TableHeader>
|
</TableHeader>
|
||||||
@@ -17,7 +22,7 @@ import Table from '@/components/table/index.vue'
|
|||||||
import TableHeader from '@/components/table/header/index.vue'
|
import TableHeader from '@/components/table/header/index.vue'
|
||||||
import testQuestionsForm from './form/testQuestionsForm.vue'
|
import testQuestionsForm from './form/testQuestionsForm.vue'
|
||||||
import { initiateWarningLeaflet } from '@/api/supervision-boot/survey/test'
|
import { initiateWarningLeaflet } from '@/api/supervision-boot/survey/test'
|
||||||
import { ElMessage } from 'element-plus'
|
import { ElMessage,ElMessageBox } from 'element-plus'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
import { useDictData } from '@/stores/dictData'
|
import { useDictData } from '@/stores/dictData'
|
||||||
const dictData = useDictData()
|
const dictData = useDictData()
|
||||||
@@ -67,18 +72,24 @@ const tableStore = new TableStore({
|
|||||||
title: '发起告警单',
|
title: '发起告警单',
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
icon: 'el-icon-Open',
|
icon: 'el-icon-Open',
|
||||||
render: 'confirmButton',
|
render: 'basicButton',
|
||||||
disabled: row => {
|
disabled: row => {
|
||||||
return row.initiateWarningFlag == 1
|
return row.initiateWarningFlag == 1
|
||||||
},
|
},
|
||||||
popconfirm: {
|
|
||||||
confirmButtonText: '确认',
|
click: async row => {
|
||||||
cancelButtonText: '取消',
|
const { value } = await ElMessageBox.prompt('', '整改意见', {
|
||||||
confirmButtonType: 'primary',
|
confirmButtonText: '确定',
|
||||||
title: '请确认发起告警单!'
|
cancelButtonText: '取消',
|
||||||
},
|
|
||||||
click: row => {
|
inputType: 'textarea',
|
||||||
initiateAlarm(row.id)
|
inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格
|
||||||
|
inputErrorMessage: '请输入整改意见'
|
||||||
|
})
|
||||||
|
initiateWarningLeaflet({ id: row.id, reformAdvice: value }).then(res => {
|
||||||
|
ElMessage.success('发起告警成功!')
|
||||||
|
tableStore.index()
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -93,8 +104,8 @@ const tableStore = new TableStore({
|
|||||||
click: row => {
|
click: row => {
|
||||||
router.push({
|
router.push({
|
||||||
name: 'supervision/supervision/manage',
|
name: 'supervision/supervision/manage',
|
||||||
state:{
|
state: {
|
||||||
type:1
|
type: 1
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -136,6 +136,9 @@ const tableStore = new TableStore({
|
|||||||
type: 'primary',
|
type: 'primary',
|
||||||
icon: 'el-icon-EditPen',
|
icon: 'el-icon-EditPen',
|
||||||
render: 'basicButton',
|
render: 'basicButton',
|
||||||
|
disabled: row => {
|
||||||
|
return !row.processInstanceId
|
||||||
|
},
|
||||||
click: row => {
|
click: row => {
|
||||||
handleAudit(row.processInstanceId)
|
handleAudit(row.processInstanceId)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ const open = async (text: string, tempData?: any) => {
|
|||||||
}
|
}
|
||||||
form.value.deviceType = form.value.deviceType + ''
|
form.value.deviceType = form.value.deviceType + ''
|
||||||
changeDevStatus(form.value.deviceId, true)
|
changeDevStatus(form.value.deviceId, true)
|
||||||
form.value.devStatus = form.value.devStatus ? form.value.devStatus + '' : ''
|
form.value.devStatus = tempData.devStatus != null ? tempData.devStatus + '' : ''
|
||||||
} else {
|
} else {
|
||||||
resetForm()
|
resetForm()
|
||||||
// 在此处恢复默认表单
|
// 在此处恢复默认表单
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ const tableStore = new TableStore({
|
|||||||
},
|
},
|
||||||
|
|
||||||
replaceValue: {
|
replaceValue: {
|
||||||
0: '运行',
|
0: '投运',
|
||||||
1: '检修',
|
1: '检修',
|
||||||
2: '停运',
|
2: '停运',
|
||||||
3: '调试',
|
3: '调试',
|
||||||
@@ -89,6 +89,28 @@ const tableStore = new TableStore({
|
|||||||
null: '/'
|
null: '/'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '目标状态',
|
||||||
|
field: 'devStatus',
|
||||||
|
minWidth: 130,
|
||||||
|
render: 'tag',
|
||||||
|
custom: {
|
||||||
|
0: 'success',
|
||||||
|
1: 'warning',
|
||||||
|
2: 'danger',
|
||||||
|
3: 'warning',
|
||||||
|
4: 'info',
|
||||||
|
null: 'primary'
|
||||||
|
},
|
||||||
|
replaceValue: {
|
||||||
|
0: '投运',
|
||||||
|
1: '检修',
|
||||||
|
2: '停运',
|
||||||
|
3: '调试',
|
||||||
|
4: '退运',
|
||||||
|
null:'/'
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
field: 'status',
|
field: 'status',
|
||||||
title: '流程状态',
|
title: '流程状态',
|
||||||
@@ -133,6 +155,9 @@ const tableStore = new TableStore({
|
|||||||
type: 'primary',
|
type: 'primary',
|
||||||
icon: 'el-icon-EditPen',
|
icon: 'el-icon-EditPen',
|
||||||
render: 'basicButton',
|
render: 'basicButton',
|
||||||
|
disabled: row => {
|
||||||
|
return !row.processInstanceId
|
||||||
|
},
|
||||||
click: row => {
|
click: row => {
|
||||||
handleAudit(row.processInstanceId, row.historyInstanceId)
|
handleAudit(row.processInstanceId, row.historyInstanceId)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
<el-form-item label="监测点当前状态:">
|
<el-form-item label="监测点当前状态:">
|
||||||
<el-select v-model="runFlag" disabled placeholder="请选择监测点" clearable class="select">
|
<el-select v-model="runFlag" disabled placeholder="请选择监测点" clearable class="select">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in runFlagList "
|
v-for="item in runFlagList"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
:label="item.name"
|
:label="item.name"
|
||||||
:value="item.id"
|
:value="item.id"
|
||||||
@@ -131,7 +131,7 @@ const open = async (text: string, tempData?: any) => {
|
|||||||
}
|
}
|
||||||
form.value.deviceType = form.value.deviceType + ''
|
form.value.deviceType = form.value.deviceType + ''
|
||||||
changeDevStatus(form.value.deviceId, true)
|
changeDevStatus(form.value.deviceId, true)
|
||||||
form.value.devStatus = form.value.devStatus ? form.value.devStatus + '' : ''
|
form.value.devStatus = tempData.devStatus != null ? tempData.devStatus + '' : ''
|
||||||
} else {
|
} else {
|
||||||
resetForm()
|
resetForm()
|
||||||
// 在此处恢复默认表单
|
// 在此处恢复默认表单
|
||||||
@@ -161,9 +161,7 @@ const submit = (flag: boolean) => {
|
|||||||
formRef.value.validate(async (valid: any) => {
|
formRef.value.validate(async (valid: any) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
form.value.saveOrCheckflag = '2'
|
form.value.saveOrCheckflag = '2'
|
||||||
if (form.value.devOriginalStatus == '4') {
|
{
|
||||||
ElMessage.warning('终端当前状态就是退运,无需变更!')
|
|
||||||
} else {
|
|
||||||
if (form.value.id) {
|
if (form.value.id) {
|
||||||
await quitRunningDeviceUpdate(form.value)
|
await quitRunningDeviceUpdate(form.value)
|
||||||
ElMessage.success('重新发起成功')
|
ElMessage.success('重新发起成功')
|
||||||
@@ -214,7 +212,9 @@ const changeDevStatus = async (event: any, flag?: any) => {
|
|||||||
// }
|
// }
|
||||||
runFlag.value = runFlagList.filter(item => item.name == res.data.runFlag)[0].id
|
runFlag.value = runFlagList.filter(item => item.name == res.data.runFlag)[0].id
|
||||||
form.value.devOriginalStatus = runFlag.value
|
form.value.devOriginalStatus = runFlag.value
|
||||||
if (!flag) form.value.devStatus = ''
|
if (!flag) {
|
||||||
|
form.value.devStatus = ''
|
||||||
|
}
|
||||||
runFlagData.value = runFlagList.filter(item => item.name != res.data.runFlag)
|
runFlagData.value = runFlagList.filter(item => item.name != res.data.runFlag)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -151,6 +151,9 @@ const tableStore = new TableStore({
|
|||||||
type: 'primary',
|
type: 'primary',
|
||||||
icon: 'el-icon-EditPen',
|
icon: 'el-icon-EditPen',
|
||||||
render: 'basicButton',
|
render: 'basicButton',
|
||||||
|
disabled: row => {
|
||||||
|
return !row.processInstanceId
|
||||||
|
},
|
||||||
click: row => {
|
click: row => {
|
||||||
flag.value = true
|
flag.value = true
|
||||||
handleAudit(row.processInstanceId, row.historyInstanceId)
|
handleAudit(row.processInstanceId, row.historyInstanceId)
|
||||||
|
|||||||
@@ -77,6 +77,7 @@ const tableStore = new TableStore({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ field: 'dutyOrgName', title: '负责单位', minWidth: '150' },
|
{ field: 'dutyOrgName', title: '负责单位', minWidth: '150' },
|
||||||
|
{ field: 'reformAdvice', title: '整改意见', minWidth: '150' },
|
||||||
{ field: 'leafletName', title: '单据名称', minWidth: '150' },
|
{ field: 'leafletName', title: '单据名称', minWidth: '150' },
|
||||||
{ field: 'issueDetail', title: '告警内容', minWidth: '150' },
|
{ field: 'issueDetail', title: '告警内容', minWidth: '150' },
|
||||||
{
|
{
|
||||||
@@ -139,7 +140,14 @@ const tableStore = new TableStore({
|
|||||||
return row.status !== 5
|
return row.status !== 5
|
||||||
},
|
},
|
||||||
click: row => {
|
click: row => {
|
||||||
feedbackPopup.value.open('填报反馈单', row.id, row.status, row.issueDetail, row.problemPath)
|
feedbackPopup.value.open(
|
||||||
|
'填报反馈单',
|
||||||
|
row.id,
|
||||||
|
row.status,
|
||||||
|
row.issueDetail,
|
||||||
|
row.problemPath,
|
||||||
|
row.reformAdvice
|
||||||
|
)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -150,7 +158,7 @@ const tableStore = new TableStore({
|
|||||||
icon: 'el-icon-EditPen',
|
icon: 'el-icon-EditPen',
|
||||||
render: 'basicButton',
|
render: 'basicButton',
|
||||||
disabled: row => {
|
disabled: row => {
|
||||||
return row.status == 5
|
return !row.processInstanceId
|
||||||
},
|
},
|
||||||
click: row => {
|
click: row => {
|
||||||
handleAudit(row.processInstanceId, row.historyInstanceId)
|
handleAudit(row.processInstanceId, row.historyInstanceId)
|
||||||
@@ -172,6 +180,8 @@ const tableStore = new TableStore({
|
|||||||
row.status,
|
row.status,
|
||||||
row.issueDetail,
|
row.issueDetail,
|
||||||
row.problemPath,
|
row.problemPath,
|
||||||
|
|
||||||
|
row.reformAdvice ,
|
||||||
row.takeStep,
|
row.takeStep,
|
||||||
row.reportPath
|
row.reportPath
|
||||||
)
|
)
|
||||||
@@ -194,8 +204,10 @@ const tableStore = new TableStore({
|
|||||||
row.status,
|
row.status,
|
||||||
row.issueDetail,
|
row.issueDetail,
|
||||||
row.problemPath,
|
row.problemPath,
|
||||||
|
row.reformAdvice ,
|
||||||
row.takeStep,
|
row.takeStep,
|
||||||
row.reportPath
|
row.reportPath,
|
||||||
|
row.reformAdvice
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ const tableStore = new TableStore({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ field: 'dutyOrgName', title: '负责单位', minWidth: '150' },
|
{ field: 'dutyOrgName', title: '负责单位', minWidth: '150' },
|
||||||
|
{ field: 'reformAdvice', title: '整改意见', minWidth: '150' },
|
||||||
{ field: 'leafletName', title: '单据名称', minWidth: '150' },
|
{ field: 'leafletName', title: '单据名称', minWidth: '150' },
|
||||||
{
|
{
|
||||||
field: 'status',
|
field: 'status',
|
||||||
@@ -68,6 +69,7 @@ const tableStore = new TableStore({
|
|||||||
minWidth: '150',
|
minWidth: '150',
|
||||||
render: 'tag',
|
render: 'tag',
|
||||||
custom: {
|
custom: {
|
||||||
|
0: 'warning',
|
||||||
1: 'primary',
|
1: 'primary',
|
||||||
2: 'success',
|
2: 'success',
|
||||||
3: 'danger',
|
3: 'danger',
|
||||||
@@ -75,6 +77,7 @@ const tableStore = new TableStore({
|
|||||||
5: 'primary'
|
5: 'primary'
|
||||||
},
|
},
|
||||||
replaceValue: {
|
replaceValue: {
|
||||||
|
0: '待提交审批',
|
||||||
1: '审批中',
|
1: '审批中',
|
||||||
2: '审批通过',
|
2: '审批通过',
|
||||||
3: '审批不通过',
|
3: '审批不通过',
|
||||||
@@ -120,7 +123,14 @@ const tableStore = new TableStore({
|
|||||||
return row.status !== 5
|
return row.status !== 5
|
||||||
},
|
},
|
||||||
click: row => {
|
click: row => {
|
||||||
feedbackPopup.value.open('填报反馈单', row.id, row.status, row.issueDetail, row.problemPath)
|
feedbackPopup.value.open(
|
||||||
|
'填报反馈单',
|
||||||
|
row.id,
|
||||||
|
row.status,
|
||||||
|
row.issueDetail,
|
||||||
|
row.problemPath,
|
||||||
|
row.reformAdvice
|
||||||
|
)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -130,12 +140,35 @@ const tableStore = new TableStore({
|
|||||||
icon: 'el-icon-EditPen',
|
icon: 'el-icon-EditPen',
|
||||||
render: 'basicButton',
|
render: 'basicButton',
|
||||||
disabled: row => {
|
disabled: row => {
|
||||||
return row.status == 5
|
return !row.processInstanceId
|
||||||
},
|
},
|
||||||
click: row => {
|
click: row => {
|
||||||
handleAudit(row.processInstanceId, row.historyInstanceId)
|
handleAudit(row.processInstanceId, row.historyInstanceId)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'edit',
|
||||||
|
title: '编辑',
|
||||||
|
type: 'primary',
|
||||||
|
icon: 'el-icon-Open',
|
||||||
|
render: 'basicButton',
|
||||||
|
disabled: row => {
|
||||||
|
return row.createBy != adminInfo.$state.id || !(row.status == 0)
|
||||||
|
},
|
||||||
|
click: row => {
|
||||||
|
feedbackPopup.value.open(
|
||||||
|
'编辑',
|
||||||
|
row.id,
|
||||||
|
row.status,
|
||||||
|
row.issueDetail,
|
||||||
|
row.problemPath,
|
||||||
|
|
||||||
|
row.reformAdvice,
|
||||||
|
row.takeStep,
|
||||||
|
row.reportPath
|
||||||
|
)
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'edit',
|
name: 'edit',
|
||||||
title: '重新发起',
|
title: '重新发起',
|
||||||
@@ -153,6 +186,7 @@ const tableStore = new TableStore({
|
|||||||
row.status,
|
row.status,
|
||||||
row.issueDetail,
|
row.issueDetail,
|
||||||
row.problemPath,
|
row.problemPath,
|
||||||
|
row.reformAdvice,
|
||||||
row.takeStep,
|
row.takeStep,
|
||||||
row.reportPath
|
row.reportPath
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -11,6 +11,15 @@
|
|||||||
readonly
|
readonly
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="整改意见:">
|
||||||
|
<el-input
|
||||||
|
v-model="form.reformAdvice"
|
||||||
|
autocomplete="off"
|
||||||
|
type="textarea"
|
||||||
|
:autosize="{ minRows: 2, maxRows: 6 }"
|
||||||
|
readonly
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="问题附件:" v-if="showFile">
|
<el-form-item label="问题附件:" v-if="showFile">
|
||||||
<el-icon class="elView" v-if="problemDetail?.problemName">
|
<el-icon class="elView" v-if="problemDetail?.problemName">
|
||||||
@@ -82,6 +91,7 @@ const form = ref({
|
|||||||
id: '',
|
id: '',
|
||||||
status: '',
|
status: '',
|
||||||
issueDetail: '',
|
issueDetail: '',
|
||||||
|
reformAdvice: '',
|
||||||
takeStep: '',
|
takeStep: '',
|
||||||
reportPath: []
|
reportPath: []
|
||||||
})
|
})
|
||||||
@@ -113,6 +123,7 @@ const open = async (
|
|||||||
status: any,
|
status: any,
|
||||||
issueDetail: string,
|
issueDetail: string,
|
||||||
problemPath?: string,
|
problemPath?: string,
|
||||||
|
reformAdvice?: string,
|
||||||
takeStep?: string,
|
takeStep?: string,
|
||||||
reportPath?: string
|
reportPath?: string
|
||||||
) => {
|
) => {
|
||||||
@@ -134,6 +145,7 @@ const open = async (
|
|||||||
form.value.id = id
|
form.value.id = id
|
||||||
form.value.status = status
|
form.value.status = status
|
||||||
form.value.issueDetail = issueDetail
|
form.value.issueDetail = issueDetail
|
||||||
|
form.value.reformAdvice = reformAdvice
|
||||||
reportFilePath.value = reportPath
|
reportFilePath.value = reportPath
|
||||||
//判断附件是否存在,如果存在则回显出让用户可以点击下载
|
//判断附件是否存在,如果存在则回显出让用户可以点击下载
|
||||||
if (problemPath) {
|
if (problemPath) {
|
||||||
@@ -159,6 +171,7 @@ const close = () => {
|
|||||||
id: '',
|
id: '',
|
||||||
status: '',
|
status: '',
|
||||||
issueDetail: '',
|
issueDetail: '',
|
||||||
|
reformAdvice: '',
|
||||||
takeStep: '',
|
takeStep: '',
|
||||||
reportPath: []
|
reportPath: []
|
||||||
}
|
}
|
||||||
@@ -172,7 +185,7 @@ const submit = (flag: boolean) => {
|
|||||||
let subForm = JSON.parse(JSON.stringify(form.value))
|
let subForm = JSON.parse(JSON.stringify(form.value))
|
||||||
subForm = {
|
subForm = {
|
||||||
...subForm,
|
...subForm,
|
||||||
reportPath: reportFilePath.value
|
reportPath: form.value.reportPath.length > 0 ? reportFilePath.value : null
|
||||||
}
|
}
|
||||||
subForm.saveOrCheckflag = '1'
|
subForm.saveOrCheckflag = '1'
|
||||||
//此时该告警单处于待反馈状态
|
//此时该告警单处于待反馈状态
|
||||||
@@ -188,7 +201,7 @@ const submit = (flag: boolean) => {
|
|||||||
let subForm = JSON.parse(JSON.stringify(form.value))
|
let subForm = JSON.parse(JSON.stringify(form.value))
|
||||||
subForm = {
|
subForm = {
|
||||||
...subForm,
|
...subForm,
|
||||||
reportPath: reportFilePath.value
|
reportPath: form.value.reportPath.length > 0 ? reportFilePath.value : null
|
||||||
}
|
}
|
||||||
if (!reportFilePath.value) {
|
if (!reportFilePath.value) {
|
||||||
return ElMessage({
|
return ElMessage({
|
||||||
|
|||||||
@@ -87,6 +87,9 @@ const tableStore = new TableStore({
|
|||||||
type: 'primary',
|
type: 'primary',
|
||||||
icon: 'el-icon-EditPen',
|
icon: 'el-icon-EditPen',
|
||||||
render: 'basicButton',
|
render: 'basicButton',
|
||||||
|
disabled: row => {
|
||||||
|
return !row.processInstanceId
|
||||||
|
},
|
||||||
click: row => {
|
click: row => {
|
||||||
flag.value = true
|
flag.value = true
|
||||||
handleAudit(row.processInstance.id, row.historyInstanceId)
|
handleAudit(row.processInstance.id, row.historyInstanceId)
|
||||||
|
|||||||
@@ -111,6 +111,9 @@ const tableStore = new TableStore({
|
|||||||
type: 'primary',
|
type: 'primary',
|
||||||
icon: 'el-icon-EditPen',
|
icon: 'el-icon-EditPen',
|
||||||
render: 'basicButton',
|
render: 'basicButton',
|
||||||
|
disabled: row => {
|
||||||
|
return !row.processInstanceId
|
||||||
|
},
|
||||||
click: row => {
|
click: row => {
|
||||||
flag.value = true
|
flag.value = true
|
||||||
handleAudit(row.id, row.historyInstanceId)
|
handleAudit(row.id, row.historyInstanceId)
|
||||||
|
|||||||
Reference in New Issue
Block a user