Commit 0f734a29 by nanrui

infbcd初始化及infbod优化

parent 879f86e9
...@@ -2,233 +2,223 @@ import Api from "~/service/Api" ...@@ -2,233 +2,223 @@ 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 处理数据逻辑
 this.stmData.data = rtnmsg.data.infbut_dspstm.rows; this.stmData.data = rtnmsg.data.infbut_dspstm.rows;
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onInfbutDsp(){ async onInfbutDsp() {
let rtnmsg = await this.executeRule("infbut.dsp") let rtnmsg = await this.executeRule("infbut.dsp")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onInfbutUserow(){ async onInfbutUserow() {
let rtnmsg = await this.executeRule("infbut.userow") let rtnmsg = await this.executeRule("infbut.userow")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onInfbutClr(){ async onInfbutClr() {
let rtnmsg = await this.executeRule("infbut.clr") let rtnmsg = await this.executeRule("infbut.clr")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onInfbutButprt(){ async onInfbutButprt() {
let rtnmsg = await this.executeRule("infbut.butprt") let rtnmsg = await this.executeRule("infbut.butprt")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onInfbutExi(){ async onInfbutExi() {
let rtnmsg = await this.executeRule("infbut.exi") let rtnmsg = await this.executeRule("infbut.exi")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onRogpDet(){ async onRogpDet() {
let rtnmsg = await this.executeRule("rogp.det") let rtnmsg = await this.executeRule("rogp.det")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onDrepDet(){ async onDrepDet() {
let rtnmsg = await this.executeRule("drep.det") let rtnmsg = await this.executeRule("drep.det")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onRmipDet(){ async onRmipDet() {
let rtnmsg = await this.executeRule("rmip.det") let rtnmsg = await this.executeRule("rmip.det")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onCo2pDet(){ async onCo2pDet() {
let rtnmsg = await this.executeRule("co2p.det") let rtnmsg = await this.executeRule("co2p.det")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onDrrpDet(){ async onDrrpDet() {
let rtnmsg = await this.executeRule("drrp.det") let rtnmsg = await this.executeRule("drrp.det")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onAgtpDet(){ async onAgtpDet() {
let rtnmsg = await this.executeRule("agtp.det") let rtnmsg = await this.executeRule("agtp.det")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onAgbpDet(){ async onAgbpDet() {
let rtnmsg = await this.executeRule("agbp.det") let rtnmsg = await this.executeRule("agbp.det")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onInfconButshword(){ async onInfconButshword() {
let rtnmsg = await this.executeRule("infcon.butshword") let rtnmsg = await this.executeRule("infcon.butshword")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onTrnmodGetmod(){ async onTrnmodGetmod() {
let rtnmsg = await this.executeRule("trnmod.getmod") let rtnmsg = await this.executeRule("trnmod.getmod")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onInfconButshw(){ async onInfconButshw() {
let rtnmsg = await this.executeRule("infcon.butshw") let rtnmsg = await this.executeRule("infcon.butshw")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onColinsButtxmsel(){ async onColinsButtxmsel() {
let rtnmsg = await this.executeRule("colins.buttxmsel") let rtnmsg = await this.executeRule("colins.buttxmsel")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onDftinsButtxmsel(){ async onDftinsButtxmsel() {
let rtnmsg = await this.executeRule("dftins.buttxmsel") let rtnmsg = await this.executeRule("dftins.buttxmsel")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onOthins1Buttxmsel(){ async onOthins1Buttxmsel() {
let rtnmsg = await this.executeRule("othins1.buttxmsel") let rtnmsg = await this.executeRule("othins1.buttxmsel")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
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;
// this.updateModel(rtnmsg.data);
// this.stmData.data = rtnmsg.data.infbut_dspstm.rows;
//this.model.infbut.dspstm = rtnmsg.data.infbut_dspstm
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async handleReset() {
},
} }
\ No newline at end of file
...@@ -57,6 +57,7 @@ export default class Infbcd{ ...@@ -57,6 +57,7 @@ export default class Infbcd{
diadatto:"", // date till .infcon.diadatto diadatto:"", // date till .infcon.diadatto
diasta:"", // Status .infcon.diasta diasta:"", // Status .infcon.diasta
diastm:"", // stream for diaries to selected contract .infcon.diastm diastm:"", // stream for diaries to selected contract .infcon.diastm
objinr:""
}, },
seadoctypcod:"", // Payment Condition .seadoctypcod seadoctypcod:"", // Payment Condition .seadoctypcod
infbut:{ infbut:{
......
<template>
<div class="eibs-tab">
<c-col :span="12">
<el-form-item label="Fee Code" prop="infcon.fepfeecod">
<c-select v-model="model.infcon.fepfeecod" style="width:100%" placeholder="请选择Fee Code">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Disposition" prop="infcon.fepdsp">
<c-select v-model="model.infcon.fepdsp" style="width:100%" placeholder="请选择Disposition">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="stream for FEPs to selected contract" prop="infcon.fepstm">
<c-input v-model="model.infcon.fepstm" placeholder="请输入stream for FEPs to selected contract"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.infcon.feptxtlbl" data-path=".infcon.feptxtlbl" > </span>
</c-col>
<c-col :span="12">
<el-form-item label="Disposition" prop="infcon.fcpdsp">
<c-select v-model="model.infcon.fcpdsp" style="width:100%" placeholder="请选择Disposition">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="stream of foreign charges" prop="infcon.fcpstm">
<c-input v-model="model.infcon.fcpstm" placeholder="请输入stream of foreign charges"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.infcon.fcptxtlbl" data-path=".infcon.fcptxtlbl" > </span>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Infbcd/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<c-list-search @form-reset="onInfbutClr" @form-search="onInfbutSearow"> <c-list-search @form-reset="handleReset" @form-search="handleSearch">
<!-- 持续展示区 -->
<template v-slot="searchSlot"> <template v-slot="searchSlot">
<el-form class="m-table-search-form" ref="paramsForm" :inline="true" label-position="left" label-width="110px" size="small"> <el-form class="m-table-search-form" ref="paramsForm" :inline="true" label-position="left" label-width="110px"
size="small">
<el-row> <el-row>
<c-col :span="12"> <c-col :span="24">
<el-form-item label="Own Reference" prop="infcon.seaownref"> <c-col :span="8">
<el-form-item label="Own Reference" prop="infcon.seaownref" style="width: 100%">
<c-input v-model="model.infcon.seaownref" maxlength="16" placeholder="请输入Own Reference"></c-input> <c-input v-model="model.infcon.seaownref" maxlength="16" placeholder="请输入Own Reference"></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="8">
<c-col :span="12"> <c-col :span="12">
<el-form-item label="Name" prop="infcon.nam"> <el-form-item label="Opening between" prop="infcon.opndatfrom" style="width: 100%">
<c-input v-model="model.infcon.nam" maxlength="40" placeholder="请输入Name"></c-input> <c-date-picker type="date" v-model="model.infcon.opndatfrom" value-format="yyyy-MM-dd"
style="width:100%" placeholder="请选择Opening between"></c-date-picker>
</el-form-item> </el-form-item>
</c-col> </c-col>
</el-row>
<el-row v-show="searchSlot.searchToggle">
<c-col :span="12"> <c-col :span="12">
<el-form-item label="Party Reference" prop="infcon.searef"> <el-form-item label="Open Date to" prop="infcon.opndatto" style="width: 100%">
<c-date-picker type="date" v-model="model.infcon.opndatto" value-format="yyyy-MM-dd"
style="width:100%" placeholder="请选择Open Date to"></c-date-picker>
</el-form-item>
</c-col>
</c-col>
<c-col :span="8">
<el-form-item label="Party Reference" prop="infcon.searef" style="width: 100%">
<c-input v-model="model.infcon.searef" maxlength="16" placeholder="请输入Party Reference"></c-input> <c-input v-model="model.infcon.searef" maxlength="16" placeholder="请输入Party Reference"></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col>
</el-row>
<c-col :span="12">
<el-form-item label="Release Status" prop="infcon.relflg"> <c-row v-show="searchSlot.searchToggle">
<c-select v-model="model.infcon.relflg" style="width:100%" placeholder="请选择Release Status"></c-select> <c-col :span="24">
<c-col :span="8">
<el-form-item label="Release Status" prop="infcon.relflg" style="width: 100%">
<!-- <c-select v-model="model.infcon.relflg" style="width: 100%" placeholder="请选择Release Status">
</c-select> -->
<c-select v-model="model.infcon.relflg" style="width: 100%" placeholder="请选择Release Status">
<el-option v-for="item in codes.relflg" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="8">
<c-col :span="12"> <el-form-item label="Handling Type" prop="infcon.hndtyp" style="width: 100%">
<el-form-item label="Handling Type" prop="infcon.hndtyp"> <!-- <c-select v-model="model.infcon.hndtyp" style="width: 100%" placeholder="请选择Handling Type">
<c-select v-model="model.infcon.hndtyp" style="width:100%" placeholder="请选择Handling Type"></c-select> </c-select> -->
<c-select v-model="model.infcon.hndtyp" style="width: 100%" placeholder="请选择Handling Type">
<el-option v-for="item in codes.hndtyp" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="8">
<el-form-item label="Select Single Party" prop="infcon.pty.extkey"> <el-form-item label="Select Single Party" prop="infcon.pty.extkey" style="width: 100%">
<c-input v-model="model.infcon.pty.extkey" maxlength="24" placeholder="请输入Select Single Party"></c-input> <c-input v-model="model.infcon.pty.extkey" maxlength="24" placeholder="请输入Select Single Party">
</c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col>
<c-col :span="12"> <c-col :span="24">
<el-form-item label="External Visible Name" prop="infcon.pty.nam"> <c-col :span="8">
<c-input v-model="model.infcon.pty.nam" maxlength="40" placeholder="请输入External Visible Name"></c-input> <el-form-item label="External Visible Name" prop="infcon.pty.nam" style="width: 100%">
<c-input v-model="model.infcon.pty.nam" maxlength="40" placeholder="请输入External Visible Name">
</c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="8">
<el-form-item label="Party Name/BIC" prop="infcon.seapty"> <el-form-item label="Party Name/BIC" prop="infcon.seapty" style="width: 100%">
<c-input v-model="model.infcon.seapty" maxlength="24" placeholder="请输入Party Name/BIC"></c-input> <c-input v-model="model.infcon.seapty" maxlength="24" placeholder="请输入Party Name/BIC"></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="8">
<c-col :span="12"> <el-form-item label="Role" prop="infcon.searol" style="width: 100%">
<el-form-item label="Role" prop="infcon.searol"> <!-- <c-select v-model="model.infcon.searol" style="width: 100%" placeholder="请选择Role">
<c-select v-model="model.infcon.searol" style="width:100%" placeholder="请选择Role"></c-select> </c-select> -->
<c-select v-model="model.infcon.payrol" style="width: 100%" placeholder="请选择Role">
<el-option v-for="item in codes.payrol" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12">
<el-form-item label="Opening between" prop="infcon.opndatfrom">
<c-date-picker type="date" v-model="model.infcon.opndatfrom" value-format="yyyy-MM-dd" style="width:100%" placeholder="请选择Opening between"></c-date-picker>
</el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :sapn="24">
<el-form-item label="Open Date to" prop="infcon.opndatto"> <c-col :span="8">
<c-date-picker type="date" v-model="model.infcon.opndatto" value-format="yyyy-MM-dd" style="width:100%" placeholder="请选择Open Date to"></c-date-picker> <el-form-item label="Name" prop="infcon.nam" style="width: 100%">
<c-input v-model="model.infcon.nam" maxlength="40" placeholder="请输入Name"></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="8">
<el-form-item label="User ID" prop="infcon.usr.extkey"> <el-form-item label="User ID" prop="infcon.usr.extkey" style="width: 100%">
<c-input v-model="model.infcon.usr.extkey" maxlength="8" placeholder="请输入User ID"></c-input> <c-input v-model="model.infcon.usr.extkey" maxlength="8" placeholder="请输入User ID"></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="8">
<el-form-item label="Status" prop="infcon.seasta" style="width: 100%">
<!-- <c-select v-model="model.infcon.seasta" style="width: 100%" placeholder="请选择Status">
</c-select> -->
<c-select v-model="model.infcon.seasta" style="width: 100%" placeholder="请选择Status">
<el-option v-for="item in codes.seasta" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12"> </c-col>
<el-form-item label="Status" prop="infcon.seasta">
<c-select v-model="model.infcon.seasta" style="width:100%" placeholder="请选择Status"></c-select>
<c-col :span="24">
<c-col :span="8">
<el-form-item label="Currency" prop="infcon.curtxt1" style="width: 100%">
<c-select v-model="model.infcon.curtxt1" style="width: 100%" placeholder="请选择Currency">
<el-option v-for="item in codes.curtxt1" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="8">
<el-form-item label="Currency" prop="infcon.seacur"> <el-form-item label="是否显示查询码" prop="infcon.cxmflg" style="width: 100%">
<c-select v-model="model.infcon.seacur" style="width:100%" placeholder="请选择Currency"></c-select> <!-- <c-select v-model="model.infcon.cxmflg" style="width: 100%" placeholder="请选择是否显示查询码">
</c-select> -->
<c-select v-model="model.infcon.cxmflg" style="width: 100%" placeholder="请选择是否显示查询码">
<el-option v-for="item in codes.cxmflg" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="8">
<c-col :span="12"> <c-col :span="12">
<el-form-item label="Amount between" prop="infcon.seaamtfr"> <el-form-item label="Amount between" prop="infcon.seaamtfr" style="width: 100%">
<c-input v-model="model.infcon.seaamtfr" placeholder="请输入Amount between"></c-input> <c-input v-model="model.infcon.seaamtfr" placeholder="请输入Amount between"></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="12">
<el-form-item label="Amount to" prop="infcon.seaamtto"> <el-form-item label="Amount to" prop="infcon.seaamtto" style="width: 100%">
<c-input v-model="model.infcon.seaamtto" placeholder="请输入Amount to"></c-input> <c-input v-model="model.infcon.seaamtto" placeholder="请输入Amount to"></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col>
<c-col :span="12">
<el-form-item label="是否显示查询码" prop="infcon.cxmflg">
<c-select v-model="model.infcon.cxmflg" style="width:100%" placeholder="请选择是否显示查询码"></c-select>
</el-form-item>
</c-col> </c-col>
<c-col :span="12"> <!-- <c-col :span="12">
<el-form-item label="Payment Condition" prop="seadoctypcod"> <el-form-item label="display stream" prop="infbut.dspstm">
<c-select v-model="model.seadoctypcod" style="width:100%" placeholder="请选择Payment Condition"></c-select> <c-input v-model="model.infbut.dspstm" placeholder="请输入display stream"></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col> -->
</c-row>
</el-form>
</template>
</c-list-search>
<c-col :span="24" style="margin-top:15px">
<c-col :span="12"> <c-col :span="12">
<el-form-item label="Goods Code" prop="seagodcod"> <el-form-item label="Payment Condition" prop="seadoctypcod" style="width: 100%">
<c-select v-model="model.seagodcod" style="width:100%" placeholder="请选择Goods Code"></c-select> <!-- <c-select v-model="model.seadoctypcod" style="width: 100%" placeholder="请选择Payment Condition">
</c-select> -->
<c-select v-model="model.infcon.seadoctypcod" style="width: 100%" placeholder="请选择Payment Condition">
<el-option v-for="item in codes.seadoctypcod" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="12">
<el-form-item label="display stream" prop="infbut.dspstm"> <el-form-item label="Goods Code" prop="godcod" style="width: 100%">
<c-input v-model="model.infbut.dspstm" placeholder="请输入display stream"></c-input> <c-select v-model="model.infcon.godcod" style="width:100%" placeholder="请选择Goods Code">
<el-option v-for="item in codes.godcod" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
</el-row>
</el-form> </c-col>
</template>
</c-list-search>
<div style="margin-top:20px;"> <!-- <div style="margin-top:20px;">
<c-button size="small" type="primary" @click="onInfbutSearow">&Search</c-button> <c-button size="small" type="primary" @click="onInfbutSearow">&Search</c-button>
<c-button size="small" type="primary" @click="onInfbutDsp">D&isplay</c-button> <c-button size="small" type="primary" @click="onInfbutDsp">D&isplay</c-button>
<c-button size="small" type="primary" @click="onInfbutUserow">&Use</c-button> <c-button size="small" type="primary" @click="onInfbutUserow">&Use</c-button>
<c-button size="small" type="primary" @click="onInfbutClr">&Clear</c-button> <c-button size="small" type="primary" @click="onInfbutClr">&Clear</c-button>
<c-button size="small" type="primary" @click="onInfbutButprt">导Excel</c-button> <c-button size="small" type="primary" @click="onInfbutButprt">导Excel</c-button>
<c-button size="small" type="primary" @click="onInfbutExi">E&xit</c-button></c-col> <c-button size="small" type="primary" @click="onInfbutExi">E&xit</c-button></c-col>
</div> </div> -->
<el-row>
<c-col :span="24">
<c-istream-table :list="stmData.data" :columns="stmData.columns"> <c-istream-table :list="stmData.data" :columns="stmData.columns">
<el-table-column prop="op" label="OP" width="100"> <el-table-column fixed="right" prop="op" label="操作" width="150px">
<template slot="header">
<c-col :span="11" style="text-align: left"><span>操作</span></c-col>
<c-col :span="12" style="text-align: right">
<c-button icon="el-icon-s-tools"></c-button>
</c-col>
</template>
<template slot-scope="scope">
<el-popover placement="top-start" title="历史信息" width="800" trigger="click"
:ref="'popover_' + scope.row.IDX">
<div style=" text-align: right; margin-top: -30px; margin-right: 5px; font-size: 16px;">
<span class="el-icon-close" @click="closeTrn('popover_' + scope.row.IDX)" />
</div>
<c-istream-table :list="trnData.data" :columns="trnData.columns">
<el-table-column prop="op" label="操作" width="0">
<template slot-scope="scope"> <template slot-scope="scope">
<a href="javascript:void(0)" @click="continueEdit(scope.row)">继续编辑</a></template> <c-button style="margin-left: 0" size="small" @click="display(scope.row['INR'])">详情</c-button>
</template>
</el-table-column> </el-table-column>
</c-istream-table> </c-istream-table>
</el-row> <c-button style="margin-left: 0" size="small" @click="getTrnInfo(scope.$index, scope.row)"
slot="reference">详情</c-button>
</el-popover>
<c-button style="margin-left: 0" size="small" type="primary" @click="getButtons(scope.row['Reference'])">处理
</c-button>
</template>
</el-table-column>
</c-istream-table>
</c-col>
</div> </div>
</template> </template>
<script> <script>
...@@ -143,45 +231,123 @@ import commonProcess from "~/mixin/commonProcess" ...@@ -143,45 +231,123 @@ import commonProcess from "~/mixin/commonProcess"
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable"
import Event from "~/model/Infbcd/Event" import Event from "~/model/Infbcd/Event"
export // import BusNavbar from "./BusNavbar.vue";
default { export
inject: default {
['root'], inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess],
data() { data() {
return { return {
trnData: {
columns: [
'1 1 "编号" 200',
'2 2 "交易名称" 120',
// '3 3 "日期" 200',
{ index: 3, position: 3, width: 110, pattern: 'date', label: '日期' },
// '4 4 "状态" 50',
{ index: 4, position: 4, width: 100, pattern: 'code', label: '状态', code: this.codes.relstaEN },
'5 5 "币种" 80',
'6 6 "金额" 110',
],
data: [],
},
stmData: { stmData: {
columns: [ columns: [
"1 1 \"Reference\" 100 ", "1 1 \"Reference\" 150",
"7 2\"Party Number\" 100", "2 2 \"Resp. User\" 100",
"10 3 \"Party Number\" 110", "3 3 \"Opened\" 200 4 7",
"3 4 \"Party Number\" 100", "4 4 \"Closed\" 200 4 7",
"4 5 \" Opened\" 101 20 DateTime 1", "5 5 \"Goods Code\" 130 1 0 1 GODCOD",
"4 5 \" closed\" 101 ", "6 6\"分行名称\" 136",
"5 6 \" Cur\" 100", "7 7 \"Pta.No\" 130",
"5 6 \" Cur\" 100", "8 8 \"Party Number\" 150",
"6 7 \"Doc.Account\" 100", "9 9 \"Drawee\" 300",
"6 7 \"Open Account\" 100", "10 10 \"Drawee CN\" 130",
"2 1 \"Dept User\" 100 ", "11 11 \"Party Number\" 150",
"6 1 \"分行名称\" 100 ", "12 12 \"Drawer\" 100",
"8 2\"Drawee\" 100", "13 13 \"Party Number\" 150",
"9 2\"Drawee CN\" 100", "14 14 \"Remitting Bank\" 200",
"11 3 \"Drawer\" 110", "15 15 \"Cur\" 50",
"2 3 \"Pta.No\" 110", "16 16 \"Doc.Amount\" 100 2 8 1 15",
"3 4 \"Remitting Bank\" 100", "17 17 \"Cur\" 50",
"3 4 \"Goods Code\" 100", "18 18 \"Open Amount\" 100 2 8 1 17",
], ],
data: [] data: []
} }
} }
}, },
methods: {...Event methods: {
...Event,
async getButtons(ownref) {
this.initdialog = true;
this.ownref = ownref
console.log("ownref:" + ownref);
setTimeout(() => {
this.$refs.childs.$emit("childmethods")
}, 10)
},
async onChoose(code) {
//跳转交易
this.$router.history.push("/business/" + code)
this.initdialog = false;
},
closeTrn(refId) {
this.$refs[refId].doClose();
},
async getTrnInfo(idx, row) {
this.model.infcon.objinr = row["INR"];
this.model.bcdgrp.rec.inr = row["INR"];
this.model.infcon.chksubcon = "X";
this.dialogTableVisible = true;
let rtnmsg = await this.executeDefault("infcon.chksubcon");
console.log(rtnmsg);
console.log(this.model.infcon.chksubcon);
if ((rtnmsg.respCode = SUCCESS)) {
this.trnData.data = rtnmsg.data.infcon_trnstm.rows;
console.log(this.trnData.data);
}
},
async getDitSelInfo(idx, row) {
//TD中选中行触发
var params = { selDst: "infbut.dspstm", selIds: [idx + 1] }
let rtnmsg = await this.executeRule("infbut.dspstm", params);
if (rtnmsg.respCode = SUCCESS) {
this.updateModel(rtnmsg.data);
// Utils.copyValueFromVO(this.model, rtnmsg.data);
//TD中点击display时触发
params = { selDst: "infbut.dsp", selIds: [idx + 1] }
let rtnmsgNew = await this.executeRule("infbut.dsp", params);
if (rtnmsgNew.respCode = SUCCESS) {
console.log(rtnmsgNew);
this.updateModel(rtnmsgNew.data);
let rtnmsgOitset = await this.executeDefault("mtabut.coninf.oitset.oit");
if (rtnmsgOitset.respCode = SUCCESS) {
Utils.copyValueFromVO(this.model, rtnmsgOitset.data);
}
}
}
//触发父组件中updateShowPanel 事件,修改index中showPanel ,控制 index中组件的显示和隐藏
this.$emit('updateShowPanel', true)
},
// toBotdav() {
// this.$router.history.push("/business/botdav")
// }
}, },
created: function() { created: function () {
} }
}</script> }</script>
<style></style> <style>
\ No newline at end of file </style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-col :span="12">
<c-checkbox v-model="model.infcon.setflg">show temporary settlement that already settled</c-checkbox>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.infcon.sepdelflg">show temporary settlement that already deleted</c-checkbox>
</c-col>
<c-col :span="12">
<el-form-item label="stream of SEPs" prop="infcon.sepstm">
<c-input v-model="model.infcon.sepstm" placeholder="请输入stream of SEPs"></c-input>
</el-form-item>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Infbcd/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
...@@ -9,11 +9,11 @@ ...@@ -9,11 +9,11 @@
<c-checkbox v-model="model.infcon.chktrnsta">only active transactions</c-checkbox> <c-checkbox v-model="model.infcon.chktrnsta">only active transactions</c-checkbox>
</c-col> </c-col>
<c-col :span="12"> <!-- <c-col :span="12">
<el-form-item label="stream for TRN to selected contract" prop="infcon.trnstm"> <el-form-item label="stream for TRN to selected contract" prop="infcon.trnstm">
<c-input v-model="model.infcon.trnstm" placeholder="请输入stream for TRN to selected contract"></c-input> <c-input v-model="model.infcon.trnstm" placeholder="请输入stream for TRN to selected contract"></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col> -->
<c-col :span="12"> <c-col :span="12">
<c-button size="small" type="primary" @click="onInfconButshw"> <c-button size="small" type="primary" @click="onInfconButshw">
......
<template> <template>
<div class="eContainer"> <div class="eContainer">
<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="tabClick"> <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
<!--PD000006 --> <!--PD000006 -->
<el-tab-pane label="Selection" name="infsea"> <el-tab-pane label="infsea" name="infsea">
<m-infsea :model="model" :codes="codes"/> <m-infsea :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000201 --> <!--PD000201 -->
<el-tab-pane label="shpdet" name="shpdet"> <el-tab-pane label="shpdet" name="shpdet">
<m-shpdet :model="model" :codes="codes"/> <m-shpdet :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000260 --> <!--PD000260 -->
<el-tab-pane label="ptyp" name="ptyp"> <el-tab-pane label="ptyp" name="ptyp">
<m-ptyp :model="model" :codes="codes"/> <m-ptyp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000291 --> <!--PD000291 -->
<el-tab-pane label="insttco" name="insttco"> <el-tab-pane label="insttco" name="insttco">
<m-insttco :model="model" :codes="codes"/> <m-insttco :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000019 --> <!--PD000019 -->
<el-tab-pane label="cbsinfp" name="cbsinfp"> <el-tab-pane label="cbsinfp" name="cbsinfp">
<m-cbsinfp :model="model" :codes="codes"/> <m-cbsinfp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000119 --> <!--PD000119 -->
<el-tab-pane label="smhinfp" name="smhinfp"> <el-tab-pane label="smhinfp" name="smhinfp">
<m-smhinfp :model="model" :codes="codes"/> <m-smhinfp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000185 --> <!--PD000185 -->
<el-tab-pane label="ordpan" name="ordpan"> <el-tab-pane label="ordpan" name="ordpan">
<m-ordpan :model="model" :codes="codes"/> <m-ordpan :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000028 --> <!--PD000028 -->
<el-tab-pane label="cbeinfp" name="cbeinfp"> <el-tab-pane label="cbeinfp" name="cbeinfp">
<m-cbeinfp :model="model" :codes="codes"/> <m-cbeinfp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000147 --> <!--PD000147 -->
<el-tab-pane label="liainfp" name="liainfp"> <el-tab-pane label="liainfp" name="liainfp">
<m-liainfp :model="model" :codes="codes"/> <m-liainfp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000001 --> <!--PD000001 -->
<el-tab-pane label="cmt100pel" name="cmt100pel"> <el-tab-pane label="cmt100pel" name="cmt100pel">
<m-cmt100pel :model="model" :codes="codes"/> <m-cmt100pel :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000001 --> <!--PD000001 -->
<el-tab-pane label="fecp" name="fecp"> <el-tab-pane label="fecp" name="fecp">
<m-fecp :model="model" :codes="codes"/> <m-fecp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000005 --> <!--PD000005 -->
<el-tab-pane label="difstm" name="difstm"> <el-tab-pane label="difstm" name="difstm">
<m-difstm :model="model" :codes="codes"/> <m-difstm :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000177 --> <!--PD000177 -->
<el-tab-pane label="gleinfp" name="gleinfp"> <el-tab-pane label="gleinfp" name="gleinfp">
<m-gleinfp :model="model" :codes="codes"/> <m-gleinfp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000013 --> <!--PD000013 -->
<el-tab-pane label="trnpan" name="trnpan"> <el-tab-pane label="trnpan" name="trnpan">
<m-trnpan :model="model" :codes="codes"/> <m-trnpan :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000130 --> <!--PD000130 -->
<el-tab-pane label="peninfp" name="peninfp"> <el-tab-pane label="peninfp" name="peninfp">
<m-peninfp :model="model" :codes="codes"/> <m-peninfp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000000 --> <!--PD000000 -->
<el-tab-pane label="coninfp" name="coninfp"> <el-tab-pane label="coninfp" name="coninfp">
<m-coninfp :model="model" :codes="codes"/> <m-coninfp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000003 --> <!--PD000003 -->
<el-tab-pane label="PD000003" name="infconp"> <el-tab-pane label="PD000003" name="infconp">
<m-infconp :model="model" :codes="codes"/> <m-infconp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000018 --> <!--PD000018 -->
<el-tab-pane label="PD000018" name="detp"> <el-tab-pane label="PD000018" name="detp">
<m-detp :model="model" :codes="codes"/> <m-detp :model="model" :codes="codes" />
</el-tab-pane> </c-tabs> </el-tab-pane>
</c-tabs>
</el-form> </el-form>
</div> </div>
</template> </template>
...@@ -124,35 +126,36 @@ import Infconp from "./Infconp" ...@@ -124,35 +126,36 @@ import Infconp from "./Infconp"
import Detp from "./Detp" import Detp from "./Detp"
export default { export default {
name: "Infbcd", name: "Infbcd",
components:{ components: {
"m-infsea" : Infsea, "m-infsea": Infsea,
"m-prtpan" : Prtpan, "m-prtpan": Prtpan,
"m-shpdet" : Shpdet, "m-shpdet": Shpdet,
"m-ptyp" : Ptyp, "m-ptyp": Ptyp,
"m-insttco" : Insttco, "m-insttco": Insttco,
"m-cbsinfp" : Cbsinfp, "m-cbsinfp": Cbsinfp,
"m-smhinfp" : Smhinfp, "m-smhinfp": Smhinfp,
"m-ordpan" : Ordpan, "m-ordpan": Ordpan,
"m-cbeinfp" : Cbeinfp, "m-cbeinfp": Cbeinfp,
"m-liainfp" : Liainfp, "m-liainfp": Liainfp,
"m-cmt100pel" : Cmt100pel, "m-cmt100pel": Cmt100pel,
"m-fecp" : Fecp, "m-fecp": Fecp,
"m-difstm" : Difstm, "m-difstm": Difstm,
"m-docedip" : Docedip, "m-docedip": Docedip,
"m-prtpan" : Prtpan, "m-prtpan": Prtpan,
"m-gleinfp" : Gleinfp, "m-gleinfp": Gleinfp,
"m-trnpan" : Trnpan, "m-trnpan": Trnpan,
"m-peninfp" : Peninfp, "m-peninfp": Peninfp,
"m-coninfp" : Coninfp, "m-coninfp": Coninfp,
"m-infconp" : Infconp, "m-infconp": Infconp,
"m-detp" : Detp, }, "m-detp": Detp,
},
provide() { provide() {
return { return {
root: this root: this
} }
}, },
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){ data() {
return { return {
tabVal: "infsea", tabVal: "infsea",
trnName: "infbcd", trnName: "infbcd",
...@@ -162,28 +165,26 @@ export default { ...@@ -162,28 +165,26 @@ export default {
pattern: Pattern, pattern: Pattern,
rules: null, rules: null,
codes: { codes: {
...CodeTable
}, },
} }
}, },
methods:{ methods: {
tabClick(){ tabClick() {
} }
}, },
created:async function(){ created: async function () {
console.log("进入infbcd交易"); console.log("进入infbcd交易");
let rtnmsg = await this.init({}) let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
this.updateModel(rtnmsg.data) this.updateModel(rtnmsg.data)
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
} }
} }
</script> </script>
<style> <style>
</style> </style>
<template>
<div class="busnavbar">
<div class="busnavbar-items">
<c-button style="margin-left:7px;" size="medium" type="primary" class="medium_bcs" 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.hotsub1")
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 = this.ownref
console.log("ownref:" + this.ownref );
let rtnmsg = await this.executeRule("didgrp.rec.ownref");//didgrp_rec_ownref
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
let j = 0;
let m = 0;
const buttonIndex = ['信用证修改','减额修改接受','到单','修改通知行']
for(let i=0; i < length; i++){
//获取数组中每行的数据
if(!( btnStr[i].indexOf("保证金") >= 0) && !(btnStr[i].indexOf("开立信用证") >= 0)){
let arr = btnStr[i].split("\t");
let newList = {
code:arr[0],
label:arr[1],
isDis:arr[2],
title:arr[3]
}
m++;
j = buttonIndex.indexOf(arr[1].replace(/(^\s*)|(\s*$)/g, ""));
if(j<0){
j = m;
}
//添加到navcode数组中
this.navcode.splice(j,0,newList)
}
}
}else{
this.navcode = []
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
})
})
}
}
</script>
<style>
</style>
...@@ -41,14 +41,22 @@ ...@@ -41,14 +41,22 @@
<c-col :span="24"> <c-col :span="24">
<c-col :span="8"> <c-col :span="8">
<el-form-item label="Release Status" prop="infcon.relflg" style="width: 100%"> <el-form-item label="Release Status" prop="infcon.relflg" style="width: 100%">
<!-- <c-select v-model="model.infcon.relflg" style="width: 100%" placeholder="请选择Release Status">
</c-select> -->
<c-select v-model="model.infcon.relflg" style="width: 100%" placeholder="请选择Release Status"> <c-select v-model="model.infcon.relflg" style="width: 100%" placeholder="请选择Release Status">
<el-option v-for="item in codes.relflg" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="8"> <c-col :span="8">
<el-form-item label="Handling Type" prop="infcon.hndtyp" style="width: 100%"> <el-form-item label="Handling Type" prop="infcon.hndtyp" style="width: 100%">
<!-- <c-select v-model="model.infcon.hndtyp" style="width: 100%" placeholder="请选择Handling Type">
</c-select> -->
<c-select v-model="model.infcon.hndtyp" style="width: 100%" placeholder="请选择Handling Type"> <c-select v-model="model.infcon.hndtyp" style="width: 100%" placeholder="请选择Handling Type">
<el-option v-for="item in codes.hndtyp" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -77,7 +85,11 @@ ...@@ -77,7 +85,11 @@
<c-col :span="8"> <c-col :span="8">
<el-form-item label="Role" prop="infcon.searol" style="width: 100%"> <el-form-item label="Role" prop="infcon.searol" style="width: 100%">
<c-select v-model="model.infcon.searol" style="width: 100%" placeholder="请选择Role"> <!-- <c-select v-model="model.infcon.searol" style="width: 100%" placeholder="请选择Role">
</c-select> -->
<c-select v-model="model.infcon.payrol" style="width: 100%" placeholder="请选择Role">
<el-option v-for="item in codes.payrol" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -98,7 +110,11 @@ ...@@ -98,7 +110,11 @@
<c-col :span="8"> <c-col :span="8">
<el-form-item label="Status" prop="infcon.seasta" style="width: 100%"> <el-form-item label="Status" prop="infcon.seasta" style="width: 100%">
<!-- <c-select v-model="model.infcon.seasta" style="width: 100%" placeholder="请选择Status">
</c-select> -->
<c-select v-model="model.infcon.seasta" style="width: 100%" placeholder="请选择Status"> <c-select v-model="model.infcon.seasta" style="width: 100%" placeholder="请选择Status">
<el-option v-for="item in codes.seasta" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -106,15 +122,21 @@ ...@@ -106,15 +122,21 @@
<c-col :span="24"> <c-col :span="24">
<c-col :span="8"> <c-col :span="8">
<el-form-item label="Currency" prop="infcon.seacur" style="width: 100%"> <el-form-item label="Currency" prop="infcon.curtxt1" style="width: 100%">
<c-select v-model="model.infcon.seacur" style="width: 100%" placeholder="请选择Currency"> <c-select v-model="model.infcon.curtxt1" style="width: 100%" placeholder="请选择Currency">
<el-option v-for="item in codes.curtxt1" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="8"> <c-col :span="8">
<el-form-item label="是否显示查询码" prop="infcon.cxmflg" style="width: 100%"> <el-form-item label="是否显示查询码" prop="infcon.cxmflg" style="width: 100%">
<!-- <c-select v-model="model.infcon.cxmflg" style="width: 100%" placeholder="请选择是否显示查询码">
</c-select> -->
<c-select v-model="model.infcon.cxmflg" style="width: 100%" placeholder="请选择是否显示查询码"> <c-select v-model="model.infcon.cxmflg" style="width: 100%" placeholder="请选择是否显示查询码">
<el-option v-for="item in codes.cxmflg" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -144,11 +166,6 @@ ...@@ -144,11 +166,6 @@
</el-form> </el-form>
</template> </template>
</c-list-search> </c-list-search>
<!-- <c-col :span="2"> <!-- <c-col :span="2">
<c-button size="small" type="primary" @click="onInfbutDsp" class="btn"> <c-button size="small" type="primary" @click="onInfbutDsp" class="btn">
Display Display
...@@ -183,7 +200,11 @@ ...@@ -183,7 +200,11 @@
<c-col :span="8" style="margin-top:15px"> <c-col :span="8" style="margin-top:15px">
<el-form-item label="Payment Condition" prop="seadoctypcod" style="width: 100%"> <el-form-item label="Payment Condition" prop="seadoctypcod" style="width: 100%">
<c-select v-model="model.seadoctypcod" style="width: 100%" placeholder="请选择Payment Condition"> <!-- <c-select v-model="model.seadoctypcod" style="width: 100%" placeholder="请选择Payment Condition">
</c-select> -->
<c-select v-model="model.infcon.seadoctypcod" style="width: 100%" placeholder="请选择Payment Condition">
<el-option v-for="item in codes.seadoctypcod" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -226,7 +247,7 @@ ...@@ -226,7 +247,7 @@
<el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body> <el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
<div class="m-list-btns"> <div class="m-list-btns">
<m-busbtn ref="childs" :ownref="ownref" :model="infbodModel" trnCode="infbod" @onChoose="onChoose">11</m-busbtn> <m-busbtn ref="childs" :ownref="ownref" :model="botselModel" trnCode="botsel" @onChoose="onChoose">11</m-busbtn>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
...@@ -238,8 +259,8 @@ import commonProcess from "~/mixin/commonProcess"; ...@@ -238,8 +259,8 @@ import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Event from "~/model/Infbod/Event"; import Event from "~/model/Infbod/Event";
import InfbodModel from "~/model/Infbod" import BotselModel from "~/model/Botsel"
import BusNavbar from "~/BusNavbar.vue"; import BusNavbar from "~/views/Public/BusNavbar";
export default { export default {
inject: ["root"], inject: ["root"],
...@@ -248,7 +269,7 @@ export default { ...@@ -248,7 +269,7 @@ export default {
components: { "m-busbtn": BusNavbar }, components: { "m-busbtn": BusNavbar },
data() { data() {
return { return {
infbodModel: new InfbodModel().data, botselModel: new BotselModel().data,
ownref: "", ownref: "",
initdialog: false, initdialog: false,
dialogTableVisible: false, dialogTableVisible: false,
......
<template> <template>
<div class="eContainer"> <div class="eContainer">
<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"> <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--PD000006 --> <!--PD000006 -->
<el-tab-pane label="infsea" name="infsea"> <el-tab-pane label="infsea" name="infsea">
<m-infsea :model="model" :codes="codes"/> <m-infsea :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000262 --> <!--PD000262 -->
<el-tab-pane label="ovwp" name="ovwp"> <el-tab-pane label="ovwp" name="ovwp">
<m-ovwp :model="model" :codes="codes"/> <m-ovwp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000266 --> <!--PD000266 -->
<el-tab-pane label="ptyp" name="ptyp"> <el-tab-pane label="ptyp" name="ptyp">
<m-ptyp :model="model" :codes="codes"/> <m-ptyp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000280 --> <!--PD000280 -->
<el-tab-pane label="instrecp" name="instrecp"> <el-tab-pane label="instrecp" name="instrecp">
<m-instrecp :model="model" :codes="codes"/> <m-instrecp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000049 --> <!--PD000049 -->
<el-tab-pane label="inst" name="inst"> <el-tab-pane label="inst" name="inst">
<m-inst :model="model" :codes="codes"/> <m-inst :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000000 --> <!--PD000000 -->
<el-tab-pane label="coninfp" name="coninfp"> <el-tab-pane label="coninfp" name="coninfp">
<m-coninfp :model="model" :codes="codes"/> <m-coninfp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000013 --> <!--PD000013 -->
<el-tab-pane label="trnpan" name="trnpan"> <el-tab-pane label="trnpan" name="trnpan">
<m-trnpan :model="model" :codes="codes"/> <m-trnpan :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000019 --> <!--PD000019 -->
<el-tab-pane label="cbsinfp" name="cbsinfp"> <el-tab-pane label="cbsinfp" name="cbsinfp">
<m-cbsinfp :model="model" :codes="codes"/> <m-cbsinfp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000028 --> <!--PD000028 -->
<el-tab-pane label="cbeinfp" name="cbeinfp"> <el-tab-pane label="cbeinfp" name="cbeinfp">
<m-cbeinfp :model="model" :codes="codes"/> <m-cbeinfp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000111 --> <!--PD000111 -->
<el-tab-pane label="fepinfp" name="fepinfp"> <el-tab-pane label="fepinfp" name="fepinfp">
<m-fepinfp :model="model" :codes="codes"/> <m-fepinfp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000162 --> <!--PD000162 -->
<el-tab-pane label="sepinfp" name="sepinfp"> <el-tab-pane label="sepinfp" name="sepinfp">
<m-sepinfp :model="model" :codes="codes"/> <m-sepinfp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000177 --> <!--PD000177 -->
<el-tab-pane label="gleinfp" name="gleinfp"> <el-tab-pane label="gleinfp" name="gleinfp">
<m-gleinfp :model="model" :codes="codes"/> <m-gleinfp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000119 --> <!--PD000119 -->
<el-tab-pane label="smhinfp" name="smhinfp"> <el-tab-pane label="smhinfp" name="smhinfp">
<m-smhinfp :model="model" :codes="codes"/> <m-smhinfp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000130 --> <!--PD000130 -->
<el-tab-pane label="peninfp" name="peninfp"> <el-tab-pane label="peninfp" name="peninfp">
<m-peninfp :model="model" :codes="codes"/> <m-peninfp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000147 --> <!--PD000147 -->
<el-tab-pane label="liainfp" name="liainfp"> <el-tab-pane label="liainfp" name="liainfp">
<m-liainfp :model="model" :codes="codes"/> <m-liainfp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000005 --> <!--PD000005 -->
<el-tab-pane label="prtpan" name="prtpan"> <el-tab-pane label="prtpan" name="prtpan">
<m-prtpan :model="model" :codes="codes"/> <m-prtpan :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000185 --> <!--PD000185 -->
<el-tab-pane label="ordpan" name="ordpan"> <el-tab-pane label="ordpan" name="ordpan">
<m-ordpan :model="model" :codes="codes"/> <m-ordpan :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
</c-tabs> </c-tabs>
</el-form> </el-form>
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable"
import Infbod from "~/model/Infbod" import Infbod from "~/model/Infbod"
...@@ -120,24 +122,24 @@ import Ordpan from "./Ordpan" ...@@ -120,24 +122,24 @@ import Ordpan from "./Ordpan"
export default { export default {
name: "Infbod", name: "Infbod",
components:{ components: {
"m-infsea" : Infsea, "m-infsea": Infsea,
"m-ovwp" : Ovwp, "m-ovwp": Ovwp,
"m-ptyp" : Ptyp, "m-ptyp": Ptyp,
"m-instrecp" : Instrecp, "m-instrecp": Instrecp,
"m-inst" : Inst, "m-inst": Inst,
"m-coninfp" : Coninfp, "m-coninfp": Coninfp,
"m-trnpan" : Trnpan, "m-trnpan": Trnpan,
"m-cbsinfp" : Cbsinfp, "m-cbsinfp": Cbsinfp,
"m-cbeinfp" : Cbeinfp, "m-cbeinfp": Cbeinfp,
"m-fepinfp" : Fepinfp, "m-fepinfp": Fepinfp,
"m-sepinfp" : Sepinfp, "m-sepinfp": Sepinfp,
"m-gleinfp" : Gleinfp, "m-gleinfp": Gleinfp,
"m-smhinfp" : Smhinfp, "m-smhinfp": Smhinfp,
"m-peninfp" : Peninfp, "m-peninfp": Peninfp,
"m-liainfp" : Liainfp, "m-liainfp": Liainfp,
"m-prtpan" : Prtpan, "m-prtpan": Prtpan,
"m-ordpan" : Ordpan, "m-ordpan": Ordpan,
}, },
provide() { provide() {
return { return {
...@@ -145,7 +147,7 @@ export default { ...@@ -145,7 +147,7 @@ export default {
} }
}, },
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){ data() {
return { return {
tabVal: "infsea", tabVal: "infsea",
trnName: "infbod", trnName: "infbod",
...@@ -155,33 +157,31 @@ export default { ...@@ -155,33 +157,31 @@ export default {
pattern: Pattern, pattern: Pattern,
rules: null, rules: null,
codes: { codes: {
...CodeTable
}, },
} }
}, },
methods:{ methods: {
myTabClick(tab){ myTabClick(tab) {
this.tabClick(tab) this.tabClick(tab)
/** /**
* do it yourself * do it yourself
**/ **/
} }
}, },
created:async function(){ created: async function () {
console.log("进入infbod交易"); console.log("进入infbod交易");
let rtnmsg = await this.init({}) let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
this.updateModel(rtnmsg.data) this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑 // TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
} }
} }
</script> </script>
<style> <style>
</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