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
05e68aae
Commit
05e68aae
authored
Jul 26, 2020
by
Mr. Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加催办功能
parent
0411c968
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
1 deletions
+40
-1
src/api/process/work-order.js
+9
-0
src/views/process/list/upcoming.vue
+31
-1
No files found.
src/api/process/work-order.js
View file @
05e68aae
...
...
@@ -53,3 +53,12 @@ export function inversionWorkOrder(data) {
data
})
}
// 催办工单
export
function
urgeWorkOrder
(
params
)
{
return
request
({
url
:
'/api/v1/work-order/urge'
,
method
:
'get'
,
params
})
}
src/views/process/list/upcoming.vue
View file @
05e68aae
...
...
@@ -65,6 +65,13 @@
@
click=
"handleView(scope.row)"
>
查看
</el-button>
<el-button
v-permisaction=
"['process:list:upcoming:urge']"
size=
"mini"
type=
"text"
icon=
"el-icon-alarm-clock"
@
click=
"handleUrge(scope.row)"
>
催办
</el-button>
<el-button
v-if=
"scope.row.is_end===0"
v-permisaction=
"['process:list:upcoming:inversion']"
size=
"mini"
...
...
@@ -114,7 +121,7 @@
</template>
<
script
>
import
{
workOrderList
,
inversionWorkOrder
}
from
'@/api/process/work-order'
import
{
workOrderList
,
inversionWorkOrder
,
urgeWorkOrder
}
from
'@/api/process/work-order'
import
{
listUser
}
from
'@/api/system/sysuser'
export
default
{
data
()
{
...
...
@@ -191,6 +198,29 @@ export default {
})
}
})
},
handleUrge
(
row
)
{
this
.
$confirm
(
'<span style="font-size:15px ">对此工单处理人进行催办通知提醒, 是否继续?</span><br><span style="color: #c33; font-size: 10px">注意:十分钟内只能催办一次。</span>'
,
'催办'
,
{
dangerouslyUseHTMLString
:
true
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
urgeWorkOrder
({
workOrderId
:
row
.
id
}).
then
(
response
=>
{
console
.
log
(
response
)
this
.
$message
({
type
:
'success'
,
message
:
'已进行催办通知!'
})
})
}).
catch
(()
=>
{
this
.
$message
({
type
:
'info'
,
message
:
'已取消'
})
})
}
}
}
...
...
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