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
20ddd33d
Commit
20ddd33d
authored
Sep 06, 2022
by
nanrui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
infcld优化
parent
13bc2da9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
147 additions
and
11 deletions
+147
-11
Event.js
src/model/Infcld/Event.js
+4
-4
index.js
src/model/Infcld/index.js
+24
-0
Infsea.vue
src/views/Business/Infcld/Infsea.vue
+117
-5
Trnpan.vue
src/views/Business/Infcld/Trnpan.vue
+2
-2
index.vue
src/views/Business/Infcld/index.vue
+0
-0
No files found.
src/model/Infcld/Event.js
View file @
20ddd33d
...
...
@@ -27,21 +27,21 @@ export default {
}
},
async
handleReset
()
{
this
.
model
.
infcon
.
seaownref
=
""
this
.
model
.
infcon
.
seaownref
=
""
this
.
model
.
infcon
.
opndatfrom
=
new
Date
();
this
.
model
.
infcon
.
opndatto
=
new
Date
();
this
.
model
.
infcon
.
nam
=
""
,
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
.
seacur
=
""
;
this
.
model
.
infcon
.
seaamtfr
=
""
;
this
.
model
.
infcon
.
seaamtto
=
""
;
this
.
model
.
infcon
.
seasta
=
""
;
this
.
model
.
infcon
.
doctypcod
=
""
;
this
.
model
.
sea
doctypcod
=
""
;
},
async
onInfbutSearow
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"infbut.searow"
)
...
...
src/model/Infcld/index.js
View file @
20ddd33d
...
...
@@ -6,6 +6,30 @@ export default class Infcld {
constructor
()
{
this
.
data
=
{
infcon
:
{
objinr
:
""
,
cldgrp
:
{
rec
:
{
ownref
:
""
,
// Reference .cldgrp.rec.ownref
nam
:
""
,
// Name of CC contract .cldgrp.rec.nam
colref
:
""
,
// Coll.bank ref. .cldgrp.rec.colref
colptynam
:
""
,
// Col.bank name .cldgrp.rec.colptynam
credat
:
""
,
// Date of creation .cldgrp.rec.credat
count
:
""
,
// Item Count .cldgrp.rec.count
chktyp
:
""
,
// Type of Draft .cldgrp.rec.chktyp
colflg
:
""
,
// Payemnt Disposition .cldgrp.rec.colflg
inr
:
""
,
},
cbs
:
{
max
:
{
amt
:
""
,
// Document Amount .cldgrp.cbs.max.amt
cur
:
""
,
// Document Amount .cldgrp.cbs.max.cur
},
opn1
:
{
cur
:
""
,
// Open Amount .cldgrp.cbs.opn1.cur
amt
:
""
,
// Open Amount .cldgrp.cbs.opn1.amt
},
},
},
seaownref
:
""
,
// Own Reference .infcon.seaownref
nam
:
""
,
// Name .infcon.nam
searef
:
""
,
// Party Reference .infcon.searef
...
...
src/views/Business/Infcld/Infsea.vue
View file @
20ddd33d
...
...
@@ -49,7 +49,6 @@
<el-form-item
label=
"Party Name"
prop=
"infcon.pty.nam"
style=
"width: 100%"
>
<c-input
v-model=
"model.infcon.pty.nam"
maxlength=
"40"
placeholder=
"请输入Party Name"
>
</c-input>
</c-input>
</el-form-item>
</c-col>
<c-col
:span=
"8"
>
...
...
@@ -134,11 +133,47 @@
</el-form>
</
template
>
</c-list-search>
<c-row>
<c-istream-table
:list=
"stmData.data"
:columns=
"stmData.columns"
>
<c-col
:span=
"24"
style=
"margin-top: 10px"
>
<c-button
class=
"medium_bcs"
size=
"medium"
style=
"margin-left: 0px"
type=
"primary"
@
click=
"toCltdav"
>
开立
</c-button>
</c-col>
<c-col
:span=
"24"
>
<c-istream-table
:list=
"stmData.data"
:columns=
"stmData.columns"
>
<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"
>
<c-button
style=
"margin-left: 0"
size=
"small"
@
click=
"display(scope.row['INR'])"
>
详情
</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"
type=
"primary"
@
click=
"getButtons(scope.row['Reference'])"
>
处理
</c-button>
</template>
</el-table-column>
</c-istream-table>
</c-row>
</c-col>
<m-busbtn
ref=
"childs"
:ownref=
"ownref"
:model=
"CltselModel"
ownrefPath=
"cldgrp"
trnCode=
"cltsel"
@
onChoose=
"onChoose"
>
11
</m-busbtn>
...
...
@@ -151,12 +186,18 @@ import commonProcess from "~/mixin/commonProcess";
import
CodeTable
from
"~/config/CodeTable"
import
Event
from
"~/model/Infcld/Event"
import
CltselModel
from
"~/model/Cltsel"
import
BusNavbar
from
"~/views/Public/BusNavbar"
;
export
default
{
inject
:
[
'root'
],
props
:
[
"model"
,
"codes"
],
mixins
:
[
commonProcess
],
components
:
{
"m-busbtn"
:
BusNavbar
},
data
()
{
return
{
CltselModel
:
new
CltselModel
().
data
,
ownref
:
""
,
initdialog
:
false
,
transactionStatus
:
{
busiNo
:
""
,
...
...
@@ -166,6 +207,19 @@ export default {
earnCount
:
0
,
earnAmt
:
0
},
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
:
{
columns
:
[
"1 1
\"
Reference
\"
150"
,
...
...
@@ -184,7 +238,65 @@ export default {
}
}
},
methods
:
{
...
Event
},
methods
:
{
...
Event
,
async
getButtons
(
ownref
)
{
this
.
$refs
.
childs
.
initdialog
=
true
this
.
ownref
=
ownref
console
.
log
(
"ownref:"
+
ownref
);
},
async
onChoose
(
code
)
{
//跳转交易
this
.
$router
.
history
.
push
(
"/business/"
+
code
)
this
.
$refs
.
childs
.
initdialog
=
false
},
closeTrn
(
refId
)
{
this
.
$refs
[
refId
].
doClose
();
},
async
getTrnInfo
(
idx
,
row
)
{
this
.
model
.
infcon
.
objinr
=
row
[
"INR"
];
this
.
model
.
infcon
.
cldgrp
.
rec
.
inr
=
row
[
"INR"
];
this
.
model
.
infcon
.
chksubcon
=
"X"
;
let
rtnmsg
=
await
this
.
executeDefault
(
"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
)
},
toCltdav
()
{
this
.
$router
.
history
.
push
(
"/business/cltdav"
)
}
},
created
:
function
()
{
}
...
...
src/views/Business/Infcld/Trnpan.vue
View file @
20ddd33d
...
...
@@ -9,7 +9,7 @@
<c-checkbox
v-model=
"model.infcon.chktrnsta"
>
only active transactions
</c-checkbox>
</c-col>
<c-col
:span=
"12"
>
<
!--
<
c-col
:span=
"12"
>
<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>
</el-form-item>
...
...
@@ -19,7 +19,7 @@
<c-button
size=
"small"
type=
"primary"
@
click=
"onInfconButshw"
>
Display
</c-button>
</c-col>
</c-col>
-->
</div>
</
template
>
<
script
>
...
...
src/views/Business/Infcld/index.vue
View file @
20ddd33d
This diff is collapsed.
Click to expand it.
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