<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="myTabClick">
					<el-tab-pane label="业务信息" name="ovwp">
						<m-ovwp :model="model" :codes="codes" />
					</el-tab-pane>
				</c-tabs>
			</el-form>
			<!-- 底部按钮 -->
			<c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" :handleStash="handleStash" ref="commonBtn" @handleSureWarning="handleSureWarning"></c-function-btn>
		</c-page>
	</div>
</template>
<script>
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Botadd from "../model";
import event from "../event";
import operationFunc from "~/mixin/operationFunc";
import commonDepend from "~/mixin/commonDepend";
import Check from "../model/check";
import Default from "../model/default";
import buildFn from "../event/buildCommons.js";

import Ovwp from "./Ovwp";

export default {
  name: "Botadd",
  components: {
    "m-ovwp": Ovwp,
  },
  provide() {
    return {
      root: this
    };
  },
  mixins: [Check, Default, operationFunc, event, commonDepend, buildFn], // 里面包含了Default、Check等的公共处理
  data() {
    return {
      tabVal: "ovwp",
      trnName: "botadd",
      trnType: "",
      model: new Botadd().data,
      codes: { ...CodeTable }
    };
  },
  methods: {
    myTabClick(tab) {
      this.tabClick(tab);
      /**
       *  do it yourself
       **/
    }
  },
  created: async function() {
  },
  mounted() {
    console.log("进入botadd交易");
    let params = {
      transName: this.trnName,
      bodgrp: {
        rec: {
          inr: this.$route.query.inr
        }
      }
    };
    this.init(params);
  }
};
</script>
<style>
</style>