大件运输联网系统前端代码
guoshilong
2023-01-02 d72f14301480b146be606cb91455f8fe943309c7
src/views/work/send.vue
@@ -23,6 +23,7 @@
        <el-button type="text"
                   size="small"
                   icon="el-icon-delete"
                   :disabled="scope.row.processIsFinished === 'finished' || scope.row.processIsFinished ==='withdraw'  "
                   @click.stop="handleCancel(scope.row)">撤 销
        </el-button>
        <el-button type="text"
@@ -38,7 +39,7 @@
      </template>
      <template slot-scope="{row}"
                slot="processIsFinished">
        <el-tag>{{row.processIsFinished==='finished' ? '已完成' : '未完成'}}</el-tag>
        <el-tag>{{row.processIsFinished==='finished' ? '已完成' : row.processIsFinished ==='withdraw'?'自行撤销':'未完成'}}</el-tag>
      </template>
    </avue-crud>
    <flow-design is-dialog :is-display.sync="flowBox" :process-instance-id="processInstanceId"></flow-design>
@@ -189,9 +190,14 @@
        });
      },
      handleCancel(row){
        console.log(row)
        withdrawTask(this.userInfo.user_id).then(res=>{
          this.$message(res.data.msg)
        withdrawTask(row).then(res=>{
          if (res.data.code == 200){
            this.$message.success(res.data.msg)
          }else {
            this.$message.error(res.data.msg)
          }
          this.onLoad(this.page,this.query)
        })
      }
    }