<template>
  <div class="eibs-tab">
    <c-col :span="24">
      <c-col :span="12">
        <c-col :span="24">
          <c-fullbox>
            <el-form-item label="申请人" prop="fcdgrp.apl.pts.extkey">
              <c-input
                v-model="model.fcdgrp.apl.pts.extkey"
                maxlength="16"
                placeholder="请输入申请人Extkey"
                @keyup.enter.native="
                  showGridPromptDialog('fcdgrp.apl.pts.extkey')
                "
              ></c-input>
            </el-form-item>
            <template slot="footer">
              <c-button size="small" type="primary" @click="onAplpDet">
                Details
              </c-button>
            </template>
          </c-fullbox>
        </c-col>

        <c-col :span="24">
          <el-form-item label="" prop="fcdgrp.apl.pts.nam">
            <c-input
              v-model="model.fcdgrp.apl.pts.nam"
              maxlength="40"
              placeholder="请输入Name of Party"
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item label="" prop="fcdgrp.apl.pta.nam1">
            <c-input
              v-model="model.fcdgrp.apl.pta.nam1"
              maxlength="40"
              placeholder="请输入Externally Visible Name of Address"
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>
    </c-col>

    <!-- <c-col :span="12">
        <el-form-item label="" prop="aplp.ptsget.sdamod.seainf">
            <c-input  v-model="model.aplp.ptsget.sdamod.seainf"  placeholder="请输入"></c-input>
        </el-form-item>
       </c-col> -->

    <c-col :span="24">
      <c-col :span="12">
        <c-col :span="14">
          <el-form-item label="保证金账号" prop="cashacc">
            <!-- <c-select
              v-model="model.cashacc"
              style="width: 100%"
              placeholder="请选择account"
            >
            </c-select> -->
            <c-input
              v-model="model.cashacc"
              placeholder="请选择account"
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="10">
          <el-form-item label="科目" label-width="60px" prop="trmtyp">
            <c-select
              v-model="model.trmtyp"
              style="width: 100%"
              placeholder="请选择科目"
            >
							<el-option v-for="k in codes.trmtyp" :label="k" :value="k.split('\t')[0]" :key="k"></el-option>
            </c-select>
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="12">
        <el-form-item label="说明" prop="reason">
          <c-input
            v-model="model.reason"
            maxlength="40"
            placeholder="请输入collect reason"
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>

    <c-col :span="24">
      <c-col :span="12">
        <c-fullbox>
          <c-col :span="12">
            <el-form-item label="金额" prop="cashcur">
              <c-select
                v-model="model.cashcur"
                style="width: 100%"
                placeholder="请选择currency"
              >
								<el-option v-for="k in codes.cashcur" :label="k" :value="k" :key="k"></el-option>
              </c-select>
            </el-form-item>
          </c-col>

          <c-col :span="12">
            <el-form-item label="" label-width="20px" prop="cashamt">
              <c-input
                v-model="model.cashamt"
                placeholder="请输入金额"
              ></c-input>
            </el-form-item>
          </c-col>
          <template slot="footer">
            <c-button size="small" type="primary" @click="onGet" disabled>
              Get
            </c-button>
          </template>
        </c-fullbox>
      </c-col>
      <c-col :span="12">
        <el-form-item label="" prop="gleflg">
          <c-checkbox v-model="model.gleflg">是否过帐</c-checkbox>
        </el-form-item>
      </c-col>
    </c-col>

    <c-col :span="24">
      <c-istream-table
        :list="model.cshstm.rows || []"
        :columns="columns"
      ></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/Fctopn/Event";

export default {
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {
      columns: [
				"0 1 \"INR\" 100",
				"1 2 \"Own Reference\" 150",
				"2 3 \"收取日期\" auto 4 7",
				"3 4 \"Cur\" 100",
				"4 5 \"Relevant Amount\" 150 2 8:1 2 5",
				"5 6 \"机构号\" 120",
				"6 7 \"保证金帐号\" 120",
				"7 8 \"是否过帐\" 120 1 0 1 FCD:GLEFLG",
				"8 9 \"是否到帐\" 120 1 0 1 FCD:RELFLG",
				"9 10 \"是否被用\" 120 1 0 1 FCD:USEFLG",
				"10 11 \"说明 \" 200",
				"P COLORED TRUE",
				"P VERTLINES TRUE",
				"P HORZLINES TRUE",
				"P MULTISELECT FALSE"
			],
    };
  },
  methods: { ...Event },
  created: function () {},
};
</script>
<style>
</style>
