<template>
  <div class="eibs-tab">
    <c-row>
      <c-col :span="12">
        <c-row>
          <c-col :span="24">
            <el-form-item label="不符点">
              <c-input
                type="textarea"
                :disabled="model.bddgrp.blk.docdisflg ? false : true"
                :rows="6"
                v-model="model.bddgrp.blk.docdis"
                maxlength="65"
                show-word-limit
                placeholder="请输入不符点"
              ></c-input>
            </el-form-item>
          </c-col>

<c-col :span="24">
            <c-istream-table
              :list="model.bdtp.docgrdm.docgrd"
              :columns="columns"
            >
            </c-istream-table>
          </c-col>
          
        </c-row>
      </c-col>

      <c-col :span="12">
        <c-row>
          <c-col :span="24">
            <div class="c-checkbox">
              <c-checkbox v-model="model.bddgrp.blk.docdisflg" @change="changed"
                >录入不符点</c-checkbox
              >
            </div>
          </c-col>

          
        </c-row>
      </c-col>
    </c-row>
  </div>
</template>
<script>
import Api from "~/service/Api";
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Bdtdcr/Event";

export default {
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [CommonProcess],
  data() {
    return {
      columns: ['0 0 "lst1" 50 ', '1 1 "lst2" 50', '2 2 "document" 200'],
    };
  },
  methods: {
    ...Event,
    changed(e) {
      if (!e) {
        this.model.bddgrp.blk.docdis = "";
      }
    },
  },
  created: function () {},
};
</script>
<style>
.c-checkbox {
  text-align: center;
  margin: 10px;
  font-size: 16px;
}
</style>
