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
42636726
Commit
42636726
authored
Dec 27, 2021
by
wangguangchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
复核按钮提示优化
parent
2793bac1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
47 deletions
+57
-47
Event.js
src/model/Trnrel/Event.js
+55
-47
Infsea.vue
src/views/Business/Infdid/Infsea.vue
+2
-0
No files found.
src/model/Trnrel/Event.js
View file @
42636726
...
...
@@ -88,56 +88,64 @@ export default {
},
async
onRelrow
(
idx
,
row
)
{
const
selIds
=
[
idx
+
1
];
//rowno选中行
const
selDst
=
"trncorco.trnstm"
//列表对应后台模型中的stream
let
params
=
{
selDst
:
selDst
,
selIds
:
selIds
};
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'
});
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
(
"relrow"
,
params
)
if
(
rtnmsg
.
respCode
==
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
;
})
}
}
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
];
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
;
})
}
}
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
;
}
errorMsg
=
errorMsgkey
+
':'
+
errorMsgVal
;
}
else
if
(
rtnmsg
.
respMsg
){
errorMsg
=
rtnmsg
.
respMsg
;
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'复核失败!错误信息['
+
errorMsg
+
']'
});
}
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'复核失败!错误信息['
+
errorMsg
+
']'
});
}
})
},
sleep
(
ms
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
...
...
src/views/Business/Infdid/Infsea.vue
View file @
42636726
...
...
@@ -125,6 +125,7 @@
v-model=
"model.infcon.opndatfrom"
style=
"width: 100%"
placeholder=
"请选择Opening between"
value-format=
"yyyy-MM-dd"
></el-date-picker>
</c-col>
<c-col
:span=
"2"
style=
"text-align: center"
>
...
...
@@ -136,6 +137,7 @@
v-model=
"model.infcon.opndatto"
style=
"width: 100%"
placeholder=
"请选择Open Date to"
value-format=
"yyyy-MM-dd"
></el-date-picker>
</c-col>
</el-form-item>
...
...
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