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
7655bd93
Commit
7655bd93
authored
Mar 27, 2023
by
qinjianhui
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'master'
Dev See merge request
!18
parents
f8c03a71
767df67c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
57 additions
and
2 deletions
+57
-2
src/assets/work/complete.png
+0
-0
src/common/api/order.js
+7
-1
src/views/home/navMenu.vue
+15
-0
src/views/taskManage/index.vue
+35
-1
No files found.
src/assets/work/complete.png
0 → 100644
View file @
7655bd93
1007 Bytes
src/common/api/order.js
View file @
7655bd93
import
axios
from
'./axios'
export
function
getOrderTree
()
{
return
axios
.
get
(
'platform/platformWorkOrder/findStateGroupList'
)
return
axios
.
get
(
'platform/platformWorkOrder/
saas/
findStateGroupList'
)
}
export
function
workConfirmed
(
id
)
{
...
...
@@ -29,6 +29,12 @@ export function archiveWorkOrder(id) {
})
}
export
function
completeWorkOrder
(
id
)
{
return
axios
.
post
(
'platform/platformWorkOrder/complete'
,
{
id
:
id
,
})
}
export
function
replyTocustomer
(
id
,
msg
)
{
return
axios
.
post
(
'platform/platformWorkOrderChat/add'
,
{
msg
:
msg
,
...
...
src/views/home/navMenu.vue
View file @
7655bd93
...
...
@@ -46,6 +46,9 @@
</template>
</el-menu>
<div
class=
"user-area"
>
<span
class=
"user-avatar"
>
<i
class=
"el-icon-user"
></i>
</span>
<el-dropdown>
<div
size=
"mini"
style=
"color: #fff"
>
{{ userInfo
&&
userInfo.realName
...
...
@@ -299,4 +302,16 @@ export default {
margin-right
:
10px
;
}
}
.user-avatar
{
width
:
24px
;
height
:
24px
;
border
:
1px
solid
#fff
;
border-radius
:
50%
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
margin-right
:
10px
;
font-size
:
18px
;
}
</
style
>
src/views/taskManage/index.vue
View file @
7655bd93
...
...
@@ -376,6 +376,7 @@ import {
workAssigned
,
startWorder
,
archiveWorkOrder
,
completeWorkOrder
,
replyTocustomer
,
getOrderType
,
}
from
'@/common/api/order'
...
...
@@ -385,6 +386,7 @@ import { mapState } from 'vuex'
import
assignWork
from
'@/assets/work/assign.png'
import
startWork
from
'@/assets/work/start.png'
import
archiveWork
from
'@/assets/work/archive.png'
import
completeWork
from
'@/assets/work/complete.png'
export
default
{
name
:
'task_center'
,
...
...
@@ -463,6 +465,7 @@ export default {
),
},
{
label
:
'工单编号'
,
key
:
'orderNo'
,
width
:
110
},
{
label
:
'工单模块'
,
key
:
'moduleName'
,
width
:
110
,
align
:
'left'
},
{
label
:
'工单类型'
,
key
:
'orderTypeTxt'
,
...
...
@@ -483,12 +486,17 @@ export default {
key
:
'fromBusiness'
,
width
:
80
,
},
{
label
:
'描述'
,
key
:
'evaluations'
,
},
{
label
:
'创建时间'
,
key
:
'createTime'
,
width
:
130
,
},
{
label
:
'期望完成时间'
,
key
:
'expectCompleteTime'
,
width
:
130
},
{
label
:
'完成时间'
,
key
:
'completeTime'
,
width
:
130
},
{
label
:
'操作'
,
fixed
:
'right'
,
...
...
@@ -540,6 +548,11 @@ export default {
/
>
<
/span
>
)}
{
item
.
orderStatus
===
'IN_PROGRESS'
&&
(
<
span
title
=
"完成"
class
=
"icon-view"
>
<
img
width
=
"24"
height
=
"24"
src
=
{
completeWork
}
onClick
=
{()
=>
this
.
complete
(
item
)}
/
>
<
/span
>
)}
<
/span
>
),
},
...
...
@@ -643,6 +656,7 @@ export default {
this
.
currentRowId
=
item
.
id
this
.
taskLeader
=
''
this
.
assignVisible
=
true
this
.
user
=
''
},
// 开始工单
async
startWorkOrder
(
item
)
{
...
...
@@ -727,6 +741,26 @@ export default {
console
.
error
(
e
)
}
},
async
complete
(
item
)
{
try
{
await
this
.
$confirm
(
'确定完成吗?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
})
}
catch
{
return
}
try
{
const
res
=
await
completeWorkOrder
(
item
.
id
)
if
(
res
.
code
===
200
)
{
this
.
getlist
()
this
.
getOrderTree
()
}
}
catch
(
e
)
{
console
.
error
(
e
)
}
},
async
reply
()
{
if
(
!
this
.
textarea
)
{
return
this
.
$message
.
warning
(
'请输入内容'
)
...
...
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