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
<template>
  <div class="product">
    <KeysTable
      :list="queryFulfillmentList"
      :header="queryFulfillmentListHeader"
      :isShowPages="false"
      title="履约情况"
    ></KeysTable>
    <div class="btn">
      <el-button size="medium" plain @click="prevPage()">上一页</el-button>
      <el-button
        size="medium"
        type="primary"
        @click="nextPage()"
        >下一页</el-button
      >
    </div>
  </div>
</template>
<script>
import KeysTable from "../../../../comprehensiveTransaction/components/KeysTable.vue";
import common from "@/utils/common";
import { queryFulfillmentList, saveFulfillment } from "@comprehensive/serve/public";
import { queryFulfillmentListHeader } from "@comprehensive/utils/tableHeaders";
export default {
  data() {
    return {
      mainCredit: this.$store.state.product.mainCredit,
      applyMenu: this.$store.state.product.applyMenu,
      queryFulfillmentList: [],
      queryFulfillmentListHeader: [...queryFulfillmentListHeader],
      loading: false,
    };
  },
  computed: {},
  components: {
    KeysTable,
  },
  async created() {
    this.init();
  },
  methods: {
    init() {
      this.requestQueryFulfillmentList();
    },
    async requestQueryFulfillmentList() {
      const resp = await queryFulfillmentList({ customerId: this.mainCredit.customerid });
      if (resp.result) {
        this.queryFulfillmentList = 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>