<template>
  <div class="eibs-tab">
    <c-row>
      <c-col :span="24">
        <c-col :span="11">
          <c-col :span="24">
            <el-form-item label="Type of Document" prop="infcon.smhcortyp">
              <c-select
                v-model="model.infcon.smhcortyp"
                style="width: 100%"
                placeholder="请选择Type of Document"
              >
              </c-select>
            </el-form-item>
          </c-col>
          <c-col :span="12">
            <el-form-item label="Created between " prop="infcon.smhdatfrom">
              <c-date-picker
                type="date"
                v-model="model.infcon.smhdatfrom"
                style="width: 100%"
                placeholder="请选择Created between "
              ></c-date-picker>
            </el-form-item>
          </c-col>
          <c-col :span="12">
            <el-form-item label="created till" prop="infcon.smhdatto">
              <c-date-picker
                type="date"
                v-model="model.infcon.smhdatto"
                style="width: 100%"
                placeholder="请选择created till"
              ></c-date-picker>
            </el-form-item>
          </c-col>
          <c-col :span="24">
            <el-form-item label="Direction" prop="infcon.smhdir">
              <c-select
                v-model="model.infcon.smhdir"
                style="width: 100%"
                placeholder="请选择Direction"
              >
              </c-select>
            </el-form-item>
          </c-col>
        </c-col>
        <c-col :span="11" :offset="1">
          <c-col :span="24">
            <c-checkbox v-model="model.infcon.chktrn">Active only</c-checkbox>
          </c-col>
        </c-col>
      </c-col>
    </c-row>

    <c-col :span="20">
      <c-istream-table
        :list="stmData.data"
        :columns="stmData.columns"
        prop="infcon.smhstm"
      >
      </c-istream-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/Infbtd/Event";

export default {
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [CommonProcess],
  data() {
    return {
      stmData: {
        columns: [
          '1 1 \"Type\" 175 ',
          '8 2 \"Key\" 175',
          '9 3 \"Document\" 175',
          '11 4 \"Created\" 175',
          '12 5 \"Direction\" 175',
          // "18 5 \"MT\" 100",
          '3 6 \"SMHINR\" 175',
          '4 7 \" \" 175',
          '5 8 \" \" 175',
        ],
        data: [],
      },
    };
  },
  methods: { ...Event },
  created: function () {},
};
</script>
<style>
</style>
