Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
86ee53bc
authored
2022-11-08 17:40:23 +0800
by
蔡俊立
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
抢办
1 parent
bb1c7f53
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
2 deletions
src/api/ywbl.js
src/views/workflow/workFrame.vue
src/views/ywbl/dbx/dbx.vue
src/api/ywbl.js
View file @
86ee53b
...
...
@@ -161,4 +161,20 @@ export function selectOtherH (data) {
method
:
'post'
,
data
})
}
// 认领任务
export
function
claimTask
(
bsmSlsq
,
bestepid
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/business/workFlow/claimTask?bsmSlsq='
+
bsmSlsq
+
'&bestepid='
+
bestepid
,
method
:
'get'
,
})
}
// 取消认领任务
export
function
unClaimTask
(
bsmSlsq
,
bestepid
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/business/workFlow/unClaimTask?bsmSlsq='
+
bsmSlsq
+
'&bestepid='
+
bestepid
,
method
:
'get'
,
})
}
\ No newline at end of file
...
...
src/views/workflow/workFrame.vue
View file @
86ee53b
...
...
@@ -81,7 +81,7 @@ import {
getStepFormInfo
,
}
from
"@/api/fqsq.js"
;
import
{
mapGetters
}
from
"vuex"
import
{
deleteFlow
}
from
"@/api/ywbl.js"
;
import
{
deleteFlow
,
unClaimTask
}
from
"@/api/ywbl.js"
;
import
ProcessViewer
from
'./components/processViewer.vue'
import
{
getWorkFlowImage
}
from
"@/api/jsydsyqFlow.js"
;
import
{
getForm
}
from
"./flowform.js"
;
...
...
@@ -132,16 +132,36 @@ export default {
clxxIndex
:
""
,
//材料信息选项卡对象
clxxTab
:
{},
//页面监听时间
_beforeUnload_time
:
""
,
};
},
mounted
()
{
this
.
loadBdcdylist
();
this
.
flowInitParam
();
//添加页面监听事件
window
.
addEventListener
(
'beforeunload'
,
e
=>
this
.
beforeunloadHandler
(
e
))
window
.
addEventListener
(
'unload'
,
e
=>
this
.
unloadHandler
(
e
))
},
destroyed
()
{
window
.
removeEventListener
(
'beforeunload'
,
e
=>
this
.
beforeunloadHandler
(
e
))
window
.
removeEventListener
(
'unload'
,
e
=>
this
.
unloadHandler
(
e
))
},
computed
:
{
...
mapGetters
([
"oldDetail"
,
"newDetail"
])
},
methods
:
{
beforeunloadHandler
()
{
this
.
_beforeUnload_time
=
new
Date
().
getTime
()
},
unloadHandler
(
e
)
{
this
.
_gap_time
=
new
Date
().
getTime
()
-
this
.
_beforeUnload_time
//判断是窗口关闭还是刷新
if
(
this
.
_gap_time
<=
5
)
{
//取消认领
unClaimTask
(
this
.
bsmSlsq
,
this
.
bestepid
)
}
},
changeLoadIndex
()
{
this
.
loadIndex
++
},
...
...
@@ -367,6 +387,8 @@ export default {
break
;
case
"signout"
:
window
.
close
();
//取消认领
unClaimTask
(
this
.
bsmSlsq
,
this
.
bestepid
)
break
;
case
"B9"
:
var
formdata
=
new
FormData
();
...
...
src/views/ywbl/dbx/dbx.vue
View file @
86ee53b
...
...
@@ -70,7 +70,7 @@ import searchBox from '../components/search.vue'
import
table
from
"@/utils/mixin/table"
import
searchMin
from
"../components/mixin/index"
import
{
datas
,
sendThis
}
from
"./dbxdata"
import
{
searchTaskToDo
,
deleteFlow
}
from
"@/api/ywbl.js"
import
{
searchTaskToDo
,
deleteFlow
,
claimTask
}
from
"@/api/ywbl.js"
export
default
{
name
:
"dbx"
,
components
:
{
searchBox
},
...
...
@@ -174,6 +174,9 @@ export default {
ywhClick
(
item
)
{
const
{
href
}
=
this
.
$router
.
resolve
(
'/workFrame?bsmSlsq='
+
item
.
bsmSlsq
+
'&bestepid='
+
item
.
bestepid
+
'&bsmBusiness='
+
'&sqywbm='
+
item
.
djywbm
);
window
.
open
(
href
,
'_blank'
);
//从待办箱进入的调取任务领取接口
claimTask
(
item
.
bsmSlsq
,
item
.
bestepid
)
}
}
}
...
...
Please
register
or
sign in
to post a comment