<template>
    <div class="eibs-tab">
        <c-col :span="24">
            <c-col :span="11">
                <el-form-item label="Batch No." prop="cldgrp.rec.ownref">
                    <c-input v-model="model.cldgrp.rec.ownref" maxlength="16" placeholder="请输入Batch No." disabled>
                    </c-input>
                </el-form-item>
            </c-col>
            <c-col :span="11" :offset="1">
                <el-form-item label="Type of Draft" prop="cldgrp.rec.chktyp">
                    <c-select v-model="model.cldgrp.rec.chktyp" style="width: 100%" placeholder="请输入Type of Draft">
                        <el-option v-for="item in codes.chktyp" :key="item.value" :label="item.label"
                            :value="item.value">
                        </el-option>
                    </c-select>
                </el-form-item>
            </c-col>
        </c-col>
        <c-col :span="24">
            <c-col :span="11">
                <c-col :span="12">
                    <el-form-item label="Draft Amount" prop="cldgrp.cbs.max.cur">
                        <c-input v-model="model.cldgrp.cbs.max.cur" style="width:100%" placeholder="请选择Draft Amount"
                            disabled>
                        </c-input>
                    </el-form-item>
                </c-col>
                <c-col :span="11" :offset="1">
                    <el-form-item label="" label-width="0" prop="cldgrp.cbs.max.amt" style="width:100%">
                        <c-input v-model="model.cldgrp.cbs.max.amt" style="width:100%" placeholder="请输入Open Amount"
                            disabled></c-input>
                    </el-form-item>
                </c-col>
            </c-col>
            <c-col :span="11" :offset="1">
                <el-form-item label="Payemnt Disposition" prop="cldgrp.rec.colflg">
                    <c-select v-model="model.cldgrp.rec.colflg" style="width: 100%"
                        placeholder="请输入Payemnt Disposition">
                        <el-option v-for="item in codes.colflg" :key="item.value" :label="item.label"
                            :value="item.value">
                        </el-option>
                    </c-select>
                </el-form-item>
            </c-col>
        </c-col>

        <c-col :span="24">
            <c-col :span="11">
                <c-col :span="12">
                    <el-form-item label="Open Amount" prop="cldgrp.cbs.opn1.cur">
                        <c-input v-model="model.cldgrp.cbs.opn1.cur" style="width:100%" placeholder="请选择Open Amount"
                            disabled>
                        </c-input>
                    </el-form-item>
                </c-col>
                <c-col :span="11" :offset="1">
                    <el-form-item label-width="0" prop="cldgrp.cbs.opn1.amt">
                        <c-input v-model="model.cldgrp.cbs.opn1.amt" placeholder="请输入Open Amount" disabled></c-input>
                    </el-form-item>
                </c-col>

            </c-col>

        </c-col>

        <c-col :span="24">
            <c-col :span="11">
                <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>

        <c-col :span="24">
            <c-col :span="11">
                <el-form-item label="Coll.bank name" prop="cldgrp.rec.colptynam">
                    <c-input v-model="model.cldgrp.rec.colptynam" maxlength="40" placeholder="请输入Coll.bank name"
                        disabled>
                    </c-input>
                </el-form-item>
            </c-col>
        </c-col>


        <c-col :span="24">
            <c-col :span="11">
                <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" disabled></c-date-picker>
                </el-form-item>
            </c-col>
        </c-col>


        <c-col :span="24">
            <c-col :span="11">
                <el-form-item label="Item Count" prop="cldgrp.rec.count">
                    <c-input v-model="model.cldgrp.rec.count" placeholder="请输入Item Count" disabled></c-input>
                </el-form-item>
            </c-col>
        </c-col>

        <c-col :span="24">
            <c-edit-table :model="model" v-bind="docgrd">
            </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/Clttra/Event"

export default {
    inject: ['root'],
    props: ["model", "codes"],
    mixins: [commonProcess],
    data() {
        return {
            docgrd: {
                columns: [
                    {
                        title: "Check NUmber",
                        width: "120px",
                        dataIndex: "chcknum",
                        show: "text",
                    },
                    {
                        title: "Our Reference",
                        width: "120px",
                        dataIndex: "ownref",
                        show: "text",
                    },
                    {
                        title: "Name of CC contact",
                        width: "220px",
                        dataIndex: "nam",
                        show: "text",
                    },
                    {
                        title: "Presenter",
                        width: "200px",
                        dataIndex: "prenam",
                        show: "text",
                    },
                    {
                        title: "cur",
                        width: "100px",
                        dataIndex: "cur",
                        show: "text",
                    },
                    {
                        title: "balance",
                        width: "100px",
                        dataIndex: "amt",
                        show: "text",
                    },
                    {
                        title: "PAY TO",
                        width: "100px",
                        dataIndex: "paytoamt",
                        show: "input",
                    },
                ],
                urls: "bptbck.bptbckg",
            },
        }
    },
    methods: { ...Event },
    created: function () {

    }
}
</script>
<style>

</style>