Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
work-order-web
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
张圳龙
work-order-web
Commits
07a0b660
Unverified
Commit
07a0b660
authored
Mar 02, 2021
by
lanyulei
Committed by
GitHub
Mar 02, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #57 from lanyulei/dev
feat: 新增重开工单功能。
parents
30cd4e7e
ac8ef6ec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
1 deletion
+31
-1
work-order.js
src/api/process/work-order.js
+8
-0
my-create.vue
src/views/process/list/my-create.vue
+23
-1
No files found.
src/api/process/work-order.js
View file @
07a0b660
...
...
@@ -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 @
07a0b660
...
...
@@ -56,6 +56,13 @@
icon=
"el-icon-edit"
@
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']"
...
...
@@ -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