预告警单工作流基础版本

This commit is contained in:
2024-05-22 16:05:51 +08:00
parent 346aeb1179
commit 54f6fb6e02
8 changed files with 401 additions and 73 deletions

View File

@@ -1,35 +1,34 @@
<template>
<TableHeader datePicker ref="TableHeaderRef">
<TableHeader datePicker ref='TableHeaderRef'>
<template #operation>
<!-- <el-button icon="el-icon-Plus" type="primary" @click="add">新增</el-button>-->
<!-- <el-button icon="el-icon-Delete" type="primary">删除</el-button>-->
<!-- <el-button icon="el-icon-Download" type="primary">导出</el-button>-->
<!-- <el-button icon="el-icon-Plus" type="primary" @click="add">新增</el-button>-->
<!-- <el-button icon="el-icon-Delete" type="primary">删除</el-button>-->
<!-- <el-button icon="el-icon-Download" type="primary">导出</el-button>-->
</template>
</TableHeader ref="tableRef">
<Table ref="tableRef" />
<!-- 新增 -->
<listForm ref="listFormRef"/>
</TableHeader>
<!--表格-->
<Table ref='tableRef' />
<!--弹框-->
<feedback-popup ref='feedbackPopup' />
</template>
<script setup lang="ts">
<script setup lang='ts'>
import { ref, onMounted, provide, nextTick } from 'vue'
import TableStore from '@/utils/tableStore'
import Table from '@/components/table/index.vue'
import TableHeader from '@/components/table/header/index.vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { useDictData } from '@/stores/dictData'
import listForm from "./listForm.vue"
const dictData = useDictData()
import FeedbackPopup from '@/views/pqs/supervise/technology/feedbackPopup.vue'
import { useRouter } from 'vue-router'
const { push } = useRouter()
const feedbackPopup = ref()
const tableRef = ref()
const planAddRef = ref()
const TableHeaderRef = ref()
const listFormRef = ref()
const tableStore = new TableStore({
url: '/supervision-boot/warningLeaflet/alarmPageData',
publicHeight: 65,
@@ -44,7 +43,8 @@ const tableStore = new TableStore({
return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1
}
},
{ field: 'problemType', title: '告警单问题来源', minWidth: '150',
{
field: 'problemType', title: '告警单问题来源', minWidth: '150',
render: 'tag',
custom: {
1: 'warning',
@@ -60,14 +60,15 @@ const tableStore = new TableStore({
}
},
{ field: 'leafletName', title: '单据名称', minWidth: '150' },
{ field: 'status', title: '告警单状态', minWidth: '150',
{
field: 'status', title: '告警单状态', minWidth: '150',
render: 'tag',
custom: {
1: 'primary',
2: 'success',
3: 'danger',
4: 'warning',
5: 'primary',
5: 'primary'
},
replaceValue: {
1: '审批中',
@@ -87,7 +88,7 @@ const tableStore = new TableStore({
buttons: [
{
name: 'productSetting',
title: '反馈数据',
title: '问题反馈',
type: 'primary',
icon: 'el-icon-EditPen',
render: 'basicButton',
@@ -95,7 +96,7 @@ const tableStore = new TableStore({
return row.status !== 5
},
click: row => {
// planAddRef.value.open('查看计划', row)
feedbackPopup.value.open('填报反馈单',row.id,row.status)
}
},
{
@@ -108,7 +109,7 @@ const tableStore = new TableStore({
return row.status == 5
},
click: row => {
// handleAudit(row.processInstanceId)
handleAudit(row.processInstanceId)
}
},
{
@@ -121,7 +122,7 @@ const tableStore = new TableStore({
return row.status == 1 || row.status == 2 || row.status == 4 || row.status == 5
},
click: row => {
// deviceQuitPopup.value.open('重新发起退运', row)
// deviceQuitPopup.value.open('重新发起', row)
}
},
{
@@ -150,16 +151,21 @@ const tableStore = new TableStore({
tableStore.table.params.status = ''
provide('tableStore', tableStore)
// 新增计划
const add = () => {
// title.value = '普测计划新增'
listFormRef.value.open('新增告警单')
}
onMounted(() => {
tableStore.index()
})
/** 流程实例详情 */
const handleAudit = (instanceId: any) => {
push({
name: 'BpmProcessInstanceDetail',
query: {
id: instanceId
}
})
}
</script>
<style scoped lang="scss"></style>
<style scoped lang='scss'></style>