Commit 6f663ad4 by “yanyuxin”

查询后交易入口修改

parent 968f5338
......@@ -122,5 +122,46 @@ export default {
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() {
this.model.infcon.seaownref = ""
this.model.infcon.opndatfrom = new Date();
this.model.infcon.opndatto = new Date();
this.model.infcon.searef = "";
this.model.infcon.pty.extkey = "";
this.model.infcon.usr.extkey = "";
this.model.infcon.searol = "";
this.model.infcon.pty.nam = "";
this.model.infcon.seapty = "";
this.model.infcon.curtxt1 = "";
this.model.infcon.nam = "";
this.model.infcon.seaamtfr = "";
this.model.infcon.seaamtto = "";
this.model.infcon.seasta = "";
this.model.infcon.doctypcod = "";
},
}
\ No newline at end of file
......@@ -65,6 +65,7 @@ export default class Inftrd{
diastm:"", // stream for diaries to selected contract .infcon.diastm
liastm:"", // Stream for all engagements to selected contract .infcon.liastm
ordstm:"", // Stream for Orders for Contract .infcon.ordstm
objinr:"",
},
seafintyp:"", // Financing Type .seafintyp
infbut:{
......@@ -90,6 +91,7 @@ export default class Inftrd{
intrat:"", // Margin Spread applied to Interest Rate .trdgrp.rec.intrat
actrat:"", // actural rate .trdgrp.rec.actrat
ffaflg:"", // 外汇贷款专户过账标识 .trdgrp.rec.ffaflg
inr: ""
},
fip:{
pts:new Pts().data,
......
<template>
<div class="busnavbar">
<div class="busnavbar-items">
<c-button 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 Trtsel from "~/model/Trtsel"
import commonProcess from "~/mixin/commonProcess"
export default {
inject: ['root'],
props:["model","codes"],
components:{
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
trnName:'trtsel',
model:new Trtsel().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.$emit("onChoose",code.toLowerCase());
}else{
}
},
},
computed:{
codeList(){
//将model中的数据映射成数组
return this.navcode.map(item=>{
let entireItem = {...item}
//TODO 根据数据判断当前的code,是否可以继续
entireItem.enable = true
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.model.trdgrp.rec.ownref = this.ownref
let rtnmsg = await this.executeRule("trdgrp.rec.ownref")
if(rtnmsg.respCode == SUCCESS){
//重置数组
this.navcode.length = 0
this.model.cfgfil.btnstm = rtnmsg.data.cfgfil_btnstm.rows
//给inr赋值,后面弹窗里面的按钮请求会用到
this.model.trdgrp.rec.inr = rtnmsg.data.trdgrp_rec_inr
const idx = this.model.cfgfil.btnstm.length
let btnStr = this.model.cfgfil.btnstm
// console.log("btnstmStr:"+btnStr);
for(let i=0; i < idx; i++){
//获取数组中每行的数据
let arr = btnStr[i].split("\t");
let newList = {
code:arr[0],
label:arr[1],
isDis:arr[2],
title:arr[3]
}
//添加到navcode数组中
this.navcode.splice(i,0,newList)
}
}
})
})
}
}
</script>
<style>
/*TODO完善按钮间隔等样式 */
/* .busnavbar-items{
} */
</style>
......@@ -437,8 +437,7 @@
style="margin-left: 0"
size="small"
type="primary"
@click="getButtons(scope.row['Reference'])"
>
@click="getButtons(scope.row['Reference'])">
处理
</c-button>
......@@ -455,7 +454,7 @@
</c-istream-table>
</c-col>
<m-busbtn ref="childs" :ownref="ownref" @onChoose="onChoose">11</m-busbtn>
<m-busbtn ref="childs" :ownref="ownref" :model="TrtselModel" ownrefPath="trdgrp" trnCode="trtsel" @onChoose="onChoose">11</m-busbtn>
</div>
</template>
<script>
......@@ -466,6 +465,8 @@ import CodeTable from "~/config/CodeTable";
import Event from "~/model/Infbpd/Event";
import BusNavbar from "~/views/Public/BusNavbar";
import TrtselModel from "~/model/Trtsel"
export default {
inject: ["root"],
props: ["model", "codes"],
......@@ -473,55 +474,90 @@ export default {
components: { "m-busbtn": BusNavbar },
data() {
return {
TrtselModel: new TrtselModel().data,
ownref: "",
dialogTableVisible: false,
searchToggle: true,
initdialog: false,
stmData: {
columns: [
'0 1 "Reference" 150',
'1 2 "Resp. User" 150',
'2 3 "Parent Contract" 150',
'3 4 "执行利率" 150',
'4 5 "融资状态" 150',
'5 6 "融资账号" 150',
'6 7 "Opened" 150',
'7 8 "Expired" 150',
{
index: 8,
position: 9,
width: 100,
pattern: "date",
label: "OPNDAT",
},
{
index: 9,
position: 10,
width: 100,
pattern: "date",
label: "CLSDAT",
},
'10 11 "Closed" 150',
'11 12 "融资天数" 150',
'12 13 "海外代付天数" 150',
'13 14 "VER" 150',
'14 15 "支行名称" 150',
'15 16 "Finance Type" 150',
'16 17 "Goods Code" 150',
'17 18 "Pta .No" 150',
'18 19 "Party Number" 150',
'19 20 "Financed party" 150',
'20 21 "Financed CN" 150',
'21 22 "Pty .No" 150',
'22 23 "Cur" 150',
'23 24 "Amount" 150',
'24 25 "Cur" 150',
'25 26 "Open Amount" 150',
'26 27 "组织机构代码" 150',
'27 28 "海外代付行" 150',
'28 29 "海外代付行" 150',
'29 30 "受益人名称" 150',
'30 31 "交单行SWIFTCODE" 150',
'31 32 "交单银行名称" 150',
'1 1 \"Reference\" 110',
'2 2 \"Resp. User\" 110',
"13 3 \"Finance Type\" 130 1 0 1 TRD:FINTYP",
"14 4 \"Goods Code\" 120 1 0 1 GODCOD",
"3 5 \"Parent Contract\" 150",
"4 6 \"执行利率\" 110 2",
"15 7 \"Pta .No\" 110",
"16 8 \"Party Number\" 205",
"17 9 \"Financed party\" 205",
"18 10 \"Financed CN\" 205",
"5 11 \"融资状态\" 100 1 0 1 TRD:OVDFLG",
"6 12 \"融资账号\" 100",
"24 13 \"组织机构代码\" 130",
"7 14 \"Opened\" 100 4 7",
"8 15 \"Expired\" 100 4 7",
"19 16 \"Pty .No\" 110",
"9 17 \"Closed\" 100 4 7",
"20 18 \"Cur\" 100",
"22 19 \"Cur\" 100",
"21 20 \"Amount\" 110 2 8 1 20",
"23 21 \"Open Amount\" 200 2 8 1 22",
"25 22 \"海外代付行\" 150",
"26 23 \"海外代付行\" 150",
"10 24 \"融资天数\" 100 2",
"11 25 \"海外代付天数\" 205 0",
"12 26 \"支行名称\" 205",
// '0 1 "Reference" 150',
// '1 2 "Resp. User" 150',
// '2 3 "Parent Contract" 150',
// '3 4 "执行利率" 150',
// '4 5 "融资状态" 150',
// '5 6 "融资账号" 150',
// '6 7 "Opened" 150',
// '7 8 "Expired" 150',
// {
// index: 8,
// position: 9,
// width: 100,
// pattern: "date",
// label: "OPNDAT",
// },
// {
// index: 9,
// position: 10,
// width: 100,
// pattern: "date",
// label: "CLSDAT",
// },
// '10 11 "Closed" 150',
// '11 12 "融资天数" 150',
// '12 13 "海外代付天数" 150',
// '13 14 "VER" 150',
// '14 15 "支行名称" 150',
// '15 16 "Finance Type" 150',
// '16 17 "Goods Code" 150',
// '17 18 "Pta .No" 150',
// '18 19 "Party Number" 150',
// '19 20 "Financed party" 150',
// '20 21 "Financed CN" 150',
// '21 22 "Pty .No" 150',
// '22 23 "Cur" 150',
// '23 24 "Amount" 150',
// '24 25 "Cur" 150',
// '25 26 "Open Amount" 150',
// '26 27 "组织机构代码" 150',
// '27 28 "海外代付行" 150',
// '28 29 "海外代付行" 150',
// '29 30 "受益人名称" 150',
// '30 31 "交单行SWIFTCODE" 150',
// '31 32 "交单银行名称" 150',
// '32 33 "RSKTYP" 150',
// '33 34 "FINACT" 170 ',
// '34 35 "FORTYP" 150',
......@@ -553,13 +589,13 @@ export default {
// '60 61 "FFTTYP" 150',
// '61 62 "BMHSWF" 170 ',
// '62 63 "BMHENM" 170 ',
{
index: 32,
position: 33,
width: 100,
pattern: "date",
label: "MCDATE",
},
// {
// index: 32,
// position: 33,
// width: 100,
// pattern: "date",
// label: "MCDATE",
// },
// {
// index: 64,
// position: 65,
......@@ -620,7 +656,7 @@ export default {
},
async getTrnInfo(idx, row) {
this.model.infcon.objinr = row["INR"];
this.model.bpdgrp.rec.inr = row["INR"];
this.model.trdgrp.rec.inr = row["INR"];
this.model.infcon.chksubcon = "X";
this.dialogTableVisible = true;
......
......@@ -61,8 +61,7 @@
v-show="showPanel"
style="margin-left: 75%; bottom: 10%; position: sticky"
size="small"
@click="goBack()"
>
@click="goBack()">
<!-- @click="getDitSelInfo(scope.$index, scope.row)" -->
返回
</c-button>
......@@ -93,6 +92,7 @@ import Prtpan from "./Prtpan"
import Ordpan from "./Ordpan"
export default {
name: "Inftrd",
components:{
......@@ -119,7 +119,7 @@ export default {
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "",
tabVal: "infsea",
trnName: "inftrd",
trnType: "",
model: new Inftrd().data,
......@@ -127,6 +127,7 @@ export default {
defaultRules: Default,
pattern: Pattern,
rules: null,
showPanel:false,
codes: {...CodeTable},
}
},
......@@ -140,7 +141,7 @@ export default {
},
initPanel(val) {
if (val) {
this.tabVal = "ovwp";
this.tabVal = "infsea";
//
} else {
this.tabVal = "";
......
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