<template> <div class="eContainer"> <el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false" > <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick"> <!--fxtlop PD000001 Registration --> <el-tab-pane label="Registration" name="regp"> <m-regp :model="model" :codes="codes" /> </el-tab-pane> <!--PD000027 --> <el-tab-pane label="费用/账务" name="setpan"> <c-content> <m-setpan :codes="codes" :model="model" /> </c-content> </el-tab-pane> <!--PD000529 --> <el-tab-pane label="报文/面函" name="docpan"> <c-content> <m-docpan :codes="codes" :model="model" /> </c-content> </el-tab-pane> </c-tabs> </el-form> </div> </template> <script> import Api from "~/service/Api"; import CodeTable from "~/config/CodeTable"; import Fxtlop from "../model"; import operationFunc from "~/mixin/operationFunc"; import Regp from "./Regp"; import Setpan from "~/components/business/setmod/views"; import Docpan from "~/components/business/docpan/views"; import event from "../event"; import commonDepend from "~/mixin/commonDepend"; import buildFn from "../event/buildCommons.js"; export default { name: "Fxtlop", components: { "m-regp": Regp, "m-setpan": Setpan, "m-docpan": Docpan, }, provide() { return { root: this, }; }, mixins: [operationFunc, event, commonDepend, buildFn], data() { return { tabVal: "regp", trnName: "fxtlop", trnType: "", model: new Fxtlop().data, codes: {}, rules: {}, }; }, methods: { myTabClick(tab) { this.tabClick(tab); /** * do it yourself **/ }, }, created() { console.log("进入fxtlop交易"); let rtnmsg = this.init({}); if (rtnmsg.respCode == SUCCESS) { this.updateModel(rtnmsg.data); //TODO 处理数据逻辑 } else { this.$notify.error({ title: "错误", message: "服务请求失败!" }); } }, }; </script> <style></style>