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
fukai
vue-gjjs
Commits
95d72dc4
Commit
95d72dc4
authored
May 29, 2023
by
wanggang_yf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
brtacp litcan页面调整
parent
362878ec
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
190 additions
and
163 deletions
+190
-163
buildCommons.js
src/business/litcan/event/buildCommons.js
+60
-96
index.js
src/business/litcan/event/index.js
+18
-14
index.js
src/business/litcan/model/index.js
+99
-40
index.vue
src/components/business/doctre/views/index.vue
+13
-13
No files found.
src/business/litcan/event/buildCommons.js
View file @
95d72dc4
export
default
{
buildPtspta
(
ptsptaObj
)
{
buildPtspta
(
ptsptaObj
)
{
let
pts
=
ptsptaObj
.
pts
;
let
ptspta
=
{
rol
:
pts
.
rol
,
...
...
@@ -13,149 +13,113 @@ export default {
dftfeecur
:
pts
.
dftfeecur
,
dftactptainr
:
pts
.
dftactptainr
,
glggrpflg
:
pts
.
glggrpflg
,
adrblk
:
pts
.
adrblk
,
adrblk
:
pts
.
adrblk
};
return
ptspta
;
},
buildCommonData
(
model
,
trnName
)
{
buildCommonData
(
model
,
trnName
)
{
let
ptsptaList
=
[];
if
(
model
.
g
idgrp
.
apl
.
pts
.
extkey
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
model
.
g
idgrp
.
apl
));
if
(
model
.
l
idgrp
.
apl
.
pts
.
extkey
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
model
.
l
idgrp
.
apl
));
}
if
(
model
.
gidgrp
.
ben
.
pts
.
extkey
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
model
.
gidgrp
.
ben
));
if
(
model
.
lidgrp
.
adv
.
pts
.
extkey
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
model
.
lidgrp
.
adv
));
}
if
(
model
.
lidgrp
.
ben
.
pts
.
extkey
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
model
.
lidgrp
.
ben
));
}
let
dataObj
=
{
rec
:
{
objtyp
:
'LID'
,
objinr
:
model
.
gidgrp
.
rec
.
objinr
,
ownref
:
model
.
gidgrp
.
rec
.
ownref
,
segtyp
:
model
.
gidgrp
.
rec
.
segtyp
,
fromflg
:
model
.
gidgrp
.
rec
.
fromflg
,
othersno
:
model
.
gidgrp
.
rec
.
othersno
,
sndto
:
model
.
gidgrp
.
rec
.
sndto
,
giduil
:
model
.
gidgrp
.
rec
.
giduil
,
purpos
:
model
.
gidgrp
.
rec
.
purpos
,
revflg
:
model
.
gidgrp
.
rec
.
revflg
,
cnfsta
:
model
.
gidgrp
.
rec
.
cnfsta
,
ownref
:
model
.
lidgrp
.
rec
.
ownref
,
opndat
:
model
.
lidgrp
.
rec
.
opndat
,
expdat
:
model
.
lidgrp
.
rec
.
expdat
,
branchInr
:
model
.
lidgrp
.
rec
.
branchInr
,
hndtyp
:
model
.
lidgrp
.
rec
.
hndtyp
,
gartyp
:
model
.
lidgrp
.
rec
.
gartyp
,
fingua
:
model
.
lidgrp
.
rec
.
fingua
,
segtyp
:
model
.
lidgrp
.
ghd
.
segtyp
,
fromflg
:
model
.
lidgrp
.
rec
.
fromflg
,
othersno
:
model
.
lidgrp
.
rec
.
othersno
,
sndto
:
model
.
lidgrp
.
rec
.
sndto
,
swiftflg
:
model
.
gitp
.
swiftflg
,
liduil
:
model
.
lidgrp
.
rec
.
liduil
,
purpos
:
model
.
lidgrp
.
rec
.
purpos
,
revflg
:
model
.
lidgrp
.
rec
.
revflg
,
cnfsta
:
model
.
lidgrp
.
rec
.
cnfsta
,
},
cbsMap
:
{
MAX
:
model
.
g
idgrp
.
cbs
.
max
,
OPN1
:
model
.
g
idgrp
.
cbs
.
opn1
,
MAC
:
model
.
g
idgrp
.
cbs
.
mac
,
MAC2
:
model
.
g
idgrp
.
cbs
.
mac2
,
OPC2
:
model
.
g
idgrp
.
cbs
.
opc2
,
CNF
:
model
.
g
idgrp
.
cbs
.
cnf
,
MAX
:
model
.
l
idgrp
.
cbs
.
max
,
OPN1
:
model
.
l
idgrp
.
cbs
.
opn1
,
MAC
:
model
.
l
idgrp
.
cbs
.
mac
,
MAC2
:
model
.
l
idgrp
.
cbs
.
mac2
,
OPC2
:
model
.
l
idgrp
.
cbs
.
opc2
,
CNF
:
model
.
l
idgrp
.
cbs
.
cnf
,
},
ptsList
:
ptsptaList
,
transName
:
trnName
,
userId
:
window
.
sessionStorage
.
userId
?
window
.
sessionStorage
.
userId
:
'ZL'
,
userId
:
window
.
sessionStorage
.
userId
?
window
.
sessionStorage
.
userId
:
'ZL'
};
return
dataObj
;
return
dataObj
},
buildSetfeg
(
model
,
trnName
)
{
buildSetfeg
(
model
,
trnName
)
{
let
params
=
{
...
this
.
buildCommonData
(
model
,
trnName
),
liaall
:
model
.
liaall
,
liaccv
:
model
.
liaccv
,
doceot
:
model
.
trnmod
.
trndoc
.
doceot
,
//
doceot: model.trnmod.trndoc.doceot,
};
return
params
;
return
params
},
buildSetglg
(
model
,
trnName
)
{
buildSetglg
(
model
,
trnName
)
{
let
params
=
{
...
this
.
buildCommonData
(
model
,
trnName
),
setfeg
:
model
.
setmod
.
setfeg
,
liaall
:
model
.
liaall
,
liaccv
:
model
.
liaccv
,
};
return
params
;
return
params
},
buildGlentry
(
model
,
trnName
)
{
buildGlentry
(
model
,
trnName
)
{
let
params
=
{
...
this
.
buildCommonData
(
model
,
trnName
),
rec
:
{
objtyp
:
'LID'
,
segtyp
:
model
.
gidgrp
.
rec
.
segtyp
,
fromflg
:
model
.
gidgrp
.
rec
.
fromflg
,
othersno
:
model
.
gidgrp
.
rec
.
othersno
,
sndto
:
model
.
gidgrp
.
rec
.
sndto
,
giduil
:
model
.
gidgrp
.
rec
.
giduil
,
purpos
:
model
.
gidgrp
.
rec
.
purpos
,
revflg
:
model
.
gidgrp
.
rec
.
revflg
,
cnfsta
:
model
.
gidgrp
.
rec
.
cnfsta
,
},
liaccv
:
model
.
liaccv
,
doceot
:
model
.
trnmod
.
trndoc
.
doceot
,
transName
:
trnName
,
liaallg
:
model
.
liaall
.
liaallg
,
setfog
:
model
.
setmod
.
setfog
,
setfeg
:
model
.
setmod
.
setfeg
,
setglg
:
model
.
setmod
.
setglg
,
};
return
params
;
return
params
},
buildEngp
(
model
,
trnName
)
{
buildEngp
(
model
,
trnName
)
{
let
params
=
{
...
this
.
buildCommonData
(
model
,
trnName
),
cbsMap
:
{
CNF
:
model
.
gidgrp
.
cbs
.
cnf
,
},
liaccv
:
model
.
liaccv
,
doceot
:
model
.
trnmod
.
trndoc
.
doceot
,
transName
:
trnName
,
liaallg
:
model
.
liaall
.
liaallg
,
};
params
.
rec
=
{
...
params
.
rec
,
opndat
:
model
.
gidgrp
.
rec
.
opndat
,
branchInr
:
model
.
gidgrp
.
rec
.
branchInr
,
hndtyp
:
model
.
gidgrp
.
rec
.
hndtyp
,
gartyp
:
model
.
gidgrp
.
rec
.
gartyp
,
fingua
:
model
.
gidgrp
.
rec
.
fingua
,
};
return
params
;
return
params
},
buildDocpan
(
model
,
trnName
)
{
buildDocpan
(
model
,
trnName
)
{
let
params
=
{
...
this
.
buildCommonData
(
model
,
trnName
),
rec
:
{
objtyp
:
'LID'
,
fromflg
:
model
.
gidgrp
.
rec
.
fromflg
,
othersno
:
model
.
gidgrp
.
rec
.
othersno
,
sndto
:
model
.
gidgrp
.
rec
.
sndto
,
giduil
:
model
.
gidgrp
.
rec
.
giduil
,
purpos
:
model
.
gidgrp
.
rec
.
purpos
,
cnfsta
:
model
.
gidgrp
.
rec
.
cnfsta
,
revflg
:
model
.
gidgrp
.
rec
.
revflg
,
},
liaccv
:
model
.
liaccv
,
doceot
:
model
.
trnmod
.
trndoc
.
doceot
,
transName
:
trnName
,
};
return
params
;
return
params
},
buildCcvpan
(
model
,
trnName
)
{
buildCcvpan
(
model
,
trnName
)
{
let
params
=
{
...
this
.
buildCommonData
(
model
,
trnName
),
};
params
.
rec
=
{
...
params
.
rec
,
opndat
:
model
.
gidgrp
.
rec
.
opndat
,
expdat
:
model
.
gidgrp
.
rec
.
expdat
,
branchInr
:
model
.
gidgrp
.
rec
.
branchInr
,
hndtyp
:
model
.
gidgrp
.
rec
.
hndtyp
,
gartyp
:
model
.
gidgrp
.
rec
.
gartyp
,
fingua
:
model
.
gidgrp
.
rec
.
fingua
,
liaccvg
:
model
.
liaccv
.
liaccvg
,
oldamt
:
model
.
liaccv
.
oldamt
,
chgamt
:
model
.
liaccv
.
chgamt
,
concur
:
model
.
liaccv
.
concur
,
};
return
params
;
return
params
},
buildLimitbody
(
model
,
trnName
)
{
let
params
=
{
...
this
.
buildCommonData
(
model
,
trnName
),
rec
:
{
objtyp
:
'
G
ID'
,
objinr
:
model
.
g
idgrp
.
rec
.
objinr
,
ownref
:
model
.
g
idgrp
.
rec
.
ownref
,
objtyp
:
'
L
ID'
,
objinr
:
model
.
l
idgrp
.
rec
.
objinr
,
ownref
:
model
.
l
idgrp
.
rec
.
ownref
,
},
};
return
params
...
...
@@ -164,9 +128,9 @@ export default {
let
params
=
{
...
this
.
buildCommonData
(
model
,
trnName
),
rec
:
{
objtyp
:
'
G
ID'
,
objinr
:
model
.
g
idgrp
.
rec
.
objinr
,
ownref
:
model
.
g
idgrp
.
rec
.
ownref
,
objtyp
:
'
L
ID'
,
objinr
:
model
.
l
idgrp
.
rec
.
objinr
,
ownref
:
model
.
l
idgrp
.
rec
.
ownref
,
swiftflg
:
model
.
gitp
.
swiftflg
,
},
};
...
...
src/business/litcan/event/index.js
View file @
95d72dc4
...
...
@@ -6,7 +6,10 @@ import glentry from '~/components/business/glentry/event';
import
engp
from
'~/components/business/engp/event'
;
import
docpan
from
'~/components/business/docpan/event'
;
import
ccvpan
from
'~/components/business/ccvpan/event'
;
import
limitbody
from
'~/components/business/limitbody/event'
;
import
doctre
from
'~/components/business/doctre/event'
;
import
Utils
from
"~/utils"
export
default
{
mixins
:
[
commonFunctions
],
methods
:
{
...
...
@@ -15,18 +18,22 @@ export default {
...
engp
,
...
docpan
,
...
ccvpan
,
...
limitbody
,
...
doctre
,
async
init
()
{
const
params
=
{
spt
:
JSON
.
parse
(
localStorage
.
getItem
(
'row_'
+
this
.
trnName
))
}
const
res
=
await
Api
.
post
(
'/service/litcan/init'
,
{
...
params
,
transName
:
this
.
trnName
,
userId
:
window
.
sessionStorage
.
userId
||
'ZL'
,
gidInr
:
this
.
$route
.
query
.
inr
,
// lidInr:'00006832',
lidgrp
:{
rec
:{
// inr:this.$route.query.inr
inr
:
'00006829'
inr
:
this
.
$route
.
query
.
inr
}
}
});
if
(
!
res
.
data
)
{
return
...
...
@@ -63,7 +70,7 @@ export default {
let
engpRequest
=
buildFn
.
buildEngp
(
this
.
model
,
this
.
trnName
);
this
.
processLiaall
(
engpRequest
);
break
;
case
'set
pan
'
:
case
'set
mod
'
:
let
setfegRequest
=
buildFn
.
buildSetfeg
(
this
.
model
,
this
.
trnName
);
// 此处利用回调是为了等setfeg的接口调用完成后才去获取setglg参数,由于setglg参数依赖于setfeg函数的返回值
this
.
processSetpan
(
setfegRequest
,
()
=>
{
...
...
@@ -79,16 +86,14 @@ export default {
this
.
processGlentry
(
glentryRequest
);
break
;
case
'limitbody'
:
let
limitbodyRequest
=
buildFn
.
buildLimitbody
(
this
.
model
,
this
.
trnName
);
let
limitbodyRequest
=
buildFn
.
buildLimitbody
(
this
.
model
,
this
.
trnName
);
this
.
processLimitbody
(
limitbodyRequest
);
break
;
case
'doctre'
:
let
doctreRequest
=
buildFn
.
buildDoctre
(
this
.
model
,
this
.
trnName
);
this
.
processDoctre
(
doctreRequest
);
break
;
default
:
return
;
}
...
...
@@ -111,7 +116,7 @@ export default {
this
.
model
.
gidgrp
.
rec
.
ownref
=
res
.
data
;
}
},
// 获取
gitop
n弹框表格数据
// 获取
litca
n弹框表格数据
async
queryGridEtyPromptDialogData
(
type
,
ptytyp
)
{
let
params
=
{
userId
:
window
.
sessionStorage
.
userId
||
'ZL'
,
...
...
@@ -125,7 +130,7 @@ export default {
this
.
root
.
promptData
.
type
=
type
;
}
},
// 选中
gitop
n弹框表格的行数据
// 选中
litca
n弹框表格的行数据
async
selectGridEtyPromptData
(
row
)
{
let
params
=
{
...
row
,
...
...
@@ -194,5 +199,5 @@ export default {
return
}
}
}
}
\ No newline at end of file
},
};
src/business/litcan/model/index.js
View file @
95d72dc4
...
...
@@ -3,10 +3,68 @@ import Pub from '~/components/business/commonModel/index.js';
export
default
class
Litcan
{
constructor
()
{
this
.
data
=
{
sndmsg
:
'X'
,
litapll1blk
:
''
,
litrmbl3blk
:
''
,
litcanl1blk
:
''
,
cbsMap
:{
MAX
:{
cur
:
''
}
},
gitp
:{
swiftflg
:
''
,
},
sndmsg
:
''
,
lidgrp
:
{
ghd
:{
segtyp
:
''
,
},
rec
:
{
branchinr
:
''
,
ownref
:
''
,
// 参考号 .lidgrp.rec.ownref
nam
:
''
,
// 名称 .lidgrp.rec.nam
avbby
:
''
,
// 兑付方式 .lidgrp.rec.avbby
redclsflg
:
''
,
// Red/Green Clause .lidgrp.rec.redclsflg
opndat
:
''
,
// 开立日期 .lidgrp.rec.opndat
shpdat
:
''
,
// Shipment Date .lidgrp.rec.shpdat
expdat
:
''
,
// 到期日 .lidgrp.rec.expdat
expplc
:
''
,
// 到期日 .lidgrp.rec.expplc
lcrtyp
:
''
,
// 信用证类型 .lidgrp.rec.lcrtyp
revflg
:
''
,
// Revolving Flag .lidgrp.rec.revflg
advnam
:
''
,
},
cbs
:
{
nom1
:
{
cur
:
''
,
// 开证金额 .lidgrp.cbs.nom1.cur
amt
:
''
,
// 开证金额 .lidgrp.cbs.nom1.amt
},
opn1
:
{
cur
:
''
,
// 信用证余额 .lidgrp.cbs.opn1.cur
amt
:
''
,
// Balance .lidgrp.cbs.opn1.amt
},
max
:
{
cur
:
''
,
// 信用证余额 .lidgrp.cbs.opn1.cur
amt
:
''
,
// Balance .lidgrp.cbs.opn1.amt
},
},
apl
:
{
pts
:
{
ref
:
''
,
nam
:
''
,
}
},
ben
:
{
pts
:
{
ref
:
''
,
nam
:
''
,
}
},
adv
:
{
pts
:
{
ref
:
''
,
nam
:
''
,
}
},
avbnam
:
''
,
// 指定银行 .lidgrp.avbnam
},
litp0
:
{
aammod
:
{
addamtflg
:
''
,
// Add. Amount .litp0.aammod.addamtflg
...
...
@@ -16,25 +74,7 @@ export default class Litcan {
strinf
:
''
,
// Narrative .litcanf.strinf
},
gcdgrp
:
{
prb
:
{
adrelc
:
''
,
dbfadrblkcn
:
''
,
namelc
:
''
,
pts
:
new
Pts
().
data
,
},
rec
:
{
clmdat
:
''
,
ownref
:
''
,
payrol
:
''
,
nam
:
''
,
docprbrol
:
''
,
},
oth
:
{
adrelc
:
''
,
dbfadrblkcn
:
''
,
namelc
:
''
,
pts
:
new
Pts
().
data
,
},
cbs
:
{
opn1
:
{
cur
:
''
,
...
...
@@ -54,25 +94,13 @@ export default class Litcan {
adv
:
{
pts
:
new
Pts
().
data
,
},
apl
:
{
pts
:
new
Pts
().
data
,
},
gidgrp
:
{
rec
:
{
expdat
:
''
,
liadat
:
''
,
ownref
:
''
,
gartyp
:
''
},
ghd
:
{
wahnum
:
''
,
remark
:
''
,
bustyp
:
''
,
segtyp
:
''
},
cbs
:
{
opn1
:
{
cur
:
''
,
amt
:
''
}
gidgrp
:
{
rec
:{
objinr
:
''
,
},
ctr
:
{
pts
:
new
Pts
().
data
,
...
...
@@ -98,6 +126,37 @@ export default class Litcan {
apl
:
{
pts
:
new
Pts
().
data
,
},
cbs
:
{
max
:
''
,
}
},
liaall
:
{
con
:
{
pts
:
new
Pts
().
data
,
},
iss
:
{
pts
:
new
Pts
().
data
,
},
ben
:
{
pts
:
new
Pts
().
data
,
},
atb
:
{
pts
:
new
Pts
().
data
,
},
avc
:
{
pts
:
new
Pts
().
data
,
},
},
trnmod
:
{
ctr
:
{
pts
:
new
Pts
().
data
,
},
con
:
{
pts
:
new
Pts
().
data
,
},
iss
:
{
pts
:
new
Pts
().
data
,
},
},
byinst
:
''
,
// On Applicant instruction .byinst
pageId
:
''
,
// ctx的key
...
...
src/components/business/doctre/views/index.vue
View file @
95d72dc4
...
...
@@ -142,19 +142,19 @@ export default {
},
},
watch
:
{
'model.trnmod.trndoc.doceot'
:
{
handler
(
val
,
oldVal
)
{
var
arr
=
[];
let
k
=
0
;
for
(
let
i
=
0
;
i
<
val
.
length
;
i
++
)
{
if
(
val
[
i
].
role
!=
''
)
{
arr
[
k
++
]
=
val
[
i
];
}
}
this
.
data1
=
arr
;
},
immediate
:
true
,
},
//
'model.trnmod.trndoc.doceot': {
//
handler(val, oldVal) {
//
var arr = [];
//
let k = 0;
//
for (let i = 0; i
<
val
.
length
;
i
++
)
{
//
if (val[i].role != '') {
//
arr[k++] = val[i];
//
}
//
}
//
this.data1 = arr;
//
},
//
immediate: true,
//
},
model
:
{
handler
(
newVal
)
{
console
.
log
(
'model'
,
newVal
)
...
...
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