<template> <div class="eContainer"> <c-content> <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"> <!--fxtfcm PD000001 Confirmation --> <el-tab-pane label="概要" name="cnfp"> <m-cnfp :model="model" :codes="codes"/> </el-tab-pane> <!--fxtfcm PD000023 MT300 --> <el-tab-pane label="MT300" name="mt300"> <m-mt300 :model="model" :codes="codes"/> </el-tab-pane> <!--fxtfcm PD000065 MT300 --> <el-tab-pane label="fxt300l1" name="fxt300l1"> <m-fxt300l1 :model="model" :codes="codes"/> </el-tab-pane> </c-tabs> </el-form> <c-function-btn :handleCheck="handleCheck" :handleStash="handleStash" :handleSubmit="handleSubmit" @handleSureWarning="handleSureWarning" ref="commonBtn" ></c-function-btn> </c-content> </div> </template> <script> import Api from "~/service/Api" import CodeTable from "~/config/CodeTable" import Fxtfcm from "../model" import commonProcess from "~/mixin/commonProcess" import Check from "../model/Check" // import Default from "../model/Default" // import Pattern from "../model/Pattern" import Cnfp from "./Cnfp" import Mt300 from "./Mt300" import Fxt300l1 from "./Fxt300l1" export default { name: "Fxtfcm", components:{ "m-cnfp" : Cnfp, "m-mt300" : Mt300, "m-fxt300l1" : Fxt300l1, }, provide() { return { root: this } }, mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 data(){ return { tabVal: "cnfp", trnName: "fxtfcm", trnType: "", model: new Fxtfcm().data, // checkRules: Check, // defaultRules: Default, // pattern: Pattern, rules: Check, codes: { }, } }, methods:{ myTabClick(tab){ this.tabClick(tab) /** * do it yourself **/ } }, created:async function(){ console.log("进入fxtfcm交易"); let rtnmsg = {}; // await this.init({}) if(rtnmsg.respCode == SUCCESS) { this.updateModel(rtnmsg.data) //TODO 处理数据逻辑 } else { this.$notify.error({title: '错误',message: '服务请求失败!'}); } } } </script> <style> </style>