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
<template>
  <div>
    <el-dialog :visible.sync="channelAcctVisible" :close-on-click-modal='false' @close="closeDialog" center>
      <el-table stripe highlight-current-row :data="channelAcctList" :header-cell-style="{background:'#f5f5f5',color:'#222222'}">
        <el-table-column label="" width="50">
          <template slot-scope="scope">
            <el-radio v-model="channelAcct" :label="scope.$index" @change="getCurrentRow(scope.row,scope.$index)">&nbsp;</el-radio>
          </template>
        </el-table-column>
        <el-table-column prop="accountid" label="账户号码" min-width="200"></el-table-column>
        <el-table-column prop="accountname" label="账户名称" min-width="200"></el-table-column>
        <el-table-column prop="telphone" label="手机号码" min-width="200"></el-table-column>
        <el-table-column prop="bankdepositDesc" label="开户银行" min-width="200"></el-table-column>
        <el-table-column prop="subbranchdeposit" label="开户分支行" min-width="220"></el-table-column>
        <el-table-column prop="provincedepositDesc" label="开户行所在省" min-width="200"></el-table-column>
        <el-table-column prop="citydepositDesc" label="开户行所在市" min-width="200"></el-table-column>
      </el-table>
      <span slot="footer" class="dialog-footer">
        <el-button plain @click="closeDialog">返回</el-button>
        <el-button type="primary" @click="submit">确定</el-button>
      </span>
    </el-dialog>
  </div>
</template>
<script>
import {
  getChannelAcctList
} from "@/api/product";
import { setStorage, getStorage } from "@/utils/storage";
export default {
  props:['visible'],
  data () {
    return {
      applyInfo:this.$store.state.product.applyInfo,
      channelAcctList:[],
      channelAcct:'',
      channelAcctData:''
    }
  },
  computed: {
    channelAcctVisible:{
      get(){
        return this.visible
      },
      set(){}
    }
  },
  created () {
    this.qryChannelAcctList()
  },
  methods: {
    closeDialog(){
      this.$emit('closeChannelAcct',false)
    },
    // 获取当前选中行
    getCurrentRow(row,index){
      this.channelAcct = index
      this.channelAcctData = row
    },
    // 查询渠道收款用户
    qryChannelAcctList(){
      getChannelAcctList({applySerialno:this.applyInfo.serialNo}).then(res=>{
        this.channelAcctList = res.result
      })
    },
    // 点击确定将参数回传给父组件并关闭弹窗
    submit(){
      this.$emit('sendChannelAcct',this.channelAcctData)
      this.$emit('closeChannelAcct',false)
    }
  }
}
</script>
<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 0
      margin 56px 20px 20px
      max-height 576px
      overflow auto
    .el-dialog__header
      padding 0
    .el-dialog__footer
      padding 0 0 20px
      .el-button
        width: 120px
        font-size: 14px
        line-height: 20px
        padding: 5px 0
</style>