<template> <div class="eContainer"> <c-page title="汇款注销后激活"> <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small" :validate-on-rule-change="false"> <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick"> <!--cptrop --> <el-tab-pane label="业务信息" name="opnp1"> <c-content> <m-info :codes="codes" :model="model" /> </c-content> </el-tab-pane> </c-tabs> </el-form> <!-- 底部按钮 --> <c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" :handleStash="handleStash" ref="commonBtn" @handleSureWarning="handleSureWarning"></c-function-btn> </c-page> </div> </template> <script> import Api from "~/service/Api"; import CodeTable from "~/config/CodeTable"; import Cptrop from "../model"; import event from "../event"; import operationFunc from "~/mixin/operationFunc"; import commonDepend from "~/mixin/commonDepend"; import Check from "../model/check"; import Default from "../model/default"; import buildFn from "../event/buildCommons.js"; import Info from "./info"; export default { name: "Cptrop", components: { "m-info": Info, }, provide() { return { root: this }; }, mixins: [Check, Default, operationFunc, event, commonDepend, buildFn], data() { return { tabVal: "opnp1", trnName: "cptrop", model: new Cptrop().data, codes: { ...CodeTable }, activeNames: [] }; }, methods: {}, created: async function() { console.log("进入cptrop交易"); let params = { transName: this.trnName, cpdgrp: { rec: { inr: this.$route.query.inr, ownref: this.$route.query.ownref } } }; let rtnmsg = await this.init(params); if (rtnmsg) { //TODO 处理数据逻辑 this.model.cpdgrp.rec.paytyp = rtnmsg.cpdgrp.rec.paytyp; this.model.cpdgrp.rec.paydat = rtnmsg.cpdgrp.rec.paydat; this.model.cpdgrp.rec.valdat = rtnmsg.cpdgrp.rec.valdat; } //this.model.cpdgrp.rec.cptrou = "SWIFT"; this.cptrouChange("1"); // } }; </script> <style> </style>