From 058c8dcadc80fe1321c24801765985f4eefcb8b0 Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Sat, 31 Jan 2026 09:26:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/product/commonUnits.ts | 9 +++ src/api/product/productclassification.ts | 10 +++- src/views/product/category.vue | 61 ++++++++------------- src/views/product/categoryconfig/content.ts | 9 ++- src/views/product/unit.vue | 15 ++++- src/views/product/unitconfig/content.ts | 9 ++- 6 files changed, 69 insertions(+), 44 deletions(-) diff --git a/src/api/product/commonUnits.ts b/src/api/product/commonUnits.ts index e4576ef..3a6809e 100644 --- a/src/api/product/commonUnits.ts +++ b/src/api/product/commonUnits.ts @@ -51,6 +51,15 @@ const AuthAPI = { method: "delete", }); }, + // 导出常用单位 + exportUnits(params: any) { + return request({ + url: `${baseURL}/export`, + method: "get", + params, + responseType: 'blob' + }); + } }; diff --git a/src/api/product/productclassification.ts b/src/api/product/productclassification.ts index c6b87d2..0010ada 100644 --- a/src/api/product/productclassification.ts +++ b/src/api/product/productclassification.ts @@ -48,7 +48,15 @@ const AuthAPI = { method: "delete", }); }, - + // 导出商品分类 + exportCategories(params: any) { + return request({ + url: `${baseURL}/export`, + method: "get", + params, + responseType: 'blob' + }); + } }; diff --git a/src/views/product/category.vue b/src/views/product/category.vue index 0666d76..b0edac0 100644 --- a/src/views/product/category.vue +++ b/src/views/product/category.vue @@ -7,17 +7,9 @@ @reset-click="handleResetClick" /> --> - + - + - +