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
ef3be540
Commit
ef3be540
authored
Mar 27, 2023
by
李少勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
公共组件内的方法整理
parent
c403c11c
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
171 additions
and
124 deletions
+171
-124
index.js
src/components/business/docpan/event/index.js
+52
-36
index.js
src/components/business/engp/event/index.js
+60
-43
index.js
src/components/business/glentry/event/index.js
+59
-45
index.js
src/components/business/setmod/event/index.js
+0
-0
No files found.
src/components/business/docpan/event/index.js
View file @
ef3be540
import
TrndocRequest
from
"../model/TrndocRequest.js"
;
import
Api
from
"~/service/Api"
;
import
Utils
from
"~/utils"
;
import
TrndocRequest
from
'../model/TrndocRequest.js'
;
import
Api
from
'~/service/Api'
;
import
Utils
from
'~/utils'
;
export
default
{
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
.
glggrpflg
=
pts
.
glggrpflg
;
ptspta
.
adrblk
=
pts
.
adrblk
;
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
.
glggrpflg
=
pts
.
glggrpflg
;
ptspta
.
adrblk
=
pts
.
adrblk
;
return
ptspta
;
},
buildTrndocRequest
()
{
// 处理Litopn数据
buildTrndocLitopn
()
{
let
trndocRequest
=
new
TrndocRequest
().
data
;
let
rec
=
{};
let
cbsMap
=
{};
if
(
this
.
trnName
===
"litopn"
)
{
rec
.
objtyp
=
"LID"
;
rec
.
objtyp
=
'LID'
;
rec
.
ownref
=
this
.
model
.
lidgrp
.
rec
.
ownref
;
rec
.
opndat
=
this
.
model
.
lidgrp
.
rec
.
opndat
;
rec
.
branchInr
=
this
.
model
.
lidgrp
.
rec
.
branchinr
;
trndocRequest
.
rec
=
rec
;
cbsMap
.
NOM1
=
{
"cur"
:
this
.
model
.
lidgrp
.
cbs
.
nom1
.
cur
,
"amt"
:
this
.
model
.
lidgrp
.
cbs
.
nom1
.
amt
,
'cur'
:
this
.
model
.
lidgrp
.
cbs
.
nom1
.
cur
,
'amt'
:
this
.
model
.
lidgrp
.
cbs
.
nom1
.
amt
,
};
let
ptsptaList
=
[];
if
(
this
.
model
.
lidgrp
.
apl
.
pts
.
extkey
!==
""
)
{
if
(
this
.
model
.
lidgrp
.
apl
.
pts
.
extkey
!==
''
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
this
.
model
.
lidgrp
.
apl
));
}
if
(
this
.
model
.
lidgrp
.
adv
.
pts
.
extkey
!==
""
)
{
if
(
this
.
model
.
lidgrp
.
adv
.
pts
.
extkey
!==
''
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
this
.
model
.
lidgrp
.
adv
));
}
if
(
this
.
model
.
lidgrp
.
ben
.
pts
.
extkey
!==
""
)
{
if
(
this
.
model
.
lidgrp
.
ben
.
pts
.
extkey
!==
''
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
this
.
model
.
lidgrp
.
ben
));
}
trndocRequest
.
ptsList
=
ptsptaList
;
}
else
if
(
this
.
trnName
===
"gitopn"
)
{
rec
.
objtyp
=
"GID"
;
return
trndocRequest
},
// 处理Gitopn数据
buildTrndocGitopn
()
{
let
trndocRequest
=
new
TrndocRequest
().
data
;
let
rec
=
{};
rec
.
objtyp
=
'GID'
;
rec
.
ownref
=
this
.
model
.
gidgrp
.
rec
.
ownref
;
rec
.
opndat
=
this
.
model
.
gidgrp
.
rec
.
opndat
;
rec
.
expdat
=
this
.
model
.
gidgrp
.
rec
.
expdat
;
...
...
@@ -70,30 +74,42 @@ export default {
trndocRequest
.
rec
=
rec
;
let
ptsptaList
=
[];
if
(
this
.
model
.
gidgrp
.
apl
.
pts
.
extkey
!==
""
)
{
if
(
this
.
model
.
gidgrp
.
apl
.
pts
.
extkey
!==
''
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
this
.
model
.
gidgrp
.
apl
));
}
if
(
this
.
model
.
gidgrp
.
adv
.
pts
.
extkey
!==
""
)
{
if
(
this
.
model
.
gidgrp
.
adv
.
pts
.
extkey
!==
''
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
this
.
model
.
gidgrp
.
adv
));
}
if
(
this
.
model
.
gidgrp
.
ben
.
pts
.
extkey
!==
""
)
{
if
(
this
.
model
.
gidgrp
.
ben
.
pts
.
extkey
!==
''
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
this
.
model
.
gidgrp
.
ben
));
}
trndocRequest
.
ptsList
=
ptsptaList
;
return
trndocRequest
},
// 整合各交易的数据
buildTrndocRequest
()
{
let
trndocRequest
=
new
TrndocRequest
().
data
;
switch
(
this
.
trnName
)
{
case
'litopn'
:
trndocRequest
=
this
.
buildTrndocLitopn
()
break
case
'gitopn'
:
trndocRequest
=
this
.
buildTrndocGitopn
()
break
default
:
return
}
trndocRequest
.
transName
=
this
.
trnName
;
if
(
!!
window
.
sessionStorage
.
userId
)
{
trndocRequest
.
userId
=
window
.
sessionStorage
.
userId
;
}
else
{
trndocRequest
.
userId
=
"ZL"
;
}
let
userId
=
window
.
sessionStorage
.
userId
trndocRequest
.
userId
=
!!
userId
?
userId
:
'ZL'
return
trndocRequest
;
},
async
processTrndoc
()
{
//组数据,发post请求
const
loading
=
this
.
loading
(
"正在请求数据"
)
let
rulePath
=
"/service/docpan/assertTrndoc"
;
const
loading
=
this
.
loading
(
'正在请求数据'
)
let
rulePath
=
'/service/docpan/assertTrndoc'
;
let
trndocRequest
=
this
.
buildTrndocRequest
();
let
rtnmsg
=
await
Api
.
post
(
rulePath
,
trndocRequest
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
...
...
src/components/business/engp/event/index.js
View file @
ef3be540
import
LiaallRequest
from
"../model/LiaallRequest.js"
;
import
Api
from
"~/service/Api"
;
import
Utils
from
"~/utils"
;
import
LiaallRequest
from
'../model/LiaallRequest.js'
;
import
Api
from
'~/service/Api'
;
import
Utils
from
'~/utils'
;
export
default
{
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
.
glggrpflg
=
pts
.
glggrpflg
;
ptspta
.
adrblk
=
pts
.
adrblk
;
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
.
glggrpflg
=
pts
.
glggrpflg
;
ptspta
.
adrblk
=
pts
.
adrblk
;
return
ptspta
;
},
buildLiaallRequest
()
{
// 处理Litopn数据
buildLiaccvLitopn
()
{
let
liaallRequest
=
new
LiaallRequest
().
data
;
let
rec
=
{};
let
cbsMap
=
{};
if
(
this
.
trnName
===
"litopn"
)
{
rec
.
objtyp
=
"LID"
;
rec
.
objtyp
=
'LID'
;
rec
.
ownref
=
this
.
model
.
lidgrp
.
rec
.
ownref
;
rec
.
opndat
=
this
.
model
.
lidgrp
.
rec
.
opndat
;
rec
.
branchInr
=
this
.
model
.
lidgrp
.
rec
.
branchinr
;
liaallRequest
.
rec
=
rec
;
cbsMap
.
NOM1
=
{
"cur"
:
this
.
model
.
lidgrp
.
cbs
.
nom1
.
cur
,
"amt"
:
this
.
model
.
lidgrp
.
cbs
.
nom1
.
amt
,
'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
,
'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
,
'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
,
'cur'
:
this
.
model
.
lidgrp
.
cbs
.
max2
.
cur
,
'amt'
:
this
.
model
.
lidgrp
.
cbs
.
max2
.
amt
,
};
liaallRequest
.
cbsMap
=
cbsMap
;
let
ptsptaList
=
[];
if
(
this
.
model
.
lidgrp
.
apl
.
pts
.
extkey
!==
""
)
{
if
(
this
.
model
.
lidgrp
.
apl
.
pts
.
extkey
!==
''
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
this
.
model
.
lidgrp
.
apl
));
}
if
(
this
.
model
.
lidgrp
.
adv
.
pts
.
extkey
!==
""
)
{
if
(
this
.
model
.
lidgrp
.
adv
.
pts
.
extkey
!==
''
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
this
.
model
.
lidgrp
.
adv
));
}
if
(
this
.
model
.
lidgrp
.
ben
.
pts
.
extkey
!==
""
)
{
if
(
this
.
model
.
lidgrp
.
ben
.
pts
.
extkey
!==
''
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
this
.
model
.
lidgrp
.
ben
));
}
liaallRequest
.
ptsList
=
ptsptaList
;
}
else
if
(
this
.
trnName
===
"gitopn"
)
{
rec
.
objtyp
=
"GID"
;
return
liaallRequest
;
},
// 处理Gitopn数据
buildLiaccvGitopn
()
{
let
liaallRequest
=
new
LiaallRequest
().
data
;
let
rec
=
{};
let
cbsMap
=
{};
rec
.
objtyp
=
'GID'
;
rec
.
ownref
=
this
.
model
.
gidgrp
.
rec
.
ownref
;
rec
.
opndat
=
this
.
model
.
gidgrp
.
rec
.
opndat
;
rec
.
expdat
=
this
.
model
.
gidgrp
.
rec
.
expdat
;
...
...
@@ -97,31 +102,43 @@ export default {
liaallRequest
.
cbsMap
=
cbsMap
;
let
ptsptaList
=
[];
if
(
this
.
model
.
gidgrp
.
apl
.
pts
.
extkey
!==
""
)
{
if
(
this
.
model
.
gidgrp
.
apl
.
pts
.
extkey
!==
''
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
this
.
model
.
gidgrp
.
apl
));
}
if
(
this
.
model
.
gidgrp
.
adv
.
pts
.
extkey
!==
""
)
{
if
(
this
.
model
.
gidgrp
.
adv
.
pts
.
extkey
!==
''
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
this
.
model
.
gidgrp
.
adv
));
}
if
(
this
.
model
.
gidgrp
.
ben
.
pts
.
extkey
!==
""
)
{
if
(
this
.
model
.
gidgrp
.
ben
.
pts
.
extkey
!==
''
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
this
.
model
.
gidgrp
.
ben
));
}
liaallRequest
.
ptsList
=
ptsptaList
;
}
liaallRequest
.
transName
=
this
.
trnName
;
if
(
!!
window
.
sessionStorage
.
userId
)
{
liaallRequest
.
userId
=
window
.
sessionStorage
.
userId
;
}
else
{
liaallRequest
.
userId
=
"ZL"
;
return
liaallRequest
},
// 整合各交易的数据
buildLiaallRequest
()
{
let
liaallRequest
=
new
LiaallRequest
().
data
;
switch
(
this
.
trnName
)
{
case
'litopn'
:
liaallRequest
=
this
.
buildLiaccvLitopn
()
break
case
'gitopn'
:
liaallRequest
=
this
.
buildLiaccvGitopn
()
break
default
:
return
}
liaallRequest
.
liaallg
=
this
.
model
.
liaall
.
liaallg
;
liaallRequest
.
transName
=
this
.
trnName
;
let
userId
=
window
.
sessionStorage
.
userId
liaallRequest
.
userId
=
!!
userId
?
userId
:
'ZL'
return
liaallRequest
;
},
async
processLiaall
()
{
//组数据,发post请求
const
loading
=
this
.
loading
(
"正在请求数据"
)
let
rulePath
=
"/service/liaall/assertLiaall"
;
const
loading
=
this
.
loading
(
'正在请求数据'
)
let
rulePath
=
'/service/liaall/assertLiaall'
;
let
liaallRequest
=
this
.
buildLiaallRequest
();
let
rtnmsg
=
await
Api
.
post
(
rulePath
,
liaallRequest
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
...
...
src/components/business/glentry/event/index.js
View file @
ef3be540
import
GlentryRequest
from
"../model/GlentryRequest.js"
;
import
Api
from
"~/service/Api"
;
import
Utils
from
"~/utils"
;
import
GlentryRequest
from
'../model/GlentryRequest.js'
;
import
Api
from
'~/service/Api'
;
export
default
{
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
.
glggrpflg
=
pts
.
glggrpflg
;
ptspta
.
adrblk
=
pts
.
adrblk
;
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
.
glggrpflg
=
pts
.
glggrpflg
;
ptspta
.
adrblk
=
pts
.
adrblk
;
return
ptspta
;
},
buildGlentryRequest
()
{
// 处理Litopn数据
buildGlentryLitopn
()
{
let
glentryRequest
=
new
GlentryRequest
().
data
;
let
rec
=
{};
let
cbsMap
=
{};
if
(
this
.
trnName
===
"litopn"
)
{
rec
.
objtyp
=
"LID"
;
rec
.
objtyp
=
'LID'
;
rec
.
ownref
=
this
.
model
.
lidgrp
.
rec
.
ownref
;
rec
.
opndat
=
this
.
model
.
lidgrp
.
rec
.
opndat
;
rec
.
branchInr
=
this
.
model
.
lidgrp
.
rec
.
branchinr
;
glentryRequest
.
rec
=
rec
;
cbsMap
.
NOM1
=
{
"cur"
:
this
.
model
.
lidgrp
.
cbs
.
nom1
.
cur
,
"amt"
:
this
.
model
.
lidgrp
.
cbs
.
nom1
.
amt
,
'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
,
'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
,
'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
,
'cur'
:
this
.
model
.
lidgrp
.
cbs
.
max2
.
cur
,
'amt'
:
this
.
model
.
lidgrp
.
cbs
.
max2
.
amt
,
};
glentryRequest
.
cbsMap
=
cbsMap
;
let
ptsptaList
=
[];
if
(
this
.
model
.
lidgrp
.
apl
.
pts
.
extkey
!==
""
)
{
if
(
this
.
model
.
lidgrp
.
apl
.
pts
.
extkey
!==
''
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
this
.
model
.
lidgrp
.
apl
));
}
if
(
this
.
model
.
lidgrp
.
adv
.
pts
.
extkey
!==
""
)
{
if
(
this
.
model
.
lidgrp
.
adv
.
pts
.
extkey
!==
''
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
this
.
model
.
lidgrp
.
adv
));
}
if
(
this
.
model
.
lidgrp
.
ben
.
pts
.
extkey
!==
""
)
{
if
(
this
.
model
.
lidgrp
.
ben
.
pts
.
extkey
!==
''
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
this
.
model
.
lidgrp
.
ben
));
}
glentryRequest
.
ptsList
=
ptsptaList
;
glentryRequest
.
liaallg
=
this
.
model
.
liaall
.
liaallg
;
}
else
if
(
this
.
trnName
===
"gitopn"
)
{
rec
.
objtyp
=
"GID"
;
return
glentryRequest
;
},
// 处理Gitopn数据
buildGlentryGitopn
()
{
let
glentryRequest
=
new
GlentryRequest
().
data
;
let
rec
=
{};
let
cbsMap
=
{};
rec
.
objtyp
=
'GID'
;
rec
.
ownref
=
this
.
model
.
gidgrp
.
rec
.
ownref
;
rec
.
opndat
=
this
.
model
.
gidgrp
.
rec
.
opndat
;
rec
.
expdat
=
this
.
model
.
gidgrp
.
rec
.
expdat
;
...
...
@@ -98,34 +100,46 @@ export default {
glentryRequest
.
cbsMap
=
cbsMap
;
let
ptsptaList
=
[];
if
(
this
.
model
.
gidgrp
.
apl
.
pts
.
extkey
!==
""
)
{
if
(
this
.
model
.
gidgrp
.
apl
.
pts
.
extkey
!==
''
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
this
.
model
.
gidgrp
.
apl
));
}
if
(
this
.
model
.
gidgrp
.
adv
.
pts
.
extkey
!==
""
)
{
if
(
this
.
model
.
gidgrp
.
adv
.
pts
.
extkey
!==
''
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
this
.
model
.
gidgrp
.
adv
));
}
if
(
this
.
model
.
gidgrp
.
ben
.
pts
.
extkey
!==
""
)
{
if
(
this
.
model
.
gidgrp
.
ben
.
pts
.
extkey
!==
''
)
{
ptsptaList
.
push
(
this
.
buildPtspta
(
this
.
model
.
gidgrp
.
ben
));
}
glentryRequest
.
ptsList
=
ptsptaList
;
glentryRequest
.
liaallg
=
this
.
model
.
liaall
.
liaallg
;
return
glentryRequest
},
// 整合各交易的数据
buildGlentryRequest
()
{
let
glentryRequest
=
new
GlentryRequest
().
data
;
switch
(
this
.
trnName
)
{
case
'litopn'
:
glentryRequest
=
this
.
buildGlentryLitopn
()
break
case
'gitopn'
:
glentryRequest
=
this
.
buildGlentryGitopn
()
break
default
:
return
}
glentryRequest
.
liaallg
=
this
.
model
.
liaall
.
liaallg
;
glentryRequest
.
setfog
=
this
.
model
.
setmod
.
setfog
;
glentryRequest
.
setfeg
=
this
.
model
.
setmod
.
setfeg
;
glentryRequest
.
setglg
=
this
.
model
.
setmod
.
setglg
;
glentryRequest
.
transName
=
this
.
trnName
;
if
(
!!
window
.
sessionStorage
.
userId
)
{
glentryRequest
.
userId
=
window
.
sessionStorage
.
userId
;
}
else
{
glentryRequest
.
userId
=
"ZL"
;
}
let
userId
=
window
.
sessionStorage
.
userId
glentryRequest
.
userId
=
!!
userId
?
userId
:
'ZL'
return
glentryRequest
;
},
async
processGlentry
()
{
//组数据,发post请求
const
loading
=
this
.
loading
(
"正在请求数据"
)
let
rulePath
=
"/service/gle/assertGle"
;
const
loading
=
this
.
loading
(
'正在请求数据'
)
let
rulePath
=
'/service/gle/assertGle'
;
let
glentryRequest
=
this
.
buildGlentryRequest
();
let
rtnmsg
=
await
Api
.
post
(
rulePath
,
glentryRequest
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
...
...
src/components/business/setmod/event/index.js
View file @
ef3be540
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