From 3eb2b64600d9c4f10be465495374cc8a2c3e9c68 Mon Sep 17 00:00:00 2001 From: zjf <1799650030@qq.com> Date: Thu, 19 Jun 2025 13:03:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E7=BA=BF=E5=95=86=E5=9F=8E=E5=BC=95?= =?UTF-8?q?=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/supermarket/shopCategory.ts | 41 ++++ src/api/supermarket/shopSku.ts | 41 ++++ src/api/supermarket/shopSpu.ts | 41 ++++ src/views/supermarket/shopCategory/form.vue | 144 +++++++++++++ src/views/supermarket/shopCategory/index.vue | 137 +++++++++++++ src/views/supermarket/shopSku/form.vue | 160 +++++++++++++++ src/views/supermarket/shopSku/index.vue | 122 +++++++++++ src/views/supermarket/shopSpu/form.vue | 203 +++++++++++++++++++ src/views/supermarket/shopSpu/index.vue | 148 ++++++++++++++ 9 files changed, 1037 insertions(+) create mode 100644 src/api/supermarket/shopCategory.ts create mode 100644 src/api/supermarket/shopSku.ts create mode 100644 src/api/supermarket/shopSpu.ts create mode 100644 src/views/supermarket/shopCategory/form.vue create mode 100644 src/views/supermarket/shopCategory/index.vue create mode 100644 src/views/supermarket/shopSku/form.vue create mode 100644 src/views/supermarket/shopSku/index.vue create mode 100644 src/views/supermarket/shopSpu/form.vue create mode 100644 src/views/supermarket/shopSpu/index.vue diff --git a/src/api/supermarket/shopCategory.ts b/src/api/supermarket/shopCategory.ts new file mode 100644 index 0000000..098cdcb --- /dev/null +++ b/src/api/supermarket/shopCategory.ts @@ -0,0 +1,41 @@ +import request from "/@/utils/request" + +export function fetchList(query?: Object) { + return request({ + url: '/supermarket/shopCategory/page', + method: 'get', + params: query + }) +} + +export function addObj(obj?: Object) { + return request({ + url: '/supermarket/shopCategory', + method: 'post', + data: obj + }) +} + +export function getObj(id?: string) { + return request({ + url: '/supermarket/shopCategory/' + id, + method: 'get' + }) +} + +export function delObjs(ids?: Object) { + return request({ + url: '/supermarket/shopCategory', + method: 'delete', + data: ids + }) +} + +export function putObj(obj?: Object) { + return request({ + url: '/supermarket/shopCategory', + method: 'put', + data: obj + }) +} + diff --git a/src/api/supermarket/shopSku.ts b/src/api/supermarket/shopSku.ts new file mode 100644 index 0000000..ceaafaf --- /dev/null +++ b/src/api/supermarket/shopSku.ts @@ -0,0 +1,41 @@ +import request from "/@/utils/request" + +export function fetchList(query?: Object) { + return request({ + url: '/supermarket/shopSku/page', + method: 'get', + params: query + }) +} + +export function addObj(obj?: Object) { + return request({ + url: '/supermarket/shopSku', + method: 'post', + data: obj + }) +} + +export function getObj(id?: string) { + return request({ + url: '/supermarket/shopSku/' + id, + method: 'get' + }) +} + +export function delObjs(ids?: Object) { + return request({ + url: '/supermarket/shopSku', + method: 'delete', + data: ids + }) +} + +export function putObj(obj?: Object) { + return request({ + url: '/supermarket/shopSku', + method: 'put', + data: obj + }) +} + diff --git a/src/api/supermarket/shopSpu.ts b/src/api/supermarket/shopSpu.ts new file mode 100644 index 0000000..df061f4 --- /dev/null +++ b/src/api/supermarket/shopSpu.ts @@ -0,0 +1,41 @@ +import request from "/@/utils/request" + +export function fetchList(query?: Object) { + return request({ + url: '/supermarket/shopSpu/page', + method: 'get', + params: query + }) +} + +export function addObj(obj?: Object) { + return request({ + url: '/supermarket/shopSpu', + method: 'post', + data: obj + }) +} + +export function getObj(id?: string) { + return request({ + url: '/supermarket/shopSpu/' + id, + method: 'get' + }) +} + +export function delObjs(ids?: Object) { + return request({ + url: '/supermarket/shopSpu', + method: 'delete', + data: ids + }) +} + +export function putObj(obj?: Object) { + return request({ + url: '/supermarket/shopSpu', + method: 'put', + data: obj + }) +} + diff --git a/src/views/supermarket/shopCategory/form.vue b/src/views/supermarket/shopCategory/form.vue new file mode 100644 index 0000000..d9dffd6 --- /dev/null +++ b/src/views/supermarket/shopCategory/form.vue @@ -0,0 +1,144 @@ + + + \ No newline at end of file diff --git a/src/views/supermarket/shopCategory/index.vue b/src/views/supermarket/shopCategory/index.vue new file mode 100644 index 0000000..be2c2f1 --- /dev/null +++ b/src/views/supermarket/shopCategory/index.vue @@ -0,0 +1,137 @@ + + + \ No newline at end of file diff --git a/src/views/supermarket/shopSku/form.vue b/src/views/supermarket/shopSku/form.vue new file mode 100644 index 0000000..3232e65 --- /dev/null +++ b/src/views/supermarket/shopSku/form.vue @@ -0,0 +1,160 @@ + + + \ No newline at end of file diff --git a/src/views/supermarket/shopSku/index.vue b/src/views/supermarket/shopSku/index.vue new file mode 100644 index 0000000..a97505b --- /dev/null +++ b/src/views/supermarket/shopSku/index.vue @@ -0,0 +1,122 @@ + + + \ No newline at end of file diff --git a/src/views/supermarket/shopSpu/form.vue b/src/views/supermarket/shopSpu/form.vue new file mode 100644 index 0000000..3c78ae1 --- /dev/null +++ b/src/views/supermarket/shopSpu/form.vue @@ -0,0 +1,203 @@ + + + diff --git a/src/views/supermarket/shopSpu/index.vue b/src/views/supermarket/shopSpu/index.vue new file mode 100644 index 0000000..d12868b --- /dev/null +++ b/src/views/supermarket/shopSpu/index.vue @@ -0,0 +1,148 @@ + + +