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
| <template>
| <div>
| <KeysTable
| :list="queryFulfillmentList"
| :header="queryFulfillmentListHeader"
| :isShowPages="false"
| title="履约情况"
| ></KeysTable>
| </div>
| </template>
| <script>
| import {
| queryFulfillmentList,
| saveFulfillment,
| } from "@comprehensive/serve/public";
| import KeysTable from "../KeysTable";
| import { queryFulfillmentListHeader } from "@comprehensive/utils/tableHeaders";
| import { mapState } from "vuex";
| export default {
| props: {
| // 申请编号
| serialNo: {
| type: String,
| required: true,
| },
| objectType: {
| type: String,
| default: "",
| },
| customerID: {
| type: String,
| default: "",
| },
| flowno: {
| type: String,
| // 默认为主授信人
| default: "MainCreditFlow",
| },
| },
| components: {
| KeysTable,
| },
| computed: {
| ...mapState({
| vLoanInfo: (state) => state.product.vLoanInfo
| }),
| },
| watch: {
| vLoanInfo(newVal) {
| this.requestSaveFulfillment()
| }
| },
| data() {
| return {
| loading: false,
| queryFulfillmentList: [],
| queryFulfillmentListHeader: [...queryFulfillmentListHeader],
| };
| },
| created() {
| this.init();
| },
| methods: {
| init() {
| this.requestQueryFulfillmentList();
| },
| async requestQueryFulfillmentList() {
| const resp = await queryFulfillmentList({ customerId: this.customerID });
| if (resp.result) {
| this.queryFulfillmentList = resp.result;
| }
| },
| async requestSaveFulfillment() {
| const resp = await saveFulfillment({businessRate: this.vLoanInfo.loanRate, creditCustomerId: this.customerID, firstPayDate: this.vLoanInfo.firstRepayDate})
| console.log('requestSaveFulfillment',resp.result)
| if (resp.result) {
| this.queryFulfillmentList = resp.result.list;
| }
| },
| },
| };
| </script>
| <style lang="postcss" scoped>
| </style>
|
|