<template>

    <c-content class="eibs-tab" :height="200">

        <div class="infTopBtn">
            <el-button-group>
                <c-button size="small" type="primary" icon="el-icon-arrow-left"></c-button>
                <c-button size="small" type="primary" icon="el-icon-arrow-right"></c-button>
            </el-button-group>
            <c-button size="small" type="primary">Print</c-button>
            <c-button size="small" type="primary">Use</c-button>
            <c-button size="small" type="primary">Loginfo</c-button>
        </div>

        <c-row class="infrow" style="margin-top:50px;">
            <c-col :span="11" :offset="1">
                <c-row>
                    <c-col :span="20">
                        <el-form-item label="收到的通知类型" prop="bddgrp.rec.advtyp">
                            <c-select v-model="model.bddgrp.rec.advtyp" style="width:100%" placeholder="请选择通知类型">
                            </c-select>
                        </el-form-item>
                    </c-col>
                </c-row>
            </c-col>
            <c-col :span="11" :offset="1">
                <c-row>
                    <c-col :span="10">
                        <el-form-item label="" prop="bddgrp.blk.docdisflg" label-width="0">
                            <c-checkbox v-model="model.bddgrp.blk.docdisflg">录入不符点</c-checkbox>
                        </el-form-item>
                    </c-col>
                    <c-col :span="10">
                        <el-form-item label="" prop="bddgrp.blk.igndisflg" label-width="0">
                            <c-checkbox v-model="model.bddgrp.blk.igndisflg">忽略不符点</c-checkbox>
                        </el-form-item>
                    </c-col>
                </c-row>
            </c-col>
        </c-row>

        <c-row class="infrow">
            <c-col :span="11" :offset="1">
                <c-row>
                    <c-col :span="20">
                        <el-form-item label="付款日期" prop="bddgrp.rec.totdat">
                            <c-date-picker type="date" v-model="model.bddgrp.rec.totdat" style="width:50%"
                                placeholder="请选择付款日期"></c-date-picker>
                        </el-form-item>
                    </c-col>
                </c-row>
            </c-col>
            <c-col :span="11" :offset="1">
                <c-row>
                    <c-col :span="10">
                        <el-form-item label="" prop="bddgrp.rec.approvcod" label-width="0">
                            <c-checkbox v-model="model.bddgrp.rec.approvcod">议付行担保议付</c-checkbox>
                        </el-form-item>
                    </c-col>
                    <c-col :span="10">
                        <el-form-item label="" prop="recpan.cre732flg" label-width="0">
                            <c-checkbox v-model="model.recpan.cre732flg">Create MT 732</c-checkbox>
                        </el-form-item>
                    </c-col>
                </c-row>
            </c-col>
        </c-row>

        <c-row class="infrow">
            <c-col :span="11" :offset="1">
                <c-row>
                    <c-col :span="20">
                        <el-form-item label="不符点通知日期" prop="bddgrp.rec.disdat">
                            <c-date-picker type="date" v-model="model.bddgrp.rec.disdat" style="width:50%"
                                placeholder="请选择不符点通知日期"></c-date-picker>
                        </el-form-item>
                    </c-col>
                </c-row>
            </c-col>
            <c-col :span="11" :offset="1">
                <c-row>
                    <c-col :span="20">

                    </c-col>
                </c-row>
            </c-col>
        </c-row>

        <c-row class="infrow">
            <c-col :span="11" :offset="1">
                <c-row>
                    <c-col :span="20">
                        <el-form-item label="不符点" prop="bddgrp.blk.docdis">
                            <c-input type="textarea" v-model="model.bddgrp.blk.docdis" maxlength="50" show-word-limit
                                placeholder="请输入Discrepancies"></c-input>
                        </el-form-item>
                    </c-col>
                </c-row>
            </c-col>
            <c-col :span="11" :offset="1">
                <c-row>
                    <c-col :span="20">
                        <el-form-item label="注释和结论" prop="bddgrp.blk.comcon">
                            <c-input type="textarea" v-model="model.bddgrp.blk.comcon" maxlength="65" show-word-limit
                                placeholder="请输入Comments and Conclusions"></c-input>
                        </el-form-item>
                    </c-col>
                </c-row>
            </c-col>
        </c-row>

        <c-row class="infrow">
            <c-col :span="11" :offset="1">
                <c-row>
                    <c-col :span="20">
                        <el-form-item label="付款确认备注" prop="bddgrp.blk.accrmk">
                            <c-input type="textarea" v-model="model.bddgrp.blk.accrmk" maxlength="65" show-word-limit
                                placeholder="请输入到期付款确认备注"></c-input>
                        </el-form-item>
                    </c-col>
                </c-row>
            </c-col>
            <c-col :span="11" :offset="1">
                <c-row>
                    <c-col :span="20">

                    </c-col>
                </c-row>
            </c-col>
        </c-row>

        <c-row class="infrow" style="margin-top:20px;">
            <c-col :span="23" :offset="1">
                已交单据
            </c-col>
        </c-row>

        <c-row class="infrow" style="margin-top:20px;">
            <c-col :span="22" :offset="1">
                <c-istream-table :list="stmData.data" :columns="stmData.columns">
                    <el-table-column prop="op" label="OP" width="100">
                        <template slot-scope="scope">
                            <a href="javascript:void(0)" @click="continueEdit(scope.row)">操作</a>
                        </template>
                    </el-table-column>
                </c-istream-table>
            </c-col>
        </c-row>

    </c-content>
</template>
<script>
    import Api from "~/service/Api"
    import CommonProcess from "~/mixin/CommonProcess";
    import CodeTable from "~/config/CodeTable"
    import Event from "~/model/Infbdd/Event"

    export default {
        inject: ['root'],
        props: ["model", "codes"],
        mixins: [CommonProcess],
        data() {
            return {
                stmData: {
                    columns: [
                        "1 1 \"1st\" 0 ",
                        "1 2 \"2st\" 0 ",
                        "1 3 \"Document\" 0",
                    ],
                    data: [

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

        }
    }
</script>
<style>

</style>