Blame view

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

liangyifan committed
15 16 17 18 19 20 21
        </el-form>
      </div>
    </div>
  </dialogBox>
</template>

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