From f4fd329ceaab3babc3fbe2b578c77fe2153096df Mon Sep 17 00:00:00 2001
From: Wayne <943146732@qq.com>
Date: Sun, 3 Mar 2024 22:58:51 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AD=97=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/goods/Create.vue | 26 ++++++++++++-------
src/views/goods/Update.vue | 10 ++++++-
src/views/goods/category/modules/AddForm.vue | 9 ++++++-
src/views/goods/category/modules/EditForm.vue | 10 ++++++-
4 files changed, 43 insertions(+), 12 deletions(-)
diff --git a/src/views/goods/Create.vue b/src/views/goods/Create.vue
index e19920b..3639830 100644
--- a/src/views/goods/Create.vue
+++ b/src/views/goods/Create.vue
@@ -21,7 +21,7 @@
@@ -32,7 +32,7 @@
treeCheckable
treeCheckStrictly
allowClear
- v-decorator="['categorys', { rules: [{ required: true, message: '请至少选择1个商品分类' }] }]"
+ v-decorator="['categorys', { rules: [{ required: true, message: '请至少选择1个商品分类' }] }]"
>
@@ -383,8 +391,8 @@
addonAfter="折"
:inputProps="{ min: 0, max: 9.9 }"
v-decorator="[`alone_grade_equity[grade_id:${item.grade_id}]`, {
- initialValue: formData.defaultUserGradeValue[item.grade_id], rules: [{ required: true, message: '折扣率不能为空' }]
- }]"
+ initialValue: formData.defaultUserGradeValue[item.grade_id], rules: [{ required: true, message: '折扣率不能为空' }]
+ }]"
/>
diff --git a/src/views/goods/Update.vue b/src/views/goods/Update.vue
index 952c428..728053d 100644
--- a/src/views/goods/Update.vue
+++ b/src/views/goods/Update.vue
@@ -71,6 +71,14 @@
是
+
+
+ 否
+ 是
+
+
@@ -602,7 +610,7 @@ export default {
// 表单字段与tabKey对应关系
// 只需要必填字段就可
const tabsFieldsMap = [
- ['goods_type', 'goods_name', 'categorys', 'imagesIds', 'delivery_id', 'is_ind_delivery_type', 'delivery_type','is_brand'],
+ ['goods_type', 'goods_name', 'categorys', 'imagesIds', 'delivery_id', 'is_ind_delivery_type', 'delivery_type','is_brand', 'is_in_store'],
['spec_type', 'goods_price', 'is_restrict', 'restrict_total', 'restrict_single'],
['content'],
['alone_grade_equity', 'first_money', 'second_money', 'third_money']
diff --git a/src/views/goods/category/modules/AddForm.vue b/src/views/goods/category/modules/AddForm.vue
index 0a09e01..977f3f1 100644
--- a/src/views/goods/category/modules/AddForm.vue
+++ b/src/views/goods/category/modules/AddForm.vue
@@ -40,7 +40,14 @@
是
-
+
+
+ 否
+ 是
+
+
diff --git a/src/views/goods/category/modules/EditForm.vue b/src/views/goods/category/modules/EditForm.vue
index 18afea3..3b47928 100644
--- a/src/views/goods/category/modules/EditForm.vue
+++ b/src/views/goods/category/modules/EditForm.vue
@@ -43,6 +43,14 @@
是
+
+
+ 否
+ 是
+
+
@@ -119,7 +127,7 @@ export default {
const { record, form: { setFieldsValue } } = this
// 设置表单内容
this.$nextTick(() => {
- setFieldsValue(_.pick(record, ['name', 'parent_id', 'image_id', 'status', 'sort','is_paihang','is_hot']))
+ setFieldsValue(_.pick(record, ['name', 'parent_id', 'image_id', 'status', 'sort','is_paihang','is_hot', 'is_in_store']))
})
},