Commit cc1d10a5 by 张杰

修复删除工单报错

1 parent d859cdc7
...@@ -93,3 +93,8 @@ export const DELETE_ORDER_IMAGE = params => { ...@@ -93,3 +93,8 @@ export const DELETE_ORDER_IMAGE = params => {
export const UPDATE_ORDER_IMAGE = params => { export const UPDATE_ORDER_IMAGE = params => {
return request(params, "/trialdrive/workorder/updateImage", 'POST'); return request(params, "/trialdrive/workorder/updateImage", 'POST');
} }
// 工单管理-工单列表-删除工单
export const DELETE_ORDER_INFO = params => {
return request(params, "/trialdrive/workorder/delete");
}
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<!-- <el-table-column label="系统工单号" prop="orderNo" :width="tdWidth"></el-table-column> --> <!-- <el-table-column label="系统工单号" prop="orderNo" :width="tdWidth"></el-table-column> -->
<el-table-column label="服务类型" prop="serviceType"></el-table-column> <el-table-column label="服务类型" prop="serviceType"></el-table-column>
<el-table-column label="店面名称" prop="shopName" :width="tdWidth" show-overflow-tooltip></el-table-column> <el-table-column label="店面名称" prop="shopName" :width="tdWidth" show-overflow-tooltip></el-table-column>
<el-table-column label="业务工单号" prop="bizOrderNo" :width="longTdWidth"></el-table-column> <el-table-column label="业务工单号" prop="bizOrderNo" :width="longTdWidth"></el-table-column>
<el-table-column label="姓名" prop="ownerName" :width="tdWidth" show-overflow-tooltip></el-table-column> <el-table-column label="姓名" prop="ownerName" :width="tdWidth" show-overflow-tooltip></el-table-column>
<el-table-column label="车架号" prop="vin" :width="longTdWidth"></el-table-column> <el-table-column label="车架号" prop="vin" :width="longTdWidth"></el-table-column>
...@@ -261,7 +261,7 @@ export default { ...@@ -261,7 +261,7 @@ export default {
rest() { rest() {
this.searchForm = { timeType: "1" }; this.searchForm = { timeType: "1" };
this.pageSize = 10; this.pageSize = 10;
this.currentPage = 1 this.currentPage = 1;
this.getList(); this.getList();
}, },
...@@ -553,16 +553,30 @@ export default { ...@@ -553,16 +553,30 @@ export default {
}, },
// 删除工单 // 删除工单
removeOrder(row){ removeOrder(row) {
let _this = this;
showModal({ showModal({
message:'确认删除该工单吗?', message: "确认删除该工单吗?",
showCancelButton:true, showCancelButton: true,
success:function(){ 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> </script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!