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
<template>
  <div class="apply-info">
    <!-- <div class="base-buttom">
      <el-button round> 产品额度详情</el-button>
    </div>-->
    <CommForm :inline="true" formType="info" :list="formList" ref="applyForm" title="基础额度信息" />
  </div>
</template>
 
<script>
import CommForm from "@/components/CommForm";
 
import quotaControlBaseInfo from "@/controller/quotaControlBaseInfo";
import qryCustBaseQuotaInfo from "@/controller/qryCustBaseQuotaInfo";
export default {
  components: {
    CommForm
  },
  data() {
    return {
      formList: [],
      query: {},
      model: null
    };
  },
  created() {
    this.init();
  },
  methods: {
    init() {
      const { query } = this.$route;
      const { type } = query;
      this.query = query;
      // 管控额度
      if (type === "0") {
        this.model = quotaControlBaseInfo();
        this.getDetail();
      }
      // 客户额度
      if (type === "1") {
        this.model = qryCustBaseQuotaInfo();
        this.getFormListDetail();
      }
    },
    async getDetail() {
      const { model, query } = this;
      const { serialNo, controlSerialNo, pageId, quotaSerialNo } = query;
      let params = null;
      if (pageId === "10") {
        params = {
          serialNo: controlSerialNo
        };
      } else if (pageId === "11") {
        params = {
          serialNo: quotaSerialNo
        };
      } else {
        params = {
          serialNo
        };
      }
      const info = await model.request(params);
      this.formList = model.getFormList(info);
    },
    async getFormListDetail() {
      const { model, query } = this;
      const { customerId } = query;
      const info = await model.request({ customerId });
      this.formList = model.getFormList(info);
    }
  }
};
</script>
 
<style scoped>
</style>