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
<template>
  <div class="product">
    <p class="title" style="border: none;">
      <span></span>
      主授信人信息
    </p>
    <FormInfo
      :info="mainCreditInfo"
      :keys="mainCreditHeaderInfo"
      title=""
      :loading="loading"
    ></FormInfo>
    <div class="btn">
      <el-button size="medium" plain @click="prevPage()">上一页</el-button>
      <el-button
        size="medium"
        :loading="submitLoading"
        type="primary"
        @click="nextPage()"
        >下一页</el-button
      >
    </div>
  </div>
</template>
<script>
import FormInfo from "../../../../comprehensiveTransaction/components/FormInfo.vue";
import {
  qryMainCreditInfo,
  qryMainCreditInfoMap,
} from "@comprehensive/serve/public";
import { mainCreditInfoHeader } from "@comprehensive/utils/formHeaders";
import common from "@/utils/common";
export default {
  data() {
    return {
      mainCredit: this.$store.state.product.mainCredit,
      applyMenu: this.$store.state.product.applyMenu,
      mainCreditInfo: {}, //项目信息
      mainCreditHeaderInfo: [...mainCreditInfoHeader],
      loading: false,
      submitLoading: false,
    };
  },
  computed: {},
  components: {
    FormInfo,
  },
  async created() {
    console.log("mainCreditInfo", this.mainCredit, this.applyMenu);
    this.init();
  },
  methods: {
    init() {
      this.requestQryMainCreditInfo();
    },
    async requestQryMainCreditInfo() {
      const { mainCredit } = this;
      const resp = await qryMainCreditInfo({
        applySerialNo: mainCredit.serialNo,
      });
      if (resp.code == "00") {
        this.mainCreditInfo = {
          customername: "",
          businesssum: "0",
          payallsum: "0",
          xdbalance: "0",
          zjhbalance: "0",
          pdbalance: "0",
          zhbalance: "0",
          ...resp.result,
        };
      }
    },
    prevPage() {
      this.applyMenu.forEach((val, index) => {
        if (val.tabname == "主授信人信息") {
          common.vLoanTabInfo(
            this.applyMenu[index - 1].tabname,
            "CreditFlowPublic",
            this
          );
        }
      });
    },
    nextPage() {
      this.$parent.updateApplyTabTree("主授信人信息");
    },
  },
  beforeRouteLeave(to, from, next) {
    next();
  },
};
</script>