<template>
  <div class="eibs-tab">
    <!--=== =================================左边======================================== -->

    <c-col :span="11">
      <!-- Discrepancies -->
      <c-col :span="24">
        <el-form-item label="Discrepancies" prop="brdgrp.blk.docdis">
          <c-fullbox>
            <c-input type="textarea" v-model="model.brdgrp.blk.docdis" maxlength="50" show-word-limit
              placeholder="请输入Discrepancies" rows="5" :disabled="!docdisflg"></c-input>

            <template slot="footer">
              <c-button size="small" type="primary" icon="el-icon-search" @click="onDocdisButtxmsel"
                :disabled="!docdisflg">
                <!-- ... -->
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>
      <!-- Comments and Conclusion -->
      <c-col :span="24">
        <el-form-item label="Comments and Conclusions" prop="brdgrp.blk.comcon">
          <c-input type="textarea" v-model="model.brdgrp.blk.comcon" maxlength="65" show-word-limit
            placeholder="请输入Comments and Conclusions" rows="5"></c-input>
        </el-form-item>
      </c-col>
      <!-- Settlement Instructions BR -->
      <!-- <c-col :span="21"> -->
      <c-col :span="24">
        <el-form-item label="Settlement Instructions BR" prop="brdgrp.blk.setinsbr">
          <c-fullbox>
            <c-input type="textarea" v-model="model.brdgrp.blk.setinsbr" maxlength="65" show-word-limit
              placeholder="请输入Settlement Instructions BR" rows="5"></c-input>
            <template slot="footer">
              <c-button size="small" type="primary" icon="el-icon-search" @click="onSetinstxmButtxmsel">
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>

      <!-- 表格 -->
      <c-col :span="24">
        <c-docpre :model="model" :argadr="{
          path: 'brdgrp.blk.prsdoc',
          grp: 'brtp',
          code: 'docpre',
        }"></c-docpre>
      </c-col>


    </c-col>

    <!--=== ========================================右边======================================== -->
    <c-col :span="11" :offset="1">
      <c-col :span="24">
        <c-checkbox v-model="model.brdgrp.rec.igndisflg">Ignore Discrepancies</c-checkbox>
      </c-col>

      <c-col :span="24">
        <c-checkbox v-model="docdisflg">discrepancies modified</c-checkbox>
        <!-- <c-checkbox v-model="model.brdgrp.blk.docdisflg">discrepancies modified</c-checkbox> -->
      </c-col>

      <c-col :span="24">
        <el-form-item label="Type of Advice Received" prop="brdgrp.rec.advtyp">
          <c-select v-model="model.brdgrp.rec.advtyp" style="width: 100%" placeholder="请选择Type of Advice Received"
            :code="codes.advtyp">
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Date to be Paid" prop="brdgrp.rec.totdat">
          <c-date-picker type="date" v-model="model.brdgrp.rec.totdat" style="width: 100%" placeholder="请选择付款日期"
            disabled>
          </c-date-picker>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Discrepancy Advice Dated" prop="brdgrp.rec.disdat" label-width="155px">
          <c-date-picker type="date" v-model="model.brdgrp.rec.disdat" style="width: 100%"
            placeholder="请选择Discrepancy Advice Dated" disabled></c-date-picker>
        </el-form-item>
      </c-col>


    </c-col>


    <!-- <c-col :span="12">
      <c-checkbox v-model="model.brdgrp.rec.approvcod">Documents on Approval Basis</c-checkbox>
    </c-col>

    <c-col :span="12">
      <c-checkbox v-model="model.brtp.cre752flg">Create 752</c-checkbox>
    </c-col>

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

    <c-col :span="12">
      <c-checkbox v-model="model.brtp.cre732flg">Create MT 732</c-checkbox>
    </c-col>

    <c-col :span="12">
      <span v-text="model.brtp.docgrdm.docdsclab" data-path=".brtp.docgrdm.docdsclab">
      </span>
    </c-col> -->
  </div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Brtudp/Event";
import Utils from "~/utils";
import Docpre from "~/views/Public/Docpre";

export default {
  components: {
    // "c-ptap": Ptap,
    "c-docpre": Docpre,
  },
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {
    };
  },
  methods: { ...Event 
  },
  created: function () { },
  computed: {
    docdisflg: {
      get() {
        return this.model.brdgrp.blk.docdisflg != ""
      },
      set(val) {
        this.model.brdgrp.blk.docdisflg = val ? "X" : ""
      }
    },
  },
};
</script>
<style>
</style>
