Blame view

src/views/workflow/components/stop.vue 1.8 KB
蔡俊立 committed
1 2 3
<template>
  <div class="from-clues">
    <div class="invalid-title">
4 5
      <i class="el-icon-question invalid-icon"></i>
      <div class="invalid-body">您是否确定终止该业务办理?</div>
蔡俊立 committed
6 7
    </div>
    <div class="invalid-reson">终止原因:</div>
8 9 10 11 12 13 14 15 16 17
    <el-input
      v-model="stopMessage"
      placeholder="请输入终止原因"
      type="textarea"
      :rows="4"
    ></el-input>
    <el-button style="float: right">取消</el-button>
    <el-button type="primary" @click="onSubmit" style="float: right"
      >退件</el-button
    >
蔡俊立 committed
18 19 20 21
  </div>
</template>

<script>
22
import { stopTask } from "@/api/fqsq.js";
蔡俊立 committed
23 24 25 26
export default {
  props: {
    formData: {
      type: Object,
27 28
      default: {},
    },
蔡俊立 committed
29
  },
30
  data() {
蔡俊立 committed
31
    return {
32 33
      stopMessage: "",
    };
蔡俊立 committed
34 35
  },
  methods: {
36
    onSubmit() {
蔡俊立 committed
37
      stopTask({
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
        bsmSlsq: this.formData.bsmSlsq,
        bestepid: this.formData.bestepid,
        stopMessage: this.stopMessage,
      }).then((res) => {
        this.$message.success("终止成功");
        setTimeout(() => {
          // window.opener.location.reload(); //刷新父窗口
          if (window.opener && window.opener.getBpageList) {
            window.opener.getBpageList();
          } else {
            window.opener.frames[0].getBpageList();
          }
          window.close();
          this.$emit("input", false);
        }, 1000);
      });
蔡俊立 committed
54
    },
55 56
  },
};
蔡俊立 committed
57 58 59 60
</script>
<style scoped lang="scss">
@import "~@/styles/mixin.scss";
.invalid-title {
61 62
  display: flex;
  align-content: center;
蔡俊立 committed
63

64 65 66 67 68
  .invalid-icon {
    color: rgb(254, 148, 0);
    font-size: 34px;
    margin-right: 10px;
  }
蔡俊立 committed
69

70 71 72 73
  .invalid-body {
    line-height: 40px;
    margin-bottom: 10px;
  }
蔡俊立 committed
74 75 76
}

.invalid-reson {
77
  margin-bottom: 10px;
蔡俊立 committed
78 79 80
}

.dialog-footer {
81 82 83
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
蔡俊立 committed
84 85
}
</style>