<template> <div class="eContainer"> <c-page title="转让信用证单据转让证承兑"> <el-form :model="model" :rules="getRules" :validate-on-rule-change="false" label-position="right" label-width="180px" ref="modelForm" size="small"> <c-tabs @tab-click="tabClick" ref="elment" type="card" v-model="tabVal"> <!--bttacc PD000012 --> <el-tab-pane label="业务信息" name="ovwp"> <c-content> <m-ovwp :codes="codes" :model="model"/> </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> <el-tab-pane label="费用/账务" name="setpan"> <c-content> <m-setmod :codes="codes" :model="model"/> </c-content> </el-tab-pane> <el-tab-pane label="报文/面函" name="docpan"> <c-content> <m-docpan :codes="codes" :model="model"/> </c-content> </el-tab-pane> <!-- 跨境人民币申报 --> <el-tab-pane label="跨境人民币申报" name="rmbbop"> <c-content> <m-rmbbop :codes="codes" :model="model" ref="rmbbop"/> </c-content> </el-tab-pane> <!--bttacc PD000013 --> <!--bttp PD000296 Discr./Instr. --> <!-- <el-tab-pane label="Discr./Instr." name="dscinsp"> <c-content> <m-dscinsp :model="model" :codes="codes"/> </c-content> </el-tab-pane>--> </c-tabs> </el-form> <c-function-btn :handleCheck="handleCheck" :handleStash="handleStash" :handleSubmit="handleSubmit" @handleSureWarning="handleSureWarning" ref="commonBtn"></c-function-btn> </c-page> </div> </template> <script> import CodeTable from "~/config/CodeTable"; import commonDepend from "~/mixin/commonDepend"; import Bttacc from "../model"; import operationFunc from "~/mixin/operationFunc"; import Dscinsp from "./Dscinsp"; import Ovwp from "./Ovwp"; import Accp from "./Accp"; import Docpan from "~/components/business/docpan/views"; import Engp from "~/components/business/engp/views"; import Setmod from "~/components/business/setmod/views"; import buildFn from "../event/buildCommons.js"; import Rmbbop from "../../../../components/business/rmb/rmbbop/views"; import Event from '../event'; import Check from '../model/check'; import Default from '../model/default'; export default { name: "Bttacc", components: { "m-ovwp": Ovwp, "m-dscinsp": Dscinsp, "m-accp": Accp, "m-engp": Engp, "m-docpan": Docpan, "m-setmod": Setmod, "m-rmbbop": Rmbbop, }, provide() { return { root: this }; }, mixins: [operationFunc, commonDepend, buildFn, Default, Event], // 里面包含了Default、Check等的公共处理 computed: { getRules() { return { ...this.rules, ...Check.apply(this)}; }, }, data() { return { tabVal: "ovwp", trnName: "bttacc", trnType: "", model: new Bttacc().data, codes: {...CodeTable}, rules: {}, }; }, methods: {}, created() { }, mounted() { console.log("进入" + this.trnName + "交易"); let params = { transName: this.trnName, btdgrp: { 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(() => { }); } }); }, // created: async function() { // console.log("进入bttacc交易"); // let params = { // transName: this.trnName, // btdgrp: { // rec: { // inr: this.$route.query.inr, // }, // }, // }; // let rtnmsg = await this.init({params}); // if (rtnmsg.respCode == SUCCESS) { // this.updateModel(rtnmsg.data); // //TODO 处理数据逻辑 // } else { // this.$notify.error({ title: "错误", message: "服务请求失败!" }); // } // } }; </script> <style> </style>