zc.vue 1.5 KB
<template>
  <dialogBox title="转出" @submitForm="submitForm" :saveloding="saveloding" saveButton="确认转出" width="45%" 
    height='30%' @closeDialog="closeDialog" v-model="value">
    <div class="from-clues">
      <!-- 表单部分 -->
      <div class="from-clues-header">
        <el-form :model="queryForm" ref="queryForm" label-width="120px">
          <el-form-item label="下一环节名称:">
            代码审查
          </el-form-item>
          <el-form-item label="下一环节办理人:">
            赵小千
          </el-form-item>
              <el-form-item label="审批意见:">
                <el-input type="textarea" v-model="queryForm.shyj"></el-input>
              </el-form-item>
        </el-form>
      </div>
    </div>
  </dialogBox>
</template>

<script>
   import { completeTask } from "@/api/fqsq.js"
export default {
  components: {
  },
  props: {
    value: { type: Boolean, default: false },
    queryForm:{type:Object,default:false}
  },
  data () {
    return {
      saveloding:false,
    }
  },
  methods: {
    submitForm () {
      completeTask(this.queryForm).then(res => {
        console.log(res)
        if (res.code === 200) {
           console.log(res,555)
      window.opener = null;
      window.open("about:blank", "_self");
      window.close();
        this.$emit('input', false)
           
        }
      })
    },
    closeDialog () {
      this.$emit("input", false);
    },
  }
}
</script>
<style scoped lang="scss">
@import "~@/styles/mixin.scss";

</style>