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"))