diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts
index 50283e23..46886add 100644
--- a/src/router/modules/remaining.ts
+++ b/src/router/modules/remaining.ts
@@ -346,7 +346,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
hidden: true,
canTo: true,
icon: 'ep:edit',
- title: '添加商品',
+ title: '商品添加',
activeMenu: '/mall/product/spu'
}
},
@@ -359,7 +359,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
hidden: true,
canTo: true,
icon: 'ep:edit',
- title: '编辑商品',
+ title: '商品编辑',
activeMenu: '/mall/product/spu'
}
},
diff --git a/src/views/mall/product/spu/form/BasicInfoForm.vue b/src/views/mall/product/spu/form/BasicInfoForm.vue
index 66523432..7f03e877 100644
--- a/src/views/mall/product/spu/form/BasicInfoForm.vue
+++ b/src/views/mall/product/spu/form/BasicInfoForm.vue
@@ -15,15 +15,14 @@
-
@@ -74,8 +73,6 @@
:value="item.id"
/>
-
-
@@ -102,7 +99,7 @@
默认设置
- 自行设置
+ 单独设置
@@ -117,7 +114,7 @@
/>
- 添加规格
+ 添加属性
@@ -139,7 +136,7 @@
- {{ categoryString(row.categoryId) }}
+ {{ formatCategoryName(row.categoryId) }}
{{ brandList.find((item) => item.id === row.brandId)?.name }}
@@ -150,7 +147,7 @@
{{ row.specType ? '多规格' : '单规格' }}
- {{ row.subCommissionType ? '自行设置' : '默认设置' }}
+ {{ row.subCommissionType ? '单独设置' : '默认设置' }}
@@ -206,17 +203,17 @@ const ruleConfig: RuleConfig[] = [
{
name: 'price',
rule: (arg) => arg >= 0.01,
- message: '商品销售价格必须大于等于 0.01 !!!'
+ message: '商品销售价格必须大于等于 0.01 元!!!'
},
{
name: 'marketPrice',
rule: (arg) => arg >= 0.01,
- message: '商品市场价格必须大于等于 0.01 !!!'
+ message: '商品市场价格必须大于等于 0.01 元!!!'
},
{
name: 'costPrice',
rule: (arg) => arg >= 0.01,
- message: '商品成本价格必须大于等于 0.01 !!!'
+ message: '商品成本价格必须大于等于 0.01 元!!!'
}
]
@@ -359,23 +356,11 @@ const onChangeSpec = () => {
}
const categoryList = ref([]) // 分类树
-/**
- * 选择分类时触发校验
- */
-const categoryNodeClick = () => {
- if (!checkSelectedNode(categoryList.value, formData.categoryId)) {
- formData.categoryId = null
- message.warning('必须选择二级及以下节点!!')
- }
-}
-/**
- * 获取分类的节点的完整结构
- *
- * @param categoryId 分类id
- */
-const categoryString = (categoryId) => {
+/** 获取分类的节点的完整结构 */
+const formatCategoryName = (categoryId) => {
return treeToString(categoryList.value, categoryId)
}
+
const brandList = ref([]) // 精简商品品牌列表
const deliveryTemplateList = ref([]) // 运费模版
onMounted(async () => {
diff --git a/src/views/mall/product/spu/form/OtherSettingsForm.vue b/src/views/mall/product/spu/form/OtherSettingsForm.vue
index 50ce8049..a2f2afc6 100644
--- a/src/views/mall/product/spu/form/OtherSettingsForm.vue
+++ b/src/views/mall/product/spu/form/OtherSettingsForm.vue
@@ -41,7 +41,7 @@
-
+
默认
秒杀