<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)"> </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>
|