<template> <div class="eContainer"> <c-page title="人民币购售业务信息(2102)-新增节点"> <el-form :rules="rules" :model="model" ref="modelForm" label-width="120px" label-position="right" size="small" > <c-tabs v-model="tabVal" ref="elment" type="card"> <el-tab-pane label="人民币购售业务信息(2102)-新增" name="info"> <c-content> <m-info :model="model" ref="info" :codes="codes" /> </c-content> </el-tab-pane> </c-tabs> </el-form> <div style="text-align: center"> <c-button type="primary" style="margin-right: 10px" @click="commitAdd">提 交</c-button> <c-button type="primary" style="margin-right: 10px" @click="checkTdb">检核</c-button> <c-button type="primary" style="margin-right: 10px" @click="exit">退出</c-button> </div> </c-page> </div> </template> <script> import Api from "~/service/Api" import CodeTable from "~/config/CodeTable" import Tfaall from "../model" import commonProcess from "~/mixin/commonProcess" import check from "../model/check" import event from "../event" import Info from "./Info"; export default { name: "Tfaall", components:{ "m-info": Info, }, provide() { return { root: this, activeNames: ["info"] } }, mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 data(){ return { tabVal: "info", trnName: "tfaall", trnType: "", model: new Tfaall().data, checkRules: check, rules: null, codes: { }, } }, methods:{ myTabClick(tab){ this.tabClick(tab) /** * do it yourself **/ } }, created:async function(){ console.log("进入tfaall交易"); let rtnmsg = await this.init({}) if(rtnmsg.respCode == SUCCESS) { this.updateModel(rtnmsg.data) //TODO 处理数据逻辑 } else { this.$notify.error({title: '错误',message: '服务请求失败!'}); } } } </script> <style> </style>