Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
saas-manage
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
chehuidong
saas-manage
Commits
4b81ac15
Commit
4b81ac15
authored
Feb 22, 2023
by
qinjianhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 工单管理修改
parent
8ec10e31
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
35 deletions
+52
-35
src/common/api/order.js
+4
-0
src/views/taskManage/index.vue
+48
-35
No files found.
src/common/api/order.js
View file @
4b81ac15
...
...
@@ -35,3 +35,7 @@ export function replyTocustomer(id, msg) {
workOrderId
:
id
,
})
}
export
function
getOrderType
()
{
return
axios
.
get
(
'platform/platformWorkOrder/orderTypeList'
)
}
src/views/taskManage/index.vue
View file @
4b81ac15
...
...
@@ -45,14 +45,14 @@
<el-form-item
label=
"工单编号"
>
<el-input
style=
"width: 120px"
v-model=
"searchForm.
taskNumber
"
v-model=
"searchForm.
orderNo
"
placeholder=
"请输入"
clearable
></el-input>
</el-form-item>
<el-form-item
label=
"工单类型"
>
<el-select
v-model=
"searchForm.
task
Type"
v-model=
"searchForm.
order
Type"
style=
"width: 120px"
value-key=
""
placeholder=
"请选择"
...
...
@@ -60,40 +60,35 @@
filterable
>
<el-option
v-for=
"(type, index) in
task
Types"
v-for=
"(type, index) in
order
Types"
:key=
"index"
:label=
"type.
nam
e"
:value=
"type.
code
"
:label=
"type.
valu
e"
:value=
"type.
key
"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"工单标题"
>
<el-input
style=
"width: 120px"
v-model=
"searchForm.t
askT
itle"
v-model=
"searchForm.title"
placeholder=
"请输入"
clearable
></el-input>
</el-form-item>
<el-form-item
label=
"创建人"
>
<el-cascader
clearable
style=
"width: 120px"
v-model=
"searchForm.taskCreator"
:props=
"
{ emitPath: false }"
:options="deptStaff"
:show-all-levels="false"
>
</el-cascader>
</el-form-item>
<el-form-item
label=
"负责人"
>
<el-cascader
clearable
<el-select
style=
"width: 120px"
v-model=
"searchForm.taskLeader"
:props=
"
{ emitPath: false }"
:options="deptStaff"
:show-all-levels="false"
>
</el-cascader>
placeholder=
"请选择"
clearable
v-model=
"searchForm.leader"
>
<el-option
v-for=
"user in userList"
:key=
"user.id"
:label=
"user.realName"
:value=
"user.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label
>
<el-button
...
...
@@ -236,7 +231,10 @@
<!--
<el-button
size=
"mini"
type=
"success"
>
确认执行
</el-button
>
-->
<el-button
size=
"mini"
type=
"primary"
@
click=
"reply"
<el-button
size=
"mini"
type=
"primary"
@
click=
"reply"
>
回复
</el-button
>
</div>
...
...
@@ -293,6 +291,7 @@ import {
startWorder
,
archiveWorkOrder
,
replyTocustomer
,
getOrderType
,
}
from
'@/common/api/order'
import
{
getSystemUserList
}
from
'@/common/api/system'
import
{
mapState
}
from
'vuex'
...
...
@@ -342,12 +341,14 @@ export default {
label
:
'statusName'
,
},
userList
:
[],
orderTypes
:
[],
}
},
mounted
()
{
this
.
getOrderTree
()
this
.
getlist
()
this
.
getSystemUserList
()
this
.
getOrderTypes
()
},
computed
:
{
...
mapState
([
'deptStaff'
]),
...
...
@@ -412,16 +413,17 @@ export default {
align
:
'center'
,
render
:
(
item
)
=>
(
<
span
>
{(
<
span
title
=
"详情"
class
=
"icon-view icon-tools-view"
>
<
i
class
=
"el-icon-tickets"
onClick
=
{()
=>
this
.
showDetail
(
item
)}
><
/i
>
<
/span
>
)}
{(
item
.
orderStatus
===
'PRE_HANDLING'
||
item
.
orderStatus
===
'IN_PROGRESS'
)
&&
(
<
span
title
=
"详情"
class
=
"icon-view icon-tools-view"
>
<
i
class
=
"el-icon-tickets"
onClick
=
{()
=>
this
.
showDetail
(
item
)}
><
/i
>
<
/span>
)
}
{
/* {
<span
title="评价"
...
...
@@ -442,6 +444,14 @@ export default {
},
},
methods
:
{
async
getOrderTypes
()
{
try
{
const
res
=
await
getOrderType
()
this
.
orderTypes
=
res
.
data
}
catch
(
e
)
{
console
.
error
(
e
)
}
},
sizeChange
(
pageSize
)
{
this
.
centerPageOptions
.
pageSize
=
pageSize
this
.
getlist
()
...
...
@@ -611,7 +621,10 @@ export default {
}
try
{
const
res
=
await
replyTocustomer
(
this
.
currentRowId
,
this
.
textarea
)
const
res
=
await
replyTocustomer
(
this
.
currentRowId
,
this
.
textarea
,
)
if
(
res
.
code
===
200
)
{
this
.
detailVisible
=
false
}
...
...
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