From 6ae3b1e35bd6f57961effaac96fe428e1db44a14 Mon Sep 17 00:00:00 2001 From: weiwei Date: Wed, 17 Sep 2025 16:35:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/supermarket/mallCategory/form.vue | 2 +- src/views/supermarket/mallCategory/index.vue | 275 +++---- src/views/supermarket/mallMerchant/form.vue | 2 +- src/views/supermarket/mallMerchant/index.vue | 254 ++++--- src/views/supermarket/mallProduct/form.vue | 730 +++++++++---------- src/views/supermarket/mallProduct/index.vue | 597 +++++++-------- src/views/supermarket/shopCategory/form.vue | 6 +- src/views/supermarket/shopSku/index.vue | 201 ++--- src/views/supermarket/shopSpu/index.vue | 2 +- 9 files changed, 1067 insertions(+), 1002 deletions(-) diff --git a/src/views/supermarket/mallCategory/form.vue b/src/views/supermarket/mallCategory/form.vue index cd73e38..6c5bb39 100644 --- a/src/views/supermarket/mallCategory/form.vue +++ b/src/views/supermarket/mallCategory/form.vue @@ -31,7 +31,7 @@ - + {{ item.label }} diff --git a/src/views/supermarket/mallCategory/index.vue b/src/views/supermarket/mallCategory/index.vue index 04eb2b2..5ac9729 100644 --- a/src/views/supermarket/mallCategory/index.vue +++ b/src/views/supermarket/mallCategory/index.vue @@ -1,84 +1,109 @@ diff --git a/src/views/supermarket/mallMerchant/form.vue b/src/views/supermarket/mallMerchant/form.vue index 306e4cb..dadb6d3 100644 --- a/src/views/supermarket/mallMerchant/form.vue +++ b/src/views/supermarket/mallMerchant/form.vue @@ -75,7 +75,7 @@ - + diff --git a/src/views/supermarket/mallMerchant/index.vue b/src/views/supermarket/mallMerchant/index.vue index cfe3c1d..ed29444 100644 --- a/src/views/supermarket/mallMerchant/index.vue +++ b/src/views/supermarket/mallMerchant/index.vue @@ -1,96 +1,125 @@ diff --git a/src/views/supermarket/mallProduct/form.vue b/src/views/supermarket/mallProduct/form.vue index 9d5d902..6a1c99a 100644 --- a/src/views/supermarket/mallProduct/form.vue +++ b/src/views/supermarket/mallProduct/form.vue @@ -1,590 +1,562 @@ \ No newline at end of file + diff --git a/src/views/supermarket/shopCategory/form.vue b/src/views/supermarket/shopCategory/form.vue index 3d170ae..fb9e8d2 100644 --- a/src/views/supermarket/shopCategory/form.vue +++ b/src/views/supermarket/shopCategory/form.vue @@ -23,9 +23,9 @@ - + - {{ item.label }} + {{ item.label }} @@ -137,7 +137,7 @@ const getshopCategoryData = (id: string) => { loading.value = true getObj(id) .then((res: any) => { - Object.assign(form, res.data) + Object.assign(form, res.data, { status: res.data.status.toString() }) // 编辑时加载分类并排除自己 loadCategories() }) diff --git a/src/views/supermarket/shopSku/index.vue b/src/views/supermarket/shopSku/index.vue index a97505b..5d7112f 100644 --- a/src/views/supermarket/shopSku/index.vue +++ b/src/views/supermarket/shopSku/index.vue @@ -1,65 +1,99 @@ \ No newline at end of file + try { + await delObjs(ids) + getDataList() + useMessage().success("删除成功") + } catch (err: any) { + useMessage().error(err.msg) + } +} + diff --git a/src/views/supermarket/shopSpu/index.vue b/src/views/supermarket/shopSpu/index.vue index 648e87f..436a844 100644 --- a/src/views/supermarket/shopSpu/index.vue +++ b/src/views/supermarket/shopSpu/index.vue @@ -60,7 +60,7 @@ - +