Commit 335d0a05 by 杜大兵
parents 6573fd83 df3a2548
...@@ -25,7 +25,7 @@ export default { ...@@ -25,7 +25,7 @@ export default {
"cpdgrp.ori.adrelc" :Utils.defaultFunction, "cpdgrp.ori.adrelc" :Utils.defaultFunction,
"cpdgrp.ori.namelc" :Utils.defaultFunction, "cpdgrp.ori.namelc" :Utils.defaultFunction,
"cpdgrp.ori.dbfadrblkcn" :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.adrelc" :Utils.defaultFunction,
"cpdgrp.snd.namelc" :Utils.defaultFunction, "cpdgrp.snd.namelc" :Utils.defaultFunction,
"cpdgrp.snd.dbfadrblkcn" :Utils.defaultFunction, "cpdgrp.snd.dbfadrblkcn" :Utils.defaultFunction,
...@@ -66,7 +66,7 @@ export default { ...@@ -66,7 +66,7 @@ export default {
"bopmod.dclflg" :Utils.defaultFunction, "bopmod.dclflg" :Utils.defaultFunction,
"cpdgrp.rec.detchgcod" :Utils.defaultFunction, "cpdgrp.rec.detchgcod" :Utils.defaultFunction,
"cnybop.cnyflg" :Utils.defaultFunction, "cnybop.cnyflg" :Utils.defaultFunction,
"cptp.draweecountcode" :Utils.defaultFunction, //"cptp.draweecountcode" :Utils.defaultFunction,
"cpdgrp.snd.pts.nam" :Utils.defaultFunction, "cpdgrp.snd.pts.nam" :Utils.defaultFunction,
"mtabut.coninf.oitinf.oit.inftxt" :Utils.defaultFunction, "mtabut.coninf.oitinf.oit.inftxt" :Utils.defaultFunction,
"mtabut.coninf.oitinf.oit.inflev" :Utils.defaultFunction, "mtabut.coninf.oitinf.oit.inflev" :Utils.defaultFunction,
......
...@@ -280,7 +280,7 @@ export default { ...@@ -280,7 +280,7 @@ export default {
], ],
"cpdgrp.orc.pts.adrblk":[ "cpdgrp.orc.pts.adrblk":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 140,message:"长度不能超过140"}
], ],
"cpdgrp.orc.dbfadrblkcn":[ "cpdgrp.orc.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
...@@ -292,7 +292,7 @@ export default { ...@@ -292,7 +292,7 @@ export default {
], ],
"cpdgrp.pye.pts.adrblk":[ "cpdgrp.pye.pts.adrblk":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 140,message:"长度不能超过140"}
], ],
"cpdgrp.pye.dbfadrblkcn":[ "cpdgrp.pye.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
......
...@@ -286,7 +286,7 @@ export default { ...@@ -286,7 +286,7 @@ export default {
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
], ],
"cpdgrp.pye.pts.extkey":[ "cpdgrp.pye.pts.extkey":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
], ],
"cptp.pyep.ptsget.sdamod.seainf":[ "cptp.pyep.ptsget.sdamod.seainf":[
...@@ -301,7 +301,7 @@ export default { ...@@ -301,7 +301,7 @@ export default {
], ],
"cpdgrp.orc.pts.adrblk":[ "cpdgrp.orc.pts.adrblk":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 140,message:"长度不能超过140"}
], ],
"cpdgrp.orc.dbfadrblkcn":[ "cpdgrp.orc.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
...@@ -312,7 +312,7 @@ export default { ...@@ -312,7 +312,7 @@ export default {
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"cpdgrp.pye.pts.adrblk":[ "cpdgrp.pye.pts.adrblk":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"cpdgrp.pye.dbfadrblkcn":[ "cpdgrp.pye.dbfadrblkcn":[
...@@ -354,13 +354,13 @@ export default { ...@@ -354,13 +354,13 @@ export default {
], ],
"mtabut.coninf.oitinf.oit.inftxt":[ "mtabut.coninf.oitinf.oit.inftxt":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 60,message:"长度不能超过60"} {max: 60,message:"长度不能超过60"}
], ],
"mtabut.coninf.oitset.oit.inftxt":[ "mtabut.coninf.oitset.oit.inftxt":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 60,message:"长度不能超过60"} {max: 60,message:"长度不能超过60"}
], ],
......
...@@ -2,7 +2,7 @@ import Api from "~/service/Api" ...@@ -2,7 +2,7 @@ import Api from "~/service/Api"
import Utils from "~/utils" import Utils from "~/utils"
export default { export default {
async onInfbutSearow() { /*async onInfbutSearow() {
let rtnmsg = await this.executeRule("infbut.searow") let rtnmsg = await this.executeRule("infbut.searow")
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -19,13 +19,92 @@ export default { ...@@ -19,13 +19,92 @@ export default {
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); 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) { async onInfbutDsp(row) {
let rtnmsg = await this.executeRule("infbut.dsp") let rtnmsg = await this.executeRule("infbut.dsp")
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
console.log("rows:", row);
console.log("你猜", rtnmsg);
} }
else { else {
......
<template> <template>
<div class="eibs-tab"> <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"> <c-col :span="11">
<el-form-item label="业务编号" style="width:100%" prop="cpdgrp.rec.ownref"> <el-form-item label="业务编号" style="width:100%" prop="cpdgrp.rec.ownref">
<c-fullbox> <c-fullbox>
...@@ -89,8 +95,9 @@ ...@@ -89,8 +95,9 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="11"> <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 <c-input
class="m-input-currency"
v-model="model.cpdgrp.cbs.nom1.amt" v-model="model.cpdgrp.cbs.nom1.amt"
style="text-align: left; width: 100%" style="text-align: left; width: 100%"
placeholder="请输入汇款金额" placeholder="请输入汇款金额"
...@@ -108,7 +115,7 @@ ...@@ -108,7 +115,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="11"> <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 <c-select
v-model="model.cptp.payuil" v-model="model.cptp.payuil"
style="width: 100%" style="width: 100%"
...@@ -342,20 +349,35 @@ ...@@ -342,20 +349,35 @@
</c-col> </c-col>
<c-col :span="13"> <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-input <c-fullbox>
<c-input
v-model="model.cpdgrp.rec.feeamt" v-model="model.cpdgrp.rec.feeamt"
placeholder="请输入国外费用金额" placeholder="请输入国外费用金额"
style="width: 71%" style="width: 90%"
></c-input> ></c-input>
<template slot="footer">
<span>
<c-checkbox v-model="model.cpdgrp.rec.tsnflg" <c-checkbox v-model="model.cpdgrp.rec.tsnflg"
>同名划转标志</c-checkbox >同名划转标志</c-checkbox
> >
</span>
</template>
</c-fullbox>
</el-form-item> </el-form-item>
</c-col> </c-col>
</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="24">
<c-col :span="11" v-if="model.cpdgrp.rec.swftyp === '103' || model.cpdgrp.rec.swftyp === '202' || model.cpdgrp.rec.swftyp === '200'"> <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"; ...@@ -1047,12 +1069,12 @@ import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cptadv/Event"; import Event from "~/model/Cptadv/Event";
import Ptap from "~/views/Public/Ptap"; import Ptap from "~/views/Public/Ptap";
import CptOpnp1Common from "~/views/Public/CptOpnp1Common"; import CptAdvChangePanel from "./CptAdvChangePanel";
export default { export default {
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
components: { CptOpnp1Common }, components: { CptAdvChangePanel },
mixins: [CommonProcess], mixins: [CommonProcess],
data() { data() {
return { return {
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
size="small" size="small"
:validate-on-rule-change="false" :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"> <el-tab-pane label="基本信息" name="opnp1">
<!--PD000020 --> <!--PD000020 -->
<c-content> <c-content>
...@@ -130,7 +130,29 @@ export default { ...@@ -130,7 +130,29 @@ export default {
codes: { ...CodeTable }, 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 () { created: async function () {
console.log("进入cptadv交易"); console.log("进入cptadv交易");
// let rtnmsg = await Api.post("cptadv/init",{params:{}}); // let rtnmsg = await Api.post("cptadv/init",{params:{}});
...@@ -149,7 +171,7 @@ export default { ...@@ -149,7 +171,7 @@ export default {
</script> </script>
<style> <style>
.el-col .el-divider--horizontal { .el-col .el-divider--horizontal {
margin-top: 5px; margin-top: 0;
} }
.messageLabel .el-form-item__label { .messageLabel .el-form-item__label {
text-align: left; text-align: left;
......
...@@ -2,14 +2,14 @@ ...@@ -2,14 +2,14 @@
<div class="eibs-tab"> <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> <el-form-item label="基本信息" class="messageLabel"> </el-form-item>
</c-col> </c-col>
<c-col :span="24" style="height: 0px"> <c-col :span="24" style="height: 0px">
<el-divider></el-divider> <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"> <c-col :span="11">
<el-form-item <el-form-item
label="业务编号" label="业务编号"
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-col :span="12"> <c-col :span="13">
<el-form-item <el-form-item
label="汇款金额" label="汇款金额"
prop="cpdgrp.cbs.nom1.cur" prop="cpdgrp.cbs.nom1.cur"
...@@ -125,22 +125,24 @@ ...@@ -125,22 +125,24 @@
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="11">
<el-form-item <el-form-item
label="" label=""
label-width="8px" label-width="8px"
prop="cpdgrp.cbs.nom1.amt" prop="cpdgrp.cbs.nom1.amt"
> >
<c-input <c-input
class="m-input-currency"
v-model="model.cpdgrp.cbs.nom1.amt" v-model="model.cpdgrp.cbs.nom1.amt"
placeholder="请输入汇款金额" placeholder="请输入汇款金额"
@keyup.enter.native="defaultFunction('cpdgrp.cbs.nom1.amt', model.cpdgrp.cbs.nom1.amt)"
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-col :span="12"> <c-col :span="13">
<el-form-item label="所属行" prop="cpdgrp.rec.othbch"> <el-form-item label="所属行" prop="cpdgrp.rec.othbch">
<c-input <c-input
v-model="model.cpdgrp.rec.othbch" v-model="model.cpdgrp.rec.othbch"
...@@ -150,8 +152,8 @@ ...@@ -150,8 +152,8 @@
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="11">
<el-form-item label="汇款语种"> <el-form-item label="汇款语种" label-width="40%">
<c-select <c-select
v-model="model.cptp.payuil" v-model="model.cptp.payuil"
placeholder="请选择汇款语种" placeholder="请选择汇款语种"
...@@ -170,7 +172,7 @@ ...@@ -170,7 +172,7 @@
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-col :span="12"> <c-col :span="13">
<el-form-item <el-form-item
label="是否需要核验" label="是否需要核验"
prop="cpdgrp.rec.ischktyp" prop="cpdgrp.rec.ischktyp"
...@@ -190,10 +192,11 @@ ...@@ -190,10 +192,11 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="11">
<el-form-item <el-form-item
label="预计核验日期" label="预计核验日期"
prop="cpdgrp.rec.paydat" prop="cpdgrp.rec.paydat"
label-width="40%"
> >
<c-date-picker <c-date-picker
type="date" type="date"
...@@ -201,7 +204,7 @@ ...@@ -201,7 +204,7 @@
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
style="width: 100%" style="width: 100%"
placeholder="" placeholder=""
disabled :disabled="!model.cpdgrp.rec.ischktyp || model.cpdgrp.rec.ischktyp == 'N'"
></c-date-picker> ></c-date-picker>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -228,7 +231,7 @@ ...@@ -228,7 +231,7 @@
<!-- ===================中部--右==================== --> <!-- ===================中部--右==================== -->
<c-col :span="11" :offset="1"> <c-col :span="11" :offset="1">
<c-col :span="24"> <c-col :span="24">
<c-col :span="12"> <c-col :span="13">
<el-form-item label="汇款性质" prop="cpdgrp.rec.trntyp"> <el-form-item label="汇款性质" prop="cpdgrp.rec.trntyp">
<c-select <c-select
v-model="model.cpdgrp.rec.trntyp" v-model="model.cpdgrp.rec.trntyp"
...@@ -244,10 +247,11 @@ ...@@ -244,10 +247,11 @@
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="11">
<el-form-item <el-form-item
label="汇款方式" label="汇款方式"
prop="cpdgrp.rec.paytype" prop="cpdgrp.rec.paytype"
label-width="40%"
> >
<c-select <c-select
v-model="model.cpdgrp.rec.paytype" v-model="model.cpdgrp.rec.paytype"
...@@ -266,11 +270,11 @@ ...@@ -266,11 +270,11 @@
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-col :span="12"> <c-col :span="13">
<el-form-item label="款对象" prop="cpdgrp.rec.gors"> <el-form-item label="款对象" prop="cpdgrp.rec.gors">
<c-select <c-select
v-model="model.cpdgrp.rec.gors" v-model="model.cpdgrp.rec.gors"
placeholder="请选择款对象" placeholder="请选择款对象"
style="width:100%" style="width:100%"
> >
<el-option <el-option
...@@ -282,8 +286,8 @@ ...@@ -282,8 +286,8 @@
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="11">
<el-form-item label="收支类型" prop="cpdgrp.rec.sztyp"> <el-form-item label="收支类型" prop="cpdgrp.rec.sztyp" label-width="40%">
<c-select <c-select
v-model="model.cpdgrp.rec.sztyp" v-model="model.cpdgrp.rec.sztyp"
placeholder="请选择收支类型" placeholder="请选择收支类型"
...@@ -301,7 +305,7 @@ ...@@ -301,7 +305,7 @@
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-col :span="12"> <c-col :span="13">
<el-form-item label="客户类型" prop="cpdgrp.rec.clityp"> <el-form-item label="客户类型" prop="cpdgrp.rec.clityp">
<c-select <c-select
v-model="model.cpdgrp.rec.clityp" v-model="model.cpdgrp.rec.clityp"
...@@ -317,8 +321,8 @@ ...@@ -317,8 +321,8 @@
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="11">
<el-form-item label="报文类型" prop="cpdgrp.rec.swftyp"> <el-form-item label="报文类型" prop="cpdgrp.rec.swftyp" label-width="40%">
<c-select <c-select
style="width: 100%" style="width: 100%"
placeholder="" placeholder=""
...@@ -420,10 +424,10 @@ ...@@ -420,10 +424,10 @@
</c-col> </c-col>
</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 label="*****信息" class="messageLabel">
</el-form-item> </el-form-item>
</c-col> </c-col> -->
<c-col :span="24" style="height: 0px"> <c-col :span="24" style="height: 0px">
<el-divider></el-divider> <el-divider></el-divider>
</c-col> </c-col>
...@@ -439,7 +443,7 @@ import Event from "~/model/Cptopn/Event"; ...@@ -439,7 +443,7 @@ import Event from "~/model/Cptopn/Event";
import Utils from "~/utils"; import Utils from "~/utils";
import Infpta from "~/views/Business/Infpta"; import Infpta from "~/views/Business/Infpta";
import CptOpnp1Common from "~/views/Public/CptOpnp1Common"; import CptOpnp1Common from "./CptOpnp1Common";
export default { export default {
inject: ["root"], inject: ["root"],
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
size="small" size="small"
:validate-on-rule-change="false" :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"> <el-tab-pane label="汇款信息" name="opnp1">
<!--PD000020 --> <!--PD000020 -->
<c-content> <c-content>
...@@ -32,17 +32,16 @@ ...@@ -32,17 +32,16 @@
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="Additional Info" name="AdditionalInfo"> <!-- <el-tab-pane label="Additional Info" name="AdditionalInfo">
<!--PD000020 -->
<m-AdditionalInfo :model="model" :codes="codes" /> <m-AdditionalInfo :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane> -->
<el-tab-pane label="费用及账务" name="setpan"> <el-tab-pane label="费用及账务" name="setpan">
<!--PD000000 --> <!--PD000000 -->
<m-setpan :model="model" :codes="codes" /> <m-setpan :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="Bookings" name="glepan"> <el-tab-pane label="分录" name="glepan">
<!--PD000001 --> <!--PD000001 -->
<m-glepan :model="model" :codes="codes" ref="glepan"/> <m-glepan :model="model" :codes="codes" ref="glepan"/>
</el-tab-pane> </el-tab-pane>
...@@ -169,6 +168,36 @@ export default { ...@@ -169,6 +168,36 @@ export default {
}; };
}, },
methods:{ 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 () { created: async function () {
console.log("进入cptopn交易"); console.log("进入cptopn交易");
...@@ -195,7 +224,7 @@ export default { ...@@ -195,7 +224,7 @@ export default {
</script> </script>
<style> <style>
.el-col .el-divider--horizontal { .el-col .el-divider--horizontal {
margin-top: 5px; margin-top: 0;
} }
.messageLabel .el-form-item__label { .messageLabel .el-form-item__label {
text-align: left; text-align: left;
......
...@@ -6,9 +6,9 @@ ...@@ -6,9 +6,9 @@
<!-- <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick" class="infbddTab"> --> <!-- <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick" class="infbddTab"> -->
<!-- <el-tab-pane label="查询信息" name="infsea"> --> <!-- <el-tab-pane label="查询信息" name="infsea"> -->
<!-- <c-content> --> <c-content>
<m-infsea :model="model" :codes="codes" ref="infsea"/> <m-infsea :model="model" :codes="codes" ref="infsea"/>
<!-- </c-content> --> </c-content>
<!-- </el-tab-pane> --> <!-- </el-tab-pane> -->
<!-- <el-tab-pane label="内容" name="ovwp"> <!-- <el-tab-pane label="内容" name="ovwp">
......
...@@ -115,6 +115,8 @@ export default { ...@@ -115,6 +115,8 @@ export default {
} }
this.navcode.push({code:"",label:"退汇",isDis:"N",title:""}) this.navcode.push({code:"",label:"退汇",isDis:"N",title:""})
//屏蔽cptsel sptcpt
this.navcode.splice(5,2)
}else{ }else{
......
...@@ -13,10 +13,10 @@ ...@@ -13,10 +13,10 @@
<!--PD000006 --> <!--PD000006 -->
<!-- <el-tab-pane label="信用证查询" name="infsea"> --> <!-- <el-tab-pane label="信用证查询" name="infsea"> -->
<!-- <c-content> --> <c-content>
<m-infsea v-show="!showPanel" @updateShowPanel="updateShowPanel($event)" :model="model" :codes="codes" ref="infsea"/> <m-infsea v-show="!showPanel" @updateShowPanel="updateShowPanel($event)" :model="model" :codes="codes" ref="infsea"/>
<!-- </c-content> --> </c-content>
<!-- </el-tab-pane> --> <!-- </el-tab-pane> -->
<c-tabs v-model="tabVal" v-show="showPanel" ref="elment" type="card" @tab-click="tabClick"> <c-tabs v-model="tabVal" v-show="showPanel" ref="elment" type="card" @tab-click="tabClick">
<!--PD000001 --> <!--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 @@ ...@@ -9,13 +9,16 @@
size="small" size="small"
:validate-on-rule-change="false" :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 --> <!--PD000006 -->
<el-tab-pane label="Selection" name="infsea"> <!-- <el-tab-pane label="Selection" name="infsea">
<c-content> <c-content>
<m-infsea :model="model" :codes="codes" /> <m-infsea :model="model" :codes="codes" />
</c-content> </c-content>
</el-tab-pane> </el-tab-pane> -->
<!--PD000001 --> <!--PD000001 -->
<el-tab-pane label="Overview" name="ovwp"> <el-tab-pane label="Overview" name="ovwp">
...@@ -90,6 +93,14 @@ ...@@ -90,6 +93,14 @@
</el-tab-pane> </el-tab-pane>
</c-tabs> </c-tabs>
</el-form> </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> </div>
</template> </template>
<script> <script>
...@@ -149,11 +160,47 @@ export default { ...@@ -149,11 +160,47 @@ export default {
defaultRules: Default, defaultRules: Default,
pattern: Pattern, pattern: Pattern,
rules: null, rules: null,
showPanel:false,
codes: { ...CodeTable }, codes: { ...CodeTable },
}; };
}, },
methods: { 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 () { created: async function () {
console.log("进入infltd交易"); console.log("进入infltd交易");
......
<template> <template>
<c-col :span="24"> <c-col :span="24">
<!-- ================底部--左================= --> <!-- ================底部--左================= -->
<c-col :span="11" style="margin-top: 20px"> <c-col :span="11" style="margin-top: 10px">
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item
label="Ordering institution (52a)" label="Ordering institution (52a)"
...@@ -155,7 +155,7 @@ ...@@ -155,7 +155,7 @@
: model.cpdgrp.rec.swftyp === '' || : model.cpdgrp.rec.swftyp === '' ||
model.cpdgrp.rec.swftyp === '103' model.cpdgrp.rec.swftyp === '103'
" "
style="margin-top: 20px" style="margin-top: 10px"
> >
<c-col :span="24"> <c-col :span="24">
<c-fullbox> <c-fullbox>
...@@ -2363,14 +2363,13 @@ ...@@ -2363,14 +2363,13 @@
<script> <script>
import CommonProcess from "~/mixin/CommonProcess"; import CommonProcess from "~/mixin/CommonProcess";
import Pattern from "~/model/Cptopn/Pattern";
export default { export default {
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [CommonProcess], mixins: [CommonProcess],
data() { data() {
return { return {
pattern: Pattern,
infptaVisible: false, infptaVisible: false,
}; };
}, },
......
<template> <template>
<div class="eibs-tab"> <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-col :span="24">
<c-table <c-istream-table-docpan
:border="true" :border="true"
:list="data1" :list="data1"
style="width:100%,text-align:center" 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="Type" width="auto"></el-table-column>
<el-table-column label="Document" 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> <el-table-column label="Cre.TRN" width="auto"></el-table-column>
...@@ -118,6 +172,7 @@ ...@@ -118,6 +172,7 @@
import Api from "~/service/Api" import Api from "~/service/Api"
import CommonProcess from "~/mixin/CommonProcess"; import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable"
import moment from 'moment'
export default { export default {
inject: ['root'], inject: ['root'],
...@@ -126,6 +181,7 @@ export default { ...@@ -126,6 +181,7 @@ export default {
data(){ data(){
return { return {
data1: [], data1: [],
data2: [],
isShow1: false, isShow1: false,
isShow2: false, isShow2: false,
aDisabled : true, aDisabled : true,
...@@ -144,6 +200,9 @@ export default { ...@@ -144,6 +200,9 @@ export default {
} }
}, },
methods:{ methods:{
getNow() {
return moment().format('yyyy-MM-DD')
},
handleNodeClick(data) { handleNodeClick(data) {
if(!data.children){ //如果没有叶子节点 ,按钮置灰 if(!data.children){ //如果没有叶子节点 ,按钮置灰
this.atoDisabled = false; this.atoDisabled = false;
...@@ -215,6 +274,21 @@ export default { ...@@ -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(){ 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