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
05e68aae
authored
Jul 26, 2020
by
Mr. Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加催办功能
parent
0411c968
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
1 deletions
src/api/process/work-order.js
src/views/process/list/upcoming.vue
src/api/process/work-order.js
View file @
05e68aae
...
@@ -53,3 +53,12 @@ export function inversionWorkOrder(data) {
...
@@ -53,3 +53,12 @@ export function inversionWorkOrder(data) {
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 @@
...
@@ -65,6 +65,13 @@
@
click=
"handleView(scope.row)"
@
click=
"handleView(scope.row)"
>
查看
</el-button>
>
查看
</el-button>
<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-if=
"scope.row.is_end===0"
v-permisaction=
"['process:list:upcoming:inversion']"
v-permisaction=
"['process:list:upcoming:inversion']"
size=
"mini"
size=
"mini"
...
@@ -114,7 +121,7 @@
...
@@ -114,7 +121,7 @@
</template>
</template>
<
script
>
<
script
>
import
{
workOrderList
,
inversionWorkOrder
}
from
'@/api/process/work-order'
import
{
workOrderList
,
inversionWorkOrder
,
urgeWorkOrder
}
from
'@/api/process/work-order'
import
{
listUser
}
from
'@/api/system/sysuser'
import
{
listUser
}
from
'@/api/system/sysuser'
export
default
{
export
default
{
data
()
{
data
()
{
...
@@ -191,6 +198,29 @@ export default {
...
@@ -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