zhaoxiaoqiang1
2026-01-04 f1d30d03186c79ca2cbcfe60d6d2ce7d73fba97b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<template>
  <div class="apply-info">
    <div class="dialog-form">
      <p class="dialog-form-title">提前结清试算</p>
      <div class="tip-section">
        <div class="tip-section-title">温馨提示</div>
        <p>提前结清应还总金额=提前结清应还本金+提前结清应还利息+逾期应还罚息。</p>
        <!-- <p>2、实际提前结清应还总金额=提前结清部分应还本金+提前结清部分应还利息+逾期部分应还罚息。</p>
        <p>3、选择结清日期小于当前日期时,会自动进行相应的罚息减免。</p>
        <p>4、逾期状态下,暂不支持未来提前结清试算。</p> -->
      </div>
      <CommForm
        @updateValue="updateValue"
        :inline="true"
        :column="2"
        :list="formList"
        ref="hangUpForm"
      ></CommForm>
      <div class="dialog-form-buttons">
        <p>
          <el-button class="comm-button" type="primary" @click="$emit('handleClick')">关闭</el-button>
        </p>
      </div>
    </div>
  </div>
</template>
<script>
// 提前结清试算
import CommForm from './CommForm'
// import trial from '@/controller/trial'
 
export default {
  components: {
    CommForm
  },
  props: {
    // info: {
    //   type: Object,
    //   default: () => ({})
    // },
    isShow: {
      type: Boolean,
      default: false
    },
    formList: {
      type: Array,
      default: () => []
    }
  },
  data() {
    return {
      // formList: [],
      // formRules: {},
      // model: null,
      // isShowDialog: false
    }
  },
  created() {
    // this.init()
  },
  methods: {
    // 更新表单数据
    updateValue(index, info) {
      this.$emit('updateValue', index, info)
    },
    async init() {
      console.log('formList',this.formList)
      // const { detail } = this
      // const { loanSerialno } = info
      // const model = trial()
      // const detail = await model.request({
      //   loanSerialno
      // })
      // this.formList = model.getFormList(detail)
    }
  }
  // watch: {
  //   info: function() {
  //     const { isShow, info } = this
  //     const { loanSerialno } = info
  //     if (loanSerialno && isShow) {
  //       this.init()
  //     }
  //   }
  // }
}
</script>
<style lang="postcss" scoped>
.dialog-form {
  & .dialog-form-buttons {
    display: flex;
    justify-content: center;
    padding: 50px 0 10px 0;
    & p {
      margin: 0 40px 0 0;
    }
    & p:last-child {
      margin-right: 0;
    }
  }
  & .tip-section {
    padding: 0 20px 20px 20px;
    & .tip-section-title {
      color: #0081f0;
      font-size: 16px;
      margin-bottom: 10px;
    }
    & p {
      margin: 0;
      padding: 0;
      line-height: 2em;
    }
  }
}
</style>