修改流程状态

This commit is contained in:
GGJ
2024-06-19 11:28:18 +08:00
parent 71ce755919
commit c496a13617
15 changed files with 247 additions and 209 deletions

View File

@@ -1,15 +1,15 @@
<template>
<TableHeader datePicker nextFlag ref='TableHeaderRef'>
<TableHeader datePicker nextFlag 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' />
<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'
@@ -41,9 +41,11 @@ 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',
@@ -61,7 +63,9 @@ const tableStore = new TableStore({
{ field: 'dutyOrgName', title: '负责单位', minWidth: '150' },
{ field: 'leafletName', title: '单据名称', minWidth: '150' },
{
field: 'status', title: '流程状态', minWidth: '150',
field: 'status',
title: '流程状态',
minWidth: '150',
render: 'tag',
custom: {
1: 'primary',
@@ -103,7 +107,7 @@ const tableStore = new TableStore({
render: 'basicButton',
click: row => {
// handleAudit(row.processInstanceId)
ElMessage.warning("待打通生成管理系统接口!")
ElMessage.warning('待打通生成管理系统接口!')
}
},
{
@@ -116,8 +120,7 @@ const tableStore = new TableStore({
return row.status !== 5
},
click: row => {
feedbackPopup.value.open('填报反馈单', row.id, row.status, row.issueDetail,row.problemPath)
feedbackPopup.value.open('填报反馈单', row.id, row.status, row.issueDetail, row.problemPath)
}
},
{
@@ -130,7 +133,7 @@ const tableStore = new TableStore({
return row.status == 5
},
click: row => {
handleAudit(row.processInstanceId,row.historyInstanceId)
handleAudit(row.processInstanceId, row.historyInstanceId)
}
},
{
@@ -144,7 +147,15 @@ const tableStore = new TableStore({
},
click: row => {
// deviceQuitPopup.value.open('重新发起', row)
feedbackPopup.value.open('重新发起预警单', row.id, row.status, row.issueDetail,row.problemPath,row.takeStep,row.reportPath)
feedbackPopup.value.open(
'重新发起预警单',
row.id,
row.status,
row.issueDetail,
row.problemPath,
row.takeStep,
row.reportPath
)
}
},
{
@@ -180,6 +191,7 @@ const cancelLeave = async (row: any) => {
const { value } = await ElMessageBox.prompt('请输入取消原因', '取消流程', {
confirmButtonText: '确定',
cancelButtonText: '取消',
inputType: 'textarea',
inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格
inputErrorMessage: '取消原因不能为空'
})
@@ -195,7 +207,7 @@ const cancelLeave = async (row: any) => {
tableStore.index()
}
/** 流程实例详情 */
const handleAudit = (instanceId: any,historyInstanceId:any) => {
const handleAudit = (instanceId: any, historyInstanceId: any) => {
push({
name: 'BpmProcessInstanceDetail',
query: {
@@ -206,4 +218,4 @@ const handleAudit = (instanceId: any,historyInstanceId:any) => {
}
</script>
<style scoped lang='scss'></style>
<style scoped lang="scss"></style>