<template>
  <div class="eibs-tab">
    <c-col :span="12" class="col-left">
	<!-- <c-col :span="24">
        <el-form-item label="inr" prop="inr">
            <c-input
                v-model="model.inr"
                placeholder="请输入inr"
            >
            </c-input>
        </el-form-item>
    </c-col> -->
	
	<c-col :span="24">
        <el-form-item label="机构编码" prop="branch">
            <c-input
                v-model="model.branch"
                placeholder="请输入机构编码"
            >
            </c-input>
        </el-form-item>
    </c-col>
    <c-col :span="24">
        <el-form-item label="核心机构号" prop="accbch">
            <c-input
                v-model="model.accbch"
                placeholder="请输入核心机构号"
            >
            </c-input>
        </el-form-item>
    </c-col>
    <c-col :span="24">
        <el-form-item label="机构类型" prop="bchtyp">
            <c-select style="width: 100%"
                v-model="model.bchtyp"
               placeholder="请选择机构类型"
                :code="getCodesByKey('bchtyp')"
            >
            </c-select>
        </el-form-item>
    </c-col>
	<c-col :span="24">
        <el-form-item label="经办机构编码" prop="bchkey">
            <c-input
                v-model="model.bchkey"
                placeholder="请输入经办机构编码"
            >
            </c-input>
        </el-form-item>
    </c-col>
    <c-col :span="24">
        <el-form-item label="上级机构编码" prop="upbranch">
            <c-input
                v-model="model.upbranch"
                placeholder="请输入上级机构编码"
            >
            </c-input>
        </el-form-item>
    </c-col>
    <c-col :span="24">
        <el-form-item label="中文地址" prop="adr">
            <c-input
                v-model="model.adr"
                placeholder="请输入地址"
            >
            </c-input>
        </el-form-item>
        <el-form-item label="" prop="adr2">
            <c-input
                v-model="model.adr2"
                placeholder="请输入地址2"
            >
            </c-input>
        </el-form-item>
    </c-col>
    <c-col :span="24">
        <el-form-item label="英文地址" prop="adren">
            <c-input
                v-model="model.adren"
                placeholder="请输入英文地址"
            >
            </c-input>
        </el-form-item>
        <el-form-item label="" prop="adren2">
            <c-input
                v-model="model.adren2"
                placeholder="请输入英文地址2"
            >
            </c-input>
        </el-form-item>
    </c-col>
    <c-col :span="24">
        <el-form-item label="电话" prop="tel">
            <c-input
                v-model="model.tel"
                placeholder="请输入电话"
            >
            </c-input>
        </el-form-item>
    </c-col>
    <c-col :span="24">
        <el-form-item label="传真" prop="fax">
            <c-input
                v-model="model.fax"
                placeholder="请输入传真"
            >
            </c-input>
        </el-form-item>
    </c-col>
    <c-col :span="24">
        <el-form-item label="收支申报号" prop="decnum">
            <c-input
                v-model="model.decnum"
                placeholder="请输入收支申报号"
            >
            </c-input>
        </el-form-item>
    </c-col>
    <c-col :span="24">
        <el-form-item label="外汇管理局印单局代码" prop="ydjcod">
            <c-input
                v-model="model.ydjcod"
                placeholder="请输入外汇管理局印单局代码"
            >
            </c-input>
        </el-form-item>
    </c-col>
    <c-col :span="24">
        <el-form-item label="实体" prop="etyexkey">
            <c-input
                v-model="model.etyexkey"
                placeholder="请输入实体"
            >
            </c-input>
        </el-form-item>
    </c-col>
    <c-col :span="24">
        <el-form-item label="机构标识" prop="bchflg">
            <c-input
                v-model="model.bchflg"
                placeholder="请输入机构标识"
            >
            </c-input>
        </el-form-item>
    </c-col>
    <c-col :span="24">
        <el-form-item label="机构层次" prop="lev">
            <c-select style="width: 100%"
                v-model="model.lev"
               placeholder="请选择机构层次"
                :code="getCodesByKey('lev')"
            >
            </c-select>
        </el-form-item>
    </c-col>
    
	<!-- <c-col :span="24">
        <el-form-item label="机构类型" prop="bchtyp">
            <c-select
                v-model="model.bchtyp"
                placeholder="请输入机构类型"
            >
            </c-select>
        </el-form-item>
    </c-col> -->

	
	<!-- <c-col :span="24">
        <el-form-item label="地址2" prop="adr2">
            <c-input
                v-model="model.adr2"
                placeholder="请输入地址2"
            >
            </c-input>
        </el-form-item>
    </c-col> -->
	
