<template>
    <div class="eibs-tab">
        <c-col :span="8">
            <el-form-item label="Batch No." prop="cldgrp.rec.ownref">
                <c-input v-model="model.cldgrp.rec.ownref" maxlength="16" placeholder="请输入Reference" disabled></c-input>
            </el-form-item>
        </c-col>

        <c-col :span="12">
            <c-button size="small" type="primary;width:10%" @click="onSeainf">i</c-button>
            <c-button size="small" type="primary" @click="onCltpButgetref">
                获取
            </c-button>
            <c-button size="small" type="primary" @click="onGet">
                Get Swt
            </c-button>
        </c-col>

        <c-col> </c-col>

        <c-col :span="12">
            <el-form-item label="Name of CC contract" prop="cldgrp.rec.nam">
                <c-input v-model="model.cldgrp.rec.nam" maxlength="40" placeholder="请输入Name of CC contract"></c-input>
            </el-form-item>
        </c-col>

        <c-col> </c-col>

        <c-col :span="6">
            <el-form-item label="Date of creation" prop="cldgrp.rec.credat">
                <c-date-picker type="date" v-model="model.cldgrp.rec.credat" style="width:100%"
                    placeholder="请选择Date of creation"></c-date-picker>
            </el-form-item>
        </c-col>
        <c-col :span="6">
            <el-form-item label="Value Date" prop="cldgrp.rec.valdat">
                <c-date-picker type="date" v-model="model.cldgrp.rec.valdat" style="width:100%"
                    placeholder="请选择Value Date"></c-date-picker>
            </el-form-item>
        </c-col>

        <!--
        <c-col :span="12">
            <el-form-item label="currency" prop="cur">
                <c-select v-model="model.cur" style="width:100%" placeholder="请选择currency">
                    <el-option
                  v-for="item in codes.cur"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                ></el-option>
                </c-select>
            </el-form-item>
        </c-col>
-->
        <c-col :span="12">
            <c-col :span="10">
                <el-form-item label="Amount" prop="model.cur">
                    <c-select v-model="model.cur" style="width: 100%" placeholder="请选择币种" :code="codes.cur">
                        <el-option v-for="item in codes.cur" :key="item.value" :label="item.label" :value="item.value">
                        </el-option>
                    </c-select>
                </el-form-item>
            </c-col>
            <c-col :span="6">
                <el-form-item label="" label-width="15px" prop="model.amt">
                    <c-input v-model="model.amt" placeholder="请输入Amount"></c-input>
                </el-form-item>
            </c-col>
        </c-col>

        <c-col :span="12">
            <el-form-item label="Total Row Count" prop="rowcntr">
                <c-input v-model="model.rowcntr" placeholder="请输入Total Row Count" disabled></c-input>
            </el-form-item>
        </c-col>
        <c-col :span="12">
            <el-form-item label="Register Ref." prop="cldgrp.rec.regref">
                <c-input v-model="model.cldgrp.rec.regref" maxlength="16" placeholder="请输入Register Ref."></c-input>
            </el-form-item>
        </c-col>
        <!--
        <c-col :span="12">
            <el-form-item label="Amount" prop="amount">
                <c-input v-model="model.amount" placeholder="请输入AMOUNT"></c-input>
            </el-form-item>
        </c-col>
    -->
        <c-col :span="12">
            <el-form-item label="Item Count" prop="cldgrp.rec.count">
                <c-input v-model="model.cldgrp.rec.count" placeholder="请输入ITEM COUNT"></c-input>
            </el-form-item>
        </c-col>

        <c-col :span="12">
            <el-form-item label="Item Count" prop="items">
                <c-input v-model="model.items" placeholder="请输入Item Count"></c-input>
            </el-form-item>
        </c-col>

        <c-col :span="12">
            <el-form-item label="Collection Bank" prop="colbnk">
                <c-select v-model="model.colbnk" style="width:100%" placeholder="请选择Collection Bank">
                </c-select>
            </el-form-item>
        </c-col>

        <c-col :span="12">
            <el-form-item label="Collection Method" prop="colmet">
                <c-select v-model="model.colmet" style="width:100%" placeholder="请选择Collection Method"></c-select>
            </el-form-item>
        </c-col>

        <c-col> </c-col>

        <c-col :span="12">
            <el-form-item label="Coll Bank Ref" prop="cldgrp.rec.colref">
                <c-input v-model="model.cldgrp.rec.colref" maxlength="16" placeholder="请输入COLL BANK REF"></c-input>
            </el-form-item>
        </c-col>

        <c-col :span="12">
            <el-form-item label="Payemnt Disposition" prop="cldgrp.rec.colflg">
                <c-select v-model="model.cldgrp.rec.colflg" maxlength="1" placeholder="请输入Payemnt Disposition":code="codes.colflg"></c-select>
                <el-option v-for="item in codes.colflg" :key="item.value" :label="item.label" :value="item.value"></el-option>
            </el-form-item>
        </c-col>

        <c-col :span="8">
            <el-form-item label="Extkey" prop="cldgrp.col.pts.extkey">
                <c-input v-model="model.cldgrp.col.pts.extkey" maxlength="16" placeholder="请输入External Key of Address">
                </c-input>
            </el-form-item>
        </c-col>

        <c-col :span="8">
            <el-form-item label="" label-width="15px">
                <c-button size="small" type="primary;width:10%" @click="onSeainf('cldgrp.col.pts.extkey')">i</c-button>
                <c-button size="small" type="primary" @click="onAplpDet">
                    Details
                </c-button>
            </el-form-item>
        </c-col>
        <c-col> </c-col>
        <c-col :span="12">
            <el-form-item label="Address Block" prop="cldgrp.col.pts.adrblk">
                <c-input type="textarea" :rows="4" v-model="model.cldgrp.col.pts.adrblk" maxlength="35" disabled
                    show-word-limit placeholder="请输入Address Block"></c-input>
            </el-form-item>
        </c-col>

        <!--
        <c-col :span="12">
            <el-form-item label="名称" prop="cldgrp.col.pts.namelc">
                <c-input type="textarea" v-model="model.cldgrp.col.pts.namelc" maxlength="35" show-word-limit
                    placeholder="请输入名称"></c-input>
            </el-form-item>
        </c-col>

        <c-col>
        </c-col>

        <c-col :span="12">
            <el-form-item label="地址" prop="cldgrp.col.pts.adrelc">
                <c-input type="textarea" v-model="model.cldgrp.col.pts.adrelc" maxlength="35" show-word-limit
                    placeholder="请输入地址"></c-input>
            </el-form-item>
        </c-col>
    -->
        <c-col>
            &nbsp;
        </c-col>



    </div>
</template>
<script>
    import Api from "~/service/Api"
    import CommonProcess from "~/mixin/CommonProcess";
    import CodeTable from "~/config/CodeTable"
    import Event from "~/model/Cltdav/Event"

    export default {
        inject: ['root'],
        props: ["model", "codes"],
        mixins: [CommonProcess],
        data() {
            return {

            }
        },
        methods: { ...Event },
        created: function () {

        }
    }
</script>
<style>

</style>