From 7b5719829d468fbe9f1e1829bc2f7abd0a4901e7 Mon Sep 17 00:00:00 2001 From: lzhizhao <790086754@qq.com> Date: Wed, 1 Oct 2025 12:44:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=95=86=E5=93=81=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E6=94=B9=E9=80=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modules/mer_admin.js | 19 + .../operation-management/commodity/index.vue | 693 +++++------- .../commodity/popup/add-or-update.vue | 1000 +++++++---------- .../operation-management/order/index.vue | 77 +- 4 files changed, 719 insertions(+), 1070 deletions(-) diff --git a/src/api/modules/mer_admin.js b/src/api/modules/mer_admin.js index bbeb2d4..6fdfbce 100644 --- a/src/api/modules/mer_admin.js +++ b/src/api/modules/mer_admin.js @@ -51,6 +51,13 @@ export const mer_admin = { data ); }, + //商品分页 V2 + productV2Page: data => { + return $http.post( + `/merchant-api/product/v2/page?pageNumber=${data.p.pageNumber}&pageSize=${data.p.pageSize}`, + data + ); + }, //商品规格分页 getProductSpecificationPage: (data, params) => { return $http.request({ @@ -64,6 +71,18 @@ export const mer_admin = { getProductOverview: data => { return $http.post(`/merchant-api/product/overview`, data); }, + //商品概况 V2 + productV2Overview: data => { + return $http.post(`/merchant-api/product/v2/overview`, data); + }, + //商品详情 + productDetail: data => { + return $http.request({ + method: 'get', + url: '/merchant-api/product/detail', + params: data + }) + }, //商户商品分类 getProductCategory: data => { return $http.request({ diff --git a/src/views/modules/operation-management/commodity/index.vue b/src/views/modules/operation-management/commodity/index.vue index 854d9f6..ce6f2ba 100644 --- a/src/views/modules/operation-management/commodity/index.vue +++ b/src/views/modules/operation-management/commodity/index.vue @@ -1,155 +1,174 @@ - + + + @@ -198,46 +196,62 @@ {{ (pagination.pageNumber - 1) * pagination.pageSize + scope.$index + 1 }} - - - - - + + + + + + + + + + + + + + + - - - + + + + + + + + + @@ -251,7 +265,6 @@ :total="pagination.total" class="pagination-container" > -