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
94007ba7
Commit
94007ba7
authored
May 24, 2022
by
潘际乾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
交易的repair处理
parent
232cf12b
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
55 additions
and
5 deletions
+55
-5
gj-common.min.js
src/components/gj-common.min.js
+0
-0
commonFuncs.js
src/mixin/commonFuncs.js
+3
-0
commonProcess.js
src/mixin/commonProcess.js
+1
-0
Event.js
src/model/Trnrel/Event.js
+51
-5
No files found.
src/components/gj-common.min.js
View file @
94007ba7
This diff is collapsed.
Click to expand it.
src/mixin/commonFuncs.js
View file @
94007ba7
...
...
@@ -106,5 +106,8 @@ export default {
async
handlePass
(
data
)
{
this
.
$store
.
state
.
Transaction
.
operateFuns
[
data
.
operateId
][
"pass"
]()
},
async
handleRefuse
(
data
)
{
this
.
$store
.
state
.
Transaction
.
operateFuns
[
data
.
operateId
][
"refuse"
]()
},
},
};
src/mixin/commonProcess.js
View file @
94007ba7
...
...
@@ -197,6 +197,7 @@ export default {
}
}
}
this
.
$el
.
querySelectorAll
(
'input'
).
forEach
(
input
=>
input
.
blur
())
})
},
/**
...
...
src/model/Trnrel/Event.js
View file @
94007ba7
...
...
@@ -97,7 +97,7 @@ export default {
const
operateId
=
await
this
.
$store
.
dispatch
(
'Transaction/setOperateFuns'
,
{
pass
:
this
.
onRelrow
.
bind
(
this
,
idx
),
refuse
:
()
=>
{
alert
(
"功能开发中"
)
}
refuse
:
this
.
onReprow
.
bind
(
this
,
idx
),
});
this
.
$router
.
push
({
path
:
viewurl
,
query
:
{
trn
:
row
[
'INR'
],
operateId
:
operateId
}
});
...
...
@@ -227,15 +227,61 @@ export default {
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onReprow
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"reprow"
)
async
onReprow
(
idx
)
{
this
.
$confirm
(
'您确定退回该笔交易?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
async
()
=>
{
const
selIds
=
[
idx
+
1
];
//rowno选中行
const
selDst
=
"trncorco.trnstm"
//列表对应后台模型中的stream
let
params
=
{
selDst
:
selDst
,
selIds
:
selIds
};
let
rtnmsg
=
await
this
.
executeRule
(
"reprow"
,
params
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
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'
});
this
.
$store
.
dispatch
(
"TagsView/delView"
,
this
.
$route
)
this
.
$router
.
history
.
push
(
"/taskList"
,
()
=>
{
this
.
$store
.
commit
(
"setTaskListTabVal"
,
'trnrel'
);
this
.
handleSearch
()
});
}
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
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
=
errorMsg
+
errorMsgkey
+
':'
+
errorMsgVal
+
";"
;
}
}
else
if
(
rtnmsg
.
respMsg
)
{
errorMsg
=
rtnmsg
.
respMsg
;
}
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'退回失败!错误信息['
+
errorMsg
+
']'
});
}
})
},
async
onRejrow
()
{
console
.
log
(
this
.
getSelectedData
())
...
...
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