// 供应商开票信息
<template>
  <dym-form :formValue.sync="form"
            :componentList="componentList"
            editModel="V">
  </dym-form>
</template>
<script>
import { dymForm } from 'newepoch-components'
export default {
  components: {
    dymForm
  },
  props: {
    form: {
      type: Object,
      default () {
        return {}
      }
    }
  },
  data () {
    const { factoringBusinessInfo } = this.$i18n.messages[this.$i18n.locale]
    return {
      componentList: [
        // 供应商名称
        {
          label: factoringBusinessInfo.creditor,
          value: 'enterpriseName',
          disabled: true,
          componentName: 'el-input',
          cols: [8, 8, 8, 8],
          labelWidth: '100px',
          prop: 'enterpriseName'
        },
        // 开票名称
        {
          label: factoringBusinessInfo.invoice_names,
          value: 'invoiceName',
          disabled: true,
          componentName: 'el-input',
          cols: [8, 8, 8, 8],
          labelWidth: '70px',
          prop: 'invoiceName'
        },
        // 纳税人识别号
        {
          label: factoringBusinessInfo.taxpayer_ID,
          value: 'taxNumber',
          disabled: true,
          componentName: 'el-input',
          cols: [8, 8, 8, 8],
          labelWidth: '100px',
          prop: 'taxNumber'
        },
        // 地址及电话
        {
          label: factoringBusinessInfo.address_and_phone,
          value: 'addressTel',
          disabled: true,
          componentName: 'el-input',
          type: 'textarea',
          rows: '2',
          cols: [24, 24, 24, 24],
          labelWidth: '100px',
          prop: 'addressTel'
        },
        // 开户行及账号
        {
          label: factoringBusinessInfo.bank_and_account,
          value: 'accountNum',
          disabled: true,
          componentName: 'el-input',
          type: 'textarea',
          rows: '2',
          cols: [24, 24, 24, 24],
          labelWidth: '100px',
          prop: 'accountNum'
        }
      ]
    }
  }
}
</script>
