<template>
	<div class="eContainer">
		<c-page title="闭卷后定期保证金处理">
			<el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small" :validate-on-rule-change="false">
				<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
					<el-tab-pane label="业务信息" name="ovwp">
						<c-content>
							<m-ovwp :model="model" :codes="codes" :accountList="accountList" :operations="operations"/>
						</c-content>
					</el-tab-pane>

					<el-tab-pane label="表外记账" name="engp">
						<c-content>
								<m-engp :model="model" :codes="codes" />
						</c-content>
					</el-tab-pane>

					<el-tab-pane label="保证金" name="ccvpan">
						<c-content>
							<m-ccvpan :model="model" :codes="codes"/>
						</c-content>
					</el-tab-pane>

					<el-tab-pane label="费用/账务" name="setpan">
						<c-content>
							<m-setmod :model="model" :codes="codes" />
						</c-content>
					</el-tab-pane>

					<el-tab-pane label="报文/面函" name="docpan">
						<c-content>
							<m-docpan :model="model" :codes="codes" />
						</c-content>
					</el-tab-pane>

					<!-- <el-tab-pane label="备查表" name="addbcb">
						<c-content>
							<m-addbcb :model="model" :codes="codes" />
						</c-content>
					</el-tab-pane> -->
					<!--trndoc PD000529 &Messages -->
				</c-tabs>
				<c-function-btn
					:handleSubmit="handleSubmit"
					:handleCheck="handleCheck"
					:handleStash="handleStash"
					ref="commonBtn"
					@handleSureWarning="handleSureWarning"
				></c-function-btn>
			</el-form>
		</c-page>
	</div>
</template>
<script>
import CodeTable from "~/config/CodeTable";
import operationFunc from "~/mixin/operationFunc";
import commonDepend from "~/mixin/commonDepend";
import Nitenc from "../model";
import Check from "../model/check";
import event from "../event";
import defalut from "../model/default";
import buildFn from '../event/buildCommons.js';

import Ccvpan from "~/components/business/ccvpan/views";
import Limitbody from "~/components/business/limitbody/views";
import Engp from "~/components/business/engp/views";
import Setmod from "~/components/business/setmod/views";
import Glentry from "~/components/business/glentry/views";
import Docpan from "~/components/business/docpan/views";

import Addbcb from "./Addbcb";
import Ovwp from "./Ovwp";

export default {
  name: "Nitenc",
  components: {
    "m-ovwp": Ovwp,
    "m-ccvpan": Ccvpan,
    "m-engp": Engp,
    "m-setmod": Setmod,
    "m-glentry": Glentry,
    "m-addbcb": Addbcb,
    "m-docpan": Docpan,
    "m-limitbody": Limitbody
  },
  provide() {
    return {
      root: this
    };
  },
  mixins: [operationFunc, commonDepend, event, Check, defalut, buildFn],
  data() {
    return {
      tabVal: "ovwp",
      trnName: "nitenc",
      model: new Nitenc().data,
      codes: { ...CodeTable },
      activeNames: ["setmod"],
      accountList: [],
			operations: [],
			lang: "CN",
    };
  },
  methods: {},
  created() {
    console.log("进入nitenc交易");
    let params = {
      transName: this.trnName,
      nidgrp: {
        rec: {
          inr: this.$route.query.inr || ""
        }
      }
    };
    this.init(params).then(() => {
      this.initKehuzh();
    });
  }
};
</script>
<style>
</style>