<template>
<div class="eibs">
            <!-- ==================左边================ -->
            <c-col :span="12" style="padding-right: 20px;">
        <c-ptap
        :model="model"
        :argadr="{
            title: '收款人',
            grp: 'bodgrp',
            rol: 'drr',
        }"
        :disabled="true"
        :disabledRef="true"
        :disabledExtkey="true"
        >
        </c-ptap>
    
        <c-ptap
        :model="model"
        :argadr="{
            title: '付款人',
            grp: 'bodgrp',
            rol: 'dre',
        }"
        :disabled="true"
        :disabledRef="true"
        :disabledExtkey="true"
        >
        </c-ptap>
    </c-col>
            <!-- ============右边================= -->
            <c-col :span="12" style="padding-left: 20px;">
        <c-ptap
        :model="model"
        :argadr="{
            title: '代收行',
            grp: 'bodgrp',
            rol: 'col',
        }"
        :disabled="true"
        :disabledRef="true"
        :disabledExtkey="true"
        >
        </c-ptap>
    </c-col>
 
    <c-col :span="24">
        <c-edit-table :model="model" v-bind="ptsaddg">
        <el-table-column label="操作" align="center">
            <template slot-scope="scope">
            <el-button
                size="mini"
                @click="handleEdit(scope.$index, scope.row)"
                type="primary"
                >详情</el-button
            >
            </template>
        </el-table-column>
        </c-edit-table>
    </c-col> 
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Botset/Event"
import Utils from "~/utils"; 
import Ptap from "~/views/Public/Ptap";

export default {
    components: { "c-ptap": Ptap },
    inject: ['root'],
    props:["model","codes"],
    mixins: [commonProcess],
    data(){
        return {
           ptsaddg: {
                columns: [
                {
                    title: "角色",
                    width: "120px",
                    dataIndex: "rol",
                    show: "select",
                },
                {
                    title: "机构实体",
                    width: "180px",
                    dataIndex: "ptyextkey",
                    show: "input",
                },
                {
                    title: "名称",
                    width: "300px",
                    dataIndex: "nam",
                },
                {
                    title: "参考地址",
                    width: "300px",
                    dataIndex: "ref",
                },
                ],
                urls: "botp.ptsaddp.ptsaddg",
            },
        }
    },
    methods:{...Event},
    created:function(){
        console.log(this.root);
    }
}
</script>
<style>

</style>