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
41c22af6
Commit
41c22af6
authored
Apr 14, 2023
by
suwenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
litopn接口联调;
parent
3f51dbee
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
76 additions
and
36 deletions
+76
-36
buildCommons.js
src/business/litopn/event/buildCommons.js
+6
-3
index.js
src/business/litopn/event/index.js
+2
-2
check.js
src/business/litopn/model/check.js
+8
-19
index.js
src/business/litopn/model/index.js
+15
-3
index.vue
src/business/litopn/views/index.vue
+40
-3
GridEtyPromptDialog.vue
src/components/GridEtyPromptDialog.vue
+2
-2
operationFunc.js
src/mixin/operationFunc.js
+3
-4
No files found.
src/business/litopn/event/buildCommons.js
View file @
41c22af6
...
...
@@ -30,7 +30,7 @@ export default {
}
let
dataObj
=
{
rec
:
{
objtyp
:
'
L
ID'
,
objtyp
:
'
G
ID'
,
ownref
:
model
.
lidgrp
.
rec
.
ownref
,
opndat
:
model
.
lidgrp
.
rec
.
opndat
,
expdat
:
model
.
lidgrp
.
rec
.
expdat
,
...
...
@@ -50,6 +50,9 @@ export default {
},
cbsMap
:
{
MAX
:
model
.
lidgrp
.
cbs
.
max
,
OLDMAX
:
model
.
lidgrp
.
cbs
.
oldmax
,
MAX2
:
model
.
lidgrp
.
cbs
.
max2
,
NOM1
:
model
.
lidgrp
.
cbs
.
nom1
,
OPN1
:
model
.
lidgrp
.
cbs
.
opn1
,
MAC
:
model
.
lidgrp
.
cbs
.
mac
,
MAC2
:
model
.
lidgrp
.
cbs
.
mac2
,
...
...
@@ -117,7 +120,7 @@ export default {
let
params
=
{
...
this
.
buildCommonData
(
model
,
trnName
),
rec
:
{
objtyp
:
'
L
ID'
,
objtyp
:
'
G
ID'
,
objinr
:
model
.
lidgrp
.
rec
.
objinr
,
ownref
:
model
.
lidgrp
.
rec
.
ownref
,
},
...
...
@@ -128,7 +131,7 @@ export default {
let
params
=
{
...
this
.
buildCommonData
(
model
,
trnName
),
rec
:
{
objtyp
:
'
L
ID'
,
objtyp
:
'
G
ID'
,
objinr
:
model
.
lidgrp
.
rec
.
objinr
,
ownref
:
model
.
lidgrp
.
rec
.
ownref
,
// swiftflg: model.gitp.swiftflg,
...
...
src/business/litopn/event/index.js
View file @
41c22af6
...
...
@@ -22,7 +22,7 @@ export default {
...
doctre
,
async
init
()
{
const
params
=
{
spt
:
this
.
toHandleRowData
[
'row_'
+
this
.
trnName
]
spt
:
JSON
.
parse
(
localStorage
.
getItem
(
'row_'
+
this
.
trnName
))
}
const
res
=
await
Api
.
post
(
'/service/litopn/init'
,
{
...
params
,
...
...
@@ -94,7 +94,7 @@ export default {
return
;
}
},
// 获取
gitopn
弹框表格数据
// 获取弹框表格数据
async
queryGridEtyPromptDialogData
(
type
,
ptytyp
)
{
let
params
=
{
userId
:
window
.
sessionStorage
.
userId
||
'ZL'
,
...
...
src/business/litopn/model/check.js
View file @
41c22af6
...
...
@@ -79,7 +79,6 @@ export default {
'trnmod.trndia.usr.extkey'
:
null
,
'lidgrp.blk.shpper'
:
null
,
'liaall.liaccv.cshpct'
:
null
,
label5
:
null
,
'lidgrp.rec.spcrcbflg'
:
null
,
'lidgrp.cbs.max2.amt'
:
null
,
'lidgrp.cbs.max2.cur'
:
null
,
...
...
@@ -728,14 +727,14 @@ export default {
{
max
:
16
,
message
:
'长度不能超过16'
},
],
'setmod.docamt'
:
[
{
type
:
'number'
,
required
:
false
,
message
:
'必输项'
},
{
max
:
18
,
message
:
'整数位不能超过14位'
},
{
pattern
:
/
(
^
\d
+$
)
|
(
^
\.\d{1,3}
$
)
|
(
^
\d
+
\.\d{1,3}
$
)
/
,
message
:
'小数位不能超过3位'
,
},
],
//
'setmod.docamt': [
//
{ type: 'number', required: false, message: '必输项' },
//
{ max: 18, message: '整数位不能超过14位' },
//
{
//
pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/,
//
message: '小数位不能超过3位',
//
},
//
],
'setmod.zmqacc'
:
[
{
type
:
'string'
,
required
:
false
,
message
:
'必输项'
},
...
...
@@ -757,16 +756,6 @@ export default {
],
bcbdat
:
[{
type
:
'string'
,
required
:
false
,
message
:
'输入正确的日期'
}],
'mtabut.coninf.oitinf.oit.inftxt'
:
[
{
type
:
'string'
,
required
:
false
,
message
:
'必输项'
},
{
max
:
60
,
message
:
'长度不能超过60'
},
],
'mtabut.coninf.oitset.oit.inftxt'
:
[
{
type
:
'string'
,
required
:
false
,
message
:
'必输项'
},
{
max
:
60
,
message
:
'长度不能超过60'
},
],
'mtabut.coninf.conexedat'
:
[
{
type
:
'string'
,
required
:
false
,
message
:
'输入正确的日期'
},
],
...
...
src/business/litopn/model/index.js
View file @
41c22af6
...
...
@@ -54,22 +54,34 @@ export default class Litopn {
branchinr
:
''
,
},
cbs
:
{
cnf
:
{
cur
:
''
,
// Confirmation Amount .gidgrp.cbs.cnf.cur
amt
:
'0.00'
,
// Balance .gidgrp.cbs.cnf.amt
},
nom1
:
{
cur
:
''
,
// Nominal Amount .lidgrp.cbs.nom1.cur
amt
:
'0.00'
,
// Nominal Amount .lidgrp.cbs.nom1.amt
},
max
:
{
cur
:
''
,
// Maximum Amount .lidgrp.cbs.max.cur
amt
:
''
,
// Maximum Amount .lidgrp.cbs.max.amt
amt
:
'
0.00
'
,
// Maximum Amount .lidgrp.cbs.max.amt
},
max2
:
{
cur
:
''
,
// Additional Amount .lidgrp.cbs.max2.cur
amt
:
''
,
// Additional Amount .lidgrp.cbs.max2.amt
amt
:
'0.00'
,
// Additional Amount .lidgrp.cbs.max2.amt
},
opn1
:
{
cur
:
''
,
amt
:
'0.00'
,
},
opn2
:
{
cur
:
''
,
// Open Add. Amount .lidgrp.cbs.opn2.cur
amt
:
''
,
// Open Add. Amount .lidgrp.cbs.opn2.amt
amt
:
'
0.00
'
,
// Open Add. Amount .lidgrp.cbs.opn2.amt
},
oldmax
:
{
cur
:
''
,
amt
:
'0.00'
}
},
apl
:
{
pts
:
new
Pts
().
data
,
...
...
src/business/litopn/views/index.vue
View file @
41c22af6
...
...
@@ -195,9 +195,46 @@ export default {
codes
:
{
...
CodeTable
},
activeNames
:
[
"engp"
],
promptData
:
{
title
:
''
,
columns
:
[],
data
:[]
title
:
'Select a Party'
,
columns
:
[
{
prop
:
'ptyInr'
,
label
:
'Party Number'
},
{
prop
:
'inr'
,
label
:
'Address Number'
},
{
prop
:
'branch'
,
label
:
'Branch Code'
},
{
prop
:
'bchName'
,
label
:
'Branch Name'
},
{
prop
:
'adrName'
,
label
:
'Address Name'
},
{
prop
:
'adr1'
,
label
:
'Address1'
},
{
prop
:
'locCty'
,
label
:
'City'
},
{
prop
:
'locZip'
,
label
:
'Zip'
},
{
prop
:
'bicCode'
,
label
:
'BIC'
}
],
data
:
[]
},
promptData1
:
{
title
:
''
,
...
...
src/components/GridEtyPromptDialog.vue
View file @
41c22af6
...
...
@@ -23,7 +23,7 @@
</el-table>
<el-pagination
layout=
"prev, pager, next, total, jumper"
:total=
"t
ableD
ata.length"
:total=
"t
his.promptData.d
ata.length"
:page-sizes=
"pageSizes"
:page-size=
"pageSize"
:current-page=
"currentPage"
...
...
@@ -69,7 +69,7 @@ export default {
return
this
.
promptData
.
columns
},
tableData
()
{
return
this
.
promptData
.
data
return
this
.
promptData
.
data
.
slice
((
this
.
currentPage
-
1
)
*
this
.
pageSize
,
this
.
currentPage
*
this
.
pageSize
)
},
},
methods
:
{
...
...
src/mixin/operationFunc.js
View file @
41c22af6
...
...
@@ -16,11 +16,11 @@ export default {
userId
:
window
.
sessionStorage
.
userId
||
'ZL'
,
}
// 精简cfagit
if
(
params
.
cfagit
.
cfaflg
!==
'1'
)
{
if
(
params
.
cfagit
&&
params
.
cfagit
.
cfaflg
!==
'1'
)
{
delete
params
.
cfagit
}
// 精简cnybop
if
(
params
.
cnybop
.
vouflg
!==
'1'
)
{
if
(
params
.
cnybop
&&
params
.
cnybop
.
vouflg
!==
'1'
)
{
delete
params
.
cnybop
.
cnyvou
}
const
res
=
await
Api
.
post
(
`/service/
${
this
.
trnName
}
/save`
,
params
);
...
...
@@ -47,6 +47,7 @@ export default {
transName
:
this
.
trnName
,
userId
:
window
.
sessionStorage
.
userId
||
'ZL'
,
});
loading
.
close
()
if
(
rtnmsg
.
respCode
===
SUCCESS
)
{
let
errorRules
=
rtnmsg
.
data
;
let
keysList
=
Object
.
keys
(
errorRules
)
...
...
@@ -62,10 +63,8 @@ export default {
});
}
resolve
()
loading
.
close
();
return
}
loading
.
close
();
const
tab
=
this
.
showBackendErrors
(
errorRules
)
if
(
tab
)
{
// tab切换之后,需出发tab-click的事件
...
...
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