Blame view

src/views/workflow/components/zc.vue 1.87 KB
1 2 3 4 5
<!--
 * @Description: 
 * @Autor: renchao
 * @LastEditTime: 2023-05-17 10:42:01
-->
liangyifan committed
6
<template>
任超 committed
7 8
  <dialogBox title="转出" @submitForm="submitForm" saveButton="确认转出" width="45%" height='30%' @closeDialog="closeDialog"
    v-model="value">
liangyifan committed
9 10 11 12 13
    <div class="from-clues">
      <!-- 表单部分 -->
      <div class="from-clues-header">
        <el-form :model="queryForm" ref="queryForm" label-width="120px">
          <el-form-item label="下一环节名称:">
蔡俊立 committed
14
            {{this.tableData.taskName}}
liangyifan committed
15 16
          </el-form-item>
          <el-form-item label="下一环节办理人:">
蔡俊立 committed
17
            {{this.usernames}}
liangyifan committed
18
          </el-form-item>
任超 committed
19

liangyifan committed
20 21 22 23 24 25 26
        </el-form>
      </div>
    </div>
  </dialogBox>
</template>

<script>
27 28 29
  import { completeTask, getNextLinkInfo } from "@/api/fqsq.js"
  export default {
    components: {
蔡俊立 committed
30
    },
31 32 33
    props: {
      value: { type: Boolean, default: false },
      queryForm: { type: Object, default: false }
liangyifan committed
34
    },
35 36 37 38 39
    data () {
      return {
        tableData: {},
        usernames: '',
      }
liangyifan committed
40
    },
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
    methods: {
      tablelistFn () {
        getNextLinkInfo(this.queryForm).then(res => {
          if (res.code === 200) {
            this.tableData = res.result
            if (res.result.usernames) {
              this.usernames = String(res.result.usernames)
            }
          }
        })
      },
      submitForm () {
        completeTask(this.queryForm).then(res => {
          if (res.code === 200) {
            this.$message.success('转件成功')
            setTimeout(() => {
              window.opener = null;
              window.open("about:blank", "_self");
              window.close();
              this.$emit('input', false)
            }, 1000);
          }
        })
      },
      closeDialog () {
        this.$emit("input", false);
      },
    }
liangyifan committed
69 70 71
  }
</script>
<style scoped lang="scss">
72
  @import "~@/styles/mixin.scss";
liangyifan committed
73
</style>