From 2c2c451c960232340d33a5b8d48de6d7de05d743 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=92?= Date: Fri, 31 Oct 2025 00:30:43 +0800 Subject: [PATCH] 1 --- src/api/system/jdorder.js | 10 +++++++ src/views/system/jdorder/orderList.vue | 40 +++++++++++++++++++++++++- 2 files changed, 49 insertions(+), 1 deletion(-) diff --git a/src/api/system/jdorder.js b/src/api/system/jdorder.js index 792821e..21d598c 100644 --- a/src/api/system/jdorder.js +++ b/src/api/system/jdorder.js @@ -137,4 +137,14 @@ export function exportJDOrders(query) { method: 'post', params: query }) +} + +// 删除JD订单(支持批量,ids为逗号分隔或数组) +export function delJDOrder(ids) { + // 兼容数组或字符串 + const idPath = Array.isArray(ids) ? ids.join(',') : ids + return request({ + url: `/system/jdorder/${idPath}`, + method: 'delete' + }) } \ No newline at end of file diff --git a/src/views/system/jdorder/orderList.vue b/src/views/system/jdorder/orderList.vue index dbc587e..8e48726 100644 --- a/src/views/system/jdorder/orderList.vue +++ b/src/views/system/jdorder/orderList.vue @@ -116,6 +116,13 @@ + + + @@ -134,7 +141,7 @@