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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
<template>
  <div class="product">
    <div class="borrower">
      <p class="title">
        <span></span>
        担保人信息
      </p>
      <el-button
        type="primary"
        icon="el-icon-circle-plus-outline"
        v-if="mainCredit.phaseNo <= '0060' && !isReadonly"
        @click="addGuarantor"
        size="medium"
        >新增</el-button
      >
      <el-table
        stripe
        :data="guarantorData"
        style="margin-top: 30px"
        highlight-current-row
        :header-cell-style="{ background: '#f5f5f5', color: '#222222' }"
      >
        <el-table-column min-width="100">
          <template slot="header">
            <span>
              <span style="padding-left: 8px">姓名</span>
            </span>
          </template>
          <template slot-scope="{ row }">
            <span style="padding-left: 8px" v-if="!row.isEdits">{{
              row.relativecustomername ? row.relativecustomername : "--"
            }}</span>
            <el-input
              v-else
              style="padding-left: 15px"
              size="small"
              v-model="row.relativecustomername"
              placeholder="请输入"
            ></el-input>
          </template>
        </el-table-column>
 
        <el-table-column min-width="160">
          <template slot="header">
            <span>
              <span style="padding-left: 8px">电话号码</span>
            </span>
          </template>
          <template slot-scope="{ row }">
            <span style="padding-left: 8px" v-if="!row.isEdits">{{
              row.phone ? row.phone : "--"
            }}</span>
            <el-input
              v-else
              style="padding-left: 15px"
              size="small"
              v-model="row.phone"
              placeholder="请输入"
            ></el-input>
          </template>
        </el-table-column>
        <el-table-column min-width="200">
          <template slot="header">
            <span>
              <span style="padding-left: 8px">证件类型</span>
            </span>
          </template>
          <template slot-scope="{ row }">
            <span style="padding-left: 8px" v-if="!row.isEdits">{{
              row.certtypeCn
            }}</span>
            <el-select
              v-else
              style="display: block; padding-left: 15px"
              v-model="row.certtype"
              filterable
              placeholder="请选择"
              size="small"
            >
              <el-option
                v-for="item in certtypeList"
                :key="item.itemno"
                :label="item.itemname"
                :value="item.itemno"
              ></el-option>
            </el-select>
          </template>
        </el-table-column>
        <el-table-column min-width="200">
          <template slot="header">
            <span>
              <span style="padding-left: 8px">证件号码</span>
            </span>
          </template>
          <template slot-scope="{ row }">
            <span style="padding-left: 8px" v-if="!row.isEdits">{{
              row.certid ? row.certid : "--"
            }}</span>
            <el-input
              v-else
              style="padding-left: 15px"
              maxlength="50"
              size="small"
              v-model="row.certid"
              placeholder="请输入"
              @change="row.certid = row.certid.toUpperCase()"
            ></el-input>
          </template>
        </el-table-column>
 
        <el-table-column min-width="140">
          <template slot="header">
            <span>
              <span style="padding-left: 8px">与借款人关系</span>
            </span>
          </template>
          <template slot-scope="{ row }">
            <span style="padding-left: 8px" v-if="!row.isEdits">{{
              row.relationshipDesc ? row.relationshipDesc : "--"
            }}</span>
            <div v-else>
              <el-select
                v-model="row.relationship"
                clearable
                filterable
                placeholder="请选择"
              >
                <el-option
                  v-for="(item, index) in borrowerrelationshiplist"
                  :key="index"
                  :label="item.itemname"
                  :value="item.itemno"
                ></el-option>
              </el-select>
            </div>
          </template>
        </el-table-column>
 
        <el-table-column min-width="230">
          <template slot="header">
            <span>
              <span style="padding-left: 8px">联系地址(省市区)</span>
            </span>
          </template>
          <template slot-scope="{ row }">
            <span style="padding-left: 8px" v-if="!row.isEdits">{{
              row.permanentprovinceCn
                ? row.permanentprovinceCn +
                  row.permanentcityCn +
                  row.permanentcountyCn
                : "--"
            }}</span>
            <el-cascader
              class="permanentprovinceCn"
              :placeholder="
                row.permanentprovinceCn +
                row.permanentcityCn +
                row.permanentcountyCn
              "
              :v-model="row.defaulArea"
              style="width: 100%"
              v-else
              :props="props"
              @change="
                (data) => {
                  setAreaList(data, row);
                }
              "
            ></el-cascader>
          </template>
        </el-table-column>
 
        <el-table-column min-width="170">
          <template slot="header">
            <span>
              <span style="padding-left: 8px">详细地址</span>
            </span>
          </template>
          <template slot-scope="{ row }">
            <span style="padding-left: 8px" v-if="!row.isEdits">{{
              row.permanentaddress ? row.permanentaddress : "--"
            }}</span>
            <el-input
              v-else
              size="small"
              v-model="row.permanentaddress"
              placeholder="请输入详细地址"
            ></el-input>
          </template>
        </el-table-column>
 
        <el-table-column min-width="120" v-if="productID">
          <template slot="header">
            <span>
              <span style="padding-left: 8px">合同签署状态</span>
            </span>
          </template>
          <template slot-scope="{ row }">
            <span style="padding-left: 8px" v-show="!row.isEdit">{{
              row.signStatusDesc
            }}</span>
          </template>
        </el-table-column>
 
        <el-table-column
          v-if="productID"
          fixed="right"
          label="操作"
          min-width="160"
        >
          <template slot-scope="scope">
            <el-link
              size="mini"
              type="primary"
              style="margin-right: 8px"
              :underline="false"
              @click="showContract(scope.row)"
            >
              查看合同</el-link
            >
            <template v-if="!isShowDetail">
              <el-link
                size="mini"
                v-if="scope.row.editStatus == 1"
                type="primary"
                style="margin-right: 8px"
                :underline="false"
                @click="handleDelete(scope.row, scope.$index)"
              >
                删除</el-link
              >
              <el-link
                size="mini"
                type="primary"
                style="margin-right: 8px"
                :underline="false"
                @click="handleEdit(scope.row, scope.$index)"
                v-if="scope.row.eidtArea"
              >
                修改</el-link
              >
              <el-button
                type="text"
                v-else
                @click.native="handleSave(scope.row, scope.$index)"
                >保存</el-button
              >
            </template>
          </template>
        </el-table-column>
      </el-table>
    </div>
 
    <el-dialog :visible.sync="dialogTableVisible">
      <el-table :data="signStateList">
        <el-table-column
          v-for="(item, idx) in tableColumn1"
          :key="idx"
          :prop="item.prop"
          :label="item.label"
        >
        </el-table-column>
 
        <el-table-column label="操作" min-width="110">
          <template slot-scope="scope">
            <el-link
              size="mini"
              type="primary"
              style="margin-right: 8px"
              :underline="false"
              :disabled="!(scope.row.contractBucket && scope.row.contractKey)"
              @click="handleContractView(scope.row)"
            >
              查看影像资料</el-link
            >
          </template>
        </el-table-column>
      </el-table>
    </el-dialog>
 
    <div class="btn">
      <el-button
        size="medium"
        plain
        @click="prevStep"
        v-if="
          (mainCredit.phaseNo == '0040' || mainCredit.phaseNo == '0010') &&
          !isReadonly
        "
        >上一步</el-button
      >
      <el-button size="medium" plain @click="prevStep" v-else>上一步</el-button>
      <el-button
        size="medium"
        type="primary"
        @click="submit(guarantorForm)"
        v-if="
          (mainCredit.phaseNo == '0040' ||
            mainCredit.phaseNo == '0010' ||
            mainCredit.phaseNo == '0060') &&
          !isReadonly
        "
        >下一步</el-button
      >
      <el-button size="medium" type="primary" @click="nextPage" v-else
        >下一步</el-button
      >
    </div>
  </div>
