<template>
    <dialog-edit :visible.sync="dialogVisible"
                 :title="$t('traceMgr.otherAbnormalOrders')"
                 :footerBtnShow="false"
                 :editModel="'V'"
                 :form="form"
                 :api="api"
                 :appendToBody="true">
        <data-table :sourceData.sync="sourceData"
                    :columns="columns"
                    :border="true"
                    :stripe="true"
                    :showSelection="showSelection"
                    operateBtnLayout=""
                    :queryParas="searchFormQueryParas" :menuFlag="true">
            <el-table-column align="center"
                             min-width="220px"
                             :label="$t('common.factoringSolutions')"
                             fixed="right">
                <template slot-scope="scope">
                    <btn-download fileID="2001031119322940001"></btn-download>
                </template>
            </el-table-column>
        </data-table>
    </dialog-edit>
</template>

<script>
import { DataTable, DialogEdit, btnDownload } from 'newepoch-components'
export default {
  name: 'otherListDialog',
  components: {
    DialogEdit,
    btnDownload,
    DataTable
  },
  data () {
    return {
      form: {},
      api: {},
      searchFormQueryParas: {}
    }
  },
  computed: {
    dialogVisible: {
      get () {
        return this.visible
      },
      set (val) {
        this.$emit('update:visible', val)
      }
    }
  },
  methods: {},
  props: {
    visible: {
      type: Boolean,
      default: function () {
        return false
      }
    },
    sourceData: {
      type: Array
    },
    columns: {
      type: Array
    },
    showSelection: {
      type: Boolean
    }
  }
}
</script>

<style scoped>

</style>
