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
<template>
  <div>
    <el-dialog 
      title="导入征信信息"
      @close="close" 
      :visible.sync="creditVisible" 
      :close-on-click-modal='false'
      center
    >
      <el-table 
        stripe
        :data="creditInfo" 
        highlight-current-row
        @current-change="getCurrentRow"
        :header-cell-style="{background:'#f5f5f5',color:'#222222'}"
      >
        <el-table-column prop="businessno" label="申请单号" width="180"></el-table-column>
        <el-table-column prop="productname" label="产品名称"></el-table-column>
        <el-table-column prop="customerName" label="姓名" width="120"></el-table-column>
        <el-table-column prop="certtypeDesc" label="证件类型" width="120"></el-table-column>
        <el-table-column prop="certid" label="证件号码" width="120"></el-table-column>
        <el-table-column prop="inputdate" label="征信录入时间" width="120"></el-table-column>
        <el-table-column prop="inputuseruserid" label="征信录入人" width="120"></el-table-column>
      </el-table>
      <span slot="footer" class="dialog-footer">
        <el-button plain @click="close">取消</el-button>
        <el-button type="primary" @click="submit">导入</el-button>
      </span>
    </el-dialog>
  </div>
</template>
 
<style lang="stylus" scoped>
div
  &>>>.el-dialog
    width auto
    max-width calc(100% - 180px)
    min-width 850px
    max-height 100%
    overflow hidden
    margin 0 !important
    position absolute
    left 50%
    top 50%
    transform translate(-50%,-50%)
    .el-dialog__body
      padding 20px
      max-height 576px
      overflow auto
    .el-dialog__header
     padding 20px 0 0
    .el-dialog__footer
      padding 0 0 20px
      .el-button
        width: 120px
        font-size: 14px
        line-height: 20px
        padding: 5px 0
</style>
 
<script>
export default {
  props:['visible','creditInfo'],
  data(){
    return {
      credit:'',
    }
  },
  computed: {
    creditVisible:{
      get(){
        return this.visible
      },
      set(){}
    }
  },
  methods:{
    // 获取选中的数据
    getCurrentRow(row){
      this.credit = row
    },
    // 导入
    submit(){
      this.$emit('sendCredit',this.credit)
    },
    close(){
      this.$emit('close',false) 
    }
  }
}
</script>