兰宝车间质量管理系统-前端
gssong
2024-03-31 4752b4eb01d5529eb4b107d1c6118b2c75213333
src/views/workflow/task/taskWaiting.vue
@@ -43,14 +43,14 @@
            </template>
            <template v-else>
              <el-tag type="success">
                {{ scope.row.assigneeName }}
                {{ scope.row.assigneeName || '无' }}
              </el-tag>
            </template>
          </template>
        </el-table-column>
        <el-table-column align="center" prop="businessStatusName" label="流程状态" min-width="70">
        <el-table-column align="center" label="流程状态" min-width="70">
          <template #default="scope">
            <el-tag type="success">{{ scope.row.businessStatusName }}</el-tag>
              <dict-tag :options="wf_business_status" :value="scope.row.businessStatus"></dict-tag>
          </template>
        </el-table-column>
        <el-table-column align="center" prop="createTime" label="创建时间" width="160"></el-table-column>
@@ -79,9 +79,12 @@
<script lang="ts" setup>
import { getPageByTaskWait, claim, returnTask } from '@/api/workflow/task';
import { TaskQuery, TaskVO } from '@/api/workflow/task/types';
import workflowCommon from '@/api/workflow/workflowCommon';
import { RouterJumpVo } from '@/api/workflow/workflowCommon/types';
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const { wf_business_status } = toRefs<any>(proxy?.useDict('wf_business_status'));
//提交组件
const queryFormRef = ref<ElFormInstance>();
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
// 遮罩层
const loading = ref(true);
// 选中数组
@@ -135,19 +138,14 @@
};
//办理
const handleOpen = async (row: TaskVO) => {
  if(row.wfFormDefinitionVo){
    proxy.$tab.closePage(proxy.$route);
    proxy.$router.push({
      path: `${row.wfFormDefinitionVo.path}`,
      query: {
        id: row.businessKey,
        type: 'approval',
        taskId: row.id
      }
    })
  }else{
    proxy?.$modal.msgError('请到流程定义菜单配置路由!');
  }
  const routerJumpVo = reactive<RouterJumpVo>({
    wfDefinitionConfigVo: row.wfDefinitionConfigVo,
    wfNodeConfigVo: row.wfNodeConfigVo,
    businessKey: row.businessKey,
    taskId: row.id,
    type: 'approval'
  });
  workflowCommon.routerJump(routerJumpVo,proxy)
};
/** 认领任务 */