</template>
<script>
import {
  getDictionaryList,
  qryGuarantorOrCoBorrower, //查询担保人信息
  saveGuarantorOrCoBorrower, //新增担保人信息
  delGuarantorOrCoBorrowerNew, //删除担保人信息
  submitNoGuarantCoBorrow, // 无担保人提交
  saveOrUpdateTodo,
} from "@api/product";
import {
  getProvinceCodeList,
  getCityCodeList,
  getAreaCodeList,
} from "@/api/area";
import common from "@/utils/common";
import { CPCHANNELOPTIONS } from "../../../../comprehensiveTransaction/utils/optionsConfig";
let phoneExp = new RegExp(/^1(2|3|4|5|6|7|8|9)\d{9}$/);
let representativeIDExp = new RegExp(
  /^\d{6}(18|19|20)?\d{2}(0[1-9]|1[012])(0[1-9]|[12]\d|3[01])\d{3}(\d|[xX])$/
);
 
export default {
  data() {
    return {
      mainCredit: {},
      applyMenu: this.$store.state.product.applyMenu,
      ownerData: [],
      ownerForm: [],
      initialArr: [],
      certtypeList: [],
      isShowDetail: false,
      options: [],
      borrowerrelationshiplist: [],
      guarantorData: [], //担保人数据本地增删改
      guarantorForm: [], //服务器返回担保人数据
      guarantorTypeList: [], //担保人类型
      signStateList: [],
      props: {
        lazy: true,
        value: "itemno",
        label: "itemname",
        lazyLoad(node, resolve) {
          const { level } = node;
          console.log("node", node);
          if (level == 0) {
            getProvinceCodeList({}).then((res) => {
              const list = res.result.map((item) => {
                return item;
              });
              resolve(list);
            });
          }
          if (level == 1) {
            getCityCodeList({ codeNo: "AreaCode", itmeNo: node.value }).then(
              (res) => {
                const list = res.result.map((item) => {
                  return item;
                });
                resolve(list);
              }
            );
          }
          if (level == 2) {
            getAreaCodeList({ codeNo: "AreaCode", itmeNo: node.value }).then(
              (res) => {
                const list = res.result.map((item) => {
                  item.leaf = level >= 2;
                  return item;
                });
                resolve(list);
              }
            );
          }
        },
      },
      tableColumn1: [
        { prop: "contractNo", label: "合同编号" },
        { prop: "contractName", label: "合同名称" },
        { prop: "startTime", label: "合同签署发起最新时间" },
        { prop: "signStatusDesc", label: "合同签署状态" },
      ],
      dialogTableVisible: false,
    };
  },
  computed: {
    productID() {
      return this.$route.query.productID &&
        this.$route.query.productID.indexOf("OUT_") > -1
        ? false
        : true;
    },
    isReadonly() {
      return (
        this.$parent._data.applyMenu[this.$parent._data.activeIndex].readonly ==
        "Y"
      );
    },
    // isowner() {
    //   return this.propertyData.isowner;
    // },
  },
  props: {
    // 申请编号
    mainCreditProp: {
      type: Object,
      defaul: () => {
        return this.$store.state.product.mainCredit;
      },
    },
  },
  watch: {
    // isowner(val) {
    //   this.getOwnerInfo(val);
    // },
    // propertyData() {
    //   this.getEnpGuarantorInfo();
    // },
  },
  created() {
    this.mainCredit = this.$store.state.product.mainCredit;
    const isShowDetail = window.location.href.indexOf("loanDetail") > -1;
    this.isShowDetail = isShowDetail;
    const that = this;
    //查询担保人信息
    this.qryGuarantorOrCoBorrowerFn();
    // 证件类型列表
    this.qryDictionaryList("BorrowerType", function (arr) {
      that.guarantorTypeList = arr;
    });
    this.qryDictionaryList("CertType", function (arr) {
      that.certtypeList = arr;
    });
    //担保人类别
    // 获取与借款人关系列表
    this.qryDictionaryList("CustomerRelationShip", function (arr) {
      that.borrowerrelationshiplist = arr;
    });
  },
  methods: {
    setAreaList(node, row) {
      row.permanentprovince = node[0];
      row.permanentcity = node[1];
      row.permanentcounty = node[2];
    },
    qryGuarantorOrCoBorrowerFn() {
      qryGuarantorOrCoBorrower({
        applySerialNo: this.mainCredit.serialNo,
        customerId: this.mainCredit.customerid,
        relationtype: "02",
      }).then((res) => {
        this.guarantorData = [];
        this.initialArr = [];
        this.guarantorForm = res.result;
        if (res.result.length) {
          res.result.forEach((val) => {
            const obj = {};
            for (const key in val) {
              obj[key] = val[key];
              obj.eidtArea = true;
              obj.defaulArea = [
                val.permanentprovince,
                val.permanentcounty,
                val.permanentcity,
              ];
              // obj.certtypeDesc = val["certtype"].valueDesc;
            }
 
            this.guarantorData.push(obj);
            this.initialArr.push(Object.assign({}, obj));
          });
        }
        console.log(this.guarantorData, this.guarantorForm, this.initialArr);
      });
    },
    //单元格css
    // cell({ row, column, rowIndex, columnIndex }) {
    //   const { mainCredit, index } = this;
    //   const { refuseFlag } = mainCredit;
    //   if (refuseFlag == 1) {
    //     const { houseInfoBatch } = this.$store.state.product.fields;
    //     const { propertyList } = houseInfoBatch[index];
    //     for (let i = 0; i < propertyList.length; i++) {
    //       const object = propertyList[i];
    //       for (const key in object) {
    //         if (row[key] != object[key] && column.property == key) {
    //           return { color: "#222", "font-weight": "700" };
    //         }
    //       }
    //     }
    //   }
    // },
 
    qryDictionaryList(code, callback) {
      getDictionaryList({
        codeNo: code,
      }).then((res) => {
        callback(res.result);
      });
    },
    handleBorrowertypeChange(row, val) {
      if (val === "01") {
        row.certtype = "05";
      } else if (val === "02") {
        row.certtype = "01";
      }
    },
    //查询担保人信息
    getEnpGuarantorInfo() {
      if (!this.mainCredit.serialNo) return;
      qryGuarantorOrCoBorrower({
        applySerialNo: this.mainCredit.serialNo,
        customerId: this.mainCredit.customerid,
        relationtype: "02",
      }).then((res) => {
        this.guarantorData = [];
        this.guarantorForm = res.result;
        if (res.result.length) {
          res.result.forEach((val) => {
            const obj = {};
            for (const key in val) {
              obj[key] = val[key];
              obj.eidtArea = true;
              obj.defaulArea = [
                val.permanentprovince,
                val.permanentcounty,
                val.permanentcity,
              ];
            }
 
            this.guarantorData.push(obj);
          });
        }
      });
    },
    // 新增担保人
    addGuarantor() {
      let { customerid, serialNo } = this.mainCredit;
      common.comfirm("", "请确认是否新增担保人?", () => {
        saveOrUpdateTodo({
          relationtype: "02",
          todoType: "GuarantorAdd",
          objectNo: serialNo,
          customerId: customerid,
        }).then((res) => {
          if (res.code == "00") {
            this.qryGuarantorOrCoBorrowerFn();
            this.$message.success("成功");
          } else {
            this.$message.warning(res.msg);
            return;
          }
        });
      });
    },
    selcerttype(row) {
      for (let i = 0; i < this.certtypeList.length; i++) {
        if (this.certtypeList[i].itemno == row.certtype) {
          this.$set(row, "certtypedesc", this.certtypeList[i].itemname);
          break;
        }
      }
    },
    handleSave(row, index) {
      if (!this.isShowDetail) {
        if (!row.relativecustomername) {
          this.$message.warning("担保人姓名不能为空");
          return;
        }
        if (!row.certid) {
          this.$message.warning("担保人身份证号码不能为空");
          return;
        }
        if (!representativeIDExp.test(row.certid) && row.certtype == "01") {
          this.$message.warning("证件号码格式不正确");
          return;
        }
        //担保人为企业,添加判断
        if (row.borrowertype === "01") {
          if (!row.contactsname) {
            this.$message.warning("联系人不能为空");
            return;
          }
          if (!representativeIDExp.test(row.contactsidnum)) {
            this.$message.warning("联系人证件号码格式不正确");
            return;
          }
 
          if (!phoneExp.test(row.contactsphone)) {
            this.$message.warning("联系人手机号码格式不正确");
            return;
          }
        } else {
          if (!phoneExp.test(row.phone)) {
            this.$message.warning("电话号码格式不正确");
            return;
          }
        }
      }
      (row.applyserialno = this.mainCredit.serialNo),
        (row.customerid = this.mainCredit.customerid),
        (row.relationtype = "02"),
        // (row.certtype = "02"),
        saveGuarantorOrCoBorrower(row).then((res) => {
          if (res.code == "00") {
            this.getEnpGuarantorInfo();
          } else {
            //   this.$message.warning("系统错误,请重试");
            return;
          }
        });
    },
    // 取消
    handleCancel(row, index) {
      const arr = [];
      for (let i = 0; i < this.initialArr.length; i++) {
        if (i == index) {
          for (const key in row) {
            if (
              key != "isEdits" &&
              key != "isCancel" &&
              row[key] != this.initialArr[i][key]
            ) {
              console.log(this.initialArr);
              arr.push(key);
            }
          }
        }
      }
      if (arr.length) {
        common.comfirm("提示", "当前有数据未保存,是否放弃保存?", () => {
          this.$set(row, "isEdits", false);
          this.$set(row, "isCancel", false);
          arr.forEach((val) => {
            for (const key in this.initialArr[index]) {
              if (this.initialArr[index].hasOwnProperty(val)) {
                this.guarantorData[index][key] = this.initialArr[index][key];
              }
            }
          });
        });
      } else {
        this.$set(row, "isEdits", false);
        this.$set(row, "isCancel", false);
      }
    },
    handleDelete(row, index) {
      if (!row.isEdit) {
        common.comfirm(
          "提示",
          `请确认是否删除担保人: ${row.relativecustomername}`,
          async () => {
            if (row.serialno || row.relativeSerialNo) {
              const res = await delGuarantorOrCoBorrowerNew([
                {
                  serialno: row.serialno,
                  relativeSerialNo: row.relativeSerialNo,
                },
              ]);
              if (res.code != "00") return;
            }
            this.$message.success("删除成功");
            this.guarantorData.splice(index, 1);
            this.initialArr.splice(index, 1);
          }
        );
      } else {
        this.guarantorData.splice(index, 1);
        this.initialArr.splice(index, 1);
      }
    },
    // 查看合同
    handleContractView(item) {
      const url = `${process.env.VUE_APP_API_ORIGIN}/rlc-cts/server/oss?bucket=${item.contractBucket}&ossKey=${item.contractKey}`;
      var a = document.createElement("a");
      a.setAttribute("href", url);
      a.setAttribute("target", "_blank");
      a.setAttribute("id", "openwin");
      document.body.appendChild(a);
      if (!document.getElementById("openwin")) document.body.appendChild(a);
      a.click();
      document.getElementById("openwin").remove();
    },
    showContract(row) {
      (this.dialogTableVisible = true),
        (this.signStateList = row.loanContactInfoList);
    },
    // 保存接口
    save(row) {
      return new Promise((resolve) => {
        addOrUpdateGuarantorInfo(row).then((res) => {
          resolve(res);
        });
      });
    },
    // 修改
    handleEdit(row) {
      for (let i = 0; i < this.guarantorData.length; i++) {
        if (this.guarantorData.length > 1 && this.guarantorData[i].isEdit) {
          this.$message.warning("请先保存当前担保人信息");
          return;
        }
      }
      row.eidtArea = false;
      this.$set(row, "isEdits", true);
      this.$set(row, "isCancel", true);
    },
    // 取消
    handleCancel(row, index) {
      const arr = [];
      for (let i = 0; i < this.initialArr.length; i++) {
        if (i == index) {
          for (const key in row) {
            if (
              key != "isEdits" &&
              key != "isCancel" &&
              row[key] != this.initialArr[i][key]
            ) {
              arr.push(key);
            }
          }
        }
      }
      if (arr.length) {
        common.comfirm("提示", "当前有数据未保存,是否放弃保存?", () => {
          this.$set(row, "isEdits", false);
          this.$set(row, "isCancel", false);
          arr.forEach((val) => {
            for (const key in this.initialArr[index]) {
              if (this.initialArr[index].hasOwnProperty(val)) {
                this.guarantorData[index][key] = this.initialArr[index][key];
              }
            }
          });
        });
      } else {
        this.$set(row, "isEdits", false);
        this.$set(row, "isCancel", false);
      }
    },
    //保存草稿
    async saveDraft(arr) {},
    // 上一步
    prevStep() {
      this.applyMenu.forEach((val, index) => {
        if (val.tabname == "担保人信息") {
          common.vLoanTabInfo(
            this.applyMenu[index - 1].tabname,
            this.mainCredit.flowno,
            this
          );
        }
      });
    },
    //提交下一步
    async submit(arr) {
      console.log(arr);
      // arr.length > 0?
      // this.nextPage():
      // this.$message.warning("请添加担保人信息");
 
      this.nextPage();
    },
    async submitNo() {
      await submitNoGuarantCoBorrow({
        applyserialno: this.mainCredit.serialNo,
        relationtype: "02",
      });
      this.nextPage();
    },
    // 下一页
    nextPage() {
      console.log("nextPage");
      // 调用父组件的查询左侧tab的方法
      this.$parent.updateApplyTabTree("担保人信息");
    },
  },
};
</script>
<style lang="stylus">
.owner {
  width: 100%;
  padding-left: 10px;
 
  .red-star {
    width: 7px;
    display: inline-block;
    vertical-align: middle;
    color: #FF4300;
  }
 
  >.el-button {
    padding: 9px 12px;
  }
 
  >p {
    height: 20px;
    color: #222222;
    font-weight: 500;
    font-size: 14px;
    position: relative;
    margin-bottom: 30px;
 
    span {
      width: 2px;
      height: 14px;
      background-color: #0081F0;
      position: absolute;
      left: -10px;
      top: 50%;
      transform: translateY(-50%);
    }
  }
}
 
.permanentprovinceCn .el-input__inner::placeholder {
  color: #333;
}
</style>