<!--
  @description: 采购计划-退回计划管理删除信息弹框
  @author: lxl
  @date： 2020-11-02 13:52
-->
<template>
  <div>
    <el-dialog
      :visible.sync="dialogDelData.dialogDelVisible"
      :before-close="handleClose"
      title="删除计划"
      width="700px"
      custom-class="el-dialog__body-p0 el-dialog__body-p8 el-dialog_table"
    >
      <div class="main mb10">
        <backAdminDeleteAdd ref="backAdminDeleteAdd" :dialog-del-data="dialogDelData" :params-id="paramsId" @handleClose="handleClose" />
      </div>
    </el-dialog>
  </div>
</template>
<script>
import backAdminDeleteAdd from './backAdminDelete-add.vue' // 删除计划
export default {
  name: 'BackAdminDeleteAdd',
  components: {
    backAdminDeleteAdd // 删除计划
  },

  props: {
    dialogDelData: { // 弹框状态
      type: Object,
      default: () => {}
    },
    paramsId: {
      type: String,
      default: ''
    }
  },
  methods: {
    // 确定
    ensure() {
      this.$refs.backAdminDeleteAdd.ensure('formData')
    },
    // 关闭
    handleClose() {
      this.$emit('close')
      this.dialogDelData.dialogDelVisible = false
    }
  }
}
</script>
<style scoped>
</style>
