<template>
	<div class="eibs-tab">
		<c-col :span="24">
			<c-col :span="12" style="padding-right: 20px">
				<c-col :span="24">
					<el-card class="box-card">
						<c-ptap3 :model="model" :argadr="{
              title: '受益人',
							grp: 'dedgrp',
							rol: 'ben'
						}"  :isShowCard="false" @changeNam="changeNam" :requiredExtkey="true" :isShowNam="true" :isShowAdr="true" :requiredNam="false" :requiredAdrblk="false" :disabledExtkey="true" ptytyp = 'C'>
						</c-ptap3>

						<el-form-item label="受益人账号" prop="dedgrp.ben.pts.extact">
							<c-input v-model="model.dedgrp.ben.pts.extact" maxlength="34" placeholder="请输入"></c-input>
						</el-form-item>

						<c-ptap8 :model="model" :argadr="{
              title: '受益人开户行联行行号',
							grp: 'dedgrp',
							rol: 'beb'
						}" :label="{
              labelJigomc:'联行名称',
						}" :isShowCard="false" :requiredBankno="true" :disabledJigomc="true">
						</c-ptap8>
					</el-card>
				</c-col>
			</c-col>
			<!-- ============右边================= -->
			<c-col :span="12" style="padding-left: 20px">
				<c-col :span="24">
					<c-ptap3 :model="model" :argadr="{
            	title: '申请人',
							grp: 'dedgrp',
							rol: 'apl'
						}" :requiredExtkey="true" @changeNam="changeNam" :isShowNam="true" :isShowAdr="true" ptytyp = 'F'>
					</c-ptap3>
				</c-col>
			</c-col>
		</c-col>
	</div>
</template>
<script>
import event from "../event";
export default {
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [event],
  data() {
    return {};
  },
    methods:{
    changeNam(){
      this.model.dedgrp.ben.pts.nam = this.model.dedgrp.ben.pts.cnnam;
      this.model.dedgrp.apl.pts.nam = this.model.dedgrp.apl.pts.cnnam;
    }
  },
  created() {}
};
</script>
<style scoped lang="less">
.box-card {
  margin-bottom: 10px;
  /deep/ .el-form-item--mini.el-form-item,
  .el-form-item--small.el-form-item {
    margin-bottom: 10px;
  }
  /deep/ .el-card__body {
    padding: 10px 10px 10px 0px;
  }
}
</style>