Commit 52b58953 by jianglong

修改INFBPD及BPD业务处理交易入口

parent 369395f2
...@@ -38,6 +38,7 @@ export default class Bptsel{ ...@@ -38,6 +38,7 @@ export default class Bptsel{
}, },
}, },
cfgfil:{ cfgfil:{
btnstm:"", //按钮数据
bitmap:"", // Bitmap for folder .cfgfil.bitmap bitmap:"", // Bitmap for folder .cfgfil.bitmap
regside1:"", // Regside .cfgfil.regside1 regside1:"", // Regside .cfgfil.regside1
regside2:"", // Regside .cfgfil.regside2 regside2:"", // Regside .cfgfil.regside2
......
...@@ -2,124 +2,118 @@ import Api from "~/service/Api" ...@@ -2,124 +2,118 @@ 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() {
}, let rtnmsg = await this.executeRule("infbut.dsp")
async onInfbutDsp(){ if (rtnmsg.respCode == SUCCESS) {
let rtnmsg = await this.executeRule("infbut.dsp") //TODO 处理数据逻辑
if(rtnmsg.respCode == SUCCESS)
{
//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 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 onFiapDet() {
async onFiapDet(){ let rtnmsg = await this.executeRule("fiap.det")
let rtnmsg = await this.executeRule("fiap.det") 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 onInfconButshword() {
async handleSearch() { let rtnmsg = await this.executeRule("infcon.butshword")
let rtnmsg = await this.executeRule("infbut.searow") if (rtnmsg.respCode == SUCCESS) {
if(rtnmsg.respCode == SUCCESS) //TODO 处理数据逻辑
{
this.stmData.data = rtnmsg.data.infbut_dspstm.rows; }
} else {
else this.$notify.error({ title: '错误', message: '服务请求失败!' });
{ }
this.$notify.error({title: '错误',message: '服务请求失败!'}); },
} async handleReset() {
},
},
async handleSearch() {
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: '服务请求失败!' });
}
},
} }
\ No newline at end of file
...@@ -31,6 +31,11 @@ import Letopn from "./Letopn" ...@@ -31,6 +31,11 @@ import Letopn from "./Letopn"
import Letame from "./Letame" import Letame from "./Letame"
import Letrsv from './Letrsv' import Letrsv from './Letrsv'
import Infled from './Infled' import Infled from './Infled'
import Bptsel from './Bptsel'
import Bptopn from './Bptopn'
//import Bptset from './Bptset'
//import Bptame from './Bptame'
//import Bptcrf from './Bptcrf'
import Bptcan from './Bptcan' import Bptcan from './Bptcan'
import Sptrel from "./Sptrel" import Sptrel from "./Sptrel"
...@@ -236,7 +241,12 @@ const BusRouter = [ ...@@ -236,7 +241,12 @@ const BusRouter = [
{ path: 'letrsv', component: Letrsv, name: 'Letrsv', meta: { title: '出口信用证补通知' } }, { path: 'letrsv', component: Letrsv, name: 'Letrsv', meta: { title: '出口信用证补通知' } },
{ path: 'letdrv', component: Letdrv, name: 'Letdrv', meta: { title: '出口信用证出口收单' } }, { path: 'letdrv', component: Letdrv, name: 'Letdrv', meta: { title: '出口信用证出口收单' } },
{ path: 'infled', component: Infled, name: 'Infled', meta: { title: '出口信用证交易查询' } }, { path: 'infled', component: Infled, name: 'Infled', meta: { title: '出口信用证交易查询' } },
{ path: 'Bptcan', component: Bptcan, name: 'Bptcan', meta: { title: '出口融资注销' } },
{ path: 'bptsel', component: Bptsel, name: 'Bptsel', meta: { title: '出口融资入口交易' } },
{ path: 'bptopn', component: Bptopn, name: 'Bptopn', meta: { title: '出口融资放款' } },
{ path: 'bptcan', component: Bptcan, name: 'Bptcan', meta: { title: '出口融资注销' } },
{ path: 'betacc', component: Betacc, name: 'Betacc', meta: { title: '出口信用证单据承兑' } }, { path: 'betacc', component: Betacc, name: 'Betacc', meta: { title: '出口信用证单据承兑' } },
{ path: 'betrcl', component: Betrcl, name: 'Betrcl', meta: { title: '出口信用证单据索汇' } }, { path: 'betrcl', component: Betrcl, name: 'Betrcl', meta: { title: '出口信用证单据索汇' } },
{ path: 'betrcl', component: Betrcl, name: 'Betrcl', meta: { title: '出口信用证单据出口单据索汇' } }, { path: 'betrcl', component: Betrcl, name: 'Betrcl', meta: { title: '出口信用证单据出口单据索汇' } },
......
<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 Bptsel from "~/model/Bptsel"
import commonProcess from "~/mixin/commonProcess"
export default {
props:["ownref"],
components:{
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
trnName:'bptsel',
model:new Bptsel().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.bpdgrp.rec.ownref = 'KZ3500210540AA'
this.model.bpdgrp.rec.ownref = this.ownref
console.log("ownref:" + this.ownref );
// let rtnmsg = await this.executeRule("bpdgrp.rec.ownref");//bpdgrp_rec_ownref
let rtnmsg0 = await this.executeRule("bpdgrp.rec.ownref");//cfgfil.hotreg3
if(rtnmsg0.respCode == SUCCESS){
this.updateModel(rtnmsg0.data)
let rtnmsg = await this.executeRule("cfgfil.hotreg1");//cfgfil.hotreg3
if(rtnmsg.respCode == SUCCESS){
//重置数组
this.navcode = []
this.updateModel(rtnmsg.data)
//this.model.cfgfil.btnstm = rtnmsg.data.cfgfil_btnstm.rows
//给inr赋值,后面弹窗里面的按钮请求会用到
//this.model.bpdgrp.rec.inr = rtnmsg.data.bpdgrp_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>
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<el-form <c-list-search @form-reset="handleReset" @form-search="handleSearch">
class="m-table-search-form" <template v-slot="searchSlot">
ref="paramsForm" <el-form
:inline="true" class="m-table-search-form"
label-position="right" ref="paramsForm"
label-width="100px" :inline="true"
size="small" label-position="right"
> label-width="110px"
<c-row> size="small"
<c-col :span="24"> >
<c-col :span="8"> <el-row>
<el-form-item <c-col :span="24">
label="Own Reference" <c-col :span="8">
prop="infcon.seaownref" <el-form-item
style="width: 100%" label="Own Reference"
> prop="infcon.seaownref"
<c-input
v-model="model.infcon.seaownref"
maxlength="16"
placeholder="请输入Own Reference"
></c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item
label="Opening"
prop="infcon.opndatfrom"
style="width: 100%"
>
<c-col :span="11">
<c-date-picker
type="date"
value-format="yyyy-MM-dd"
v-model="model.infcon.opndatfrom"
style="width: 100%" style="width: 100%"
placeholder="请选择" >
></c-date-picker> <c-input
</c-col> v-model="model.infcon.seaownref"
<c-col :span="2" style="text-align: center"> maxlength="16"
<label style="display: inline-block; width: 100%">-</label> placeholder="请输入Own Reference"
></c-input>
</el-form-item>
</c-col> </c-col>
<c-col :span="11">
<c-date-picker <c-col :span="8">
type="date" <el-form-item
value-format="yyyy-MM-dd" label="Opening"
v-model="model.infcon.opndatto" prop="infcon.opndatfrom"
style="width: 100%" style="width: 100%"
placeholder="请选择" >
></c-date-picker> <c-col :span="11">
<c-date-picker
type="date"
value-format="yyyy-MM-dd"
v-model="model.infcon.opndatfrom"
style="width: 100%"
placeholder="请选择"
></c-date-picker>
</c-col>
<c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">-</label>
</c-col>
<c-col :span="11">
<c-date-picker
type="date"
value-format="yyyy-MM-dd"
v-model="model.infcon.opndatto"
style="width: 100%"
placeholder="请选择"
></c-date-picker>
</c-col>
</el-form-item>
</c-col> </c-col>
</el-form-item>
</c-col>
<c-col :span="8"> <c-col :span="8">
<el-form-item label="Name" prop="infcon.nam" style="width: 100%"> <el-form-item
<c-input label="Name"
v-model="model.infcon.nam" prop="infcon.nam"
maxlength="40" style="width: 100%"
placeholder="请输入Name" >
></c-input> <c-input
</el-form-item> v-model="model.infcon.nam"
</c-col> maxlength="40"
</c-col> placeholder="请输入Name"
</c-row> ></c-input>
</el-form-item>
</c-col>
</c-col>
</el-row>
<!-- </template> --> <el-row v-show="searchSlot.searchToggle">
<c-col <c-col :span="24">
:span="24" <c-col :span="8">
style="text-align: right; height: 36.8px" <el-form-item
v-if="searchToggle" label="Release Status"
> prop="infcon.relflg"
<el-button size="small" @click="handleReset">重置</el-button> style="width: 100%"
<el-button >
type="primary" <c-select
icon="el-icon-search" v-model="model.infcon.relflg"
size="small" style="width: 100%"
@click="handleSearch" placeholder="请选择Release Status"
>查询</el-button >
> </c-select>
<el-button type="text" @click="searchToggle = false"> </el-form-item>
展开 </c-col>
<i class="el-icon-arrow-down"></i>
</el-button>
</c-col>
<!-- 可控展示区 -->
<!-- <template slot="changeShow"> -->
<c-row v-show="!searchToggle">
<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>
</el-form-item>
</c-col>
<c-col :span="8"> <c-col :span="8">
<el-form-item <el-form-item
label="Select Single Party" label="Select Single Party"
prop="infcon.pty.extkey" prop="infcon.pty.extkey"
style="width: 100%" style="width: 100%"
> >
<c-input <c-input
v-model="model.infcon.pty.extkey" v-model="model.infcon.pty.extkey"
maxlength="24" maxlength="24"
placeholder="请输入Select Single Party" placeholder="请输入Select Single Party"
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="8"> <c-col :span="8">
<el-form-item <el-form-item
label="Party Name" label="Party Name"
prop="infcon.pty.nam" prop="infcon.pty.nam"
style="width: 100%" style="width: 100%"
> >
<c-input <c-input
v-model="model.infcon.pty.nam" v-model="model.infcon.pty.nam"
maxlength="40" maxlength="40"
placeholder="请输入External Visible Name" placeholder="请输入External Visible Name"
></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="8"> <c-col :span="8">
<el-form-item <el-form-item
label="Party Name/BIC" label="Party Name/BIC"
prop="infcon.seapty" prop="infcon.seapty"
style="width: 100%" style="width: 100%"
> >
<c-input <c-input
v-model="model.infcon.seapty" v-model="model.infcon.seapty"
maxlength="24" maxlength="24"
placeholder="请输入Party Name/BIC" placeholder="请输入Party Name/BIC"
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="8"> <c-col :span="8">
<el-form-item label="Role" prop="infcon.searol" style="width: 100%"> <el-form-item
<c-select label="Role"
v-model="model.infcon.searol" prop="infcon.searol"
style="width: 100%" style="width: 100%"
placeholder="请选择Role" >
> <c-select
</c-select> v-model="model.infcon.searol"
</el-form-item> style="width: 100%"
</c-col> placeholder="请选择Role"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="8"> <c-col :span="8">
<el-form-item <el-form-item
label="Party Reference" label="Party Reference"
prop="infcon.searef" prop="infcon.searef"
style="width: 100%" style="width: 100%"
> >
<c-input <c-input
v-model="model.infcon.searef" v-model="model.infcon.searef"
maxlength="16" maxlength="16"
placeholder="请输入Party Reference" placeholder="请输入Party Reference"
></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="8"> <c-col :span="8">
<el-form-item <el-form-item
label="Resp.User" label="Resp.User"
prop="infcon.usr.extkey" prop="infcon.usr.extkey"
style="width: 100%" style="width: 100%"
> >
<c-input <c-input
v-model="model.infcon.usr.extkey" v-model="model.infcon.usr.extkey"
maxlength="8" maxlength="8"
placeholder="请输入User ID" placeholder="请输入User ID"
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="8"> <c-col :span="8">
<el-form-item <el-form-item
label="Status" label="Status"
prop="infcon.seasta" prop="infcon.seasta"
style="width: 100%" style="width: 100%"
>
<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> v-model="model.infcon.seasta"
</el-form-item> style="width: 100%"
</c-col> placeholder="请选择Status"
<c-col :span="8"> >
<el-form-item <el-option
label="Currency" v-for="item in codes.seasta"
prop="infcon.seacur" :key="item.value"
style="width: 100%" :label="item.label"
> :value="item.value"
<c-select >
v-model="model.infcon.seacur" </el-option>
style="width: 100%" </c-select>
placeholder="请选择Currency" </el-form-item>
> </c-col>
<el-option <c-col :span="8">
v-for="item in codes.curtxt" <el-form-item
:key="item.value" label="Currency"
:label="item.label" prop="infcon.seacur"
:value="item.value" style="width: 100%"
> >
</el-option> <c-select
</c-select> v-model="model.infcon.seacur"
</el-form-item> style="width: 100%"
</c-col> placeholder="请选择Currency"
</c-col> >
<el-option
v-for="item in codes.curtxt"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24"> <c-col :span="24">
<c-col :span="8"> <c-col :span="8">
<el-form-item <el-form-item
label="Type of Advance" label="Type of Advance"
prop="seafintyp" prop="seafintyp"
style="width: 100%" style="width: 100%"
>
<c-select
v-model="model.seafintyp"
style="width: 100%"
placeholder="请选择Type of Advance"
>
<el-option
v-for="item in codes.boppayattr"
:key="item.value"
:label="item.label"
:value="item.value"
> >
</el-option> <c-select
</c-select> v-model="model.seafintyp"
</el-form-item> style="width: 100%"
</c-col> placeholder="请选择Type of Advance"
>
<el-option
v-for="item in codes.boppayattr"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="8"> <c-col :span="8">
<el-form-item <el-form-item
label="融资状态" label="融资状态"
prop="infcon.cxmflg" prop="infcon.cxmflg"
style="width: 100%" style="width: 100%"
>
<c-select
v-model="model.infcon.cxmflg"
style="width: 100%"
placeholder="请选择是否显示查询码"
>
<el-option
v-for="item in codes.ovdflg"
:key="item.value"
:label="item.label"
:value="item.value"
> >
</el-option> <c-select
</c-select> v-model="model.infcon.cxmflg"
</el-form-item> style="width: 100%"
</c-col> placeholder="请选择是否显示查询码"
>
<c-col :span="8"> <el-option
<el-form-item v-for="item in codes.ovdflg"
label="福费廷转卖类型" :key="item.value"
prop="infcon.cxmflg" :label="item.label"
style="width: 100%" :value="item.value"
> >
<c-select </el-option>
v-model="model.infcon.cxmflg" </c-select>
style="width: 100%" </el-form-item>
placeholder="请选择是否显示查询码" </c-col>
>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24"> <c-col :span="8">
<c-col :span="8"> <el-form-item
<el-form-item label="福费廷转卖类型"
label="Forfaiting Type" prop="infcon.cxmflg"
prop="infcon.cxmflg" style="width: 100%"
style="width: 100%"
>
<c-select
v-model="model.infcon.cxmflg"
style="width: 100%"
placeholder="请选择是否显示查询码"
>
<el-option
v-for="item in codes.ffttyp"
:key="item.value"
:label="item.label"
:value="item.value"
> >
</el-option> <c-select
</c-select> v-model="model.infcon.cxmflg"
</el-form-item> style="width: 100%"
</c-col> placeholder="请选择是否显示查询码"
<c-col :span="8"> >
<el-form-item </c-select>
label="Amount" </el-form-item>
prop="infcon.seaamtfr"
style="width: 100%"
>
<c-col :span="11">
<c-input-currency
v-model="model.infcon.seaamtfr"
placeholder="请输入Amount"
></c-input-currency>
</c-col> </c-col>
<c-col :span="2" style="text-align: center"> </c-col>
<label style="display: inline-block; width: 100%">-</label>
<c-col :span="24">
<c-col :span="8">
<el-form-item
label="Forfaiting Type"
prop="infcon.cxmflg"
style="width: 100%"
>
<c-select
v-model="model.infcon.cxmflg"
style="width: 100%"
placeholder="请选择是否显示查询码"
>
<el-option
v-for="item in codes.ffttyp"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col> </c-col>
<c-col :span="11"> <c-col :span="8">
<c-input-currency <el-form-item
v-model="model.infcon.seaamtto" label="Amount"
placeholder="请输入Amount" prop="infcon.seaamtfr"
></c-input-currency> style="width: 100%"
>
<c-col :span="11">
<c-input-currency
v-model="model.infcon.seaamtfr"
placeholder="请输入Amount"
></c-input-currency>
</c-col>
<c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">-</label>
</c-col>
<c-col :span="11">
<c-input-currency
v-model="model.infcon.seaamtto"
placeholder="请输入Amount"
></c-input-currency>
</c-col>
</el-form-item>
</c-col> </c-col>
</el-form-item> </c-col>
</c-col> </el-row>
</c-col> </el-form> </template
</c-row> ></c-list-search>
<c-col
:span="24" <c-col :span="24" style="margin-top: 10px">
style="text-align: right; height: 36.8px" <c-button
v-if="!searchToggle" class="medium_bcs"
size="medium"
style="margin-left: 0px"
type="primary"
@click="toBptopn"
>出口融资放款</c-button
> >
<el-button size="small" @click="handleReset">重置</el-button> </c-col>
<el-button
type="primary" <!-- <el-row> -->
icon="el-icon-search" <c-col :span="24">
size="small" <c-istream-table :list="stmData.data" :columns="stmData.columns">
@click="handleSearch" <el-table-column fixed="right" prop="op" label="操作" width="140px">
>查询</el-button <template slot="header">
> <c-col :span="11" style="text-align: left"><span>操作</span></c-col>
<el-button type="text" @click="searchToggle = true"> <c-col :span="12" style="text-align: right"
收起 ><c-button icon="el-icon-s-tools"></c-button
<i class="el-icon-arrow-up"></i> ></c-col>
</el-button> </template>
</c-col> <template slot-scope="scope">
<c-col :span="24"> <el-popover
<c-istream-table placement="top-start"
:list="stmData.data" title="历史信息"
:columns="stmData.columns" width="800"
:showButtonFlg="true" trigger="click"
> :ref="'popover_' + scope.row.IDX"
<el-table-column fixed="right" prop="op" label="操作" width="140px"> >
<template slot-scope="scope"> <div
<el-popover style="
placement="top-start" text-align: right;
title="历史信息" margin-top: -30px;
width="800" margin-right: 5px;
trigger="click" font-size: 16px;
:ref="'popover_' + scope.row.IDX" "
> >
<div <span
style=" class="el-icon-close"
text-align: right; @click="closeTrn('popover_' + scope.row.IDX)"
margin-top: -30px; />
margin-right: 5px; </div>
font-size: 16px; <c-istream-table :list="trnData.data" :columns="trnData.columns">
" <el-table-column prop="op" label="操作" width="0">
> <template slot-scope="scope">
<span <c-button
class="el-icon-close" style="margin-left: 0"
@click="closeTrn('popover_' + scope.row.IDX)" size="small"
/> @click="display(scope.row['INR'])"
</div> >
<c-istream-table 详情
:list="trnData.data" </c-button>
:columns="trnData.columns" </template>
> </el-table-column>
<el-table-column prop="op" label="操作" width="0"> </c-istream-table>
<template slot-scope="scope"> <c-button
<c-button style="margin-left: 0"
style="margin-left: 0" size="small"
size="small" @click="getTrnInfo(scope.$index, scope.row)"
@click="display(scope.row['INR'])" slot="reference"
> >
详情 详情
</c-button> </c-button>
</template> <!-- <c-button
</el-table-column>
</c-istream-table>
<c-button
style="margin-left: 0" style="margin-left: 0"
size="small" size="small"
@click="getTrnInfo(scope.$index, scope.row)"
slot="reference"
> >
详情 关闭
</c-button> </c-button> -->
</el-popover> </el-popover>
<c-button <!-- <c-button
style="margin-left: 0"
size="small"
@click="getTrnInfo(scope.$index,scope.row)"
>
详情
</c-button> -->
<c-button
style="margin-left: 0"
size="small"
type="primary"
@click="getButtons(scope.row['Reference'])"
>
处理
</c-button>
<!-- <c-button
style="margin-left: 0" style="margin-left: 0"
size="small" size="small"
type="primary" type="primary"
@click="getButtons(scope.row['Reference'])" @click="getDitSelInfo(scope.$index, scope.row)"
> >
处理 info
</c-button> </c-button> -->
</template> </template>
</el-table-column> </el-table-column>
</c-istream-table> </c-istream-table>
</c-col> </c-col>
</el-form>
<el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
<div class="m-list-btns">
<m-busbtn ref="childs" :ownref="ownref" @onChoose="onChoose"
>11</m-busbtn
>
</div>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
import Utils from "~/utils/index";
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 Event from "~/model/Infbpd/Event"; import Event from "~/model/Infbpd/Event";
import BusNavbar from "~/views/Business/Infbpd/BusNavbar";
export default { export default {
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess],
components: { "m-busbtn": BusNavbar },
data() { data() {
return { return {
ownref: "",
initdialog: false,
dialogTableVisible: false,
searchToggle: true, searchToggle: true,
stmData: { stmData: {
columns: [ columns: [
...@@ -567,18 +588,65 @@ export default { ...@@ -567,18 +588,65 @@ export default {
}, },
methods: { methods: {
...Event, ...Event,
/* handleSearch(callback) { async getButtons(ownref) {
this.initdialog = true;
this.ownref = ownref;
console.log("ownref:" + ownref);
setTimeout(() => { setTimeout(() => {
this.$notify.info({ this.$refs.childs.$emit("childmethods");
title: "提示", }, 10);
message: "模拟post请求控制按钮状态", },
}); async onChoose(code) {
// 执行子组件回调函数控制按钮状态 //跳转交易
callback(); this.$router.history.push("/business/" + code);
}, 1000); this.initdialog = false;
}, */ },
async getBpdSelInfo(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);
},
async getTrnInfo(idx, row) {
this.model.infcon.objinr = row["INR"];
this.model.bpdgrp.rec.inr = row["INR"];
this.model.infcon.chksubcon = "X";
this.dialogTableVisible = true;
let rtnmsg = await this.executeDefault("infcon.chksubcon");
if ((rtnmsg.respCode = SUCCESS)) {
this.trnData.data = rtnmsg.data.infcon_trnstm.rows;
}
},
closeTrn(refId) {
this.$refs[refId].doClose();
},
toBptopn() {
this.$router.history.push("/business/bptopn");
},
}, },
handleReset() {},
created: function () {}, created: function () {},
}; };
</script> </script>
......
...@@ -147,6 +147,11 @@ export default { ...@@ -147,6 +147,11 @@ export default {
{ inifrm: "assetInfo", ininam: "资产信息管理", pntmiu: "15" }, { inifrm: "assetInfo", ininam: "资产信息管理", pntmiu: "15" },
{ inifrm: "assetPub", ininam: "资产发布信息管理", pntmiu: "15" }, { inifrm: "assetPub", ininam: "资产发布信息管理", pntmiu: "15" },
{ inifrm: "fund", ininam: "资金信息管理", pntmiu: "15" }, { inifrm: "fund", ininam: "资金信息管理", pntmiu: "15" },
{ inifrm: "16",ininam: "出口融资", pntmiu: "" },
{ inifrm: "infbpd", ininam: "出口融资查询", pntmiu: "16" },
], ],
menus: [], menus: [],
menusHeight: 0, menusHeight: 0,
......
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