Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhouqian
vue-gjjs
Commits
7c34b829
Commit
7c34b829
authored
Jan 19, 2022
by
cyy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
3957b8bf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
93 additions
and
3 deletions
+93
-3
Event.js
src/model/Infbed/Event.js
+23
-0
index.js
src/model/Infbed/index.js
+3
-0
Infsea.vue
src/views/Business/Infbed/Infsea.vue
+67
-3
No files found.
src/model/Infbed/Event.js
View file @
7c34b829
...
...
@@ -120,6 +120,18 @@ export default {
},
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
)
...
...
@@ -132,5 +144,15 @@ export default {
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
display
(
index
,
row
)
{
debugger
;
Api
.
post
(
"getTrnNameByInr"
,
{
inr
:
row
[
'INR'
]
}).
then
((
res
)
=>
{
if
(
res
.
respCode
==
SUCCESS
)
{
const
trnName
=
res
.
data
.
toLowerCase
();
let
viewurl
=
"/#/display/"
+
trnName
+
"?trn="
+
row
[
'INR'
]
window
.
open
(
viewurl
,
'newwindow'
,
'height=1200,width=900,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no'
);
}
});
},
}
\ No newline at end of file
src/model/Infbed/index.js
View file @
7c34b829
...
...
@@ -66,6 +66,7 @@ export default class Infbed{
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
:
""
,
},
seadoctypcod
:
""
,
// Document Type .seadoctypcod
infbut
:{
...
...
@@ -89,6 +90,8 @@ export default class Infbed{
ledgrp
:{
rec
:{
ownref
:
""
,
// 参考号 .ledgrp.rec.ownref
expdat
:
""
,
// Date of Expiry .didgrp.rec.expdat
inr
:
""
,
},
cbs
:{
opn1
:{
...
...
src/views/Business/Infbed/Infsea.vue
View file @
7c34b829
...
...
@@ -170,12 +170,48 @@
</
template
>
<
template
slot-scope=
"scope"
>
<c-button
<
!--
<
c-button
style=
"margin-left: 0"
size=
"small"
>
详情
</c-button>
</c-button>
-->
<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"
>
<c-button
style=
"margin-left: 0"
size=
"small"
type=
"primary"
@
click=
"display(scope.$index, scope.row)"
>
查看详情
</c-button>
</
template
>
</el-table-column>
</c-istream-table>
<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"
...
...
@@ -223,6 +259,17 @@ export default {
return
{
ownref
:
""
,
initdialog
:
false
,
trnData
:
{
columns
:
[
'1 1 "编号" 200'
,
'2 2 "交易名称" 100'
,
'3 3 "日期" 200'
,
'4 4 "状态" 50'
,
'5 5 "币种" 80'
,
'6 6 "金额" 80'
,
],
data
:
[],
},
stmData
:
{
columns
:
[
// '1 1 "Reference" 100',
...
...
@@ -289,8 +336,25 @@ export default {
//跳转交易
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
.
ledgrp
.
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
;
}
},
},
},
created
:
function
()
{},
};
</
script
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment