From 679e0dd3af2f4a9543ed3e62dab9a7cb08ab1c28 Mon Sep 17 00:00:00 2001 From: van Date: Mon, 6 Apr 2026 11:15:08 +0800 Subject: [PATCH] 1 --- src/api/system/jdorder.js | 9 +++ src/views/system/jdorder/orderList.vue | 66 +++++++++++++++---- .../system/social-media/prompt-config.vue | 3 +- 3 files changed, 63 insertions(+), 15 deletions(-) diff --git a/src/api/system/jdorder.js b/src/api/system/jdorder.js index 5375f27..a45838f 100644 --- a/src/api/system/jdorder.js +++ b/src/api/system/jdorder.js @@ -257,6 +257,15 @@ export function recalcProfitBatch(ids) { }) } +/** 本页订单:利润未手动的按规则重算,仅变化时落库(刷新列表后调用) */ +export function syncAutoProfitBatch(ids) { + return request({ + url: '/system/jdorder/tools/sync-auto-profit', + method: 'post', + data: { ids } + }) +} + // 生成录单格式文本(Excel可粘贴格式) export function generateExcelText(query) { return request({ diff --git a/src/views/system/jdorder/orderList.vue b/src/views/system/jdorder/orderList.vue index 777a446..c734a42 100644 --- a/src/views/system/jdorder/orderList.vue +++ b/src/views/system/jdorder/orderList.vue @@ -1063,7 +1063,7 @@