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
| <template>
| <div class="product">
| <KeysTable
| :list="creditTransFlowList"
| :header="creditTransFlowListHeader"
| :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 { queryCreditTransFlowList } from "@comprehensive/serve/public";
| import { creditTransFlowListHeader } from "@comprehensive/utils/tableHeaders";
| export default {
| data() {
| return {
| mainCredit: this.$store.state.product.mainCredit,
| applyMenu: this.$store.state.product.applyMenu,
| loading: false,
| creditTransFlowList: [],
| creditTransFlowListHeader: [...creditTransFlowListHeader],
| };
| },
| computed: {},
| components: {
| KeysTable,
| },
| async created() {
| this.init();
| },
| methods: {
| init() {
| this.requestQueryCreditTransFlowList();
| },
| async requestQueryCreditTransFlowList() {
| const resp = await queryCreditTransFlowList({
| applySerialno: this.mainCredit.serialNo,
| creditCustomerId: this.mainCredit.customerid,
| });
| if (resp.result) {
| this.creditTransFlowList = 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>
|
|