</c-col>
<c-col :span="12" class="col-right">
	
    <c-col :span="24">
        <el-form-item label="中文名称" prop="bchname">
            <c-input
                v-model="model.bchname"
                placeholder="请输入中文名称"
            >
            </c-input>
        </el-form-item>
    </c-col>
    <c-col :span="24">
        <el-form-item label="英文名称" prop="namen">
            <c-input
                v-model="model.namen"
                placeholder="请输入英文名称"
            >
            </c-input>
        </el-form-item>
    </c-col>
    <c-col :span="24">
        <el-form-item label="电证联行行号" prop="dzlhhh">
            <c-input
                v-model="model.dzlhhh"
                placeholder="请输入电证联行行号"
            >
            </c-input>
        </el-form-item>
    </c-col>
    <c-col :span="24">
        <el-form-item label="机构负责人" prop="bchfzr">
            <c-input
                v-model="model.bchfzr"
                placeholder="请输入机构负责人"
            >
            </c-input>
        </el-form-item>
    </c-col>
    <c-col :span="24">
        <el-form-item label="自贸区标志" prop="zmqflg">
            <c-checkbox
                v-model="model.zmqflg"
                placeholder="请输入自贸区标志"
                disabled style="float: left;"
            >
            </c-checkbox>
        </el-form-item>
    </c-col>
    <c-col :span="24">
        <el-form-item label="BIC码" prop="swfcod">
            <c-input
                v-model="model.swfcod"
                placeholder="请输入BIC码"
            >
            </c-input>
        </el-form-item>
    </c-col>
    <c-col :span="24">
        <el-form-item label="所辖押汇中心" prop="upbchkey">
            <c-input
                v-model="model.upbchkey"
                placeholder="请输入所辖押汇中心"
            >
            </c-input>
        </el-form-item>
        <el-form-item label="" prop="bchgrp">
            <c-input
                v-model="model.bchgrp"
                placeholder="请输入机构组"
            >
            </c-input>
        </el-form-item>
    </c-col>
	<!-- <c-col :span="24">
        <el-form-item label="收单行系统机构代号" prop="tid">
            <c-input
                v-model="model.tid"
                placeholder="请输入收单行系统机构代号"
            >
            </c-input>
        </el-form-item>
    </c-col> -->
	<c-col :span="24">
        <el-form-item label="国内地区码" prop="tid">
            <c-input
                placeholder="DISCOD"
            >
            </c-input>
        </el-form-item>
    </c-col>
	<c-col :span="24">
        <el-form-item label="机构参考号" prop="bchref">
            <c-input
                v-model="model.bchref"
                placeholder="请输入机构参考号"
            >
            </c-input>
        </el-form-item>
    </c-col>
	<c-col :span="24">
        <el-form-item label="核心柜员" prop="bchusr">
            <c-input
                v-model="model.bchusr"
                placeholder="请输入核心柜员"
            >
            </c-input>
        </el-form-item>
    </c-col>
    <c-col :span="24">
        <el-form-item label="核心柜员2" prop="bchusr2">
            <c-input
                v-model="model.bchusr2"
                placeholder="请输入核心柜员2"
            >
            </c-input>
        </el-form-item>
    </c-col>
	<!-- <c-col :span="24">
        <el-form-item label="状态" prop="sta">
            <c-select style="width: 100%"
                v-model="model.sta"
               placeholder="请选择状态"
                :code="getCodesByKey('bchsta')"
            >
            </c-select>
        </el-form-item>
    </c-col> -->
	<c-col :span="24">
        <el-form-item label="联行行号" prop="lhanum">
            <c-input
                v-model="model.lhanum"
                placeholder="请输入联行行号"
            >
            </c-input>
        </el-form-item>
    </c-col>
	<c-col :span="24">
        <el-form-item label="联行名称" prop="lhanam">
            <c-input
                v-model="model.lhanam"
                placeholder="请输入联行名称"
            >
            </c-input>
        </el-form-item>
    </c-col>
	
	
	<!-- <c-col :span="24">
        <el-form-item label="包含的分支机构INR" prop="bchlst">
            <c-input 
                type="textarea"
                v-model="model.bchlst"
                placeholder="请输入包含的分支机构INR"
            >
            </c-input>
        </el-form-item>
    </c-col> -->

	<c-col :span="24">
        <el-form-item label="电证联行名称" prop="dzlhmc">
            <c-input
                v-model="model.dzlhmc"
                placeholder="请输入电证联行名称"
            >
            </c-input>
        </el-form-item>
    </c-col>
	
</c-col>
  </div>
</template>

<script>
import codes from "~/config/CodeTable";
export default {
  name: "",
  props: ["model"],
  data() {
    return {};
  },
  methods:{
    getCodesByKey(key) {
      return codes[key] ?? [];
    },
  }
};
</script>

<style>
</style>