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
ee4956db
Commit
ee4956db
authored
Jan 30, 2023
by
chengzhuoshen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
前端glemod解耦,与后端联调代码(剥离liaall,setmod,glemod)
parent
4b9d347a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
90 additions
and
2 deletions
+90
-2
commonProcess.js
src/mixin/commonProcess.js
+40
-2
Glentry.js
src/model/Public/Glentry.js
+50
-0
No files found.
src/mixin/commonProcess.js
View file @
ee4956db
...
...
@@ -6,6 +6,7 @@ import liaallProcess from "./liaallProcess"
import
commonGlobalSearch
from
"./commonGlobalSearch"
;
import
Utils
from
"~/utils"
import
_
from
"~/utils/Lodash.js"
;
import
Glentry
from
"../model/Public/Glentry"
;
const
tabNameToRulePathMapping
=
{
"setpan"
:
"setmod.setpan"
,
...
...
@@ -173,14 +174,51 @@ export default {
rtnmsg
=
await
Api
.
post
(
rulePath
,
this
.
settle
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
Utils
.
copyValueFromVO
(
this
.
model
.
setmod
,
rtnmsg
.
data
);
//请求分录信息 待开发
//请求分录信息
let
glentry
=
new
Glentry
().
data
;
glentry
.
transName
=
this
.
settle
.
transName
;
glentry
.
userId
=
this
.
settle
.
userId
;
glentry
.
rec
=
this
.
settle
.
rec
;
glentry
.
cbsMap
=
this
.
settle
.
cbsMap
;
glentry
.
ptsList
=
this
.
settle
.
ptsList
;
glentry
.
setfog
=
rtnmsg
.
data
.
setfog
;
glentry
.
setfeg
=
rtnmsg
.
data
.
setfeg
;
glentry
.
setglg
=
rtnmsg
.
data
.
setglg
;
glentry
.
liaallg
=
this
.
settle
.
liaall
.
liaallg
;
rulePath
=
"/service/gle/assertGle"
;
rtnmsg
=
await
Api
.
post
(
rulePath
,
glentry
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
this
.
model
.
setmod
.
glemod
.
gleshwstm
=
rtnmsg
.
data
.
gleshwstm
;
}
}
}
loading
.
close
();
return
;
}
else
if
(
name
===
"setpan,glepan"
&&
this
.
trnName
===
"cptopn"
)
{
this
.
processSetpan
();
//组数据,发post请求 ①结算②分录
const
loading
=
this
.
loading
(
"正在请求数据"
)
this
.
buildSettle
();
let
rulePath
=
"/service/setmod/assertSetmod"
;
let
rtnmsg
=
await
Api
.
post
(
rulePath
,
this
.
settle
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
Utils
.
copyValueFromVO
(
this
.
model
.
setmod
,
rtnmsg
.
data
);
//请求分录信息
let
glentry
=
new
Glentry
().
data
;
glentry
.
transName
=
this
.
settle
.
transName
;
glentry
.
userId
=
this
.
settle
.
userId
;
glentry
.
rec
=
this
.
settle
.
rec
;
glentry
.
cbsMap
=
this
.
settle
.
cbsMap
;
glentry
.
ptsList
=
this
.
settle
.
ptsList
;
glentry
.
setfog
=
rtnmsg
.
data
.
setfog
;
glentry
.
setfeg
=
rtnmsg
.
data
.
setfeg
;
glentry
.
setglg
=
rtnmsg
.
data
.
setglg
;
rulePath
=
"/service/gle/assertGle"
;
rtnmsg
=
await
Api
.
post
(
rulePath
,
glentry
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
this
.
model
.
setmod
.
glemod
.
gleshwstm
=
rtnmsg
.
data
.
gleshwstm
;
}
}
loading
.
close
();
return
;
}
const
nms
=
name
.
split
(
","
)
...
...
src/model/Public/Glentry.js
0 → 100644
View file @
ee4956db
export
default
class
Glentry
{
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
:
[],
setfog
:
{},
setfeg
:
{},
setglg
:
{},
liaallg
:
[]
}
}
}
\ No newline at end of file
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