<!-- （编辑/查看）付款准备明细 
      使用方法：
      <PreparePayDetail payLineDetailId="1" showSave="YES"/>
-->
<template>
  <div></div>
</template>

<script>
import Detail from "./detail"
export default {
  name: "preparePayDetailIndex",

  components: {
    Detail
  },

  props: {
    payLineDetailId: {
      type: String,
      required: true
    },
    showSave: { // 是否显示保存按钮  YES / NO
      type: String,
      required: true,
      default: "NO"
    },
  },

  data() {
    return {};
  },

  computed: {},

  watch: {},

  created() {
    this.showModal()
  },

  mounted() {
    
  },

  methods: {
    showModal() {
      const payLineDetailId = this.payLineDetailId
      const showSave = this.showSave
      new this.$pageModal(
        Detail,
        {
          props: {
            payLineDetailId,
            showSave
          }
        },
        data => {
          if (data) {
            this.$emit("handleChange", data);
          }
        }
      );
    }
  }
};
</script>

<style lang='less' scoped>
</style>