Ptyp.vue 2.63 KB
Newer Older
jxl committed
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
<template>
 <c-row>
    <c-col :span="11">
        <c-ptap
        :model="model"
        :argadr="{
            title: 'Drawer',
            grp: 'bodgrp',
            rol: 'drr',
        }"
        :disabled="true"
        @onSeainf="onSeainf"
        @onAplpDet="onBenpDet"
        >
        </c-ptap>
    
        <c-ptap
        :model="model"
        :argadr="{
            title: 'Drawee',
            grp: 'bodgrp',
            rol: 'dre',
        }"
        :disabled="true"
        @onSeainf="onSeainf"
        @onAplpDet="onBenpDet"
        >
        </c-ptap>
    </c-col>
    <c-col :span="11" :offset="1">
        <c-ptap
        :model="model"
        :argadr="{
            title: 'Collecting Bank',
            grp: 'bodgrp',
            rol: 'col',
        }"
        :disabled="true"
        @onSeainf="onSeainf"
        @onAplpDet="onBenpDet"
        >
        </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> 
  </c-row>
</template>
<script>
import Api from "~/service/Api"
wangren committed
63
import commonProcess from "~/mixin/commonProcess";
jxl committed
64 65 66 67 68 69 70 71
import CodeTable from "~/config/CodeTable" 
import Utils from "~/utils"; 
import Ptap from "~/views/Public/Ptap";

export default {
    components: { "c-ptap": Ptap },
    inject: ['root'],
    props:["model","codes"],
wangren committed
72
    mixins: [commonProcess],
jxl committed
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 102 103 104 105 106 107 108 109 110 111 112
    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(){
        onsole.log(this.root);
    }
}
</script>
<style>

</style>