Commit b77f9f7f by Wuyuqiu

bftset交易bug修改

parent 4bb0587c
<template>
<div class="eContainer">
<!-- <c-bus-button :$pntvm="this"></c-bus-button> -->
<c-function-btn
:handleSubmit="handleSubmit"
......@@ -18,81 +17,93 @@
<el-button size="small">智能提示</el-button>
</c-function-btn>
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false">
<el-form
:model="model"
:rules="rules"
ref="modelForm"
label-width="150px"
label-position="right"
size="small"
:validate-on-rule-change="false"
>
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--PD000034 -->
<el-tab-pane label="收款" name="setp">
<c-content>
<m-setp ref="setp" :model="model" :codes="codes"/>
<m-setp ref="setp" :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="或有" name="engp">
<m-engp :model="model" :codes="codes"/>
<m-engp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000000 -->
<el-tab-pane label="账务" name="setpan">
<el-tab-pane label="账务" name="setpan" >
<c-content>
<m-setpan :model="model" :codes="codes"/>
<m-setpan :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000000 -->
<el-tab-pane label="分录" name="glepan" v-if="glepan">
<m-glepan :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000000 -->
<el-tab-pane label="附言" name="coninfp">
<m-coninfp :model="model" :codes="codes"/>
<m-coninfp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000529 -->
<el-tab-pane label="报文及面函" name="docpan">
<m-docpan :model="model" :codes="codes"/>
<m-docpan :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000001 -->
<el-tab-pane label="统一授信" name="limitbody">
<m-limitbody :model="model" :codes="codes"/>
<m-limitbody :model="model" :codes="codes" />
</el-tab-pane>
</c-tabs>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Bftset from "~/model/Bftset"
import commonProcess from "~/mixin/commonProcess"
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Bftset from "~/model/Bftset";
import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Bftset/Check"
import Default from "~/model/Bftset/Default"
import Pattern from "~/model/Bftset/Pattern"
import Setp from "./Setp"
import Check from "~/model/Bftset/Check";
import Default from "~/model/Bftset/Default";
import Pattern from "~/model/Bftset/Pattern";
import Setp from "./Setp";
import Engp from "~/views/Public/Engp";
import Setpan from "~/views/Public/Setpan";
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
import Limitbody from "~/views/Public/Limitbody";
import Glepan from "~/views/Public/Glepan";
export default {
name: "Bftset",
components:{
"m-engp" : Engp,
"m-limitbody" : Limitbody,
"m-docpan" : Docpan,
"m-coninfp" : Coninfp,
"m-setp" : Setp,
"m-setpan" : Setpan,
components: {
"m-engp": Engp,
"m-limitbody": Limitbody,
"m-docpan": Docpan,
"m-coninfp": Coninfp,
"m-setp": Setp,
"m-setpan": Setpan,
"m-glepan": Glepan,
},
provide() {
return {
root: this
}
root: this,
};
},
mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
data(){
data() {
return {
tabVal: "setp",
trnName: "bftset",
......@@ -102,36 +113,36 @@ export default {
pattern: Pattern,
rules: null,
codes: {
...CodeTable
...CodeTable,
},
}
glepan:false,
};
},
methods:{
myTabClick(tab){
this.tabClick(tab)
methods: {
myTabClick(tab) {
this.tabClick(tab);
if (tab.name === "setpan") {
this.glepan = true;
}
/**
* do it yourself
**/
}
},
created:async function(){
},
created: async function () {
console.log("进入bftset交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
if(this.isInDisplay){
let rtnmsg = await this.init({});
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data);
if (this.isInDisplay) {
this.restoreDisplay();
}
this.$refs.setp.$refs.table.$refs.table.toggleAllSelection();
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
}
},
};
</script>
<style>
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment