123
gaoshp
23 小时以前 33fac2b8c49a51cd791defc7199d734408b9be1b
123
已修改1个文件
29 ■■■■ 文件已修改
src/views/flowmgr/processQuery.vue 29 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/flowmgr/processQuery.vue
@@ -1,7 +1,7 @@
<!--
 * @Date: 2025-06-18 09:17:09
 * @LastEditors: gaoshp
 * @LastEditTime: 2025-07-22 22:39:59
 * @LastEditTime: 2025-07-22 22:50:53
 * @FilePath: /mdmweb/src/views/flowmgr/processQuery.vue
-->
<template>
@@ -20,7 +20,7 @@
            <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="danger" text size="default" v-if="scope.row.processDefinitionKey === 'dispatch'"
                    @click.stop="handleAction(scope.row, scope.index, 1)">审批表打印
                </el-button>
            </template>
@@ -131,10 +131,6 @@
                        }
                    },
                    {
                        label: '加工车间',
                        prop: '',
                    },
                    {
                        label: '创建时间',
                        prop: 'processCreateTime',
                    },
@@ -207,8 +203,8 @@
                console.log('toPerson', form);
                reassgin({
                    ...form,
                    taskId: this.transferTaskSelection[0].taskId,
                    processInstanceId: this.transferTaskSelection[0].processInstanceId,
                    taskId: this.selectedList[0].taskId,
                    processInstanceId: this.selectedList[0].processInstanceId,
                }).then(res => {
                    this.$message.success('指派成功');
                    this.reassignBox = false;
@@ -315,10 +311,10 @@
            //     keyword: params.keyword || ''
            // }
            data = {
                createTimeBegin: params.createTimeBegin,
                createTimeEnd: params.createTimeEnd,
                keyword: params.keyword || '',
                processDefinitionKey: params.processDefinitionKey || ''
                createTimeBegin: params.createTimeBegin || undefined,
                createTimeEnd: params.createTimeEnd || undefined,
                keyword: params.keyword || undefined,
                processDefinitionKey: params.processDefinitionKey || undefined
            }
            this.query = data
            this.onLoad(this.page, data);
@@ -360,9 +356,14 @@
            };
            this.loading = true;
            getList(page.currentPage, page.pageSize, Object.assign(data, params)).then(res => {
                const data = res.data.data;
                const data = res.data.data
                this.page.total = data.total;
                this.data = data.records;
                this.data = data.records.map(v=> {
                    return {
                        ...v,
                        id: v.processInstanceId,
                    }
                });
                this.loading = false;
            }, () => {
                this.data = [];