Commit 335d0a05 by 杜大兵
parents 6573fd83 df3a2548
......@@ -25,7 +25,7 @@ export default {
"cpdgrp.ori.adrelc" :Utils.defaultFunction,
"cpdgrp.ori.namelc" :Utils.defaultFunction,
"cpdgrp.ori.dbfadrblkcn" :Utils.defaultFunction,
"cpdgrp.snd.pts.extkey" :Utils.defaultFunction,
//"cpdgrp.snd.pts.extkey" :Utils.defaultFunction,
"cpdgrp.snd.adrelc" :Utils.defaultFunction,
"cpdgrp.snd.namelc" :Utils.defaultFunction,
"cpdgrp.snd.dbfadrblkcn" :Utils.defaultFunction,
......@@ -66,7 +66,7 @@ export default {
"bopmod.dclflg" :Utils.defaultFunction,
"cpdgrp.rec.detchgcod" :Utils.defaultFunction,
"cnybop.cnyflg" :Utils.defaultFunction,
"cptp.draweecountcode" :Utils.defaultFunction,
//"cptp.draweecountcode" :Utils.defaultFunction,
"cpdgrp.snd.pts.nam" :Utils.defaultFunction,
"mtabut.coninf.oitinf.oit.inftxt" :Utils.defaultFunction,
"mtabut.coninf.oitinf.oit.inflev" :Utils.defaultFunction,
......
......@@ -280,7 +280,7 @@ export default {
],
"cpdgrp.orc.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
{max: 140,message:"长度不能超过140"}
],
"cpdgrp.orc.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
......@@ -292,7 +292,7 @@ export default {
],
"cpdgrp.pye.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
{max: 140,message:"长度不能超过140"}
],
"cpdgrp.pye.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
......
......@@ -286,7 +286,7 @@ export default {
{max: 16,message:"长度不能超过16"}
],
"cpdgrp.pye.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{type: "string", required: true, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"cptp.pyep.ptsget.sdamod.seainf":[
......@@ -301,7 +301,7 @@ export default {
],
"cpdgrp.orc.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
{max: 140,message:"长度不能超过140"}
],
"cpdgrp.orc.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
......@@ -312,7 +312,7 @@ export default {
{max: 35,message:"长度不能超过35"}
],
"cpdgrp.pye.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"cpdgrp.pye.dbfadrblkcn":[
......@@ -354,13 +354,13 @@ export default {
],
"mtabut.coninf.oitinf.oit.inftxt":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 60,message:"长度不能超过60"}
],
"mtabut.coninf.oitset.oit.inftxt":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 60,message:"长度不能超过60"}
],
......
......@@ -2,7 +2,7 @@ import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onInfbutSearow() {
/*async onInfbutSearow() {
let rtnmsg = await this.executeRule("infbut.searow")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
......@@ -19,13 +19,92 @@ export default {
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},*/
async handleReset() {
this.model.infcon.seaownref = "";
this.model.infcon.searef = "";
this.model.infcon.pty.extkey = "";
this.model.infcon.seapty = "";
this.model.infcon.opndatfrom = "";
this.model.infcon.opndatto = "";
this.model.infcon.seaamtfr = "";
this.model.infcon.seaamtto = "";
this.model.infcon.seasta = "";
this.model.infcon.usr.extkey = "";
this.model.infcon.nam = "";
this.model.infcon.hndtyp = "";
this.model.infcon.pty.nam = "";
this.model.infcon.searol = "";
this.model.infcon.seacur = "";
this.stmData.data = "";
},
async handleSearch() {
this.stmData.data = [];
let opndatfrom = this.model.infcon.opndatfrom;
if(!opndatfrom || opndatfrom == ''){
this.$notify.error({ title: '错误', message: '查询开始日期必输!' });
return;
}
let opndatto = this.model.infcon.opndatto;
if(!opndatto || opndatto == ''){
this.$notify.error({ title: '错误', message: '查询结束日期必输!' });
return;
}
let rtnmsg = await this.executeRule("infbut.searow")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
this.stmData.data = rtnmsg.data.infbut_dspstm.rows;
//console.log("smhstm:",rtnmsg);
if (rtnmsg.data.infbut_dspstm.rows.length == 0) {
this.$notify({
title: '成功',
message: '搜索完毕,无满足条件记录',
type: 'success'
});
}
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
// this.stmData.data = [];
// let opndatfrom = this.model.infcon.opndatfrom;
// if(!opndatfrom || opndatfrom == ''){
// this.$notify.error({ title: '错误', message: '查询开始日期必输!' });
// return;
// }
// let opndatto = this.model.infcon.opndatto;
// if(!opndatto || opndatto == ''){
// this.$notify.error({ title: '错误', message: '查询结束日期必输!' });
// return;
// }
// let rtnmsg = await this.executeRule("infbut.searow")
// if (rtnmsg.respCode == SUCCESS) {
// this.stmData.data = rtnmsg.data.infbut_dspstm.rows;
// }
// else {
// this.$notify.error({ title: '错误', message: '服务请求失败!' });
// }
},
display(index, row) {
debugger;
Api.post("getTrnNameByInr", { inr:row['INR'] }).then((res) => {
if (res.respCode == SUCCESS) {
const trnName = res.data.toLowerCase();
let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
});
},
async onInfbutDsp(row) {
let rtnmsg = await this.executeRule("infbut.dsp")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
console.log("rows:", row);
console.log("你猜", rtnmsg);
}
else {
......
<template>
<div class="eibs-tab">
<!-- ============== 顶部============================== -->
<c-col :span="24">
<!-- <c-col :span="24" style="height: 24px">
<el-form-item label="基本信息" class="messageLabel"> </el-form-item>
</c-col>
<c-col :span="24" style="height: 0px">
<el-divider></el-divider>
</c-col> -->
<c-col :span="24" style="margin-top: 0">
<c-col :span="11">
<el-form-item label="业务编号" style="width:100%" prop="cpdgrp.rec.ownref">
<c-fullbox>
......@@ -89,8 +95,9 @@
</el-form-item>
</c-col>
<c-col :span="11">
<el-form-item label="" label-width="8px" style="text-align: left" prop="cpdgrp.cbs.nom1.amt">
<el-form-item label="" label-width="8px" prop="cpdgrp.cbs.nom1.amt">
<c-input
class="m-input-currency"
v-model="model.cpdgrp.cbs.nom1.amt"
style="text-align: left; width: 100%"
placeholder="请输入汇款金额"
......@@ -108,7 +115,7 @@
</el-form-item>
</c-col>
<c-col :span="11">
<el-form-item label="汇款语种" label-width="60px" style="margin-left: 12px" prop="cptp.payuil">
<el-form-item label="汇款语种" label-width="40%" style="margin-left: 12px" prop="cptp.payuil">
<c-select
v-model="model.cptp.payuil"
style="width: 100%"
......@@ -342,20 +349,35 @@
</c-col>
<c-col :span="13">
<el-form-item label="" label-width="8px" prop="cpdgrp.rec.feeamt">
<el-form-item label="" style="width: 100%" label-width="8px" prop="cpdgrp.rec.feeamt">
<c-fullbox>
<c-input
v-model="model.cpdgrp.rec.feeamt"
placeholder="请输入国外费用金额"
style="width: 71%"
style="width: 90%"
></c-input>
<template slot="footer">
<span>
<c-checkbox v-model="model.cpdgrp.rec.tsnflg"
>同名划转标志</c-checkbox
>
</span>
</template>
</c-fullbox>
</el-form-item>
</c-col>
</c-col>
<!-- <c-col :span="24" style="height: 24px">
<el-form-item label="*****信息" class="messageLabel">
</el-form-item>
</c-col> -->
<c-col :span="24" style="height: 0px">
<el-divider></el-divider>
</c-col>
<!-- <CptOpnp1Common :model="model" :codes="codes" v-on:onSndpDet="onSndpDet"></CptOpnp1Common> -->
<CptOpnp1Common :model="model" :codes="codes" v-on:onSndpDet="onSndpDet"></CptOpnp1Common>
<CptAdvChangePanel :model="model" :codes="codes" v-on:onSndpDet="onSndpDet"></CptAdvChangePanel>
<c-col :span="24">
<c-col :span="11" v-if="model.cpdgrp.rec.swftyp === '103' || model.cpdgrp.rec.swftyp === '202' || model.cpdgrp.rec.swftyp === '200'">
......@@ -1047,12 +1069,12 @@ import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cptadv/Event";
import Ptap from "~/views/Public/Ptap";
import CptOpnp1Common from "~/views/Public/CptOpnp1Common";
import CptAdvChangePanel from "./CptAdvChangePanel";
export default {
inject: ["root"],
props: ["model", "codes"],
components: { CptOpnp1Common },
components: { CptAdvChangePanel },
mixins: [CommonProcess],
data() {
return {
......
......@@ -23,7 +23,7 @@
size="small"
:validate-on-rule-change="false"
>
<c-tabs ref="elment" :value="tabVal" type="card" @tab-click="tabClick">
<c-tabs ref="elment" :value="tabVal" type="card" @tab-click="mimeTabClick">
<el-tab-pane label="基本信息" name="opnp1">
<!--PD000020 -->
<c-content>
......@@ -130,7 +130,29 @@ export default {
codes: { ...CodeTable },
};
},
methods: {},
methods: {
mimeTabClick(tab) {
this.tabClick(tab)
const name = tab.name
let rulePath;
if (name === "docpan2") {
rulePath = "lendoc.docpan";
}
if (name === "sbxx") {
rulePath = "bopmod.wg,cnybop.cnyp";
}
if (name === "incp") {
rulePath = "cnybop.incp";
}
if (!!rulePath) {
this.executeRule(rulePath).then(res => {
if (res.respCode == SUCCESS) {
this.updateModel(res.data)
}
})
}
}
},
created: async function () {
console.log("进入cptadv交易");
// let rtnmsg = await Api.post("cptadv/init",{params:{}});
......@@ -149,7 +171,7 @@ export default {
</script>
<style>
.el-col .el-divider--horizontal {
margin-top: 5px;
margin-top: 0;
}
.messageLabel .el-form-item__label {
text-align: left;
......
......@@ -2,14 +2,14 @@
<div class="eibs-tab">
<!--=================顶部================= -->
<c-col :span="24" style="height: 24px">
<!-- <c-col :span="24" style="height: 24px">
<el-form-item label="基本信息" class="messageLabel"> </el-form-item>
</c-col>
<c-col :span="24" style="height: 0px">
<el-divider></el-divider>
</c-col>
</c-col> -->
<c-col :span="24" style="margin-top: 20px">
<c-col :span="24" style="margin-top: 0">
<c-col :span="11">
<el-form-item
label="业务编号"
......@@ -105,7 +105,7 @@
</c-col>
<c-col :span="24">
<c-col :span="12">
<c-col :span="13">
<el-form-item
label="汇款金额"
prop="cpdgrp.cbs.nom1.cur"
......@@ -125,22 +125,24 @@
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-col :span="11">
<el-form-item
label=""
label-width="8px"
prop="cpdgrp.cbs.nom1.amt"
>
<c-input
class="m-input-currency"
v-model="model.cpdgrp.cbs.nom1.amt"
placeholder="请输入汇款金额"
@keyup.enter.native="defaultFunction('cpdgrp.cbs.nom1.amt', model.cpdgrp.cbs.nom1.amt)"
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<c-col :span="13">
<el-form-item label="所属行" prop="cpdgrp.rec.othbch">
<c-input
v-model="model.cpdgrp.rec.othbch"
......@@ -150,8 +152,8 @@
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="汇款语种">
<c-col :span="11">
<el-form-item label="汇款语种" label-width="40%">
<c-select
v-model="model.cptp.payuil"
placeholder="请选择汇款语种"
......@@ -170,7 +172,7 @@
</c-col>
<c-col :span="24">
<c-col :span="12">
<c-col :span="13">
<el-form-item
label="是否需要核验"
prop="cpdgrp.rec.ischktyp"
......@@ -190,10 +192,11 @@
</el-form-item>
</c-col>
<c-col :span="12">
<c-col :span="11">
<el-form-item
label="预计核验日期"
prop="cpdgrp.rec.paydat"
label-width="40%"
>
<c-date-picker
type="date"
......@@ -201,7 +204,7 @@
value-format="yyyy-MM-dd"
style="width: 100%"
placeholder=""
disabled
:disabled="!model.cpdgrp.rec.ischktyp || model.cpdgrp.rec.ischktyp == 'N'"
></c-date-picker>
</el-form-item>
</c-col>
......@@ -228,7 +231,7 @@
<!-- ===================中部--右==================== -->
<c-col :span="11" :offset="1">
<c-col :span="24">
<c-col :span="12">
<c-col :span="13">
<el-form-item label="汇款性质" prop="cpdgrp.rec.trntyp">
<c-select
v-model="model.cpdgrp.rec.trntyp"
......@@ -244,10 +247,11 @@
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-col :span="11">
<el-form-item
label="汇款方式"
prop="cpdgrp.rec.paytype"
label-width="40%"
>
<c-select
v-model="model.cpdgrp.rec.paytype"
......@@ -266,11 +270,11 @@
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="款对象" prop="cpdgrp.rec.gors">
<c-col :span="13">
<el-form-item label="款对象" prop="cpdgrp.rec.gors">
<c-select
v-model="model.cpdgrp.rec.gors"
placeholder="请选择款对象"
placeholder="请选择款对象"
style="width:100%"
>
<el-option
......@@ -282,8 +286,8 @@
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="收支类型" prop="cpdgrp.rec.sztyp">
<c-col :span="11">
<el-form-item label="收支类型" prop="cpdgrp.rec.sztyp" label-width="40%">
<c-select
v-model="model.cpdgrp.rec.sztyp"
placeholder="请选择收支类型"
......@@ -301,7 +305,7 @@
</c-col>
<c-col :span="24">
<c-col :span="12">
<c-col :span="13">
<el-form-item label="客户类型" prop="cpdgrp.rec.clityp">
<c-select
v-model="model.cpdgrp.rec.clityp"
......@@ -317,8 +321,8 @@
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="报文类型" prop="cpdgrp.rec.swftyp">
<c-col :span="11">
<el-form-item label="报文类型" prop="cpdgrp.rec.swftyp" label-width="40%">
<c-select
style="width: 100%"
placeholder=""
......@@ -420,10 +424,10 @@
</c-col>
</c-col>
<c-col :span="24" style="height: 24px">
<!-- <c-col :span="24" style="height: 24px">
<el-form-item label="*****信息" class="messageLabel">
</el-form-item>
</c-col>
</c-col> -->
<c-col :span="24" style="height: 0px">
<el-divider></el-divider>
</c-col>
......@@ -439,7 +443,7 @@ import Event from "~/model/Cptopn/Event";
import Utils from "~/utils";
import Infpta from "~/views/Business/Infpta";
import CptOpnp1Common from "~/views/Public/CptOpnp1Common";
import CptOpnp1Common from "./CptOpnp1Common";
export default {
inject: ["root"],
......
......@@ -24,7 +24,7 @@
size="small"
:validate-on-rule-change="false"
>
<c-tabs :value="tabVal" ref="elment" type="card" @tab-click="tabClick">
<c-tabs :value="tabVal" ref="elment" type="card" @tab-click="mimeTabClick">
<el-tab-pane label="汇款信息" name="opnp1">
<!--PD000020 -->
<c-content>
......@@ -32,17 +32,16 @@
</c-content>
</el-tab-pane>
<el-tab-pane label="Additional Info" name="AdditionalInfo">
<!--PD000020 -->
<!-- <el-tab-pane label="Additional Info" name="AdditionalInfo">
<m-AdditionalInfo :model="model" :codes="codes" />
</el-tab-pane>
</el-tab-pane> -->
<el-tab-pane label="费用及账务" name="setpan">
<!--PD000000 -->
<m-setpan :model="model" :codes="codes" />
</el-tab-pane>
<el-tab-pane label="Bookings" name="glepan">
<el-tab-pane label="分录" name="glepan">
<!--PD000001 -->
<m-glepan :model="model" :codes="codes" ref="glepan"/>
</el-tab-pane>
......@@ -169,6 +168,36 @@ export default {
};
},
methods:{
mimeTabClick(tab) {
this.tabClick(tab)
const name = tab.name
let rulePath;
if (name === "setpan") {
rulePath = "pyenam";
}
if (name === "glepan") {
rulePath = "glepan";
}
if (name === "coninfp") {
rulePath = "coninfp";
}
if (name === "docpan") {
rulePath = "oit.inftxt";
}
if (name === "doctre") {
rulePath = "doctre";
}
if (name === "sbxx") {
rulePath = "trd.ownref,cnyp";
}
if (!!rulePath) {
this.executeRule(rulePath).then(res => {
if (res.respCode == SUCCESS) {
this.updateModel(res.data)
}
})
}
}
},
created: async function () {
console.log("进入cptopn交易");
......@@ -195,7 +224,7 @@ export default {
</script>
<style>
.el-col .el-divider--horizontal {
margin-top: 5px;
margin-top: 0;
}
.messageLabel .el-form-item__label {
text-align: left;
......
......@@ -6,9 +6,9 @@
<!-- <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick" class="infbddTab"> -->
<!-- <el-tab-pane label="查询信息" name="infsea"> -->
<!-- <c-content> -->
<c-content>
<m-infsea :model="model" :codes="codes" ref="infsea"/>
<!-- </c-content> -->
</c-content>
<!-- </el-tab-pane> -->
<!-- <el-tab-pane label="内容" name="ovwp">
......
......@@ -115,6 +115,8 @@ export default {
}
this.navcode.push({code:"",label:"退汇",isDis:"N",title:""})
//屏蔽cptsel sptcpt
this.navcode.splice(5,2)
}else{
......
......@@ -13,10 +13,10 @@
<!--PD000006 -->
<!-- <el-tab-pane label="信用证查询" name="infsea"> -->
<!-- <c-content> -->
<c-content>
<m-infsea v-show="!showPanel" @updateShowPanel="updateShowPanel($event)" :model="model" :codes="codes" ref="infsea"/>
<!-- </c-content> -->
</c-content>
<!-- </el-tab-pane> -->
<c-tabs v-model="tabVal" v-show="showPanel" ref="elment" type="card" @tab-click="tabClick">
<!--PD000001 -->
......
<template>
<div class="busnavbar">
<div class="busnavbar-items">
<c-button style="margin-left:7px;" class="medium_bcs" size="medium" type="primary" v-for="(item,index) in codeList" v-bind:key="index" @click.native="onNarBtnClick(item.code,index)" :title="item.title" :disabled="item.isDis==='N'">{{item.label}}</c-button>
</div>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Litsel from "~/model/Ditsel"
import CommonProcess from "~/mixin/CommonProcess"
export default {
props:["ownref"],
components:{
},
mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
trnName:'ditsel',
model:new Litsel().data,
navcode:[
// {code:"",label:"",isDis:"",title:""},
],
}
},
methods:{
//各入口按钮请求
async onNarBtnClick(code,i){
this.model.cfgfil.subtrn1= code
let rtnmsg = await this.executeRule("cfgfil.hotsub3")
console.log("cfgfil.code:" + this.model.cfgfil.subtrn1);
if(rtnmsg.respCode == SUCCESS){
this.navcode = []
this.$emit("onChoose",code.toLowerCase());
}else{
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
},
},
computed:{
codeList(){
//将model中的数据映射成数组
return this.navcode.map(item=>{
let entireItem = {...item}
this.navcode = [];
//TODO 根据数据判断当前的code,是否可以继续
// entireItem.enable = item.isDis
return entireItem
})
}
},
watch:{
"ownref":async function(n, o){
if(!this.ownref){
console.log("11111")
// onTigger()
return;
}
}
},
mounted(){
this.$nextTick(function(){
this.$on('childmethods',async function(){
this.navcode = []
//请求按钮数据
//this.model.didgrp.rec.ownref = 'KZ3500210540AA'
this.model.bddgrp.rec.ownref = this.ownref
console.log("ownref:" + this.ownref );
// let rtnmsg = await this.executeRule("didgrp.rec.ownref");//didgrp_rec_ownref
let rtnmsg0 = await this.executeRule("ltdgrp.rec.ownref");//cfgfil.hotreg3
if(rtnmsg0.respCode == SUCCESS){
this.updateModel(rtnmsg0.data)
let rtnmsg = await this.executeRule("cfgfil.hotreg3");//cfgfil.hotreg3
if(rtnmsg.respCode == SUCCESS){
//重置数组
this.navcode = []
this.updateModel(rtnmsg.data)
//this.model.cfgfil.btnstm = rtnmsg.data.cfgfil_btnstm.rows
//给inr赋值,后面弹窗里面的按钮请求会用到
//this.model.didgrp.rec.inr = rtnmsg.data.didgrp_rec_inr
const length = this.model.cfgfil.btnstm.rows.length
let btnStr = this.model.cfgfil.btnstm.rows
for(let i=0; i < length; i++){
//获取数组中每行的数据
let arr = btnStr[i].split("\t");
let newList = {
code:arr[0],
label:arr[1],
isDis:arr[2],
//isDis:'Y',
title:arr[3]
}
//添加到navcode数组中
this.navcode.splice(i,0,newList)
}
}else{
this.navcode = []
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
}else{
this.navcode = []
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
})
})
}
}
</script>
<style>
</style>
......@@ -9,13 +9,16 @@
size="small"
:validate-on-rule-change="false"
>
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
<m-infsea v-show="!showPanel" @updateShowPanel="updateShowPanel($event)" :model="model" :codes="codes" ref="infsea"/>
<c-tabs v-model="tabVal" v-show="showPanel" ref="elment" type="card" @tab-click="tabClick">
<!--PD000006 -->
<el-tab-pane label="Selection" name="infsea">
<!-- <el-tab-pane label="Selection" name="infsea">
<c-content>
<m-infsea :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
</el-tab-pane> -->
<!--PD000001 -->
<el-tab-pane label="Overview" name="ovwp">
......@@ -90,6 +93,14 @@
</el-tab-pane>
</c-tabs>
</el-form>
<c-button
v-show="showPanel"
style="margin-left: 75%;bottom: 10%;position:sticky"
size="small"
@click="goBack()">
<!-- @click="getDitSelInfo(scope.$index, scope.row)" -->
返回
</c-button>
</div>
</template>
<script>
......@@ -149,11 +160,47 @@ export default {
defaultRules: Default,
pattern: Pattern,
rules: null,
showPanel:false,
codes: { ...CodeTable },
};
},
methods: {
tabClick() {},
goBack(){
this.showPanel = false;
},
tabClick(tab) {
const name = tab.name
let rulePath;
if (name === "fepinfp") {
rulePath = "infcon.fepinfp";
}
if (name === "coninfp") {
rulePath = "coninf.coninfp";
}
if (!!rulePath) {
this.executeRule(rulePath).then(res => {
if (res.respCode == SUCCESS) {
this.updateModel(res.data);
}
})
}
},
initPanel(val){
if(val){
this.tabVal = "ovwp"
//
}else{
this.tabVal = ""
}
},
async updateShowPanel(value) {
this.showPanel = value;
this.initPanel(value);
},
},
created: async function () {
console.log("进入infltd交易");
......
<template>
<c-col :span="24">
<!-- ================底部--左================= -->
<c-col :span="11" style="margin-top: 20px">
<c-col :span="11" style="margin-top: 10px">
<c-col :span="24">
<el-form-item
label="Ordering institution (52a)"
......@@ -155,7 +155,7 @@
: model.cpdgrp.rec.swftyp === '' ||
model.cpdgrp.rec.swftyp === '103'
"
style="margin-top: 20px"
style="margin-top: 10px"
>
<c-col :span="24">
<c-fullbox>
......@@ -2363,14 +2363,13 @@
<script>
import CommonProcess from "~/mixin/CommonProcess";
import Pattern from "~/model/Cptopn/Pattern";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [CommonProcess],
data() {
return {
pattern: Pattern,
infptaVisible: false,
};
},
......
<template>
<div class="eibs-tab">
<c-col :span="24" style="height: 24px">
<el-form-item label="Outgoing Messages" class="messageLabel"></el-form-item>
</c-col>
<c-col :span="24" style="height: 0px">
<el-divider></el-divider>
</c-col>
<c-col :span="24">
<c-table
<c-istream-table-docpan
:border="true"
:list="data1"
style="width:100%,text-align:center"
>
<el-table-column label="Type" width="auto">
<template slot-scope="scope">
<c-select
v-model="
model.trnmod.trndoc.doceot[scope.row.index].cortyp
"
style="width: 100%"
disabled
placeholder="请选择"
>
<el-option
v-for="item in codes.doceotCortyp"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</template>
</el-table-column>
<el-table-column label="Document" width="auto">
<template slot-scope="scope">
<span>{{ model.trnmod.trndoc.doceot[scope.row.index].pandsc }}</span>
</template>
</el-table-column>
<el-table-column label="Cre.TRN" width="auto"></el-table-column>
<el-table-column label="Date" width="auto">
<template>
<span>{{ getNow() }}</span>
</template>
</el-table-column>
<el-table-column label="" width="auto"></el-table-column>
<el-table-column label="" width="auto"></el-table-column>
</c-istream-table-docpan>
</c-col>
<c-col :span="24" style="height: 24px;margin-top: 20px;">
<el-form-item label="Previous Messages" class="messageLabel"></el-form-item>
</c-col>
<c-col :span="24" style="height: 0px">
<el-divider></el-divider>
</c-col>
<c-col :span="24">
<c-table
:border="true"
:list="data2"
style="width:100%,text-align:center"
>
<el-table-column label="Type" width="auto"></el-table-column>
<el-table-column label="Document" width="auto"></el-table-column>
<el-table-column label="Cre.TRN" width="auto"></el-table-column>
......@@ -118,6 +172,7 @@
import Api from "~/service/Api"
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable"
import moment from 'moment'
export default {
inject: ['root'],
......@@ -126,6 +181,7 @@ export default {
data(){
return {
data1: [],
data2: [],
isShow1: false,
isShow2: false,
aDisabled : true,
......@@ -144,6 +200,9 @@ export default {
}
},
methods:{
getNow() {
return moment().format('yyyy-MM-DD')
},
handleNodeClick(data) {
if(!data.children){ //如果没有叶子节点 ,按钮置灰
this.atoDisabled = false;
......@@ -215,6 +274,21 @@ export default {
}
},
},
watch: {
"model.trnmod.trndoc.doceot": {
handler(val, oldVal) {
var arr = [];
let k = 0;
for (let i = 0; i < val.length; i++) {
if (val[i].role != "") {
arr[k++] = val[i];
}
}
this.data1 = arr
},
immediate: true
}
},
created:function(){
}
......
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