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
7847f9d8
Commit
7847f9d8
authored
Jul 08, 2024
by
HuAnYing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工单加入待定
parent
89e299a2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
83 additions
and
1 deletions
+83
-1
src/common/api/order.js
+14
-0
src/views/taskManage/index.vue
+69
-1
No files found.
src/common/api/order.js
View file @
7847f9d8
...
@@ -65,6 +65,20 @@ export function PendingWorkOrder(data) {
...
@@ -65,6 +65,20 @@ export function PendingWorkOrder(data) {
data
,
data
,
)
)
}
}
export
function
ShelveWorkOrder
(
data
)
{
return
axios
.
post
(
'platform/platformWorkOrder/shelveForPending'
,
data
,
)
}
export
function
TurnBackToPending
(
data
)
{
return
axios
.
post
(
'platform/platformWorkOrder/turnBackToPending'
,
data
,
)
}
export
function
replyTocustomer
(
id
,
msg
)
{
export
function
replyTocustomer
(
id
,
msg
)
{
return
axios
.
post
(
'platform/platformWorkOrderChat/add'
,
{
return
axios
.
post
(
'platform/platformWorkOrderChat/add'
,
{
msg
:
msg
,
msg
:
msg
,
...
...
src/views/taskManage/index.vue
View file @
7847f9d8
...
@@ -465,6 +465,20 @@
...
@@ -465,6 +465,20 @@
@
click=
"closeForPendingDialog"
@
click=
"closeForPendingDialog"
>
不受理
>
不受理
</el-button>
</el-button>
<el-button
size=
"mini"
type=
"danger"
v-if=
"statusCode === 'PRE_HANDLING'"
@
click=
"shelveForPendingDialog"
>
转至待定
</el-button>
<el-button
size=
"mini"
type=
"danger"
v-if=
"statusCode === 'PENDING'"
@
click=
"turnBackToPending"
>
转至待受理
</el-button>
</div>
</div>
</div>
</div>
</el-dialog>
</el-dialog>
...
@@ -743,7 +757,7 @@
...
@@ -743,7 +757,7 @@
</el-dialog>
</el-dialog>
<!-- 不受理 -->
<!-- 不受理 -->
<el-dialog
<el-dialog
title=
"不受理
"
:title=
"pendingTitle
"
:close-on-click-modal=
"false"
:close-on-click-modal=
"false"
:visible
.
sync=
"pendingVisible"
:visible
.
sync=
"pendingVisible"
width=
"800px"
width=
"800px"
...
@@ -810,6 +824,8 @@ import {
...
@@ -810,6 +824,8 @@ import {
replyTocustomer
,
replyTocustomer
,
acceptanWorkOrder
,
acceptanWorkOrder
,
PendingWorkOrder
,
PendingWorkOrder
,
ShelveWorkOrder
,
TurnBackToPending
,
getOrderType
,
getOrderType
,
resume
,
resume
,
pause
,
pause
,
...
@@ -1004,6 +1020,8 @@ export default {
...
@@ -1004,6 +1020,8 @@ export default {
imgPreviewUrl
:
''
,
imgPreviewUrl
:
''
,
subscript
:
0
,
subscript
:
0
,
imgList
:
[],
imgList
:
[],
pendingTitle
:
''
,
pendingBtn
:
0
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -1612,15 +1630,64 @@ export default {
...
@@ -1612,15 +1630,64 @@ export default {
this
.
currentItem
=
item
this
.
currentItem
=
item
},
},
closeForPendingDialog
()
{
closeForPendingDialog
()
{
this
.
pendingTitle
=
'不受理'
this
.
pendingBtn
=
7
this
.
pendingVisible
=
true
if
(
this
.
$refs
.
pendingForm
)
{
this
.
$refs
.
pendingForm
.
resetFields
()
}
},
shelveForPendingDialog
()
{
this
.
pendingTitle
=
'转至待定'
this
.
pendingBtn
=
9
this
.
pendingVisible
=
true
this
.
pendingVisible
=
true
if
(
this
.
$refs
.
pendingForm
)
{
if
(
this
.
$refs
.
pendingForm
)
{
this
.
$refs
.
pendingForm
.
resetFields
()
this
.
$refs
.
pendingForm
.
resetFields
()
}
}
},
},
turnBackToPending
()
{
this
.
pendingBtn
=
1
TurnBackToPending
({
id
:
this
.
detail
.
id
,
...
this
.
pendingForm
,
}).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
pendingVisible
=
false
this
.
detailVisible
=
false
this
.
getOrderTree
()
this
.
getlist
()
}
})
},
submitPending
()
{
submitPending
()
{
this
.
$refs
.
pendingForm
.
validate
(
v
=>
{
this
.
$refs
.
pendingForm
.
validate
(
v
=>
{
if
(
v
)
{
if
(
v
)
{
try
{
try
{
if
(
this
.
pendingBtn
===
9
)
{
ShelveWorkOrder
({
id
:
this
.
detail
.
id
,
...
this
.
pendingForm
,
}).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
pendingVisible
=
false
this
.
detailVisible
=
false
this
.
getOrderTree
()
this
.
getlist
()
}
})
}
else
if
(
this
.
pendingBtn
===
1
)
{
TurnBackToPending
({
id
:
this
.
detail
.
id
,
...
this
.
pendingForm
,
}).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
pendingVisible
=
false
this
.
detailVisible
=
false
this
.
getOrderTree
()
this
.
getlist
()
}
})
}
else
{
PendingWorkOrder
({
PendingWorkOrder
({
id
:
this
.
detail
.
id
,
id
:
this
.
detail
.
id
,
...
this
.
pendingForm
,
...
this
.
pendingForm
,
...
@@ -1632,6 +1699,7 @@ export default {
...
@@ -1632,6 +1699,7 @@ export default {
this
.
getlist
()
this
.
getlist
()
}
}
})
})
}
}
catch
(
error
)
{}
}
catch
(
error
)
{}
}
}
})
})
...
...
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