// 供应商回寄地址信息
<template>
  <dym-form :formValue.sync="formAddress"
            :componentList="componentList"
            editModel="V">
  </dym-form>
</template>
<script>
import { dymForm } from 'newepoch-components'
import * as format from '@/filters/index'
export default {
  components: {
    dymForm
  },
  props: {
    formAddress: {
      type: Object,
      default () {
        return {}
      }
    }
  },
  data () {
    const { factoringBusinessInfo } = this.$i18n.messages[this.$i18n.locale]
    return {
      // form: {
      //   // address_label: '公司',
      //   // feedback_address: '成都市金牛区摩根中心',
      //   // receiver: '张三',
      //   // cellphone: '13512345678',
      //   // phone: '028-123456'
      // },
      componentList: [
        // 地址标签
        {
          label: factoringBusinessInfo.address_label,
          value: 'addressTag',
          disabled: true,
          componentName: 'el-input',
          cols: [8, 8, 8, 8],
          labelWidth: '70px',
          prop: 'addressTag',
          format: row => {
            return format.formatDict(row.addressTag, 'address_tag')
          }
        },
        // 回寄地址
        {
          label: factoringBusinessInfo.feedback_address,
          value: 'detailedAddress',
          disabled: true,
          componentName: 'el-input',
          cols: [8, 8, 8, 8],
          labelWidth: '70px',
          prop: 'detailedAddress'
        },
        // 收件人
        {
          label: factoringBusinessInfo.receiver,
          value: 'addressee',
          disabled: true,
          componentName: 'el-input',
          cols: [8, 8, 8, 8],
          labelWidth: '60px',
          prop: 'addressee'
        },
        // 手机号码
        {
          label: factoringBusinessInfo.cellphone,
          value: 'telephone',
          disabled: true,
          componentName: 'el-input',
          cols: [8, 8, 8, 8],
          labelWidth: '70px',
          prop: 'telephone'
        },
        // 座机
        {
          label: factoringBusinessInfo.phone,
          value: 'tel',
          disabled: true,
          componentName: 'el-input',
          cols: [8, 8, 8, 8],
          labelWidth: '70px',
          prop: 'tel'
        }
      ]
    }
  }
}
</script>
