<template>
  <div class="repayment-play">
    <cy-info-title>基础信息</cy-info-title>
    <el-form
      ref="ruleForm"
      :model="ruleForm"
      :rules="rules"
      label-position="top"
      label-width="120px"
      class="rule-form-orange"
    >
      <el-form-item label="业务编号" prop="name">
        <el-input v-model="ruleForm.name" placeholder="请输入业务编号" />
      </el-form-item>
      <el-form-item label="保理合同编号" prop="name">
        <el-input v-model="ruleForm.name" placeholder="请输入保理合同编号" />
      </el-form-item>
      <el-form-item label="保理申请人" prop="name">
        <el-input v-model="ruleForm.name" placeholder="请输入保理申请人" />
      </el-form-item>
      <el-form-item label="统一社会信用代码" prop="name">
        <el-input v-model="ruleForm.name" placeholder="请输入统一社会信用代码" />
      </el-form-item>
      <el-form-item label="额度支用批次" prop="name">
        <el-input v-model="ruleForm.name" placeholder="请输入额度支用批次" />
      </el-form-item>
      <el-form-item label="产品类型" prop="name">
        <el-input v-model="ruleForm.name" placeholder="请输入产品类型" />
      </el-form-item>
      <el-form-item label="项目经理" prop="name">
        <el-input v-model="ruleForm.name" placeholder="请输入项目经理" />
      </el-form-item>
      <cy-info-title type="collapse" name="关联应收账款">
        <accounts-receivable />
      </cy-info-title>
      <cy-info-title type="collapse" name="收放款计划（融资款）" style="margin-top: 20px;">
        <collect-discharge-play type="financing" />
        <div style="display: flex;">
          <el-form-item label="IRR" prop="name">
            <el-input v-model="ruleForm.name" placeholder="请输入IRR" />
          </el-form-item>
          <el-form-item label="授信-预期IRR" prop="name">
            <el-input v-model="ruleForm.name" placeholder="请输入授信-预期IRR" />
          </el-form-item>
          <el-form-item label="额度支用-预期IRR" prop="name">
            <el-input v-model="ruleForm.name" placeholder="请输入额度支用-预期IRR" />
          </el-form-item>
        </div>

      </cy-info-title>

      <cy-info-title type="collapse" name="收放款计划（应收账款）" style="margin-top: 20px;">
        <collect-discharge-play type="receivable" />
      </cy-info-title>
    </el-form>
  </div>
</template>

<script>
export default {
  name: 'RepaymentPlay',
  components: {
    AccountsReceivable: () => import('./components/AccountsReceivable'),
    CollectDischargePlay: () => import('./components/CollectDischargePlay')
  },
  data() {
    return {
      ruleForm: {},
      rules: {}
    }
  }
}
</script>

<style lang="scss" scoped>
.repayment-play {

}
</style>
