From 564a668344e60aab220286252c4c6b5b8a948eec Mon Sep 17 00:00:00 2001
From: zjf <1799650030@qq.com>
Date: Wed, 22 Oct 2025 16:31:44 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E6=AE=B5=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/supermarket/mallProduct/form.vue | 28 ++++++++++++++++-----
src/views/supermarket/mallProduct/index.vue | 23 ++++++++++-------
2 files changed, 36 insertions(+), 15 deletions(-)
diff --git a/src/views/supermarket/mallProduct/form.vue b/src/views/supermarket/mallProduct/form.vue
index 3dd959a..6c0ec6b 100644
--- a/src/views/supermarket/mallProduct/form.vue
+++ b/src/views/supermarket/mallProduct/form.vue
@@ -30,11 +30,18 @@
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
@@ -69,6 +76,12 @@
单位:元
+
+
+
+
+
+
@@ -240,6 +253,7 @@ import { tree as fetchCategoryTree } from "/@/api/supermarket/mallCategory"
const emit = defineEmits(["refresh"])
// 定义变量内容
+const { supermarket_nature } = useDict("supermarket_nature")
const dataFormRef = ref()
const visible = ref(false)
const loading = ref(false)
@@ -272,7 +286,8 @@ const form = reactive({
priceType: 1, // 默认多SKU模式
spuPrice: 0,
originalPrice: 0,
- unit: "",
+ totalStock: 0, // SPU模式库存
+ productNature: "",
status: "0", // 默认上架
saleStartTime: "",
saleEndTime: "",
@@ -387,6 +402,7 @@ const openDialog = (id: string) => {
priceType: 1,
spuPrice: 0,
originalPrice: 0,
+ totalStock: 0,
unit: "",
status: "0",
saleStartTime: "",
diff --git a/src/views/supermarket/mallProduct/index.vue b/src/views/supermarket/mallProduct/index.vue
index 7eaf4c2..6c74632 100644
--- a/src/views/supermarket/mallProduct/index.vue
+++ b/src/views/supermarket/mallProduct/index.vue
@@ -58,7 +58,7 @@
-
+
@@ -115,9 +115,13 @@
-
-
-
+
+
+
+
+
+
+
@@ -130,7 +134,7 @@
-
+
@@ -167,7 +171,7 @@
-
+
@@ -211,7 +215,8 @@ import { fetchList, delObjs } from "/@/api/supermarket/mallProduct"
import { useMessage, useMessageBox } from "/@/hooks/message"
import { tree as fetchCategoryTree } from "/@/api/supermarket/mallCategory"
import { select } from "/@/api/wallet/mch-manage"
-
+import {useDict} from "/@/hooks/dict";
+const { supermarket_nature } = useDict("supermarket_nature")
// 引入组件
const FormDialog = defineAsyncComponent(() => import("./form.vue"))