<template> <div class="eContainer"> <c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" :handleStash="handleStash" > <el-button size="small">备忘录</el-button> <el-button size="small">影像信息</el-button> <!-- <el-button size="small">保存模板</el-button> --> <!-- <el-button size="small">使用模板</el-button> --> <el-button size="small">制裁信息</el-button> <!-- <el-button size="small">拆分报文</el-button> --> <el-button size="small">智能提示</el-button> </c-function-btn> <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="left" size="small" :validate-on-rule-change="false"> <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick"> <!--PD000009 --> <el-tab-pane label="拒单" name="betdcrs"> <c-content> <m-betdcrs :model="model" :codes="codes"/> </c-content> </el-tab-pane> <!--PD000001 --> <el-tab-pane label="表外" name="engp"> <c-content> <m-engp :model="model" :codes="codes"/> </c-content> </el-tab-pane> <!--PD000000 --> <el-tab-pane label="费用及账务" name="setpan"> <c-content> <m-setpan :model="model" :codes="codes"/> </c-content> </el-tab-pane> <!--PD000001 --> <el-tab-pane label="分录" name="glepan"> <c-content> <m-glepan :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> <!--PD000529 --> <el-tab-pane label="面函及报文" name="docpan"> <c-content> <m-docpan :model="model" :codes="codes"/> </c-content> </el-tab-pane> <el-tab-pane label="附件" name="doctre"> <c-content> <m-doctre :model="model" :codes="codes"/> </c-content> </el-tab-pane> </c-tabs> </el-form> <!--点击触发回填--> <c-grid-ety-prompt-dialog ref="doxpDialog" :isPty="false" :promptData="promptData" @select-ety="selectMsg" > </c-grid-ety-prompt-dialog> </div> </template> <script> import Api from "~/service/Api" import CodeTable from "~/config/CodeTable" import Bttdcr from "~/model/Bttdcr" import commonProcess from "~/mixin/commonProcess" import commonFuncs from "~/mixin/commonFuncs"; import Check from "~/model/Bttdcr/Check" import Default from "~/model/Bttdcr/Default" import Pattern from "~/model/Bttdcr/Pattern" import Betdcrs from "./Betdcrs" import Utils from "~/utils"; import Engp from "~/views/Public/Engp"; import Setpan from "~/views/Public/Setpan"; import Glepan from "~/views/Public/Glepan"; import Docpan from "~/views/Public/Docpan"; import Coninfp from "~/views/Public/Coninfp"; import Doctre from "~/views/Public/Doctre"; export default { name:"Bttdcr", components:{ "m-betdcrs" : Betdcrs, "m-engp" : Engp, "m-setpan" : Setpan, "m-glepan" : Glepan, "m-docpan" : Docpan, "m-coninfp" : Coninfp, "m-doctre" : Doctre, }, provide() { return { root: this } }, //mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理 data(){ return { tabVal: "betdcrs", trnName: "bttdcr", model: new Bttdcr().data, checkRules: Check, defaultRules: Default, pattern: Pattern, rules: null, codes: {...CodeTable }, } }, methods:{ myTabClick(tab) { this.tabClick(tab) /** * do it yourself **/ } }, created:async function(){ console.log("进入bttdck交易"); //let rtnmsg = await this.init({}) let rtnmsg = await this.init(this.$route.query); if (rtnmsg.respCode == SUCCESS) { //更新数据 Utils.copyValueFromVO(this.model, rtnmsg.data); if (this.isInDisplay) { this.restoreDisplay(); } }else { this.$notify.error({title: '错误',message: '服务请求失败!'}); } } } </script> <style> .el-form-item__label-wrap { margin-left: 0px !important; } </style>