修改流程状态

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

@@ -29,6 +29,7 @@ export const useDictData = defineStore(
const statusSelect = () => { const statusSelect = () => {
return [ return [
{ name: '待提交审批', id: 0 },
{ name: '审批中', id: 1 }, { name: '审批中', id: 1 },
{ name: '审批通过', id: 2 }, { name: '审批通过', id: 2 },
{ name: '审批不通过', id: 3 }, { name: '审批不通过', id: 3 },

View File

@@ -45,7 +45,9 @@ const tableStore = new TableStore({
}, },
{ field: 'userName', title: '用户名称' }, { field: 'userName', title: '用户名称' },
{ field: 'userNumber', title: '用户编号' }, { field: 'userNumber', title: '用户编号' },
{ field: 'dutyOrgName', title: '负责单位', minWidth: '150' },
// { field: 'userCategory', title: '用户类别' }, // { field: 'userCategory', title: '用户类别' },
{ field: 'complaintText', title: '投诉内容' }, { field: 'complaintText', title: '投诉内容' },
{ field: 'steadyIndicator', title: '稳态指标' }, { field: 'steadyIndicator', title: '稳态指标' },
{ field: 'transientIndicators', title: '暂态指标' }, { field: 'transientIndicators', title: '暂态指标' },
@@ -89,20 +91,28 @@ 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: { // popconfirm: {
confirmButtonText: '确认', // confirmButtonText: '确认',
// cancelButtonText: '取消',
// confirmButtonType: 'primary',
// title: '请确认发起告警单!'
// },
click: async row => {
const { value } = await ElMessageBox.prompt('请输入取消原因', '取消流程', {
confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
confirmButtonType: 'primary',
title: '请确认发起告警单!' inputType: 'textarea',
}, inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格
click: row => { inputErrorMessage: '取消原因不能为空'
sureInitiateWarningLeaflet({ id: row.id }) })
ElMessage.success('发起告警单成功!') // sureInitiateWarningLeaflet({ id: row.id })
tableStore.index() // ElMessage.success('发起告警单成功!')
// tableStore.index()
} }
}, },
{ {

View File

@@ -53,6 +53,7 @@ const tableStore = new TableStore({
}, },
{ field: 'sustationName', title: '变电站名称', width: 170 }, { field: 'sustationName', title: '变电站名称', width: 170 },
{ field: 'barName', title: '母线名称', width: 170 }, { field: 'barName', title: '母线名称', width: 170 },
{ field: 'dutyOrgName', title: '负责单位', minWidth: '150' },
{ field: 'measurementPointName', title: '监测点名称', width: 170 }, { field: 'measurementPointName', title: '监测点名称', width: 170 },
{ field: 'voltageLevel', title: '电压等级', width: 170 }, { field: 'voltageLevel', title: '电压等级', width: 170 },
{ field: 'loadType', title: '监测点对象类型', width: 170 }, { field: 'loadType', title: '监测点对象类型', width: 170 },

View File

@@ -206,6 +206,7 @@ const cancelLeave = async (row: any) => {
const { value } = await ElMessageBox.prompt('请输入取消原因', '取消流程', { const { value } = await ElMessageBox.prompt('请输入取消原因', '取消流程', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
inputType: 'textarea',
inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格 inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格
inputErrorMessage: '取消原因不能为空' inputErrorMessage: '取消原因不能为空'
}) })

View File

@@ -165,10 +165,7 @@ const tableStore = new TableStore({
icon: 'el-icon-Open', icon: 'el-icon-Open',
render: 'basicButton', render: 'basicButton',
disabled: row => { disabled: row => {
return ( return row.createBy != adminInfo.$state.id || !(row.status == 3 || row.status == 4)
row.createBy != adminInfo.$state.id ||
!(row.status == 3 || row.status == 4 )
)
}, },
click: row => { click: row => {
planTestRef.value.open('重新发起计划测试', row.id, false) planTestRef.value.open('重新发起计划测试', row.id, false)
@@ -228,6 +225,7 @@ const cancelLeave = async (row: any) => {
const { value } = await ElMessageBox.prompt('请输入取消原因', '取消流程', { const { value } = await ElMessageBox.prompt('请输入取消原因', '取消流程', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
inputType: 'textarea',
inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格 inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格
inputErrorMessage: '取消原因不能为空' inputErrorMessage: '取消原因不能为空'
}) })

View File

@@ -61,7 +61,9 @@ const dictData = useDictData()
const { push, options, currentRoute } = useRouter() const { push, options, currentRoute } = useRouter()
const TableHeaderRef = ref() const TableHeaderRef = ref()
const tableRef = ref() const tableRef = ref()
const areaOptionList = dictData.getBasicData('jibei_area').filter(item => !(item.name == '超高压' || item.name == '风光储')) const areaOptionList = dictData
.getBasicData('jibei_area')
.filter(item => !(item.name == '超高压' || item.name == '风光储'))
const statusSelect = dictData.statusSelect() const statusSelect = dictData.statusSelect()
const addRef = ref() const addRef = ref()
const AuditRef = ref() const AuditRef = ref()
@@ -155,6 +157,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 == null
},
click: row => { click: row => {
flag.value = true flag.value = true
handleAudit(row.processInstanceId, row.historyInstanceId) handleAudit(row.processInstanceId, row.historyInstanceId)
@@ -261,6 +266,7 @@ const cancelLeave = async (row: any) => {
const { value } = await ElMessageBox.prompt('请输入取消原因', '取消流程', { const { value } = await ElMessageBox.prompt('请输入取消原因', '取消流程', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
inputType: 'textarea',
inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格 inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格
inputErrorMessage: '取消原因不能为空' inputErrorMessage: '取消原因不能为空'
}) })

View File

@@ -346,6 +346,7 @@ const cancelLeave = async (row: any) => {
const { value } = await ElMessageBox.prompt('请输入取消原因', '取消流程', { const { value } = await ElMessageBox.prompt('请输入取消原因', '取消流程', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
inputType: 'textarea',
inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格 inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格
inputErrorMessage: '取消原因不能为空' inputErrorMessage: '取消原因不能为空'
}) })

View File

@@ -15,17 +15,17 @@
</el-form-item> </el-form-item>
</template> </template>
<template #operation> <template #operation>
<el-button icon='el-icon-Plus' type='primary' @click='add'>新增</el-button> <el-button icon="el-icon-Plus" type="primary" @click="add">新增</el-button>
</template> </template>
</TableHeader> </TableHeader>
<!--表格--> <!--表格-->
<Table ref='tableRef'></Table> <Table ref="tableRef"></Table>
<!--弹框--> <!--弹框-->
<monitor-quit-popup ref='deviceQuitPopup' /> <monitor-quit-popup ref="deviceQuitPopup" />
</div> </div>
</template> </template>
<script setup lang='ts'> <script setup lang="ts">
import TableStore from '@/utils/tableStore' import TableStore from '@/utils/tableStore'
import Table from '@/components/table/index.vue' import Table from '@/components/table/index.vue'
import TableHeader from '@/components/table/header/index.vue' import TableHeader from '@/components/table/header/index.vue'
@@ -67,7 +67,9 @@ const tableStore = new TableStore({
{ title: '监测点', field: 'deviceName', minWidth: 200 }, { title: '监测点', field: 'deviceName', minWidth: 200 },
{ title: '退运原因', field: 'propertyNo', minWidth: 160 }, { title: '退运原因', field: 'propertyNo', minWidth: 160 },
{ {
title: '变更前状态', field: 'devOriginalStatus', minWidth: 130, title: '变更前状态',
field: 'devOriginalStatus',
minWidth: 130,
render: 'tag', render: 'tag',
custom: { custom: {
0: 'success', 0: 'success',
@@ -85,7 +87,9 @@ const tableStore = new TableStore({
} }
}, },
{ {
field: 'status', title: '流程状态', minWidth: 100, field: 'status',
title: '流程状态',
minWidth: 100,
render: 'tag', render: 'tag',
custom: { custom: {
1: 'primary', 1: 'primary',
@@ -191,6 +195,7 @@ const cancelLeave = async (row: any) => {
const { value } = await ElMessageBox.prompt('请输入取消原因', '取消流程', { const { value } = await ElMessageBox.prompt('请输入取消原因', '取消流程', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
inputType: 'textarea',
inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格 inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格
inputErrorMessage: '取消原因不能为空' inputErrorMessage: '取消原因不能为空'
}) })
@@ -222,5 +227,4 @@ watch(
deep: true deep: true
} }
) )
</script> </script>

View File

@@ -214,6 +214,7 @@ const cancelLeave = async (row: any) => {
const { value } = await ElMessageBox.prompt('请输入取消原因', '取消流程', { const { value } = await ElMessageBox.prompt('请输入取消原因', '取消流程', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
inputType: 'textarea',
inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格 inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格
inputErrorMessage: '取消原因不能为空' inputErrorMessage: '取消原因不能为空'
}) })

View File

@@ -204,6 +204,7 @@ const cancelLeave = async (row: any) => {
const { value } = await ElMessageBox.prompt('请输入取消原因', '取消流程', { const { value } = await ElMessageBox.prompt('请输入取消原因', '取消流程', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
inputType: 'textarea',
inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格 inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格
inputErrorMessage: '取消原因不能为空' inputErrorMessage: '取消原因不能为空'
}) })

View File

@@ -1,15 +1,15 @@
<template> <template>
<TableHeader datePicker nextFlag ref='TableHeaderRef'> <TableHeader datePicker nextFlag ref="TableHeaderRef">
<!-- <template #operation>--> <!-- <template #operation>-->
<!-- <el-button icon="el-icon-Plus" type="primary" @click="add">新增</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-Delete" type="primary">删除</el-button>-->
<!-- </template>--> <!-- </template>-->
</TableHeader> </TableHeader>
<Table ref='tableRef' /> <Table ref="tableRef" />
<!--弹框--> <!--弹框-->
<feedback-popup ref='feedbackPopup' /> <feedback-popup ref="feedbackPopup" />
</template> </template>
<script setup lang='ts'> <script setup lang="ts">
import { ref, onMounted, provide, nextTick } from 'vue' import { ref, onMounted, provide, nextTick } from 'vue'
import TableStore from '@/utils/tableStore' import TableStore from '@/utils/tableStore'
import Table from '@/components/table/index.vue' import Table from '@/components/table/index.vue'
@@ -43,7 +43,9 @@ const tableStore = new TableStore({
}, },
{ {
field: 'problemType', title: '预警单问题来源', minWidth: '150', field: 'problemType',
title: '预警单问题来源',
minWidth: '150',
render: 'tag', render: 'tag',
custom: { custom: {
1: 'warning', 1: 'warning',
@@ -61,7 +63,9 @@ const tableStore = new TableStore({
{ field: 'dutyOrgName', title: '负责单位', minWidth: '150' }, { field: 'dutyOrgName', title: '负责单位', minWidth: '150' },
{ field: 'leafletName', title: '单据名称', minWidth: '150' }, { field: 'leafletName', title: '单据名称', minWidth: '150' },
{ {
field: 'status', title: '流程状态', minWidth: '150', field: 'status',
title: '流程状态',
minWidth: '150',
render: 'tag', render: 'tag',
custom: { custom: {
1: 'primary', 1: 'primary',
@@ -103,7 +107,7 @@ const tableStore = new TableStore({
render: 'basicButton', render: 'basicButton',
click: row => { click: row => {
// handleAudit(row.processInstanceId) // handleAudit(row.processInstanceId)
ElMessage.warning("待打通生成管理系统接口!") ElMessage.warning('待打通生成管理系统接口!')
} }
}, },
{ {
@@ -116,7 +120,6 @@ 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)
} }
}, },
@@ -144,7 +147,15 @@ const tableStore = new TableStore({
}, },
click: row => { click: row => {
// deviceQuitPopup.value.open('重新发起', 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('请输入取消原因', '取消流程', { const { value } = await ElMessageBox.prompt('请输入取消原因', '取消流程', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
inputType: 'textarea',
inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格 inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格
inputErrorMessage: '取消原因不能为空' inputErrorMessage: '取消原因不能为空'
}) })
@@ -206,4 +218,4 @@ const handleAudit = (instanceId: any,historyInstanceId:any) => {
} }
</script> </script>
<style scoped lang='scss'></style> <style scoped lang="scss"></style>

View File

@@ -19,7 +19,6 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</template> </template>
</TableHeader> </TableHeader>
<Table ref="tableRef" /> <Table ref="tableRef" />
@@ -153,6 +152,7 @@ const tableStore = new TableStore({
const { value } = await ElMessageBox.prompt('请输入取消原因', '取消流程', { const { value } = await ElMessageBox.prompt('请输入取消原因', '取消流程', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
inputType: 'textarea',
inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格 inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格
inputErrorMessage: '取消原因不能为空' inputErrorMessage: '取消原因不能为空'
}) })

View File

@@ -52,7 +52,6 @@ const TableHeaderRef = ref()
const tableRef = ref() const tableRef = ref()
const statusSelect = dictData.statusSelect() const statusSelect = dictData.statusSelect()
const tableStore = new TableStore({ const tableStore = new TableStore({
url: '/supervision-boot/tempLinedebug/list', url: '/supervision-boot/tempLinedebug/list',
publicHeight: 65, publicHeight: 65,
@@ -253,6 +252,7 @@ const cancelLeave = async (row: any) => {
const { value } = await ElMessageBox.prompt('请输入取消原因', '取消流程', { const { value } = await ElMessageBox.prompt('请输入取消原因', '取消流程', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
inputType: 'textarea',
inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格 inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格
inputErrorMessage: '取消原因不能为空' inputErrorMessage: '取消原因不能为空'
}) })

View File

@@ -178,6 +178,7 @@ const cancelLeave = async (row: any) => {
const { value } = await ElMessageBox.prompt('请输入取消原因', '取消流程', { const { value } = await ElMessageBox.prompt('请输入取消原因', '取消流程', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
inputType: 'textarea',
inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格 inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格
inputErrorMessage: '取消原因不能为空' inputErrorMessage: '取消原因不能为空'
}) })

View File

@@ -222,6 +222,7 @@ const cancelLeave = async (row: any) => {
const { value } = await ElMessageBox.prompt('请输入取消原因', '取消流程', { const { value } = await ElMessageBox.prompt('请输入取消原因', '取消流程', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
inputType: 'textarea',
inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格 inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格
inputErrorMessage: '取消原因不能为空' inputErrorMessage: '取消原因不能为空'
}) })