Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit cc1d10a5
authored
Apr 18, 2022
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复删除工单报错
1 parent
d859cdc7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
9 deletions
src/services/order.js
src/views/work/order.vue
src/services/order.js
View file @
cc1d10a
...
...
@@ -93,3 +93,8 @@ export const DELETE_ORDER_IMAGE = params => {
export
const
UPDATE_ORDER_IMAGE
=
params
=>
{
return
request
(
params
,
"/trialdrive/workorder/updateImage"
,
'POST'
);
}
// 工单管理-工单列表-删除工单
export
const
DELETE_ORDER_INFO
=
params
=>
{
return
request
(
params
,
"/trialdrive/workorder/delete"
);
}
src/views/work/order.vue
View file @
cc1d10a
...
...
@@ -261,7 +261,7 @@ export default {
rest
()
{
this
.
searchForm
=
{
timeType
:
"1"
};
this
.
pageSize
=
10
;
this
.
currentPage
=
1
this
.
currentPage
=
1
;
this
.
getList
();
},
...
...
@@ -553,16 +553,30 @@ export default {
},
// 删除工单
removeOrder
(
row
){
removeOrder
(
row
)
{
let
_this
=
this
;
showModal
({
message
:
'确认删除该工单吗?'
,
showCancelButton
:
true
,
success
:
function
(){
}
})
message
:
"确认删除该工单吗?"
,
showCancelButton
:
true
,
success
:
function
()
{
let
oParams
=
{};
oParams
.
orderId
=
row
.
id
;
DELETE_ORDER_INFO
(
oParams
).
then
((
res
)
=>
{
if
(
res
.
code
!=
200
)
{
showToast
({
message
:
res
.
message
,
});
return
false
;
}
showToast
({
message
:
"删除成功"
,
type
:
"success"
,
});
_this
.
getList
();
});
},
});
},
},
};
</
script
>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment