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
82474d6e
Commit
82474d6e
authored
Jan 10, 2023
by
chengzhuoshen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交前端LITOPN,CPTOPN与抽象组件测试的代码
parent
bbe6ef88
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
269 additions
and
3 deletions
+269
-3
commonProcess.js
src/mixin/commonProcess.js
+15
-3
settleProcess.js
src/mixin/settleProcess.js
+182
-0
index.js
src/model/Cptopn/index.js
+1
-0
index.js
src/model/Litopn/index.js
+1
-0
Settle.js
src/model/Public/Settle.js
+66
-0
vue.config.js
vue.config.js
+4
-0
No files found.
src/mixin/commonProcess.js
View file @
82474d6e
import
commonDeclare
from
"./commonDeclare"
import
commonDeclare
from
"./commonDeclare"
import
commonApi
from
"./commonApi"
import
commonApi
from
"./commonApi"
import
settleProcess
from
"./settleProcess"
import
Api
from
"~/service/Api"
import
commonGlobalSearch
from
"./commonGlobalSearch"
;
import
commonGlobalSearch
from
"./commonGlobalSearch"
;
import
Utils
from
"~/utils"
import
Utils
from
"~/utils"
import
_
from
"~/utils/Lodash.js"
;
import
_
from
"~/utils/Lodash.js"
;
...
@@ -32,7 +34,7 @@ const tabNameToRulePathMapping = {
...
@@ -32,7 +34,7 @@ const tabNameToRulePathMapping = {
}
}
export
default
{
export
default
{
mixins
:
[
commonApi
,
commonDeclare
,
commonGlobalSearch
],
mixins
:
[
commonApi
,
commonDeclare
,
commonGlobalSearch
,
settleProcess
],
data
:
function
()
{
data
:
function
()
{
return
{
return
{
// 弹框回填
// 弹框回填
...
@@ -155,7 +157,14 @@ export default {
...
@@ -155,7 +157,14 @@ export default {
return
return
}
}
let
name
=
tab
.
name
let
name
=
tab
.
name
let
setpanFlag
=
'N'
;
if
(
name
===
"engp,setpan,glepan"
&&
this
.
trnName
===
"litopn"
)
{
name
=
"engp"
;
setpanFlag
=
'Y'
;
}
else
if
(
name
===
"setpan,glepan"
&&
this
.
trnName
===
"cptopn"
)
{
this
.
processSetpan
();
return
;
}
const
nms
=
name
.
split
(
","
)
const
nms
=
name
.
split
(
","
)
const
arr
=
[]
const
arr
=
[]
for
(
let
i
=
0
;
i
<
nms
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
nms
.
length
;
i
++
)
{
...
@@ -233,7 +242,10 @@ export default {
...
@@ -233,7 +242,10 @@ export default {
// }else{
// }else{
this
.
executeRule
(
rulePath
).
then
(
res
=>
{
this
.
executeRule
(
rulePath
).
then
(
res
=>
{
if
(
res
.
respCode
==
SUCCESS
)
{
if
(
res
.
respCode
==
SUCCESS
)
{
this
.
updateModel
(
res
.
data
)
this
.
updateModel
(
res
.
data
);
if
(
setpanFlag
===
"Y"
)
{
this
.
processSetpan
();
}
}
}
})
})
// }
// }
...
...
src/mixin/settleProcess.js
0 → 100644
View file @
82474d6e
import
Settle
from
"../model/Public/Settle.js"
;
import
Api
from
"~/service/Api"
;
import
Utils
from
"~/utils"
;
export
default
{
data
:
function
()
{
return
{
settle
:
new
Settle
().
data
,
}
},
created
()
{
},
mounted
()
{
},
methods
:
{
buildDoceot
(){
let
doceots
=
[];
let
doceotList
=
this
.
model
.
trnmod
.
trndoc
.
doceot
;
for
(
let
eot
of
doceotList
)
{
let
doceot
=
{};
doceot
.
cortyp
=
eot
.
cortyp
;
doceot
.
docsnf
=
eot
.
docsnf
;
doceot
.
lev
=
eot
.
lev
;
doceot
.
rcv
=
this
.
buildPtspta
(
eot
.
rcv
);
doceots
.
push
(
doceot
);
}
return
doceots
;
},
buildPtydet
(
ptsptaObj
)
{
let
ptydet
=
{};
ptydet
.
rol
=
ptsptaObj
.
pts
.
rol
;
ptydet
.
dftfeecur
=
ptsptaObj
.
pts
.
dftfeecur
;
return
ptydet
;
},
buildPtspta
(
ptsptaObj
)
{
let
ptspta
=
{};
let
pts
=
ptsptaObj
.
pts
;
let
adr
=
ptsptaObj
.
adr
;
ptspta
.
rol
=
pts
.
rol
;
ptspta
.
name
=
pts
.
nam
;
ptspta
.
ptyinr
=
pts
.
ptyinr
;
ptspta
.
ptainr
=
pts
.
ptainr
;
ptspta
.
extkey
=
pts
.
extkey
;
ptspta
.
dftdsp
=
pts
.
dftdsp
;
ptspta
.
dftcur
=
pts
.
dftcur
;
ptspta
.
dftact
=
pts
.
dftact
;
ptspta
.
dftfeecur
=
pts
.
dftfeecur
;
ptspta
.
dftactptainr
=
pts
.
dftactptainr
;
//ptspta.dftselrol=
ptspta
.
glggrpflg
=
pts
.
glggrpflg
;
//ptspta.pansta=
//ptspta.ptytyp=
//ptspta.ptyextkey=
ptspta
.
adrblk
=
pts
.
adrblk
;
//ptspta.rolsetflg=
if
(
adr
!==
null
&&
adr
!==
undefined
)
{
ptspta
.
adrbic
=
adr
.
bic
;
ptspta
.
adrLoccty
=
adr
.
loccty
;
}
return
ptspta
;
},
buildSettle
()
{
let
rec
=
{};
let
cbsMap
=
{};
if
(
this
.
trnName
===
"litopn"
)
{
rec
.
objtyp
=
"LID"
;
rec
.
ownref
=
this
.
model
.
lidgrp
.
rec
.
ownref
;
rec
.
opndat
=
this
.
model
.
lidgrp
.
rec
.
opndat
;
rec
.
branchInr
=
this
.
model
.
lidgrp
.
rec
.
branchinr
;
this
.
settle
.
rec
=
rec
;
cbsMap
.
NOM1
=
{
"cur"
:
this
.
model
.
lidgrp
.
cbs
.
nom1
.
cur
,
"amt"
:
this
.
model
.
lidgrp
.
cbs
.
nom1
.
amt
,
};
cbsMap
.
OPN1
=
{};
cbsMap
.
OPN2
=
{
"cur"
:
this
.
model
.
lidgrp
.
cbs
.
opn2
.
cur
,
"amt"
:
this
.
model
.
lidgrp
.
cbs
.
opn2
.
amt
,
};
cbsMap
.
MAX
=
{
"cur"
:
this
.
model
.
lidgrp
.
cbs
.
max
.
cur
,
"amt"
:
this
.
model
.
lidgrp
.
cbs
.
max
.
amt
,
};
cbsMap
.
MAX2
=
{
"cur"
:
this
.
model
.
lidgrp
.
cbs
.
max2
.
cur
,
"amt"
:
this
.
model
.
lidgrp
.
cbs
.
max2
.
amt
,
};
this
.
settle
.
cbsMap
=
cbsMap
;
let
ptsptaList
=
[];
let
ptydetList
=
[];
if
(
this
.
model
.
lidgrp
.
apl
.
pts
.
extkey
!==
""
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
this
.
model
.
lidgrp
.
apl
));
ptydetList
.
push
(
this
.
buildPtydet
(
this
.
model
.
lidgrp
.
apl
));
}
if
(
this
.
model
.
lidgrp
.
adv
.
pts
.
extkey
!==
""
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
this
.
model
.
lidgrp
.
adv
));
ptydetList
.
push
(
this
.
buildPtydet
(
this
.
model
.
lidgrp
.
adv
));
}
if
(
this
.
model
.
lidgrp
.
ben
.
pts
.
extkey
!==
""
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
this
.
model
.
lidgrp
.
ben
));
ptydetList
.
push
(
this
.
buildPtydet
(
this
.
model
.
lidgrp
.
ben
));
}
this
.
settle
.
ptsList
=
ptsptaList
;
this
.
settle
.
ptydet
=
ptydetList
;
}
else
if
(
this
.
trnName
===
"cptopn"
)
{
rec
.
objtyp
=
"CPD"
;
rec
.
ownref
=
this
.
model
.
cpdgrp
.
rec
.
ownref
;
rec
.
opndat
=
this
.
model
.
cpdgrp
.
rec
.
opndat
;
rec
.
branchInr
=
this
.
model
.
cpdgrp
.
rec
.
branchinr
;
rec
.
detchgcod
=
this
.
model
.
cpdgrp
.
rec
.
detchgcod
;
rec
.
trdinr
=
this
.
model
.
cpdgrp
.
rec
.
trdinr
;
rec
.
chato
=
this
.
model
.
cpdgrp
.
rec
.
chato
;
rec
.
paytyp
=
this
.
model
.
cpdgrp
.
rec
.
paytype
;
rec
.
swftyp
=
this
.
model
.
cpdgrp
.
rec
.
swftyp
;
rec
.
valdat
=
this
.
model
.
cpdgrp
.
rec
.
valdat
;
rec
.
opndat
=
this
.
model
.
cpdgrp
.
rec
.
opndat
;
this
.
settle
.
rec
=
rec
;
cbsMap
.
NOM1
=
{
"cur"
:
this
.
model
.
cpdgrp
.
cbs
.
nom1
.
cur
,
"amt"
:
this
.
model
.
cpdgrp
.
cbs
.
nom1
.
amt
,
};
cbsMap
.
MAX
=
{
"cur"
:
this
.
model
.
cpdgrp
.
cbs
.
max
.
cur
,
"amt"
:
this
.
model
.
cpdgrp
.
cbs
.
max
.
amt
,
};
this
.
settle
.
cbsMap
=
cbsMap
;
let
ptsptaList
=
[];
let
ptydetList
=
[];
if
(
this
.
model
.
cpdgrp
.
orc
.
pts
.
extkey
!==
""
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
this
.
model
.
cpdgrp
.
orc
));
ptydetList
.
push
(
this
.
buildPtydet
(
this
.
model
.
cpdgrp
.
orc
));
}
if
(
this
.
model
.
cpdgrp
.
ori
.
pts
.
extkey
!==
""
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
this
.
model
.
cpdgrp
.
ori
));
ptydetList
.
push
(
this
.
buildPtydet
(
this
.
model
.
cpdgrp
.
ori
));
}
if
(
this
.
model
.
cpdgrp
.
pye
.
pts
.
extkey
!==
""
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
this
.
model
.
cpdgrp
.
pye
));
ptydetList
.
push
(
this
.
buildPtydet
(
this
.
model
.
cpdgrp
.
pye
));
}
this
.
settle
.
ptsList
=
ptsptaList
;
this
.
settle
.
ptydet
=
ptydetList
;
}
this
.
settle
.
doceotList
=
this
.
buildDoceot
();
this
.
settle
.
transName
=
this
.
trnName
;
if
(
!!
window
.
sessionStorage
.
userId
)
{
this
.
settle
.
userId
=
window
.
sessionStorage
.
userId
;
}
else
{
this
.
settle
.
userId
=
"ZL"
;
}
},
async
processSetpan
()
{
//组数据,发post请求
const
loading
=
this
.
loading
(
"正在请求数据"
)
const
rulePath
=
"/setmod/assertSetmod"
;
this
.
buildSettle
();
let
rtnmsg
=
await
Api
.
post
(
rulePath
,
this
.
settle
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
Utils
.
copyValueFromVO
(
this
.
model
.
setmod
,
rtnmsg
.
data
);
this
.
model
.
setmod
.
glemod
.
gleshwstm
=
rtnmsg
.
data
.
gleshwstm
;
}
loading
.
close
()
}
}
}
src/model/Cptopn/index.js
View file @
82474d6e
...
@@ -130,6 +130,7 @@ export default class Cptopn{
...
@@ -130,6 +130,7 @@ export default class Cptopn{
tsnflg
:
""
,
// 同名划转标志 .cpdgrp.rec.tsnflg
tsnflg
:
""
,
// 同名划转标志 .cpdgrp.rec.tsnflg
ischktyp
:
""
,
// 是否需要核验 .cpdgrp.rec.ischktyp
ischktyp
:
""
,
// 是否需要核验 .cpdgrp.rec.ischktyp
prechkdat
:
""
,
// PRECHKDAT .cpdgrp.rec.prechkdat
prechkdat
:
""
,
// PRECHKDAT .cpdgrp.rec.prechkdat
branchinr
:
""
,
},
},
cbs
:{
cbs
:{
nom1
:{
nom1
:{
...
...
src/model/Litopn/index.js
View file @
82474d6e
...
@@ -51,6 +51,7 @@ export default class Litopn{
...
@@ -51,6 +51,7 @@ export default class Litopn{
spcbenflg
:
""
,
// Special payment conditions for beneficiary exists .lidgrp.rec.spcbenflg
spcbenflg
:
""
,
// Special payment conditions for beneficiary exists .lidgrp.rec.spcbenflg
spcrcbflg
:
""
,
// Special Payment Conditions for specified Bank only .lidgrp.rec.spcrcbflg
spcrcbflg
:
""
,
// Special Payment Conditions for specified Bank only .lidgrp.rec.spcrcbflg
redclsflg
:
""
,
// Red/Green Clause .lidgrp.rec.redclsflg
redclsflg
:
""
,
// Red/Green Clause .lidgrp.rec.redclsflg
branchinr
:
""
,
},
},
cbs
:{
cbs
:{
nom1
:{
nom1
:{
...
...
src/model/Public/Settle.js
0 → 100644
View file @
82474d6e
export
default
class
Settle
{
constructor
()
{
this
.
data
=
{
transName
:
""
,
userId
:
""
,
rec
:
{
inr
:
""
,
objtyp
:
""
,
ownref
:
""
,
opndat
:
""
,
trninr
:
""
,
branchInr
:
""
,
trnObjType
:
""
,
trnObjInr
:
""
,
trnCmtflg
:
""
,
trnGlenmb
:
""
,
swftyp
:
""
,
fintyp
:
""
},
cbsMap
:
{
OPN2
:
{
cur
:
""
,
amt
:
""
},
NOM1
:
{
cur
:
""
,
amt
:
""
},
OPN1
:
{
cur
:
""
,
amt
:
""
},
MAX
:
{
cur
:
""
,
amt
:
""
},
MAX2
:
{
cur
:
""
,
amt
:
""
}
},
ptsList
:
[],
ptydet
:
[],
doceotList
:
[],
setglg
:
{
labdspflg
:
""
,
// Label for Type of Settlement .setmod.setglg.labdspflg
setgll
:[],
},
zmqacclab
:
""
,
// 主�'�号LABEL .setmod.zmqacclab
zmqacc
:
""
,
// 自�'�区主�'�号 .setmod.zmqacc
setfog
:
{
setfol
:
[]
},
setfeg
:
{
setfel
:
[]
},
glemod
:
{
gleshwstm
:
{}
},
setamt
:
""
,
// 扣费后付款金额 .setmod.setamt
redamt
:
""
,
// 扣减金额 .setmod.redamt
refdat
:
""
,
}
}
}
\ No newline at end of file
vue.config.js
View file @
82474d6e
...
@@ -69,6 +69,10 @@ module.exports = {
...
@@ -69,6 +69,10 @@ module.exports = {
'^/gjjs/manager'
:
'/gjjs/manager'
'^/gjjs/manager'
:
'/gjjs/manager'
}
}
},
},
'/gjjs/setmod/assertSetmod'
:
{
target
:
'http://127.0.0.1:9999'
,
changeOrigin
:
true
},
/**
/**
* ocr智能识别服务
* ocr智能识别服务
...
...
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