From 4257afc7c6ab0b2200ae51dc033bbe07e2882fc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=99=E5=90=8C=E5=AD=A6?= <2495967527@qq.com> Date: Wed, 14 Aug 2024 17:52:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E6=8A=98=E6=89=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modules/mer_admin.js | 4 + src/views/modules/product/index.vue | 32 ++- .../modules/product/popup/add-discount.vue | 227 ++++++++++++++++++ src/views/modules/product/popup/add-stock.vue | 185 ++++++++++++++ 4 files changed, 445 insertions(+), 3 deletions(-) create mode 100644 src/views/modules/product/popup/add-discount.vue create mode 100644 src/views/modules/product/popup/add-stock.vue diff --git a/src/api/modules/mer_admin.js b/src/api/modules/mer_admin.js index 82ae6d2..03e9c6c 100644 --- a/src/api/modules/mer_admin.js +++ b/src/api/modules/mer_admin.js @@ -63,6 +63,10 @@ export const mer_admin = { BatchDeleteProducts: (data) => { return $http.post(`/merchant-api/product/batch/delete`, data); }, + //打折扣 + setDiscounts: (data) => { + return $http.post(`merchant-api/activity/save`, data); + }, //上架或下架商品 putOnShelvesProducts: (data) => { return $http.post(`/merchant-api/product/batch/update/status`, data); diff --git a/src/views/modules/product/index.vue b/src/views/modules/product/index.vue index 8704e8c..3b34386 100644 --- a/src/views/modules/product/index.vue +++ b/src/views/modules/product/index.vue @@ -59,14 +59,23 @@ + + + + + \ No newline at end of file diff --git a/src/views/modules/product/popup/add-stock.vue b/src/views/modules/product/popup/add-stock.vue new file mode 100644 index 0000000..e88c7ae --- /dev/null +++ b/src/views/modules/product/popup/add-stock.vue @@ -0,0 +1,185 @@ + + + \ No newline at end of file