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
zhouqian
vue-gjjs
Commits
25ebde49
Commit
25ebde49
authored
Dec 29, 2021
by
wangguangchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
待复核交易优化
parent
d2607a36
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
116 additions
and
8 deletions
+116
-8
IStreamTable.vue
src/components/IStreamTable.vue
+3
-0
commonFuncs.js
src/mixin/commonFuncs.js
+75
-0
Event.js
src/model/Trnrel/Event.js
+21
-3
Inftrnps.vue
src/views/Business/Trnrel/Inftrnps.vue
+14
-5
index.vue
src/views/Review/index.vue
+3
-0
No files found.
src/components/IStreamTable.vue
View file @
25ebde49
...
...
@@ -139,6 +139,9 @@ export default {
}
it
[
"IDX"
]
=
i
;
it
[
'INR'
]
=
items
[
0
];
if
(
it
[
'INR'
].
length
<
8
){
it
[
'INR'
]
=
items
[
1
];
}
it
.
srcStr
=
d
;
arr
.
push
(
it
);
}
...
...
src/mixin/commonFuncs.js
View file @
25ebde49
...
...
@@ -72,5 +72,80 @@ export default {
this
.
$notify
.
error
({
title
:
"错误"
,
message
:
result
.
respMsg
});
}
},
async
handlePass
(
data
)
{
debugger
;
this
.
$confirm
(
'您确定复核该笔交易?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
async
()
=>
{
let
idxInt
=
parseInt
(
data
.
idx
);
const
selIds
=
[
idxInt
+
1
];
//rowno选中行
const
selDst
=
"trncorco.trnstm"
//列表对应后台模型中的stream
let
params
=
{
selDst
:
selDst
,
selIds
:
selIds
};
this
.
declareParams
.
trnName
=
"trnrel"
;
console
.
log
(
this
);
this
.
model
.
pageId
=
data
.
pageId
;
let
rtnmsg
=
await
this
.
executeRule
(
"relrow"
,
params
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
debugger
;
let
errorMsg
=
""
;
let
fieldErrorsFlag
=
(
JSON
.
stringify
(
rtnmsg
.
fieldErrors
)
==
"{}"
);
if
(
!
fieldErrorsFlag
){
let
errorMsgkey
=
""
;
let
errorMsgVal
=
""
;
for
(
const
key
in
rtnmsg
.
fieldErrors
)
{
errorMsgkey
=
key
;
errorMsgVal
=
rtnmsg
.
fieldErrors
[
key
];
}
errorMsg
=
errorMsgkey
+
':'
+
errorMsgVal
;
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'复核失败!错误信息['
+
errorMsg
+
']'
});
}
else
{
this
.
$notify
({
title
:
'成功'
,
message
:
'复核成功'
,
type
:
'success'
});
debugger
;
// const that = this.root;
// that.executeRule("searow").then(res => {
// //TODO 处理数据逻辑
// that.$refs.inftrnps.stmData.data = res.data.trncorco_trnstm.rows;
// this.model.trncorco.trnstm = res.data.trncorco_trnstm;
// })
this
.
$router
.
history
.
push
(
"/taskList"
,
()
=>
{
this
.
$store
.
commit
(
"setTaskListTabVal"
,
'trnrel'
)
})
}
}
else
{
let
errorMsg
=
""
;
let
fieldErrorsFlag
=
(
JSON
.
stringify
(
rtnmsg
.
fieldErrors
)
==
"{}"
);
if
(
!
fieldErrorsFlag
){
let
errorMsgkey
=
""
;
let
errorMsgVal
=
""
;
for
(
const
key
in
rtnmsg
.
fieldErrors
)
{
errorMsgkey
=
key
;
errorMsgVal
=
rtnmsg
.
fieldErrors
[
key
];
}
errorMsg
=
errorMsgkey
+
':'
+
errorMsgVal
;
}
else
if
(
rtnmsg
.
respMsg
){
errorMsg
=
rtnmsg
.
respMsg
;
}
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'复核失败!错误信息['
+
errorMsg
+
']'
});
}
}
)
},
},
};
src/model/Trnrel/Event.js
View file @
25ebde49
...
...
@@ -86,8 +86,19 @@ export default {
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
on
Relrow
(
idx
,
row
)
{
async
on
Handle
(
idx
,
row
)
{
let
viewurl
=
"/review/ditopn"
;
let
pageId
=
this
.
model
.
pageId
;
debugger
;
this
.
$router
.
push
({
path
:
viewurl
,
query
:{
routeParams
:
{
process
:
"1"
,
commitFlag
:
"1"
},
trn
:
row
[
'INR'
],
idx
:
idx
,
pageId
:
pageId
}});
},
async
onRelrow
(
idx
)
{
this
.
$confirm
(
'您确定复核该笔交易?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
...
...
@@ -97,7 +108,10 @@ export default {
const
selDst
=
"trncorco.trnstm"
//列表对应后台模型中的stream
let
params
=
{
selDst
:
selDst
,
selIds
:
selIds
};
debugger
;
let
initRtnmsg
=
await
this
.
init
();
if
(
initRtnmsg
.
respCode
==
SUCCESS
){
let
rtnmsg
=
await
this
.
executeRule
(
"relrow"
,
params
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
debugger
;
...
...
@@ -143,10 +157,14 @@ export default {
}
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'复核失败!错误信息['
+
errorMsg
+
']'
});
}
}
})
},
sleep
(
ms
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
...
...
src/views/Business/Trnrel/Inftrnps.vue
View file @
25ebde49
...
...
@@ -401,28 +401,37 @@
fixed=
"right"
prop=
"display"
label=
"操作"
width=
"2
0
0px"
width=
"2
3
0px"
>
<
template
slot-scope=
"scope"
>
<!--
<a
:href=
"`/#/display/$
{scope.row['10'].toLowerCase()}?trn=${scope.row['1']}`" target="_blank" >显示快照
</a>
-->
<!--
<a
href=
"javascript:void(0)"
@
click=
"display(scope.$index, scope.row)"
>
显示快照
</a
>
-->
<c-button
<
!--
<
c-button
style=
"margin-left: 0"
size=
"small"
type=
"primary"
@
click=
"display(scope.$index, scope.row)"
>
快照
</c-button>
</c-button>
-->
<c-button
style=
"margin-left: 0"
size=
"small"
type=
"primary"
@
click=
"onRelrow(scope.$index,scope.row)"
@
click=
"onHandle(scope.$index,scope.row)"
>
处理
</c-button>
<c-button
style=
"margin-left: 0"
size=
"small"
type=
"primary"
@
click=
"onRelrow(scope.$index)"
>
复核
...
...
@@ -433,7 +442,7 @@
type=
"primary"
>
退回
流程记录
</c-button>
...
...
src/views/Review/index.vue
View file @
25ebde49
...
...
@@ -340,12 +340,15 @@ export default {
}
},
async
handlePass
()
{
console
.
log
(
this
.
remark
)
let
data
=
{}
if
(
this
.
process
==
'1'
||
this
.
process
==
'2'
||
this
.
process
==
'4'
)
{
// 复核通过需要传递参数:复核意见和tips
// 通过 - 清空tips
data
=
{
pageId
:
this
.
$route
.
query
.
pageId
,
idx
:
this
.
$route
.
query
.
idx
,
remark
:
this
.
remark
,
tips
:
[]
//this.$store.state.Status.highlights
}
...
...
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