Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
ferry_web
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jianan
ferry_web
Commits
ac8ef6ec
Commit
ac8ef6ec
authored
Mar 03, 2021
by
Mr. Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 新增重开工单功能。
parent
30cd4e7e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
1 deletions
+31
-1
src/api/process/work-order.js
+8
-0
src/views/process/list/my-create.vue
+23
-1
No files found.
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