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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<template>
  <div class="base-contract">
    <FormInfo
      :info="info"
      :keys="baseContractKeyArr"
      title="基础合同信息"
      :loading="loading"
    ></FormInfo>
    <!-- <KeysTable
      :list="loanContractValueArr"
      :header="loanContracttableHeaderArr"
      :isShowPages="false"
      title="贷款合同信息"
    ></KeysTable> -->
    <div style="padding: 10px;">
 
    </div>
    <KeysTable
      :list="baseContractList"
      :header="baseContractListHeaderArr"
      :isShowPages="false"
    ></KeysTable>
    <!-- 贷款合同信息 -->
    <!-- <loanContactList :applyInfo="{serialNo}" /> -->
    <KeysTable
      :list="zhongdengRegisterValueArr"
      :header="zhongdengRegisterHeaderArr"
      :isShowPages="false"
      title="中登网登记信息"
    ></KeysTable>
  </div>
</template>
 
<script>
// 基础合同信息
import {
  qryBaseContractDetail,
  getDictionaryList,
  getProvinceCodeList,
  qryLoanContactList,
  qryLoanContactDetail,
  qryBaseContractList
} from "@/api/product";
import {
  zhdwQryBillResult
} from "@comprehensive/serve/public"; 
 
 
import { flownos } from "@comprehensive/utils/comm";
import common from "@/utils/common";
import { baseContractFormHeader,zhongdengRegisterHeaderArr } from "@comprehensive/utils/formHeaders";
import  loanContactList  from "@/views/product/views/CreditFlowPublic/baseContract/loanContactList"
import FormInfo from "../FormInfo";
import KeysTable from "../KeysTable";
export default {
  props: {
    // 申请编号
    serialNo: {
      type: String,
      required: true,
    },
    objectType: {
      type: String,
      default: "",
    },
    customerID: {
      type: String,
      default: "",
    },
    flowno: {
      type: String,
 
      // 默认为案场
      default: "CreditFlowPublic",
    },
  },
  components: {
    FormInfo,
    KeysTable,
    loanContactList
  },
  data() {
    return {
      info: {}, //接口获取到的参数为值
      baseContractList: [],
      loading: false, //是否loading
      baseContractKeyArr: [], //定义key,在FormInfo中决定有哪些key。
      loanContracttableHeaderArr: [
        {
          prop: "contractNo",
          width: "auto",
          label: "合同编号",
        },
        {
          prop: "contractName",
          width: "auto",
          label: "合同名称",
        },
        {
          prop: "startTime",
          width: "auto",
          label: "合同签署发起最新时间",
        },
        {
          prop: "signStatus",
          width: "auto",
          label: "合同签署状态",
        },
      ], //贷款合同信息列表title
      loanContractValueArr: [], //贷款合同信息列表服务器返回数据
      zhongdengRegisterHeaderArr: [...zhongdengRegisterHeaderArr], //中登网登记列表title
      zhongdengRegisterValueArr: [],
      baseContractListHeaderArr: [
        { prop: "contractNo", width: "auto", label: "合同编号" },
        { prop: "contractName",  width: "auto", label: "合同名称" },
        { prop: "obligorName", width: "auto", label: "应收账款债务人" },
        // { prop: "signatoryProvinceCn",  width: "auto", label: "签署方地址(省份)" },
        // { prop: "signatoryCityCn",  width: "auto", label: "签署方地址(城市)" },
        // { prop: "signatoryAddress",  width: "auto", label: "签署方详细地址" },
        { prop: "contactAmount",  width: "auto", label: "合同金额", isMoney:true },
        { prop: "tempTotalAmt",  width: "auto", label: "基础交易合同暂定总价", isMoney:true },
        { prop: "signedDate",  width: "auto", label: "签署日期" },
        { prop: "signedEndDate",  width: "auto", label: "合同有效截止日期" },
      ],
      baseContractFilter: [], // 贷款排除,暂无
    };
  },
  created() {
    this.init();
  },
  methods: {
    init() {
      const { flowno, baseContractFilter } = this;
      const {
        //佣金贷(保理)
        CreditFlowPublic,
      } = flownos;
      let header = [];
      //佣金贷
      if (flowno === CreditFlowPublic) {
        header = baseContractFormHeader.filter(
          ({ field }) => !baseContractFilter.includes(field)
        );
        this.getBaseContractDetail();
        this.getBaseContractList()
        this.getLoanContactList();
        this.getZhdwQryBillResult()
      }
      this.baseContractKeyArr = header;
    },
    // 查询基础合同信息
    async getBaseContractDetail() {
      this.loading = true;
      const { serialNo } = this;
      const res = await qryBaseContractDetail({
        relativeSerialNo: serialNo,
      });
      this.loading = false;
      const { result } = res;
      // result["contactAmount"].value
      //   ? (result["contactAmount"].value = common.formatMoney(
      //       result["contactAmount"].value
      //     ))
      //   : "";
      this.info = result;
    },
    async getBaseContractList() {
      this.loading = true;
      const { serialNo } = this;
      const res = await qryBaseContractList({
        relativeSerialNo: serialNo,
      });
      this.loading = false;
      const { result } = res;
      // result["contactAmount"].value
      //   ? (result["contactAmount"].value = common.formatMoney(
      //       result["contactAmount"].value
      //     ))
      //   : "";
      this.baseContractList = result;
    },
    // 查询贷款合同信息
    async getLoanContactList() {
      this.loading = true;
      const { serialNo } = this;
      const res = await qryLoanContactList({
        applySerialNo: serialNo,
      });
      const { result } = res;
      result.map((item) => {
        item.signStatus = item.signStatus == 1 ? "完成" : "未完成";
      });
 
      this.loading = false;
      this.loanContractValueArr = result;
    },
    async getZhdwQryBillResult() {
      this.loading = true;
      const { serialNo } = this;
      const res = await zhdwQryBillResult({
        applySerialNo: serialNo,
      });
      this.loading = false;
      const { result } = res;
      // result["contactAmount"].value
      //   ? (result["contactAmount"].value = common.formatMoney(
      //       result["contactAmount"].value
      //     ))
      //   : "";
      this.zhongdengRegisterValueArr = result;
    },
  },
 
  watch: {
    serialNo() {
      this.init();
    },
  },
};
</script>
 
<style lang="postcss" scoped>
.apply {
  & >>> .el-dialog__body {
    padding-top: 10px;
  }
  & >>> .comm-dialog {
    width: 1200px;
  }
  & >>> .hint-remark .input {
    color: #f40;
    font-weight: bold;
  }
}
</style>