<template>
  <div class="eibs-tab">
    <!-- S0000002 : 平盘业务参考号 -->
    <c-col :span="12">
      <c-form-item :label="$t('fxtlcn.业务编号')" prop="fxdgrp.rec.ownref">
        <c-input v-model="model.fxdgrp.rec.ownref" maxlength="16"></c-input>
      </c-form-item>
    </c-col>
    <!-- S0000003 : 名称 -->
    <c-col :span="12">
      <c-form-item :label="$t('fxtlcn.业务名称')" prop="fxdgrp.rec.nam">
        <c-input v-model="model.fxdgrp.rec.nam" maxlength="40"></c-input>
      </c-form-item>
    </c-col>
    <c-col :span="12">
      <!-- S0000004 : 资金部负责人 -->
      <c-col :span="24">
        <c-form-item :label="$t('fxtlcn.业务负责人')" prop="fxtp.usr.extkey">
          <c-fullbox>
            <c-input v-model="model.fxtp.usr.extkey" maxlength="8"></c-input>
            <template slot="footer">
              <c-button size="small" style="margin-left: 5px" type="primary">
                i
              </c-button>
            </template>
          </c-fullbox>
        </c-form-item>
      </c-col>
      <!-- S0000005 : 平盘类型 -->
      <c-col :span="24">
        <el-form-item :label="$t('fxtlcn.平盘类型')" prop="fxdgrp.rec.fxtyp">
          <c-select v-model="model.fxdgrp.rec.fxtyp" :code="codes.fxt_fxtyp" style="width: 100%">
          </c-select>
        </el-form-item>
      </c-col>
      <!-- S0000015 : 待销账金额 -->
      <c-col :span="24">
        <c-col :span="10">
          <c-form-item
            :label="$t('fxtlcn.Foreign Cur Amount')"
            prop="fxdgrp.cbs.opn2.cur"
          >
            <c-select
              v-model="model.fxdgrp.cbs.opn2.cur"
              :code="codes.curtxt"
              maxlength="3"
            ></c-select>
          </c-form-item>
        </c-col>
        <c-col :span="14">
          <c-form-item label-width="10px" prop="fxdgrp.cbs.opn2.amt">
            <c-input-currency
              v-model="model.fxdgrp.cbs.opn2.amt"
              :currency="model.fxdgrp.cbs.opn2.cur"
            ></c-input-currency>
          </c-form-item>
        </c-col>
      </c-col>
      <!-- S0000017 : 实际销账金额 -->
      <c-col :span="24">
        <c-col :span="10">
          <c-form-item
            :label="$t('fxtlcn.fxtlcn.Domestic Cur Amount')"
            prop="cancur"
          >
            <c-select
              v-model="model.cancur"
              :code="codes.curtxt"
              maxlength="3"
            ></c-select>
          </c-form-item>
        </c-col>
        <c-col :span="14">
          <c-form-item label-width="10px" prop="canamt">
            <c-input-currency
              v-model="model.canamt"
              :currency="model.cancur"
            ></c-input-currency>
          </c-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
        <c-form-item :label="$t('fxtlcn.平盘牌价')" prop="canamt">
          <c-input v-model="model.canamt"></c-input>
        </c-form-item>
      </c-col>
      <c-col :span="24">
        <c-form-item :label="$t('fxtlcn.中间价')" prop="canamt">
          <c-input v-model="model.canamt"></c-input>
        </c-form-item>
      </c-col>
      <!-- S0000007 : 平盘日期 -->
      <c-col :span="24">
        <el-form-item :label="$t('fxtlcn.成交日')" prop="fxdgrp.rec.opndat">
          <c-date-picker
            type="date"
            v-model="model.fxdgrp.rec.opndat"
            style="width: 100%"
          ></c-date-picker>
        </el-form-item>
      </c-col>
      <!-- S0000009 : 备注 -->
      <c-col :span="24">
        <c-form-item :label="$t('fxtlcn.备注')" prop="fxdgrp.blk.remark">
          <c-input
            type="textarea"
            v-model="model.fxdgrp.blk.remark"
            :rows="3"
            maxlength="35"
            show-word-limit
          ></c-input>
        </c-form-item>
      </c-col>
    </c-col>

    <c-col :span="12">
      <!-- S0000006 : 平盘对手 -->
      <c-col :span="24">
        <c-form-item
          :label="$t('fxtlcn.平盘对手编号')"
          prop="fxdgrp.apl.pts.ref"
        >
          <c-input v-model="model.fxdgrp.apl.pts.ref" maxlength="20"></c-input>
        </c-form-item>
      </c-col>
      <c-col :span="24">
        <c-form-item prop="fxdgrp.apl.pts.extkey">
          <c-fullbox>
            <c-input
              v-model="model.fxdgrp.apl.pts.extkey"
              maxlength="16"
            ></c-input>
            <template slot="footer">
              <c-button size="small" style="margin-left: 5px" type="primary">
                i
              </c-button>
              <c-button size="small" style="margin-left: 5px" type="primary">
                Details
              </c-button>
            </template>
          </c-fullbox>
        </c-form-item>
      </c-col>
      <c-col :span="24">
        <c-form-item prop="fxdgrp.apl.pts.adrblk">
          <c-input
            type="textarea"
            v-model="model.fxdgrp.apl.pts.adrblk"
            :rows="3"
            maxlength="35"
            show-word-limit
          ></c-input>
        </c-form-item>
      </c-col>
      <!-- S0000008 : 起息日 -->
      <c-col :span="24">
        <el-form-item :label="$t('fxtlcn.起息日')" prop="fxdgrp.rec.valdat">
          <c-date-picker
            type="date"
            v-model="model.fxdgrp.rec.valdat"
            style="width: 100%"
          ></c-date-picker>
        </el-form-item>
      </c-col>
    </c-col>
  </div>
</template>
<script>
import Api from "~/service/Api";
import event from "../event";

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