<template>
	<div class="eibs-tab">
		<c-col :span="24">
			<c-col :span="11">
				<el-form-item label="包号" prop="cldgrp.rec.ownref">
					<c-fullbox>
					<c-input v-model="model.cldgrp.rec.ownref" maxlength="16" placeholder="请输入" disabled>
					</c-input>
					<template slot="footer">
              <c-button size="small" type="primary" @click="queryOwnref"
                       disabled >
                获取
              </c-button>
            </template>
					</c-fullbox>
				</el-form-item>
			</c-col>
			<c-col :span="11" :offset="1">
				<el-form-item label="汇票类型" prop="cldgrp.rec.chktyp">
					<c-select v-model="model.cldgrp.rec.chktyp" style="width: 100%" placeholder="请输入汇票类型" disabled>
						<el-option v-for="item in codes.chktyp" :key="item.value" :label="item.label" :value="item.value">
						</el-option>
					</c-select>
				</el-form-item>
			</c-col>
		</c-col>
		<c-col :span="24">
			<c-col :span="11">
				<c-col :span="12">
					<el-form-item label="托收币种金额" prop="cldgrp.cbs.max.cur">
						<c-select v-model="model.cldgrp.cbs.max.cur" style="width:100%" placeholder="请选择托收币种金额" disabled>
						</c-select>
					</el-form-item>
				</c-col>
				<c-col :span="11" :offset="1">
					<el-form-item label="" label-width="0" prop="cldgrp.cbs.max.amt" style="width:100%">
						<c-input-currency v-model="model.cldgrp.cbs.max.amt" style="width:100%" placeholder="请输入托收余额" disabled></c-input-currency>
					</el-form-item>
				</c-col>
			</c-col>
			<c-col :span="11" :offset="1">
				<el-form-item label="票据类型" prop="cldgrp.rec.colflg">
					<c-select v-model="model.cldgrp.rec.colflg" style="width: 100%" placeholder="请输入票据类型" disabled>
						<el-option v-for="item in codes.colflg" :key="item.value" :label="item.label" :value="item.value">
						</el-option>
					</c-select>
				</el-form-item>
			</c-col>
		</c-col>

		<c-col :span="24">
			<c-col :span="11">
				<c-col :span="12">
					<el-form-item label="托收余额" prop="cldgrp.cbs.opn1.cur">
						<c-select v-model="model.cldgrp.cbs.opn1.cur" style="width:100%" placeholder="请选择托收余额" disabled>
						</c-select>
					</el-form-item>
				</c-col>
				<c-col :span="11" :offset="1">
					<el-form-item label-width="0" prop="cldgrp.cbs.opn1.amt">
						<c-input-currency v-model="model.cldgrp.cbs.opn1.amt" placeholder="请输入托收余额" disabled></c-input-currency>
					</el-form-item>
				</c-col>

			</c-col>

		</c-col>

		<c-col :span="24">
			<c-col :span="11">
				<el-form-item label="代收行参考号" prop="cldgrp.rec.colref">
					<c-input v-model="model.cldgrp.rec.colref" maxlength="16" placeholder="请输入代收行参考号">
					</c-input>
				</el-form-item>
			</c-col>
		</c-col>

		<c-col :span="24">
			<c-col :span="11">
				<el-form-item label="代收行名称" prop="cldgrp.rec.colptynam">
					<c-input v-model="model.cldgrp.rec.colptynam" maxlength="40" placeholder="请输入代收行名称" disabled>
					</c-input>
				</el-form-item>
			</c-col>
		</c-col>

		<c-col :span="24">
			<c-col :span="11">
				<el-form-item label="创建日期" prop="cldgrp.rec.credat">
					<c-date-picker type="date" v-model="model.cldgrp.rec.credat" style="width:100%" placeholder="请选择创建日期" disabled></c-date-picker>
				</el-form-item>
			</c-col>
		</c-col>

		<c-col :span="24">
			<c-col :span="11">
				<el-form-item label="选中票据份数" prop="cldgrp.rec.count">
					<c-input v-model="model.cldgrp.rec.count" placeholder="请输入选中票据份数" disabled></c-input>
				</el-form-item>
			</c-col>
		</c-col>

		<el-col :span="24" style="margin-top: 10px">
					<div style="height: 90%">
						<c-col :span="24">
							<el-table
								id='infgidBSTableRef'
								v-loading="load"
								style="width:100%"
								size="small"
								:highlight-current-row="true"
							>
								<el-table-column
									type="selection"
									width="55">
								</el-table-column>
								<el-table-column
									v-for="(item,key) in tableColumns"
									:key="key"
									:prop="item.prop"
									:label="item.label"
									sortable
								>
								</el-table-column>
							</el-table>
							<el-pagination
								layout="prev, pager, next, jumper"
								:total="pagination.total"
								:page-size="pagination.pageSize"
								:current-page="pagination.pageNum"
							>
							</el-pagination>
						</c-col>
					</div>
				</el-col>

	</div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import event from "../event";

export default {
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess, event],
  data() {
    return {
          load: false,
					total: 0,
					pageSize: 10, // 条数
					pagination: {
							pageNum: 1,
							pageSize: 10,
							total: 0
						},
					tableColumns: [
						{
							prop: "chcknum",
							label: "核对号",
							width: 120,
							isShow: true
						},
						{
							prop: "ownref",
							label: "托收编号",
							width: 120,
							isShow: true
						},
						{
							prop: "nam",
							label: "描述",
							width: 220,
							isShow: true
						},
						{
							prop: "prenam",
							label: "委托人",
							width: 200,
							isShow: true
						},
						{
							prop: "cur",
							label: "币种",
							width: 100,
							isShow: true
						},
						{
							prop: "amt",
							label: "金额",
							width: 100,
							isShow: true
						},
						{
							prop: "paytoamt",
							label: "PAY TO",
							width: 100,
							isShow: true
						}
					],
    };
  },
  methods: {},
  created: function() {}
};
</script>
<style>
</style>