<template>
  <ImportDialog
    :tablename="tablename"
    :title="title"
    :visible="visible"
    :main-id="mainId"
    :father-method="fatherClose"
    :custom-import="true"
    :show-icon="false"
    :payload="idArray"
  />
</template>

<script>
  import ImportDialog from '../customizedContent/ImportDialog.vue';

  export default {
    name: 'GoodImportChange',

    components: { ImportDialog },

    props: {
      idArray: { // 获取ID用于多选
        type: Array,
        default: () => []
      },
    },

    data() {
      return {
        tablename: 'T_V_OMSONLINEORDER_REPLACE_GOOD',
        title: '商品替换',
        visible: true,
        mainId: this.$route.params.itemId,
      };
    },

    methods: {
      fatherClose() {
        this.$emit('closeActionDialog', true);
      }
    },
  };
</script>

<style lang="less" scoped>

</style>
