<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">
                   
          <el-tab-pane label="业务信息" name="ovwp">
            <c-content>
              <m-ovwp :model="model" :codes="codes"/>
            </c-content>
          </el-tab-pane>       
                  
            <!--liaall PD000027 Liability -->
          <el-tab-pane label="表外信息" name="engp">
            <c-content>
              <m-engp :model="model" :codes="codes" ref="engps"/>
            </c-content>
          </el-tab-pane>
            <!--setmod PD000000 Settlement -->
          <el-tab-pane :label="$t('commonModels.费用/账务')" name="setpan">
              <c-content> 
                <m-setmod :model="model" :codes="codes"/>
              </c-content> 
          </el-tab-pane>
            <!--coninf PD000000 Completion -->
<!--           <el-tab-pane :label="$t('commonModels.备查表')" name="Addbcb">
              <c-content>
                <m-addbcb :model="model" :codes="codes"/>
              </c-content>
           </el-tab-pane>-->
            <!--trndoc PD000529 &Messages -->
          <el-tab-pane :label="$t('commonModels.报文/面函')" 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 CodeTable from "~/config/CodeTable";
import Bttrcl from "../model";
//import commonProcess from "~/mixin/commonProcess";
import Check from "../model/check";
import Default from "../model/default";
import buildFn from "../event/buildCommons";
import operationFunc from "~/mixin/operationFunc";
import commonDepend from "~/mixin/commonDepend";
import event from "../event";



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: "Bttrcl",
  components: {
    "m-engp": Engp,
    "m-setmod": Setmod,
    "m-docpan": Docpan,
    "m-addbcb": Addbcb,
    "m-ovwp": Ovwp,
  },
  provide() {
    return {
      root: this
    };
  },
  mixins: [Check, Default, operationFunc, event, commonDepend, buildFn], 
  data() {
    return {
      tabVal: "ovwp",
      trnName: "bttrcl",
      trnType: "",
      model: new Bttrcl().data,

      codes: {}
    };
  },

        created() {
    // console.log("进入bptopn交易");
    // let params = {
    //   transName: this.trnName,
    //   bpdgrp: {
    //     rec: {
    //       inr: this.$route.query.inr
    //     }
    //   }
    // };
		// // this.init(params);
		// this.initData()
  },  
  methods: {},
  mounted() {
    console.log("进入bttrcl交易");
    let params = {
      transName: this.trnName,
      btdgrp: {
        rec: {
          inr: this.$route.query.inr
        }
      }
    };
    this.init(params).then(async () => {
        if (this.$store.state.Status.mode !== "display") {
            this.$refs.engps.initEngp(this.buildCommonData(this.model, this.trnName)).then(() => {
            });
        }
    });
  }
};
</script>
<style>
</style>