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
13e5e2de
Commit
13e5e2de
authored
Mar 31, 2023
by
qinjianhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 工单修改
parent
5afadf92
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
28 deletions
+27
-28
src/common/api/order.js
+3
-3
src/views/taskManage/index.vue
+24
-25
No files found.
src/common/api/order.js
View file @
13e5e2de
...
@@ -17,9 +17,10 @@ export function workAssigned(id, user) {
...
@@ -17,9 +17,10 @@ export function workAssigned(id, user) {
})
})
}
}
export
function
startWorder
(
id
)
{
export
function
startWorder
(
id
,
estimateCompleteTime
)
{
return
axios
.
post
(
'platform/platformWorkOrder/start'
,
{
return
axios
.
post
(
'platform/platformWorkOrder/start'
,
{
id
:
id
,
id
:
id
,
estimateCompleteTime
:
estimateCompleteTime
,
})
})
}
}
...
@@ -29,10 +30,9 @@ export function archiveWorkOrder(id) {
...
@@ -29,10 +30,9 @@ export function archiveWorkOrder(id) {
})
})
}
}
export
function
completeWorkOrder
(
id
,
estimateCompleteTime
)
{
export
function
completeWorkOrder
(
id
)
{
return
axios
.
post
(
'platform/platformWorkOrder/complete'
,
{
return
axios
.
post
(
'platform/platformWorkOrder/complete'
,
{
id
:
id
,
id
:
id
,
estimateCompleteTime
:
estimateCompleteTime
,
})
})
}
}
...
...
src/views/taskManage/index.vue
View file @
13e5e2de
...
@@ -756,24 +756,9 @@ export default {
...
@@ -756,24 +756,9 @@ export default {
},
},
// 开始工单
// 开始工单
async
startWorkOrder
(
item
)
{
async
startWorkOrder
(
item
)
{
try
{
this
.
estimateCompleteTime
=
''
await
this
.
$confirm
(
'确定开始吗?'
,
'提示'
,
{
this
.
completeVisible
=
true
confirmButtonText
:
'确定'
,
this
.
rowId
=
item
.
id
cancelButtonText
:
'取消'
,
type
:
'warning'
,
})
}
catch
{
return
}
try
{
const
res
=
await
startWorder
(
item
.
id
)
if
(
res
.
code
===
200
)
{
this
.
getlist
()
this
.
getOrderTree
()
}
}
catch
(
e
)
{
console
.
error
(
e
)
}
},
},
// 提交分派
// 提交分派
async
submitAssign
()
{
async
submitAssign
()
{
...
@@ -838,19 +823,33 @@ export default {
...
@@ -838,19 +823,33 @@ export default {
}
}
},
},
async
complete
(
item
)
{
async
complete
(
item
)
{
this
.
estimateCompleteTime
=
''
try
{
this
.
completeVisible
=
true
await
this
.
$confirm
(
'确定开始吗?'
,
'提示'
,
{
this
.
rowId
=
item
.
id
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
submitTime
()
{
async
submitTime
()
{
if
(
!
this
.
estimateCompleteTime
)
{
if
(
!
this
.
estimateCompleteTime
)
{
return
this
.
$message
.
warning
(
'请选择预计完成时间'
)
return
this
.
$message
.
warning
(
'请选择预计完成时间'
)
}
}
try
{
try
{
const
res
=
await
completeWorkOrder
(
const
res
=
await
startWorder
(
this
.
rowId
,
this
.
estimateCompleteTime
)
this
.
rowId
,
this
.
estimateCompleteTime
,
)
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
getlist
()
this
.
getlist
()
this
.
getOrderTree
()
this
.
getOrderTree
()
...
...
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