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
3de44b5c
Commit
3de44b5c
authored
Sep 23, 2020
by
YuleiLan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 调整催办的位置。
parent
2c96c69a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
59 deletions
+33
-59
my-create.vue
src/views/process/list/my-create.vue
+32
-29
upcoming.vue
src/views/process/list/upcoming.vue
+1
-30
No files found.
src/views/process/list/my-create.vue
View file @
3de44b5c
...
...
@@ -64,36 +64,18 @@
icon=
"el-icon-edit"
@
click=
"handleView(scope.row)"
>
查看
</el-button>
<el-button
v-if=
"scope.row.is_end===0"
v-permisaction=
"['process:list:upcoming:urge']"
size=
"mini"
type=
"text"
icon=
"el-icon-alarm-clock"
@
click=
"handleUrge(scope.row)"
>
催办
</el-button>
</
template
>
</el-table-column>
</el-table>
<el-dialog
title=
"转交工单"
:visible
.
sync=
"dialogVisible"
width=
"30%"
>
<el-form
ref=
"ruleForm"
:model=
"ruleForm"
:rules=
"rules"
label-width=
"60px"
class=
"demo-ruleForm"
>
<el-form-item
label=
"节点"
prop=
"node_id"
>
<el-select
v-model=
"ruleForm.node_id"
placeholder=
"选择节点"
size=
"small"
style=
"width: 100%"
>
<el-option
v-for=
"(item, index) in nodeList"
:key=
"index"
:label=
"item.label"
:value=
"item.id"
/>
</el-select>
</el-form-item>
<el-form-item
label=
"用户"
prop=
"user_id"
>
<el-select
v-model=
"ruleForm.user_id"
placeholder=
"选择用户"
size=
"small"
style=
"width: 100%"
>
<el-option
v-for=
"(item, index) in users"
:key=
"index"
:label=
"item.nickName"
:value=
"item.userId"
/>
</el-select>
</el-form-item>
<el-form-item
label=
"备注"
>
<el-input
v-model=
"ruleForm.remarks"
type=
"textarea"
size=
"small"
/>
</el-form-item>
<el-form-item
style=
"text-align: right"
>
<el-button
type=
"primary"
@
click=
"submitForm('ruleForm')"
>
提交
</el-button>
<el-button
@
click=
"dialogVisible = false"
>
关闭
</el-button>
</el-form-item>
</el-form>
</el-dialog>
<pagination
v-show=
"total>0"
:total=
"total"
...
...
@@ -106,13 +88,12 @@
</template>
<
script
>
import
{
workOrderList
}
from
'@/api/process/work-order'
import
{
workOrderList
,
urgeWorkOrder
}
from
'@/api/process/work-order'
export
default
{
data
()
{
return
{
users
:
[],
nodeList
:
[],
dialogVisible
:
false
,
queryParams
:
{},
total
:
0
,
loading
:
false
,
...
...
@@ -157,7 +138,29 @@ export default {
handleView
(
row
)
{
this
.
$router
.
push
({
name
:
'ProcessListHandle'
,
query
:
{
workOrderId
:
row
.
id
,
processId
:
row
.
process
}})
},
handleSelectionChange
()
{}
handleSelectionChange
()
{},
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
=>
{
this
.
$message
({
type
:
'success'
,
message
:
'已进行催办通知!'
})
})
}).
catch
(()
=>
{
this
.
$message
({
type
:
'info'
,
message
:
'已取消'
})
})
}
}
}
</
script
>
...
...
src/views/process/list/upcoming.vue
View file @
3de44b5c
...
...
@@ -64,13 +64,6 @@
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']"
...
...
@@ -121,7 +114,7 @@
</template>
<
script
>
import
{
workOrderList
,
inversionWorkOrder
,
urgeWorkOrder
}
from
'@/api/process/work-order'
import
{
workOrderList
,
inversionWorkOrder
}
from
'@/api/process/work-order'
import
{
listUser
}
from
'@/api/system/sysuser'
export
default
{
data
()
{
...
...
@@ -198,28 +191,6 @@ 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
=>
{
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