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
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 deletion
+40
-1
work-order.js
src/api/process/work-order.js
+9
-0
upcoming.vue
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
...
...
@@ -64,6 +64,13 @@
icon=
"el-icon-edit"
@
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']"
...
...
@@ -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