<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">
          <!--bttdrv PD000003 Docs. received -->
          <el-tab-pane :label="'Docs. received'" name="ovwp">
            <c-content>
              <m-ovwp :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

          <!--PD000027 -->
          <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>

          <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 Bttdrv from "../model";
import Ovwp from "./Ovwp";
import Adapan from "./Adapan";
import Dscinsp from "./Dscinsp";

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: "Bttdrv",
  components: {
    "m-ovwp": Ovwp,
    "m-setmod": Setpan,
    "m-engp": Engp,
    "m-docpan": Docpan,
    "m-doctre": Doctre,
    "m-coninfp": Coninfp,
    "m-limitbody": Limitbody,
    // "m-glentry": Glentry,
    "m-setpan": Setpan,
    "m-glepan": Glepan
  },
  provide() {
    return {
      root: this
    };
  },
  mixins: [operationFunc, event, buildFn, check, commonDepend, Default],
  data() {
    return {
      tabVal: "ovwp",
      trnName: "bttdrv",
      trnType: "",
      model: new Bttdrv().data,
      codes: {}
    };
  },
  methods: {},
  mounted() {
    console.log("进入" + this.trnName + "交易");
    let params = {
      transName: this.trnName,
      btdgrp: {
        rec: {
          inr: this.$route.query.inr
        }
      }
    };
    this.init(params).then(() => {
    });
  }
};
</script>
<style>
</style>