<template> <div class="eContainer"> <c-page title="绑定电子凭证"> <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small" :validate-on-rule-change="false" > <c-tabs v-model="tabVal" ref="elment" type="card"> <el-tab-pane label="业务信息" name="ovwp"> <c-content> <m-ovwp :model="model" :codes="codes"/> </c-content> </el-tab-pane> <el-tab-pane label="附言" name="coninfp"> <c-content> <m-coninfp :model="model" :codes="codes" /> </c-content> </el-tab-pane> </c-tabs> </el-form> <c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" :handleStash="handleStash"> </c-function-btn> </c-page> </div> </template> <script> import event from '../event'; import CodeTable from "~/config/CodeTable"; import Gitatt from "../model"; import Check from "../model/check"; import Ovwp from "./Ovwp"; import commonFuncs from "~/mixin/commonFuncs"; import Gitfrep1 from "./Gitfrep1"; import Coninfp from "~/components/business/coninfp/views"; export default { name: "Gitatt", components:{ "m-ovwp": Ovwp, "m-coninfp" : Coninfp, "m-gitfrep1" : Gitfrep1, }, provide() { return { root: this } }, mixins: [event,commonFuncs], // 里面包含了Default、Check等的公共处理 data(){ return { tabVal: "ovwp", trnName: "gitatt", trnType: "", model: new Gitatt().data, checkRules: Check, rules: null, codes: { ...CodeTable, }, } }, mounted () { this.init() }, } </script> <style> </style>