<template>
  <div class="eibs-tab">

    <c-col :span="24">
      <div class="e-table-wrapper">
        <el-table :data="model.smegrp.lst" style="width: 100%">
          <el-table-column prop="ckflg" label="" sortable width="30">
          </el-table-column>
          <el-table-column prop="othref" label="单参考号" sortable width="100">
          </el-table-column>
          <el-table-column prop="sndbic" label="发报行BIC" sortable width="100">
          </el-table-column>
          <el-table-column prop="act" label="帐号" sortable width="100">
          </el-table-column>
          <el-table-column prop="cur" label="币种" sortable width="60">
          </el-table-column>
          <el-table-column prop="valdat" label="起息日" sortable width="90">
          </el-table-column>
          <el-table-column prop="gendat" label="接收日期" sortable width="150">
          </el-table-column>
          <el-table-column prop="typ" label="对账单类型" sortable width="80">
            <template slot-scope="scope">
              <c-select-value-to-label v-model="scope.row.typ" dbCode="SMTTYP"></c-select-value-to-label>
            </template>
          </el-table-column>
          <el-table-column prop="excmsg" label="异常信息" sortable width="150">
          </el-table-column>
          <el-table-column prop="rcvbic" label="收报行BIC" sortable width="100">
          </el-table-column>
        </el-table>
        <el-pagination layout="prev, pager, next" :total="1">
        </el-pagination>
      </div>
    </c-col>

    <c-col :span="12">
      <c-form-item :label="$t('smep.LT000039')" prop="smegrp.mpi.sndbic">
        <c-input v-model="model.smegrp.mpi.sndbic" maxlength="11"
          :placeholder="$t('other.please_enter') + $t('smep.LT000039')"></c-input>
      </c-form-item>
    </c-col>
    <!-- LT000002 : 发报行BIC -->
    <!-- LT000039 : : -->

    <c-col :span="12">
      <c-form-item :label="$t('smep.LT000040')" prop="smegrp.mpi.rcvbic">
        <c-input v-model="model.smegrp.mpi.rcvbic" maxlength="11"
          :placeholder="$t('other.please_enter') + $t('smep.LT000040')"></c-input>
      </c-form-item>
    </c-col>
    <!-- LT000028 : 收报行BIC -->
    <!-- LT000040 : : -->


    <c-col :span="12">
      <c-button size="small" type="primary" @click="onSmepAllchk">
        {{ $t('smep.BT000035') }}
      </c-button>
    </c-col>

    <c-col :span="12">
      <c-button size="small" type="primary" @click="onSmepOppchk">
        {{ $t('smep.BT000036') }}
      </c-button>
    </c-col>

    <c-col :span="12">
      <c-button size="small" type="primary" @click="onSmepView">
        {{ $t('smep.BT000015') }}
      </c-button>
    </c-col>

    <c-col :span="12">
      <c-button size="small" type="primary" @click="onSmepExec">
        {{ $t('smep.BT000016') }}
      </c-button>
    </c-col>

    <c-col :span="12">
      <c-form-item :label="$t('smep.LT000057')" prop="smegrp.mpi.othref">
        <c-input v-model="model.smegrp.mpi.othref" maxlength="35"
          :placeholder="$t('other.please_enter') + $t('smep.LT000057')"></c-input>
      </c-form-item>
    </c-col>
    <!-- LT000053 : 单参考号 -->
    <!-- LT000057 : : -->

    <c-col :span="12">
      <c-form-item :label="$t('smep.LT000041')" prop="smegrp.mpi.act">
        <c-input v-model="model.smegrp.mpi.act" maxlength="40"
          :placeholder="$t('other.please_enter') + $t('smep.LT000041')"></c-input>
      </c-form-item>
    </c-col>
    <!-- LT000003 : 账号 -->
    <!-- LT000041 : : -->

    <c-col :span="12">
      <el-form-item :label="$t('smep.LT000042')" prop="smegrp.mpi.cur">
        <c-select v-model="model.smegrp.mpi.cur" style="width:100%"
          :placeholder="$t('other.please_enter') + $t('smep.LT000042')">
        </c-select>
      </el-form-item>
    </c-col>
    <!-- LT000004 : 币种 -->
    <!-- LT000042 : : -->

    <c-col :span="12">
      <el-form-item :label="$t('smep.LT000043')" prop="smegrp.mpi.subtyp">
        <c-select v-model="model.smegrp.mpi.subtyp" style="width:100%"
          :placeholder="$t('other.please_enter') + $t('smep.LT000043')">
        </c-select>
      </el-form-item>
    </c-col>
    <!-- LT000009 : 对账单类型 -->
    <!-- LT000043 : : -->

    <c-col :span="12">
      <el-form-item :label="$t('smep.LT000044')" prop="smep.begdat">
        <c-date-picker type="date" v-model="model.smep.begdat" style="width:100%"
          :placeholder="$t('other.please_enter') + $t('smep.LT000044')"></c-date-picker>
      </el-form-item>
    </c-col>
    <!-- LT000005 : 收报日期 -->
    <!-- LT000044 : : -->

    <c-col :span="12">
      <el-form-item :label="$t('smep.LT000006')" prop="smep.enddat">
        <c-date-picker type="date" v-model="model.smep.enddat" style="width:100%"
          :placeholder="$t('other.please_enter') + $t('smep.LT000006')"></c-date-picker>
      </el-form-item>
    </c-col>
    <!-- LT000006 : 至 -->

    <c-col :span="12">
      <el-form-item :label="$t('smep.LT000045')" prop="smep.begvaldat">
        <c-date-picker type="date" v-model="model.smep.begvaldat" style="width:100%"
          :placeholder="$t('other.please_enter') + $t('smep.LT000045')"></c-date-picker>
      </el-form-item>
    </c-col>
    <!-- LT000029 : 起息日 -->
    <!-- LT000045 : : -->

    <c-col :span="12">
      <el-form-item :label="$t('smep.LT000030')" prop="smep.endvaldat">
        <c-date-picker type="date" v-model="model.smep.endvaldat" style="width:100%"
          :placeholder="$t('other.please_enter') + $t('smep.LT000030')"></c-date-picker>
      </el-form-item>
    </c-col>
    <!-- LT000030 : 至 -->

    <c-col :span="12">
      <c-button size="small" type="primary" icon="el-icon-search" @click="onSel">
        {{ $t('mtabut.BT000022') }}
      </c-button>
    </c-col>

    <c-col :span="12">
      <c-button size="small" type="primary" @click="onReset">
        {{ $t('mtabut.BT000023') }}
      </c-button>
    </c-col>
  </div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "../model/Event"

export default {
  inject: ['root'],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {

    }
  },
  methods: { ...Event },
  created: function () {

  }
}
</script>
<style></style>