diff --git a/src/api/server/index.js b/src/api/server/index.js
index 745bed7..ddf2a09 100644
--- a/src/api/server/index.js
+++ b/src/api/server/index.js
@@ -18,6 +18,7 @@ const api = {
dispatchOrders: '/server/dispatchOrders',
OrderStatus: '/server/OrderStatus',
OrderDeatil: '/server/orderDetail',
+ delOrder: '/server/delOrder',
listByIds: '/server/listByIds',
}
/**
@@ -203,3 +204,14 @@ export function orderStatusList(data) {
data,
})
}
+/**
+ * 删除
+ * @param {*} data
+ */
+export function delOrder(data) {
+ return axios({
+ url: api.delOrder,
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/api/server/recovery.js b/src/api/server/recovery.js
index 00f77f0..9114743 100644
--- a/src/api/server/recovery.js
+++ b/src/api/server/recovery.js
@@ -16,6 +16,7 @@ const api = {
cancelOrder: '/recovery/cancelOrder',
orderStatus: '/recovery/orderStatus',
orderDetail: '/recovery/orderDetail',
+ orderDel: '/recovery/orderDel',
completeOrder: '/recovery/completeOrder',
}
/**
@@ -181,3 +182,14 @@ export function completeOrder(data) {
data,
})
}
+/**
+ * 订单删除
+ * @param {*} data
+ */
+export function orderDel(data) {
+ return axios({
+ url: api.orderDel,
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/views/recovery/order/Index.vue b/src/views/recovery/order/Index.vue
index 450baac..4902b29 100644
--- a/src/views/recovery/order/Index.vue
+++ b/src/views/recovery/order/Index.vue
@@ -51,6 +51,13 @@
验收
+ 删除
{
+ self.$message.success(result.message, 1.5)
+ self.handleRefresh()
+ })
+ .finally(() => modal.destroy())
+ },
+ })
+ },
//获取订单状态
getOrderStatusList() {
this.isLoading = true
diff --git a/src/views/server/Order.vue b/src/views/server/Order.vue
index 56b6ea0..ae57766 100644
--- a/src/views/server/Order.vue
+++ b/src/views/server/Order.vue
@@ -58,6 +58,13 @@
派单
+ 删除
{
+ self.$message.success(result.message, 1.5)
+ self.handleRefresh()
+ })
+ .finally(() => modal.destroy())
+ },
+ })
+ },
/**
* 刷新列表
* @param Boolean bool 强制刷新到第一页