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
944e6f03
Commit
944e6f03
authored
Mar 27, 2023
by
chengzhuoshen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
表外保证金前端代码
parent
8fdfdfa2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
176 additions
and
42 deletions
+176
-42
index.js
src/components/business/ccvpan/event/index.js
+99
-0
LiaccvRequest.js
src/components/business/ccvpan/model/LiaccvRequest.js
+6
-1
index.js
src/components/business/ccvpan/model/index.js
+2
-0
index.vue
src/components/business/ccvpan/views/index.vue
+69
-41
No files found.
src/components/business/ccvpan/event/index.js
View file @
944e6f03
...
@@ -118,6 +118,105 @@ export default {
...
@@ -118,6 +118,105 @@ export default {
return
liaccvRequest
;
return
liaccvRequest
;
},
},
buildLiaccv
(
obj
)
{
let
liaccvRequest
=
new
LiaccvRequest
().
data
;
let
rec
=
{};
let
cbsMap
=
{};
if
(
obj
.
trnName
===
"litopn"
)
{
rec
.
objtyp
=
"LID"
;
rec
.
ownref
=
obj
.
model
.
lidgrp
.
rec
.
ownref
;
rec
.
opndat
=
obj
.
model
.
lidgrp
.
rec
.
opndat
;
rec
.
branchInr
=
obj
.
model
.
lidgrp
.
rec
.
branchinr
;
liaccvRequest
.
rec
=
rec
;
cbsMap
.
NOM1
=
{
"cur"
:
obj
.
model
.
lidgrp
.
cbs
.
nom1
.
cur
,
"amt"
:
obj
.
model
.
lidgrp
.
cbs
.
nom1
.
amt
,
};
cbsMap
.
OPN1
=
{};
cbsMap
.
OPN2
=
{
"cur"
:
obj
.
model
.
lidgrp
.
cbs
.
opn2
.
cur
,
"amt"
:
obj
.
model
.
lidgrp
.
cbs
.
opn2
.
amt
,
};
cbsMap
.
MAX
=
{
"cur"
:
obj
.
model
.
lidgrp
.
cbs
.
max
.
cur
,
"amt"
:
obj
.
model
.
lidgrp
.
cbs
.
max
.
amt
,
};
cbsMap
.
MAX2
=
{
"cur"
:
obj
.
model
.
lidgrp
.
cbs
.
max2
.
cur
,
"amt"
:
obj
.
model
.
lidgrp
.
cbs
.
max2
.
amt
,
};
liaccvRequest
.
cbsMap
=
cbsMap
;
let
ptsptaList
=
[];
if
(
obj
.
model
.
lidgrp
.
apl
.
pts
.
extkey
!==
""
)
{
ptsptaList
.
push
(
obj
.
buildPtspta
(
obj
.
model
.
lidgrp
.
apl
));
}
if
(
obj
.
model
.
lidgrp
.
adv
.
pts
.
extkey
!==
""
)
{
ptsptaList
.
push
(
obj
.
buildPtspta
(
obj
.
model
.
lidgrp
.
adv
));
}
if
(
obj
.
model
.
lidgrp
.
ben
.
pts
.
extkey
!==
""
)
{
ptsptaList
.
push
(
obj
.
buildPtspta
(
obj
.
model
.
lidgrp
.
ben
));
}
liaccvRequest
.
ptsList
=
ptsptaList
;
}
else
if
(
obj
.
trnName
===
"gitopn"
)
{
rec
.
objtyp
=
"GID"
;
rec
.
ownref
=
obj
.
model
.
gidgrp
.
rec
.
ownref
;
rec
.
opndat
=
obj
.
model
.
gidgrp
.
rec
.
opndat
;
rec
.
expdat
=
obj
.
model
.
gidgrp
.
rec
.
expdat
;
rec
.
branchInr
=
obj
.
model
.
gidgrp
.
rec
.
branchinr
;
rec
.
hndtyp
=
obj
.
model
.
gidgrp
.
rec
.
hndtyp
;
rec
.
gartyp
=
obj
.
model
.
gidgrp
.
rec
.
gartyp
;
rec
.
fingua
=
obj
.
model
.
gidgrp
.
rec
.
fingua
;
rec
.
segtyp
=
obj
.
model
.
gidgrp
.
ghd
.
segtyp
;
rec
.
fromflg
=
obj
.
model
.
gidgrp
.
rec
.
fromflg
;
rec
.
othersno
=
obj
.
model
.
gidgrp
.
rec
.
othersno
;
rec
.
sndto
=
obj
.
model
.
gidgrp
.
rec
.
sndto
;
rec
.
swiftflg
=
obj
.
model
.
gitp
.
swiftflg
;
rec
.
giduil
=
obj
.
model
.
gidgrp
.
rec
.
giduil
;
rec
.
purpos
=
obj
.
model
.
gidgrp
.
rec
.
purpos
;
rec
.
revflg
=
obj
.
model
.
gidgrp
.
rec
.
revflg
;
rec
.
cnfsta
=
obj
.
model
.
gidgrp
.
rec
.
cnfsta
;
liaccvRequest
.
rec
=
rec
;
cbsMap
.
MAX
=
obj
.
model
.
gidgrp
.
cbs
.
max
;
cbsMap
.
OPN1
=
obj
.
model
.
gidgrp
.
cbs
.
opn1
;
cbsMap
.
MAC
=
obj
.
model
.
gidgrp
.
cbs
.
mac
;
cbsMap
.
MAC2
=
obj
.
model
.
gidgrp
.
cbs
.
mac2
;
cbsMap
.
OPC2
=
obj
.
model
.
gidgrp
.
cbs
.
opc2
;
cbsMap
.
CNF
=
obj
.
model
.
gidgrp
.
cbs
.
cnf
;
liaccvRequest
.
cbsMap
=
cbsMap
;
let
ptsptaList
=
[];
if
(
obj
.
model
.
gidgrp
.
apl
.
pts
.
extkey
!==
""
)
{
ptsptaList
.
push
(
obj
.
buildPtspta
(
obj
.
model
.
gidgrp
.
apl
));
}
if
(
obj
.
model
.
gidgrp
.
adv
.
pts
.
extkey
!==
""
)
{
ptsptaList
.
push
(
obj
.
buildPtspta
(
obj
.
model
.
gidgrp
.
adv
));
}
if
(
obj
.
model
.
gidgrp
.
ben
.
pts
.
extkey
!==
""
)
{
ptsptaList
.
push
(
obj
.
buildPtspta
(
obj
.
model
.
gidgrp
.
ben
));
}
liaccvRequest
.
ptsList
=
ptsptaList
;
}
liaccvRequest
.
transName
=
obj
.
trnName
;
if
(
!!
window
.
sessionStorage
.
userId
)
{
liaccvRequest
.
userId
=
window
.
sessionStorage
.
userId
;
}
else
{
liaccvRequest
.
userId
=
"ZL"
;
}
liaccvRequest
.
liaccvg
=
obj
.
model
.
liaccv
.
liaccvg
;
liaccvRequest
.
oldamt
=
obj
.
model
.
liaccv
.
oldamt
;
liaccvRequest
.
chgamt
=
obj
.
model
.
liaccv
.
chgamt
;
liaccvRequest
.
concur
=
obj
.
model
.
liaccv
.
concur
;
return
liaccvRequest
;
},
async
processLiaccv
()
{
async
processLiaccv
()
{
//组数据,发post请求
//组数据,发post请求
const
loading
=
this
.
loading
(
"正在请求数据"
)
const
loading
=
this
.
loading
(
"正在请求数据"
)
...
...
src/components/business/ccvpan/model/LiaccvRequest.js
View file @
944e6f03
...
@@ -31,7 +31,11 @@ export default class LiaccvRequest {
...
@@ -31,7 +31,11 @@ export default class LiaccvRequest {
}
}
},
},
ptsList
:
[],
ptsList
:
[],
liaccvg
:
[]
liaccvg
:
[],
fcdVo
:
{},
oldamt
:
""
,
chgamt
:
""
,
concur
:
""
}
}
}
}
}
}
\ No newline at end of file
src/components/business/ccvpan/model/index.js
View file @
944e6f03
export
default
class
Liaccv
{
export
default
class
Liaccv
{
constructor
()
{
constructor
()
{
this
.
data
=
{
this
.
data
=
{
oldamt
:
""
,
chgamt
:
""
,
newamt
:
""
,
// 合同金额 .liaall.liaccv.newamt
newamt
:
""
,
// 合同金额 .liaall.liaccv.newamt
concur
:
""
,
// 应付保证金金额 .liaall.liaccv.concur
concur
:
""
,
// 应付保证金金额 .liaall.liaccv.concur
totcovamt
:
""
,
// 金额总和 .liaall.liaccv.totcovamt
totcovamt
:
""
,
// 金额总和 .liaall.liaccv.totcovamt
...
...
src/components/business/ccvpan/views/index.vue
View file @
944e6f03
...
@@ -170,13 +170,18 @@
...
@@ -170,13 +170,18 @@
<template>
<template>
<el-dialog
:visible
.
sync=
"dialogTableVisible"
width=
"60%"
center
>
<el-dialog
:visible
.
sync=
"dialogTableVisible"
width=
"60%"
center
>
<c-istream-table
<el-table
:list=
"stmData.data"
:data=
"stmData.data"
:columns=
"stmData.columns"
:columns=
"stmData.columns"
:paginationShow=
"true"
:showButtonFlg=
"true"
:total=
"stmData.data.length"
:tableData=
"stmData.data"
>
>
<el-table-column
v-for=
"(item, key) in stmData.columns"
:key=
"key"
:label=
"item.label"
:prop=
"item.prop"
:width=
"item.width"
></el-table-column>
<el-table-column
prop=
"op"
label=
"OP"
width=
"80"
fixed=
"right"
>
<el-table-column
prop=
"op"
label=
"OP"
width=
"80"
fixed=
"right"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<c-button
<c-button
...
@@ -189,7 +194,7 @@
...
@@ -189,7 +194,7 @@
</c-button>
</c-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</
c-istream
-table>
</
el
-table>
</el-dialog>
</el-dialog>
</template>
</template>
<c-col
:span=
"24"
>
<c-col
:span=
"24"
>
...
@@ -304,6 +309,7 @@
...
@@ -304,6 +309,7 @@
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
Event
from
"../event"
import
Api
from
"~/service/Api"
;
import
Api
from
"~/service/Api"
;
import
commonProcess
from
"~/mixin/commonProcess"
;
import
commonProcess
from
"~/mixin/commonProcess"
;
import
CodeTable
from
"~/config/CodeTable"
;
import
CodeTable
from
"~/config/CodeTable"
;
...
@@ -318,20 +324,43 @@
...
@@ -318,20 +324,43 @@
dialogTableVisible
:
false
,
dialogTableVisible
:
false
,
stmData
:
{
stmData
:
{
columns
:
[
columns
:
[
'1 1:1 "编号" 150'
,
{
'2 2:1 "用户" 80'
,
label
:
'编号'
,
'3 3:1 "申请人" 100'
,
prop
:
'ownref'
'4 4:1 "账户" 200'
,
},
'5 5:1 "币种" 200'
,
{
'6 6:1 "金额" 100 2 0 1 18.3'
,
label
:
'用户'
,
'7 7:1 "开立日期" 80 4 7'
,
prop
:
'ownusr'
'8 8:1 "标志" 150'
,
},
'9 9:1 "备注" 250'
,
{
"P COLORED TRUE"
,
label
:
'申请人'
,
"P VERTLINES TRUE"
,
prop
:
'aplnam'
,
"P HORZLINES TRUE"
,
width
:
180
"P MULTISELECT FALSE"
,
},
"P COLUMNSIZING TRUE"
,
{
label
:
'账户'
,
prop
:
'engact'
},
{
label
:
'币种'
,
prop
:
'cur'
},
{
label
:
'金额'
,
prop
:
'amt'
},
{
label
:
'开立日期'
,
prop
:
'opndat'
},
{
label
:
'标志'
,
prop
:
'gleflg'
},
{
label
:
'备注'
,
prop
:
'reason'
}
],
],
data
:
[],
data
:
[],
},
},
...
@@ -339,41 +368,40 @@
...
@@ -339,41 +368,40 @@
};
};
},
},
methods
:
{
methods
:
{
...
Event
,
async
onLiaccvAdd
()
{
async
onLiaccvAdd
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"liaall.liaccv.add"
);
let
rulePath
=
"/service/liaccv/getFcdList"
;
//const that = this.root;
let
liaccvRequest
=
this
.
buildLiaccv
(
this
.
root
);
let
rtnmsg
=
await
Api
.
post
(
rulePath
,
liaccvRequest
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
this
.
dialogTableVisible
=
true
;
if
(
typeof
rtnmsg
.
data
.
vals
!=
"undefined"
)
{
this
.
stmData
.
data
=
rtnmsg
.
data
;
this
.
stmData
.
data
=
rtnmsg
.
data
.
vals
.
rows
;
}
else
{
this
.
stmData
.
data
=
[];
}
this
.
dialogTableVisible
=
true
;
}
else
{
this
.
$notify
.
error
({
title
:
"错误"
,
message
:
"服务请求失败!"
});
}
}
},
},
async
pickDepItem
(
idx
,
row
)
{
async
pickDepItem
(
idx
,
row
)
{
var
params
=
{
selDst
:
""
,
selIds
:
[
idx
+
1
]
};
let
rulePath
=
"/service/liaccv/addLiaccvg"
;
let
rtnmsg
=
await
this
.
executeRule
(
"liaall.liaccv.add"
,
params
);
let
liaccvRequest
=
this
.
buildLiaccv
(
this
.
root
);
liaccvRequest
.
fcdVo
=
row
;
let
rtnmsg
=
await
Api
.
post
(
rulePath
,
liaccvRequest
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
this
.
dialogTableVisible
=
false
;
this
.
dialogTableVisible
=
false
;
Utils
.
copyValueFromVO
(
this
.
model
,
rtnmsg
.
data
);
Utils
.
copyValueFromVO
(
this
.
model
.
liaccv
,
rtnmsg
.
data
);
}
}
},
},
async
onLiaccvDel
(
index
,
row
)
{
async
onLiaccvDel
(
index
,
row
)
{
let
ids
=
[
index
+
1
];
let
fcdVo
=
{
let
params
=
{
selDst
:
"liaall.liaccv.liaccvg"
,
selIds
:
ids
};
inr
:
row
.
fcdinr
let
rtnmsg
=
await
this
.
executeRule
(
"liaall.liaccv.del"
,
params
);
}
let
rulePath
=
"/service/liaccv/deleteLiaccvg"
;
let
liaccvRequest
=
this
.
buildLiaccv
(
this
.
root
);
liaccvRequest
.
fcdVo
=
fcdVo
;
let
rtnmsg
=
await
Api
.
post
(
rulePath
,
liaccvRequest
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
Utils
.
copyValueFromVO
(
this
.
model
.
liaccv
,
rtnmsg
.
data
);
this
.
$message
({
this
.
$message
({
type
:
"success"
,
type
:
"success"
,
message
:
"删除成功!"
,
message
:
"删除成功!"
,
});
});
//this.model.liaall.liaccv.liaccvg = [];
Utils
.
copyValueFromVO
(
this
.
model
,
rtnmsg
.
data
);
}
else
{
}
else
{
this
.
$notify
.
error
({
title
:
"错误"
,
message
:
"服务请求失败!"
});
this
.
$notify
.
error
({
title
:
"错误"
,
message
:
"服务请求失败!"
});
}
}
...
...
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