Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Chatopera OpenSource
/
ferry_web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ac8ef6ec
authored
Mar 03, 2021
by
Mr. Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 新增重开工单功能。
parent
30cd4e7e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
1 deletions
src/api/process/work-order.js
src/views/process/list/my-create.vue
src/api/process/work-order.js
View file @
ac8ef6ec
...
...
@@ -79,3 +79,11 @@ export function deleteWorkOrder(workOrderId) {
method
:
'delete'
})
}
// 删除工单
export
function
reopenWorkOrder
(
id
)
{
return
request
({
url
:
`/api/v1/work-order/reopen/
${
id
}
`
,
method
:
'post'
})
}
src/views/process/list/my-create.vue
View file @
ac8ef6ec
...
...
@@ -57,6 +57,13 @@
@
click=
"handleView(scope.row)"
>
查看
</el-button>
<el-button
v-permisaction=
"['process:list:myCreate:reopen']"
size=
"mini"
type=
"text"
icon=
"el-icon-refresh-right"
@
click=
"handleReopen(scope.row.id)"
>
重开
</el-button>
<el-button
v-if=
"scope.row.is_end===0"
v-permisaction=
"['process:list:upcoming:urge']"
size=
"mini"
...
...
@@ -80,7 +87,7 @@
</template>
<
script
>
import
{
workOrderList
,
urgeWorkOrder
}
from
'@/api/process/work-order'
import
{
workOrderList
,
urgeWorkOrder
,
reopenWorkOrder
}
from
'@/api/process/work-order'
// 搜索
import
WorkOrderSearch
from
'./components/search/index'
...
...
@@ -140,6 +147,21 @@ export default {
handleView
(
row
)
{
this
.
$router
.
push
({
name
:
'ProcessListHandle'
,
query
:
{
workOrderId
:
row
.
id
,
processId
:
row
.
process
}})
},
handleReopen
(
id
)
{
this
.
$confirm
(
'根据此工单新建一个新的工单?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'info'
}).
then
(()
=>
{
reopenWorkOrder
(
id
).
then
(
res
=>
{
this
.
getList
()
this
.
$message
({
type
:
'success'
,
message
:
'成功!'
})
})
})
},
handleSelectionChange
()
{},
handleUrge
(
row
)
{
this
.
$confirm
(
'
<
span
style
=
"font-size:15px "
>
对此工单处理人进行催办通知提醒
,
是否继续
?
<
/span><br><span style="color: #c33; font-size: 10px">注意:十分钟内只能催办一次。</
span
>
', '
催办
', {
...
...
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