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
4608548c
Commit
4608548c
authored
Dec 26, 2021
by
wangguangchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trnrel交易复核按钮事件提交
parent
d83c249d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
178 additions
and
175 deletions
+178
-175
Event.js
src/model/Trnrel/Event.js
+176
-174
Inftrnps.vue
src/views/Business/Trnrel/Inftrnps.vue
+2
-1
No files found.
src/model/Trnrel/Event.js
View file @
4608548c
...
...
@@ -3,48 +3,48 @@ import Utils from "~/utils/index"
export
default
{
async
onSeaown
()
{
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
;
})
that
.
executeRule
(
"searow"
).
then
(
res
=>
{
//TODO 处理数据逻辑
that
.
$refs
.
inftrnps
.
stmData
.
data
=
res
.
data
.
trncorco_trnstm
.
rows
;
this
.
model
.
trncorco
.
trnstm
=
res
.
data
.
trncorco_trnstm
;
})
},
async
onSeajbh
()
{
const
that
=
this
.
root
;
that
.
executeRule
(
"seajbh"
).
then
(
res
=>
{
//TODO 处理数据逻辑
that
.
$refs
.
inftrnps
.
stmData
.
data
=
res
.
data
.
trncorco_trnstm
.
rows
;
})
that
.
executeRule
(
"seajbh"
).
then
(
res
=>
{
//TODO 处理数据逻辑
that
.
$refs
.
inftrnps
.
stmData
.
data
=
res
.
data
.
trncorco_trnstm
.
rows
;
})
},
async
onSeactr
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"seactr"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onSearow
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"searow"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onDsp
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"dsp"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onImgmodNewimg
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"imgmod_newimg"
)
...
...
@@ -58,240 +58,241 @@ export default {
},
async
onImgmodNewhisimg
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"imgmod_newhisimg"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onDiaconButdia
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"diacon_butdia"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onImgmodHisimg
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"imgmod_hisimg"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onRelrow
()
{
const
that
=
this
that
.
model
.
trncorco
.
selinr
.
empty
=
false
that
.
model
.
trncorco
.
selinr
.
rows
=
that
.
multipleSelection
.
map
(
idx
=>
that
.
model
.
trncorco
.
trnstm
.
rows
[
idx
])
let
rtnmsg
=
await
this
.
executeRule
(
"relrow"
)
const
selIdx
=
row
.
IDX
+
1
+
""
;
//rowno选中行
const
selDst
=
"trncorco.trnstm"
//列表对应后台模型中的stream
let
params
=
{
selDst
:
selDst
,
selIdx
:
selIdx
};
let
rtnmsg
=
await
this
.
executeRule
(
"relrow"
,
params
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
this
.
$message
({
type
:
'success'
,
message
:
'Re
lease
成功!'
message
:
'Re
ject
成功!'
});
await
this
.
sleep
(
2000
);
this
.
$router
.
go
(
0
);
}
else
{
th
at
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
th
is
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
sleep
(
ms
)
{
sleep
(
ms
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
resolve
()
},
ms
)
setTimeout
(()
=>
{
resolve
()
},
ms
)
})
},
async
onPrinte
()
{
},
async
onPrinte
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"printe"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onReprow
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"reprow"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onRejrow
()
{
console
.
log
(
this
.
getSelectedData
())
this
.
model
.
trncorco
.
selinr
[
'rows'
]
=
this
.
getSelectedData
();
let
rtnmsg
=
await
Api
.
post
(
"trnrel/rejrow"
,
this
.
wrapper
())
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
// var cacheFileName = rtnmsg.data.cacheFileName;
// let rejrowRtnmsg = await Api.post("trncor/init", {params:{"cacheFileName":cacheFileName}})
// if(rejrowRtnmsg.respCode == SUCCESS){
// this.$message({
// type: 'success',
// message: 'Reject成功!'
// });
// await this.sleep(2000);
// this.$router.go(0);
// }
this
.
$message
({
type
:
'success'
,
message
:
'Reject成功!'
});
// await this.sleep(2000);
// this.$router.go(0);
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
let
rtnmsg
=
await
Api
.
post
(
"trnrel/rejrow"
,
this
.
wrapper
())
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
// var cacheFileName = rtnmsg.data.cacheFileName;
// let rejrowRtnmsg = await Api.post("trncor/init", {params:{"cacheFileName":cacheFileName}})
// if(rejrowRtnmsg.respCode == SUCCESS){
// this.$message({
// type: 'success',
// message: 'Reject成功!'
// });
// await this.sleep(2000);
// this.$router.go(0);
// }
this
.
$message
({
type
:
'success'
,
message
:
'Reject成功!'
});
// await this.sleep(2000);
// this.$router.go(0);
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onRelcor
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"relcor"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onExi
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"exi"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onRecpanDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"recpan_det"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onSyswrnButshw
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"syswrn_butshw"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onRecpanNotmap
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"recpan_notmap"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onRecpanButspt
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"recpan_butspt"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onRecpanInc
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"recpan_inc"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onRecpanButord
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"recpan_butord"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onImgmodImage
()
{
async
onImgmodImage
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"imgmod_image"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onRecpanIncben
()
{
async
onRecpanIncben
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"recpan_incben"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onInftxtButtxmsel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"inftxt_buttxmsel"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onSeainf
()
{
},
display
(
index
,
row
){
display
(
index
,
row
)
{
const
d
=
this
.
stmData
.
data
[
index
]
const
ds
=
d
.
split
(
"
\
t"
)
let
viewurl
=
"/#/display/"
+
ds
[
'10'
].
toLowerCase
()
+
"?trn="
+
ds
[
'1'
]
let
viewurl
=
"/#/display/"
+
ds
[
'10'
].
toLowerCase
()
+
"?trn="
+
ds
[
'1'
]
window
.
open
(
viewurl
,
'newwindow'
,
'height=1200,width=900,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no'
);
},
async
handleSearch
()
{
const
that
=
this
.
root
;
if
(
this
.
model
.
searchAllUsers
)
{
if
(
this
.
model
.
searchAllUsers
)
{
that
.
executeRule
(
"seajbh"
).
then
(
res
=>
{
//TODO 处理数据逻辑
that
.
$refs
.
inftrnps
.
stmData
.
data
=
res
.
data
.
trncorco_trnstm
.
rows
;
})
}
else
{
}
else
{
that
.
executeRule
(
"searow"
).
then
(
res
=>
{
//TODO 处理数据逻辑
that
.
$refs
.
inftrnps
.
stmData
.
data
=
res
.
data
.
trncorco_trnstm
.
rows
;
...
...
@@ -300,7 +301,7 @@ export default {
}
},
async
handleReset
(){
async
handleReset
()
{
this
.
model
.
bchcon
=
""
;
this
.
model
.
trncorco
.
ownref
=
""
;
this
.
model
.
trncorco
.
relflg
=
""
;
...
...
@@ -313,5 +314,5 @@ export default {
this
.
model
.
searchAllUsers
=
false
;
}
}
\ No newline at end of file
src/views/Business/Trnrel/Inftrnps.vue
View file @
4608548c
...
...
@@ -401,7 +401,7 @@
label=
"操作"
width=
"200px"
>
<
template
>
<
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
...
...
@@ -418,6 +418,7 @@
style=
"margin-left: 0"
size=
"small"
type=
"primary"
@
click=
"onRelrow(scope.row)"
>
复核
...
...
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