田源
2023-06-28 e89438773fc23ad67be9d3e4f5b4f068a2439606
Source/UBCS-WEB/src/views/work/process/leave/handle.vue
@@ -5,7 +5,7 @@
        <el-card class="dialogwarp_tab_card">
          <el-tabs v-model="activeName" @tab-click="handleClick">
            <el-tab-pane label="业务数据信息" name="first">
              <businesswork :ids="ids" :templateId="templateId"></businesswork>
            </el-tab-pane>
            <el-tab-pane label="流程跟踪" name="second">
              <avue-crud :data="flowList" :option="option" ref="crud">
@@ -75,6 +75,8 @@
export default {
  data() {
    return {
      ids:[],
      templateId:'',
      taskId: '',
      businessId: '',
      processInstanceId: '',
@@ -94,9 +96,9 @@
        indexLabelClassName: '序号',
        column: [
          { label: '任务名称', prop: 'historyActivityName', minWidth: 120 },
          { label: '执行操作', prop: 'sex', minWidth: 80 },
          { label: '执行操作', prop: 'pass', minWidth: 80 ,formatter:this.formatterPass},
          { label: '任务开始时间', prop: 'createTime', minWidth: 140 },
          { label: '审批意见', prop: 'sex', minWidth: 220, overHidden: true },
          { label: '审批意见', prop: 'comment', minWidth: 220, overHidden: true },
          { label: '执行人', prop: 'assigneeName', minWidth: 80 },
          { label: '任务完成时间', prop: 'endTime', minWidth: 140 },
          { label: '已上传审批文件', prop: 'sex', minWidth: 220, overHidden: true },
@@ -131,9 +133,15 @@
      })
      this.apiGetBtnTask(this.processInstanceId)
    },
    formatterPass(row, value, column) {
      console.log('value',value)
      return value?'同意':'驳回'
    },
    async apiGetBtnTask(id) {
      const response = await getBtnTask({ processInstanceId: id })
      const res = response.data
      this.ids=res.data.variables.ids;
      this.templateId=res.data.variables.templateId;
      if (res.success) {
        console.log(res)
        this.btnList = res.data.toTasks
@@ -145,7 +153,7 @@
      if (res.success) {
        this.$message.success(res.msg);
        this.$router.$avueRouter.closeTag();
        this.$router.push({ path: `/work/start` });
        this.$router.push({ path: `/work/todo` });
      } else {
        this.$message.error(res.msg || '提交失败');
      }
@@ -185,7 +193,7 @@
  display: -ms-flexbox;
  display: flex;
  justify-content: space-between;
  height: 70vh;
  height: 85vh;
  &_tab {
    width: 79%;