jieguo.vue 5.74 KB
<template>
  <a-form :form="form">
    <a-card title="审批额度信息" :bordered="false">
      <a-row :gutter="24">
        <a-col :span="12">
          <a-form-item label="审批额度(元)" :labelCol="{ span: 6 }" :wrapperCol="{ span: 18 }">
            <a-input
              placeholder=""
              :readOnly="true"
              v-decorator="['creditAmount', { initialValue: shenjieguo ? shenjieguo.creditAmount : '' }]"
            />
          </a-form-item>
        </a-col>
      </a-row>
      <a-row :gutter="24">
        <a-col :span="12">
          <a-form-item label="审批年化利率(%)" :labelCol="{ span: 6 }" :wrapperCol="{ span: 18 }">
            <a-input
              placeholder="请输入审批年化利率(%)"
              :readOnly="true"
              v-decorator="['interestRate', { initialValue: shenjieguo ? shenjieguo.interestRate : '' }]"
            />
          </a-form-item>
        </a-col>
        <a-col :span="12">
          <a-form-item label="审批年化逾期利率(%)" :labelCol="{ span: 6 }" :wrapperCol="{ span: 18 }">
            <a-input
              placeholder="请输入审批年化逾期利率(%)"
              :readOnly="true"
              v-decorator="['penaltyRate', { initialValue: shenjieguo ? shenjieguo.penaltyRate : '' }]"
            />
          </a-form-item>
        </a-col>
      </a-row>
      <a-row :gutter="24">
        <a-col :span="12">
          <a-form-item label="账单期限(月)" :labelCol="{ span: 6 }" :wrapperCol="{ span: 18 }">
            <a-input
              placeholder="请输入账单期限(月)"
              :readOnly="true"
              v-decorator="['term', { initialValue: shenjieguo ? shenjieguo.term : '' }]"
            />
          </a-form-item>
        </a-col>
        <a-col :span="12"> 注:账单期限只能以整月审批,最小1个月,最大36个月; </a-col>
      </a-row>
      <a-row :gutter="24">
        <a-col :span="12">
          <a-form-item label="账单期限类型" :labelCol="{ span: 6 }" :wrapperCol="{ span: 18 }">
            <a-select
              :disabled="true"
              v-decorator="['termType', { initialValue: shenjieguo ? shenjieguo.termType : '' }]"
              placeholder="请选择"
            >
              <a-select-option :value="1">日</a-select-option>
              <a-select-option :value="2">月</a-select-option>
            </a-select>
          </a-form-item>
        </a-col>
        <a-col :span="12">
          <a-form-item label="还款方式" :labelCol="{ span: 6 }" :wrapperCol="{ span: 18 }">
            <a-select
              :disabled="true"
              v-decorator="['repaymentType', { initialValue: shenjieguo ? shenjieguo.repaymentType : '' }]"
              placeholder="请选择"
            >
              <a-select-option :value="1">等额本息</a-select-option>
              <a-select-option :value="2">先息后本</a-select-option>
              <a-select-option :value="5">等额本金</a-select-option>
              <a-select-option :value="3">到期还本付息(算头算尾)</a-select-option>
              <a-select-option :value="4">到期还本付息(算头不算尾)</a-select-option>
            </a-select>
          </a-form-item>
        </a-col>
        <a-col :span="12">
          <a-form-item label="还款日" :labelCol="{ span: 6 }" :wrapperCol="{ span: 18 }">
            <a-select
              :disabled="true"
              v-decorator="['repaymentDayType', { initialValue: shenjieguo ? shenjieguo.repaymentDayType : '' }]"
              placeholder="请选择"
            >
              <a-select-option :value="1">放款日对日(29/30/31统一设为28号)</a-select-option>
              <a-select-option :value="2">放款日对日(若无对日统一设为月末)</a-select-option>
              <a-select-option :value="3">固定日</a-select-option>
              <a-select-option :value="4">放款日对前一日</a-select-option>
            </a-select>
          </a-form-item>
        </a-col>
        <a-col v-if="shenjieguo.repaymentDayType == 3" :span="3">
          <a-form-item label="" :labelCol="{ span: 0 }" :wrapperCol="{ span: 24 }">
            <a-input-number
            :readOnly="true"
              v-decorator="[
                'repaymentDay',
                {
                  initialValue: shenjieguo ? shenjieguo.repaymentDay : '',
                  rules: [{ required: true, message: '请输入还款日' }],
                },
              ]"
              :min="1"
              :precision="0"
              :max="31"
            />
          </a-form-item>
        </a-col>
        <a-col v-if="shenjieguo.repaymentDayType == 3" :span="2">
          <div class="repaymentDay">日</div>
        </a-col>
      </a-row>
      <a-row :gutter="24">
        <a-col :span="24">
          <a-form-item label="审批意见" :labelCol="{ span: 3 }" :wrapperCol="{ span: 21 }" hasFeedback>
            <a-textarea
            :readOnly="true"
              v-decorator="[
                'approvalNote',
                {
                  initialValue: shenjieguo ? shenjieguo.approvalNote : '',
                },
              ]"
              placeholder="审批结果为退件待补时,需要在审批意见中说明要补成的资料或信息"
            />
          </a-form-item>
        </a-col>
      </a-row>
    </a-card>
  </a-form>
</template>

<script>
export default {
  name: 'shenpijieguo',
  props: {
    shenjieguo: {
      type: Object,
      // default: () => {
      //   return [];
      // }
    },
    applyNo: {
      type: String,
      default: '',
    },
  },
  data() {
    return {
      validatorRules: {},
      form: this.$form.createForm(this),
    }
  },
  methods: {
    resetFields() {
      this.form.resetFields()
    },
  },
}
</script>

<style>
</style>