<template> <div class="eContainer"> <c-page title="出口托收承兑"> <el-form :model="model" :rules="rules" ref="modelForm" label-width="180px" label-position="right" size="small" :validate-on-rule-change="false"> <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick"> <el-tab-pane label="业务信息" name="ovwp"> <c-content> <m-ovwp :model="model" :codes="codes" /> </c-content> </el-tab-pane> <el-tab-pane label="托收指示" name="inst"> <c-content> <m-inst :model="model" :codes="codes" /> </c-content> </el-tab-pane> <el-tab-pane label="表外信息" name="engp"> <c-content> <m-engp :codes="codes" :model="model" ref="engps"/> </c-content> </el-tab-pane> <!--PD000027 --> <el-tab-pane label="费用/账务" name="setpan"> <c-content> <m-setmod :model="model" :codes="codes" @changeSetmodModel="changeSetmodModel" /> </c-content> </el-tab-pane> <el-tab-pane label="报文/面函" name="docpan"> <c-content> <m-docpan :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 CodeTable from "~/config/CodeTable"; import Botacc from "../model"; import operationFunc from "~/mixin/operationFunc"; import event from "../event"; import check from "../model/check"; import Default from "../model/default"; import commonDepend from "~/mixin/commonDepend"; import buildFn from "../event/buildCommons.js"; import Setp from "./Setp"; import Inst from "./Inst"; import Ptyp from "./Ptyp"; import Addbcb from "./Addbcb"; import Ovwp from "./Ovwp"; import Setmod from "~/components/business/setmod/views"; import Docpan from "~/components/business/docpan/views"; import Ccvpan from "~/components/business/ccvpan/views"; import Limitbody from "~/components/business/limitbody/views"; import Engp from "~/components/business/engp/views"; import Doctre from "~/components/business/doctre/views"; import Coninfp from "~/components/business/coninfp/views"; import Glentry from "~/components/business/glentry/views"; export default { name: "Botacc", components: { "m-addbcb": Addbcb, "m-ovwp": Ovwp, "m-setp": Setp, "m-inst": Inst, "m-ptyp": Ptyp, "m-ccvpan": Ccvpan, "m-limitbody": Limitbody, "m-engp": Engp, "m-setmod": Setmod, "m-coninfp": Coninfp, "m-docpan": Docpan, "m-doctre": Doctre, "m-glentry": Glentry }, provide() { return { root: this }; }, mixins: [operationFunc, event, buildFn, Default, check, commonDepend], // 里面包含了Default、Check等的公共处理 data() { return { tabVal: "ovwp", trnName: "botacc", model: new Botacc().data, codes: { ...CodeTable }, activeNames: ["engp"] }; }, methods: {}, created: async function() {}, mounted() { console.log("进入botacc交易"); let params = { transName: this.trnName, bodgrp: { rec: { inr: this.$route.query.inr } } }; this.init(params).then(async () => { if (this.$store.state.Status.mode !== "display") { this.$refs.engps.initEngp(this.buildCommonData(this.model, this.trnName)).then(() => { let mattxtflg = this.$refs.engps.getMattxtflg(); this.model.bodgrp.rec.mattxtflg = mattxtflg; }); } }); } }; </script> <style> </style>