Commit 0f734a29 by nanrui

infbcd初始化及infbod优化

parent 879f86e9
...@@ -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>
<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>
<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,
......
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