yangys
2025-08-05 83ae35c21c93928eb9eed33b6a8f3630abeca555
src/views/flowmgr/processQuery.vue
@@ -1,7 +1,7 @@
<!--
 * @Date: 2025-06-18 09:17:09
 * @LastEditors: gaoshp
 * @LastEditTime: 2025-07-22 22:50:53
 * @LastEditTime: 2025-07-23 22:20:42
 * @FilePath: /mdmweb/src/views/flowmgr/processQuery.vue
-->
<template>
@@ -18,11 +18,12 @@
                </el-button>
            </template>
            <template #menu="scope">
                <el-button type="danger" text size="default" @click.stop="handleAction(scope.row, scope.index, 0)">删除
                </el-button>
                <el-button type="danger" text size="default" v-if="scope.row.processDefinitionKey === 'dispatch'"
                <el-button type="primary" text size="default" v-if="scope.row.processDefinitionKey === 'dispatch'"
                    @click.stop="handleAction(scope.row, scope.index, 1)">审批表打印
                </el-button>
                <el-button type="danger" text size="default" @click.stop="handleAction(scope.row, scope.index, 0)">删除
                </el-button>
            </template>
        </avue-crud>
        <el-dialog title="指派" append-to-body v-model="reassignBox" width="30%">
@@ -79,7 +80,7 @@
                        search: true,
                        searchType: 'select',
                        hide: true,
                        dicUrl: `/blade-system/dict/dictionary?code=flow`,
                        dicUrl: `/blade-mdm/system/dict/dictionary?code=flow`,
                        props: {
                            label: 'dictValue',
                            value: 'remark',
@@ -101,6 +102,24 @@
                        search: true,
                        searchType: 'input',
                        hide: true,
                    },
               {
                        label: '标题',
                        prop: '',
                        width: 100,
                  render: ({ row }) => {
                            return h('p',
                                {
                                    attrs: {},
                                    class: {},
                                    style: {},
                                }, row?.variables?.title)
                        }
                    },
               {
                        label: '流程名称',
                        prop: 'processDefinitionName',
                        width: 100,
                    },
                    {
                        label: '机床',
@@ -227,7 +246,9 @@
                    type: 'warning',
                })
                    .then(() => {
                        deleteRow({ processInstanceId: row.processInstanceId })
                        deleteRow({ processInstanceId: row.processInstanceId,id:row.processInstanceId }).then(res => {
                            this.onLoad(this.page, this.query);
                        })
                    })
            } else if (flag === 1) {
                printRow({ processInstanceId: row.processInstanceId })