This commit is contained in:
2024-05-24 09:49:40 +08:00
parent c2b088c931
commit 40ecf804bd
8 changed files with 213 additions and 151 deletions

View File

@@ -1,15 +1,15 @@
<template>
<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>-->
<!-- </template>-->
<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>-->
<!-- </template>-->
</TableHeader>
<Table ref="tableRef" />
<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'
@@ -17,6 +17,7 @@ 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'
const { push } = useRouter()
const tableRef = ref()
const TableHeaderRef = ref()
@@ -35,7 +36,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',
@@ -51,14 +53,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: '审批中',
@@ -71,63 +74,74 @@ const tableStore = new TableStore({
{ field: 'createTime', title: '创建时间', minWidth: '150' },
{
title: '操作',
width: '180',
minWidth: '220',
align: 'center',
render: 'buttons',
fixed: 'right',
buttons: [
{
name: 'productSetting',
title: '发送督办单',
type: 'primary',
icon: 'el-icon-EditPen',
render: 'basicButton',
click: row => {
// handleAudit(row.processInstanceId)
ElMessage.warning("待打通生成管理系统接口!")
}
},
{
name: 'productSetting',
title: '问题反馈',
type: 'primary',
icon: 'el-icon-EditPen',
render: 'basicButton',
disabled: row => {
return row.status !== 5
},
click: row => {
feedbackPopup.value.open('填报反馈单',row.id,row.status)
}
disabled: row => {
return row.status !== 5
},
click: row => {
feedbackPopup.value.open('填报反馈单', row.id, row.status)
}
},
{
name: 'productSetting',
title: '流程详情',
type: 'primary',
icon: 'el-icon-EditPen',
render: 'basicButton',
disabled: row => {
return row.status == 5
{
name: 'productSetting',
title: '流程详情',
type: 'primary',
icon: 'el-icon-EditPen',
render: 'basicButton',
disabled: row => {
return row.status == 5
},
click: row => {
handleAudit(row.processInstanceId)
}
},
click: row => {
handleAudit(row.processInstanceId)
{
name: 'edit',
title: '重新发起',
type: 'warning',
icon: 'el-icon-Open',
render: 'basicButton',
disabled: row => {
return row.status == 1 || row.status == 2 || row.status == 4 || row.status == 5
},
click: row => {
// deviceQuitPopup.value.open('重新发起', row)
}
},
{
name: 'cancel',
title: '取消',
type: 'danger',
icon: 'el-icon-Open',
render: 'basicButton',
disabled: row => {
return row.status == 3 || row.status == 2 || row.status == 4 || row.status == 5
},
click: row => {
// cancelLeave(row)
}
}
},
{
name: 'edit',
title: '重新发起',
type: 'warning',
icon: 'el-icon-Open',
render: 'basicButton',
disabled: row => {
return row.status == 1 || row.status == 2 || row.status == 4 || row.status == 5
},
click: row => {
// deviceQuitPopup.value.open('重新发起', row)
}
},
{
name: 'cancel',
title: '取消',
type: 'danger',
icon: 'el-icon-Open',
render: 'basicButton',
disabled: row => {
return row.status == 3 || row.status == 2 || row.status == 4 || row.status == 5
},
click: row => {
// cancelLeave(row)
}
}
]
}
],
@@ -145,13 +159,13 @@ onMounted(() => {
/** 流程实例详情 */
const handleAudit = (instanceId: any) => {
push({
name: 'BpmProcessInstanceDetail',
query: {
id: instanceId
}
})
push({
name: 'BpmProcessInstanceDetail',
query: {
id: instanceId
}
})
}
</script>
<style scoped lang="scss"></style>
<style scoped lang='scss'></style>