<template>
  <div class="eibs-tab">
    <!-- left -->
    <c-col :span="11">
      <!-- S0000007 : 单据类型 -->
      <c-col :span="24">
        <el-form-item label="单据类型" prop="bedgrp.srm.djutyp">
          <c-select
            v-model="model.bedgrp.srm.djutyp"
            style="width: 100%"
            placeholder="请选择单据类型"
            @change="selectOrCheckboxRule('bedgrp.srm.djutyp')"
          >
            <el-option
              v-for="item in codes.djutyp"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
      <!-- S0000003 : 单据出具人 -->

      <c-col :span="24">
        <c-form-item label="单据出具人" prop="bedgrp.srm.djuusr">
          <c-input
            v-model="model.bedgrp.srm.djuusr"
            maxlength="80"
            placeholder="请输入单据出具人"
            :disabled="model.bedgrp.srm.djutyp==='D'"
          ></c-input>
        </c-form-item>
      </c-col>
    </c-col>

    <!-- right -->
    <c-col :span="11" :offset="1">
      <!-- S0000004 : 单据出具日期 -->

      <c-col :span="24">
        <el-form-item label="单据出具日期" prop="bedgrp.srm.djudat">
          <c-date-picker
            type="date"
            v-model="model.bedgrp.srm.djudat"
            style="width: 100%"
            placeholder="请选择单据出具日期"
            :disabled="model.bedgrp.srm.djutyp==='D'"
          ></c-date-picker>
        </el-form-item>
      </c-col>
      <!-- S0000005 : 货权单据编号 -->

      <c-col :span="24">
        <c-form-item label="货权单据编号" prop="bedgrp.srm.djuref">
          <c-input
            v-model="model.bedgrp.srm.djuref"
            maxlength="40"
            placeholder="请输入货权单据编号"
            :disabled="model.bedgrp.srm.djutyp==='D'"
          ></c-input>
        </c-form-item>
      </c-col>
    </c-col>
  </div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Letdrv/Event";

export default {
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {};
  },
  methods: { ...Event },
  created: function () {},
};
</script>
<style>
</style>
