<template>
  <j-select-biz-component :width="1000" v-bind="configs" v-on="$listeners"/>
</template>

<script>
import JSelectBizComponent from '@comp/jeecgbiz/JSelectBizComponent/index'

export default {
  name: 'JSelectSpare',
  components: { JSelectBizComponent },
  props: ['value'],
  data() {
    return {
      settings: {
        name: '备件名称',
        displayKey: 'name',
        returnKeys: ['id','id'],
        listUrl: '/spare/buSparePart/list',
        queryParamCode: 'id',
        queryParamText: '备件名称',
        columns: [
          { title: '备件名称', dataIndex: 'name', align: 'center', width: '30%', widthRight: '70%' },
          { title: '备件编号', dataIndex: 'code', align: 'center', width: '35%' },
          { title: '备件型号', dataIndex: 'typeId', align: 'center', width: '25%' }
        ]
      }
    }
  },
  computed: {
    configs() {
      return Object.assign({ value: this.value }, this.settings, this.$attrs)
    }
  }
}
</script>

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