<template>
  <div class="eibs-tab">
    <c-col :span="20">
      <el-form-item label="单据内部不符点" prop="bfdgrp.blk.intdis">
        <c-input
          type="textarea"
          v-model="model.bfdgrp.blk.intdis"
          maxlength="65"
          show-word-limit
          placeholder="请输入单据不符点"
          
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="2">
      <c-button
        size="small"
        type="primary"
        icon="el-icon-search"
        @click="onIntdisButtxmsel"
      >
        ...
      </c-button>
    </c-col>

    <c-col :span="20">
      <el-form-item label="不符点" prop="bfdgrp.blk.docdis">
        <c-input
          type="textarea"
          style="float: left"
          v-model="model.bfdgrp.blk.docdis"
          maxlength="65"
          show-word-limit
          placeholder="请输入不符点"
          :disabled="!docdisflg"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="2">
      <c-button
        size="small"
        type="primary"
        icon="el-icon-search"
        @click="onDocdisButtxmsel"
        :disabled="!docdisflg"
      >
        ...
      </c-button>
    </c-col>

    <c-col :span="2">
      <c-checkbox v-model="model.rejpenins">保留单据，等候指示</c-checkbox>
    </c-col>

    <c-col :span="2">
      <c-checkbox v-model="docdisflg">不符点修改</c-checkbox>
    </c-col>

    <c-docpre
      :model="model"
      :argadr="{
        path: 'bfdgrp.blk.prsdoc',
        grp: 'bftp',
        code: 'prsdoc',
      }"
    >
    </c-docpre>
    <!-- <c-col :span="24" style="height: 24px; margin-top: -10px">
      <el-form-item :label="model.bftp.docgrdm.docdsclab" class="messageLabel">
        <c-button style="float: right" @click="addTableValue" type="primary"
          >新增单据</c-button
        >
      </el-form-item>
    </c-col>
    <c-col :span="24" style="height: 0px">
      <el-divider></el-divider>
    </c-col>
    <c-col :span="24" style="margin-bottom: 30px;">
      <c-table
        height="200px"
        style="text-align: center"
        :list="this.model.bftp.docgrdm.docgrd || []"
        :paginationShow="false"
        :border="true"
      >
        <el-table-column
          label="1st"
          width="auto"
        >
        <template slot-scope="scope"> 
          <c-input
            v-model="scope.row.cmail1"
          ></c-input>
        </template>
        
        </el-table-column>
        <el-table-column
          label="2nd"
          width="auto"
        >
        <template slot-scope="scope">
          <c-input
            v-model="scope.row.cmail2"
          ></c-input>
        </template>
        </el-table-column>
        <el-table-column label="Document" prop="docnam" width="auto">
          <template slot-scope="scope">
            <c-select
              style="width: 100%"
              placeholder="请选择"
              v-model="scope.row.docnam"
            >
              <el-option
                v-for="item in codeTable"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </c-select>
          </template>
        </el-table-column>
        <el-table-column label="操作" width="170px" fixed="right">
          <template slot-scope="scope">
            <c-button @click="deleteTable(scope.$index)" type="primary"
              >删除</c-button
            >
          </template>
        </el-table-column>
      </c-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/Bftdcr/Event";
import Utils from "~/utils";
import Docpre from "~/views/Public/Docpre";

export default {
  name:'Docpre',
  components:{"c-docpre": Docpre,},
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {
    };
  },
  computed:{
    docdisflg: {
      get() {
        return this.model.bfdgrp.blk.docdisflg != "";
      },
      set(val) {
        this.model.bfdgrp.blk.docdisflg = val ? "X" : "";
        this.model.bfdgrp.blk.docdis = "";
      },
    },

  },
  methods: { ...Event,
  },
  created: function () {},
};
</script>
<style>
</style>
