<template>
  <div class="eContainer">
    <c-page title="出口托收注销后激活">

      <el-form :model="model" :rules="rules" ref="modelForm" label-width="180px" label-position="right" size="small" :validate-on-rule-change="false">
        <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">

          <!--botp PD000262 Overview -->
          <el-tab-pane :label="$t('业务信息')" name="ovwp1">
            <c-content>
              <m-ovwp1 :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>
          
          <!--botp PD000049 Instructions -->
          <el-tab-pane :label="$t('托收指示')" name="inst">
            <c-content>
              <m-inst :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

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

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

          <!--PD000529 -->
          <el-tab-pane label="报文/面函" name="docpan">
            <c-content>
              <m-docpan :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>
        </c-tabs>
      </el-form>
      <!-- 底部按钮 -->
      <c-function-btn :handleCheck="handleCheck" :handleStash="handleStash" :handleSubmit="handleSubmit" @handleSureWarning="handleSureWarning" ref="commonBtn"></c-function-btn>
    </c-page>
  </div>
</template>
<script>
import Botrop from "../model";
import Inst from "./Inst";
import Ovwp1 from "./Ovwp1";
import Ptyp from "./Ptyp";

import Limitbody from "~/components/business/limitbody/views";
import Engp from "~/components/business/engp/views";
import Ccvpan from "~/components/business/ccvpan/views";
import Coninfp from "~/components/business/coninfp/views";
import Setpan from "~/components/business/setmod/views";
import Docpan from "~/components/business/docpan/views";
import Doctre from "~/components/business/doctre/views";
import Glepan from "~/components/business/glentry/views";

import CodeTable from "~/config/CodeTable";
import operationFunc from "~/mixin/operationFunc";
import Default from "../model/default";
import commonDepend from "~/mixin/commonDepend";
import check from "../model/check";
import event from "../event";
import buildFn from "../event/buildCommons.js";

export default {
  name: "Botrop",
  components: {
    "m-inst": Inst,
    "m-ovwp1": Ovwp1,
    "m-ptyp": Ptyp,
    "m-docpan": Docpan,
    "m-doctre": Doctre,
    "m-coninfp": Coninfp,
    "m-setpan": Setpan,
    "m-engp": Engp,
  },
  provide() {
    return {
      root: this
    };
  },
  mixins: [operationFunc, event, buildFn, check, commonDepend, Default], // 里面包含了Default、Check等的公共处理
  data() {
    return {
      tabVal: "ovwp1",
      trnName: "botrop",
      trnType: "",
      model: new Botrop().data,
      codes: {},
      activeNames: ["ovwp1"]
    };
  },
  methods: {},
  mounted() {
    console.log("进入" + this.trnName + "交易");
    let params = {
      transName: this.trnName,
      bodgrp: {
        rec: {
          inr: this.$route.query.inr
        }
      }
    };
    this.init(params);
  }
};
</script>
<style>
</style>