From e97424262bd07f43a8198ee1cbb32af895f3f57a Mon Sep 17 00:00:00 2001 From: duan <1004387497@qq.com> Date: Mon, 17 Mar 2025 16:06:51 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=95=86=E5=93=81=E5=88=97=E8=A1=A8-?= =?UTF-8?q?=E6=8A=A5=E6=8D=9F-=E5=94=AE=E7=BD=84-=E5=BA=93=E5=AD=98?= =?UTF-8?q?=E9=A2=84=E8=AD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/product/index.ts | 23 ++ src/components/CURD/PageContent.vue | 283 +++++------------- src/views/product/index.vue | 102 ++++--- src/views/product/indexconfig/content.ts | 27 +- src/views/user/active/indexconfig/Content.vue | 4 + 5 files changed, 182 insertions(+), 257 deletions(-) diff --git a/src/api/product/index.ts b/src/api/product/index.ts index 12ebdb4..49178e4 100644 --- a/src/api/product/index.ts +++ b/src/api/product/index.ts @@ -71,6 +71,29 @@ const AuthAPI = { params }); }, + // 报损 + reportDamage(data: any) { + return request({ + url: `${baseURL}/reportDamage`, + method: "post", + data, + }); + }, + // 库存预警 + stockWarning(data: any) { + return request({ + url: `${baseURL}/stockWarning?warnLine=${data}`, + method: "post", + }); + }, + // 售罄 + markIsSoldOut(data: any) { + return request({ + url: `${baseURL}/markIsSoldOut`, + method: "post", + data, + }); + } }; diff --git a/src/components/CURD/PageContent.vue b/src/components/CURD/PageContent.vue index 27d117b..aa59fcb 100644 --- a/src/components/CURD/PageContent.vue +++ b/src/components/CURD/PageContent.vue @@ -8,58 +8,37 @@ @@ -88,68 +67,36 @@ - + @@ -263,63 +191,44 @@