+
@@ -14,15 +14,14 @@
-
- 0
+
+
-
@@ -43,19 +42,16 @@
-
-
-
@@ -63,12 +59,6 @@
-
-
-
-
-
-
@@ -111,11 +101,11 @@ const form = reactive({
categoryId: '',
picUrl: '',
sliderPicUrls: '',
- sort: '',
+ sort: 0,
status: '0',
- price: '',
- marketPrice: '',
- stock: '',
+ price: 0,
+ marketPrice: 0,
+ stock: 0,
giveIntegral: '',
salesCount: '',
virtualSalesCount: '',
diff --git a/src/views/canteen/canteenOnlineSpu/index.vue b/src/views/canteen/canteenOnlineSpu/index.vue
index 39e9bfa..572255a 100644
--- a/src/views/canteen/canteenOnlineSpu/index.vue
+++ b/src/views/canteen/canteenOnlineSpu/index.vue
@@ -1,145 +1,159 @@
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
- 查询
-
- 重置
-
-
-
-
-
-
- 新 增
-
-
- 删除
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+ 新 增
+
+
+ 删 除
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 编辑
- 删除
-
-
-
-
-
+ @sort-change="sortChangeHandle"
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
-
-
-
-
+
+
+
diff --git a/src/views/canteen/canteenSpu/form.vue b/src/views/canteen/canteenSpu/form.vue
index 6e9cc50..d5cae4d 100644
--- a/src/views/canteen/canteenSpu/form.vue
+++ b/src/views/canteen/canteenSpu/form.vue
@@ -4,9 +4,7 @@
-
-
-
+
@@ -106,7 +104,6 @@ import { useMessage } from '/@/hooks/message';
import { getObj, addObj, putObj } from '/@/api/canteen/canteenSpu';
import { getAllSimple } from '/@/api/canteen/canteenCategory';
import { rule } from '/@/utils/validate';
-import { selectMerchantList } from '/@/api/canteen/merchantInfo';
const emit = defineEmits(['refresh']);
// 定义变量内容
@@ -115,7 +112,6 @@ const visible = ref(false);
const loading = ref(false);
// 定义字典
const { spu_status } = useDict('spu_status');
-const merchantInfo = ref([]); // 商户信息
// 提交表单数据
const form = reactive({
@@ -163,17 +159,6 @@ const openDialog = async (id: string) => {
// 重置表单数据
dataFormRef.value?.resetFields();
- if (merchantInfo.value.length <= 0) {
- try {
- // 获取商户下拉框选项
- const res = await selectMerchantList('1');
- merchantInfo.value = res.data;
- } catch (error) {
- merchantInfo.value = [];
- loading.value = false;
- }
- }
-
// 获取canteenSpu信息
if (id) {
form.id = id;
@@ -185,7 +170,7 @@ const openDialog = async (id: string) => {
const onSubmit = async () => {
console.log(form);
- const valid = await dataFormRef.value.validate().catch(() => {});
+ const valid = await dataFormRef?.value.validate().catch(() => {});
if (!valid) return false;
try {
diff --git a/src/views/canteen/canteenSpu/index.vue b/src/views/canteen/canteenSpu/index.vue
index bbba1ca..70a955c 100644
--- a/src/views/canteen/canteenSpu/index.vue
+++ b/src/views/canteen/canteenSpu/index.vue
@@ -8,11 +8,12 @@
- 0
+
+
- 查询
+ 查询
重置
@@ -23,7 +24,7 @@
新 增
- 删除
+ 删 除
- 编辑
+
+ 编辑
+
删除
diff --git a/src/views/home/navMenu/index.vue b/src/views/home/navMenu/index.vue
index dba8ad4..edaaaaf 100644
--- a/src/views/home/navMenu/index.vue
+++ b/src/views/home/navMenu/index.vue
@@ -76,7 +76,7 @@ onMounted(async () => {
.card {
padding: 5vw;
height: 100%;
- background-image: linear-gradient(0deg, #ffffff 0%, #d3f9f1aa 100%);
+ background-image: linear-gradient(0deg, #ffffff 0%, #f3f6ff 100%);
}
.nav-menu-item-top {
height: 6.5vw;
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index f2a12a9..b000d9e 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -36,25 +36,18 @@
-
-
-
- {{ $t('divider.or') }}
-
-
-
-
+
-
+
-
+