<template>
  <div class="eibs-tab">
    <el-col :span="11">
      <c-col :span="24">
        <el-form-item label="Discrepancies" prop="brdgrp.blk.docdis">
          <c-fullbox>
            <c-input
              :disabled="this.typ1"
              type="textarea"
              v-model="model.brdgrp.blk.docdis"
              maxlength="50"
              show-word-limit
              placeholder="请输入Discrepancies"
            ></c-input>
            <template slot="footer">
              <c-button
                size="small"
                type="primary"
                icon="el-icon-search"
                @click="onDocdisButtxmsel"
              >
                ...
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>
      <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"
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item
          label="Settlement Instructions for this Document Set"
          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"
            ></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>
      <el-col :span="24">
        <c-docpre
          :model="model"
          :argadr="{
            path: 'brdgrp.blk.prsdoc',
            grp: 'brtp',
            code: 'docpre',
          }"
        ></c-docpre>
      </el-col>
    </el-col>

    <el-col :span="11" :offset="1">
      <c-col :span="12">
        <c-checkbox
          style="margin: 0px 0 10px 150px"
          v-model="model.brdgrp.rec.igndisflg"
          >Ignore Discrepancies</c-checkbox
        >
      </c-col>
      <c-col :span="12">
        <c-checkbox
          style="margin: 0px 0 10px 150px"
          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-input
            disabled
            v-model="model.brdgrp.rec.advtyp"
            style="width: 100%"
            placeholder="请选择Type of Advice Received"
          >
          </c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="付款日期" prop="brdgrp.rec.totdat">
          <c-date-picker
            disabled
            type="date"
            v-model="model.brdgrp.rec.totdat"
            style="width: 100%"
            placeholder="请选择付款日期"
          ></c-date-picker>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item
          label="Discrepancy Advice Dated"
          label-width="153px"
          prop="brdgrp.rec.disdat"
        >
          <c-date-picker
            disabled
            type="date"
            v-model="model.brdgrp.rec.disdat"
            style="width: 100%"
            placeholder="请选择Discrepancy Advice Dated"
          ></c-date-picker>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <c-checkbox
          style="margin: 0px 0 10px 150px"
          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
          style="margin: 0px 0 10px 150px"
          disabled
          v-model="model.brtp.cre732flg"
          >Create MT 732</c-checkbox
        >
      </c-col>
    </el-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/Litdck/Event";
import Docpre from "~/views/Public/Docpre";
export default {
  components: {
    "c-docpre": Docpre,
  },
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {
      typ1: false,
    };
  },
  watch: {
    "model.brdgrp.blk.docdisflg": {
      immediate: true,
      handler(val, oldval) {
        if (this.model.brdgrp.blk.docdisflg != "X") {
          this.typ1 = true;
          this.model.brdgrp.blk.docdis = "";
          this.changeFormItemRequired("brdgrp.blk.docdis", false);
        } else {
          this.typ1 = false;
          this.changeFormItemRequired("brdgrp.blk.docdis", true);
        }
      },
    },
  },
  methods: {
    ...Event,

    addRow() {},
    removeRow() {},
  },
  created: function () {},
};
</script>
<style></style>
