<template>
  <div class="eContainer">
    <c-page title="分离式保函协议注销">
      <el-form :model="model" :rules="rules" :validate-on-rule-change="false" label-position="right" label-width="120px" ref="modelForm" size="small">
				<c-tabs @tab-click="tabClick" ref="elment" type="card" v-model="tabVal">
					<!--分离式保函协议业务签署页签 -->
					<el-tab-pane label="业务信息" name="ovwp">
						<c-content>
							<m-ovwp :codes="codes" :model="model" />
						</c-content>
					</el-tab-pane>
					<!--分离式保函协议页签 -->
					<el-tab-pane label="报文/面函" name="docpan">
						<c-content>
							<m-docpan :codes="codes" :model="model" />
						</c-content>
					</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 Ovwp from "./Ovwp.vue";
import Docpan from "~/components/business/docpan/views";
import event from "../event";
import Check from "../model/check";
import Fcncan from "../model";
import Default from "../model/default";
import buildFn from "../event/buildCommons.js";
import CodeTable from "~/config/CodeTable";
import commonDepend from "../../../../mixin/commonDepend";
import operationFunc from "../../../../mixin/operationFunc";

export default {
  name: "Fcncan",
  components: {
    "m-ovwp": Ovwp,
    "m-docpan": Docpan
  },
  provide() {
    return {
      root: this,
    };
  },
  mixins: [Check, commonDepend, operationFunc, event, Default, buildFn],
  data() {
    return {
      tabVal: "ovwp",
      trnName: "fcncan",
      codes: {...CodeTable},
      model: new Fcncan().data,
      activeNames: ["ovwp"]
    };
  },
  mounted() {
    let params = {
      transName: "fcncan",
      fcngrp: {
        rec: {
          inr: this.$route.query.inr || ''
        }
      },
    };
    this.init(params);
  }
}
</script>
<style scoped>
  .eContainer {
    padding-top: 20px !important;
  }
</style>