// 订单基本信息
<template>
  <dym-form :formValue.sync="orderForm"
            :componentList="componentList"
            editModel="V">
  </dym-form>
</template>
<script>
import { dymForm, SelectCoreEnterprise, SelectFinancialInstitutions } from 'newepoch-components'
export default {
  components: {
    dymForm
  },
  props: {
    orderForm: {
      type: Object,
      default () {
        return {}
      }
    }
  },
  data () {
    const { factoringBusinessInfo } = this.$i18n.messages[this.$i18n.locale]
    return {
      componentList: [
        // 产品名称
        {
          label: factoringBusinessInfo.product_name,
          value: 'projectName',
          disabled: true,
          componentName: 'el-input',
          cols: [8, 8, 8, 8],
          labelWidth: '110px',
          prop: 'projectName'
        },
        // 核心企业
        {
          label: factoringBusinessInfo.core_enterprise,
          value: 'coreEnterpriseName',
          disabled: true,
          componentName: SelectCoreEnterprise,
          cols: [8, 8, 8, 8],
          labelWidth: '110px',
          prop: 'coreEnterpriseName'
        },
        // 计划管理人/再保理银行
        {
          label: factoringBusinessInfo.planning_manager,
          value: 'planOrBankName',
          disabled: true,
          componentName: SelectFinancialInstitutions,
          cols: [8, 8, 8, 8],
          labelWidth: '160px',
          prop: 'planOrBankName'
        },
        // 期数
        {
          label: factoringBusinessInfo.periods,
          value: 'specialPlanPeriods',
          disabled: true,
          componentName: 'el-input',
          cols: [8, 8, 8, 8],
          labelWidth: '110px',
          prop: 'specialPlanPeriods'
        },
        // 利率
        {
          label: factoringBusinessInfo.interest_rate,
          value: 'newFactoringRate',
          disabled: true,
          componentName: 'el-input',
          cols: [8, 8, 8, 8],
          labelWidth: '110px',
          prop: 'newFactoringRate'
        },
        // 区域
        {
          label: factoringBusinessInfo.area,
          value: 'coreAreaName',
          disabled: true,
          componentName: 'el-input',
          cols: [8, 8, 8, 8],
          labelWidth: '160px',
          prop: 'coreAreaName'
        },
        // 付款确认书编号
        {
          label: factoringBusinessInfo.pay_code,
          value: 'assetCode',
          disabled: true,
          componentName: 'el-input',
          cols: [8, 8, 8, 8],
          labelWidth: '110px',
          prop: 'assetCode'
        },
        // 供应商名称
        {
          label: factoringBusinessInfo.creditor,
          value: 'creditor',
          disabled: true,
          componentName: 'el-input',
          cols: [8, 8, 8, 8],
          labelWidth: '110px',
          prop: 'creditor'
        },
        // 项目公司名称
        {
          label: factoringBusinessInfo.project_company,
          value: 'debtor',
          disabled: true,
          componentName: 'el-input',
          cols: [8, 8, 8, 8],
          labelWidth: '160px',
          prop: 'debtor'
        },
        // 供应商盖章类型
        {
          label: factoringBusinessInfo.creditor_seal_type,
          value: 'stampWay140',
          disabled: true,
          componentName: 'SelectDictionary',
          dictTypeCode: 'sealing_method',
          cols: [8, 8, 8, 8],
          labelWidth: '110px',
          prop: 'stampWay140'
        },
        // 保理金额
        {
          label: factoringBusinessInfo.factoring_amount,
          value: 'factoringMoney',
          disabled: true,
          componentName: 'el-input',
          cols: [8, 8, 8, 8],
          labelWidth: '110px',
          prop: 'factoringMoney'
        },
        // 区域编号
        {
          label: factoringBusinessInfo.area_number,
          value: 'regionCode',
          disabled: true,
          componentName: 'el-input',
          cols: [8, 8, 8, 8],
          labelWidth: '160px',
          prop: 'coreArea'
        },
        // 合同类型
        {
          label: factoringBusinessInfo.contract_type,
          value: 'contractType',
          disabled: true,
          componentName: 'SelectDictionary',
          dictTypeCode: 'ZD0107',
          cols: [8, 8, 8, 8],
          labelWidth: '110px',
          prop: 'contractType'
        },
        // 基础合同名称
        {
          label: factoringBusinessInfo.basic_contract_name,
          value: 'basicContractName',
          disabled: true,
          componentName: 'el-input',
          cols: [8, 8, 8, 8],
          labelWidth: '110px',
          prop: 'basicContractName'
        },
        // 合同编号
        {
          label: factoringBusinessInfo.contract_no,
          value: 'basicContractCode',
          disabled: true,
          componentName: 'el-input',
          cols: [8, 8, 8, 8],
          labelWidth: '160px',
          prop: 'basicContractCode'
        },
        // 收款人名称
        {
          label: factoringBusinessInfo.payee_name,
          value: 'receiverName',
          disabled: true,
          componentName: 'el-input',
          cols: [8, 8, 8, 8],
          labelWidth: '110px',
          prop: 'receiverName'
        },
        // 收款人开户行
        {
          label: factoringBusinessInfo.payee_bank,
          value: 'receiverBank',
          disabled: true,
          componentName: 'el-input',
          cols: [8, 8, 8, 8],
          labelWidth: '110px',
          prop: 'receiverBank'
        },
        // 收款人账号
        {
          label: factoringBusinessInfo.payee_account,
          value: 'receiverBankAccount',
          disabled: true,
          componentName: 'el-input',
          cols: [8, 8, 8, 8],
          labelWidth: '160px',
          prop: 'receiverBankAccount'
        },
        // 业务流程状态
        {
          label: factoringBusinessInfo.process_status,
          value: 'businessProcessStatus',
          disabled: true,
          componentName: 'SelectDictionary',
          dictTypeCode: 'ZD0085',
          cols: [8, 8, 8, 8],
          labelWidth: '110px',
          prop: 'businessProcessStatus'
        },
        // 放款日期
        {
          label: factoringBusinessInfo.lending_date,
          value: 'loanDateFactoring',
          disabled: true,
          componentName: 'el-date-picker',
          cols: [8, 8, 8, 8],
          labelWidth: '110px',
          prop: 'loanDateFactoring'
        },
        // 账款到期日
        {
          label: factoringBusinessInfo.amount_due_date,
          value: 'dueDate',
          disabled: true,
          componentName: 'el-date-picker',
          cols: [8, 8, 8, 8],
          labelWidth: '160px',
          prop: 'dueDate'
        },
        // 保理专员
        {
          label: factoringBusinessInfo.factoring_commissioner,
          value: 'customerAccountName',
          disabled: true,
          componentName: 'el-input',
          cols: [8, 8, 8, 8],
          labelWidth: '110px',
          prop: 'customerAccountName'
        },
        // 区域专员
        {
          label: factoringBusinessInfo.regional_commissioner,
          value: 'coreAreaAttacheName',
          disabled: true,
          componentName: 'el-input',
          cols: [8, 8, 8, 8],
          labelWidth: '110px',
          prop: 'coreAreaAttacheName'
        },
        // 业务人员
        {
          label: factoringBusinessInfo.operational_personne,
          value: 'businessPersonnel',
          disabled: true,
          componentName: 'el-input',
          cols: [8, 8, 8, 8],
          labelWidth: '160px',
          prop: 'businessPersonnel'
        },
        // 供应商联系人
        // {
        //   label: factoringBusinessInfo.creditor_contact,
        //   value: 'creditorContactName',
        //   disabled: true,
        //   componentName: 'el-input',
        //   cols: [8, 8, 8, 8],
        //   labelWidth: '110px',
        //   prop: 'creditorContactName'
        // },
        // 供应商联系方式
        // {
        //   label: factoringBusinessInfo.creditor_phone,
        //   value: 'creditorContactInfo',
        //   disabled: true,
        //   componentName: 'el-input',
        //   cols: [8, 8, 8, 8],
        //   labelWidth: '110px',
        //   prop: 'creditorContactInfo'
        // },
        // 供应商登录账号
        {
          label: factoringBusinessInfo.creditor_login_account,
          value: 'creditorLoginAccount',
          disabled: true,
          componentName: 'el-input',
          cols: [8, 8, 8, 8],
          labelWidth: '110px',
          prop: 'creditorLoginAccount'
        },
        // 发票号码
        {
          label: factoringBusinessInfo.invoice_number,
          value: 'invoiceNo',
          disabled: true,
          componentName: 'el-input',
          // type: 'textarea',
          // rows: '2',
          cols: [16, 16, 16, 16],
          labelWidth: '110px',
          prop: 'invoiceNo'
        }
      ]
    }
  }
}
</script>
