Quellcode durchsuchen

feat(physical): 添加商品详情描述字段

- 在商户商品表单中新增商品详情描述输入框
- 更新MerchantItem接口类型定义,添加description属性
- 更新MerchantItemForm和MerchantItemQuery接口,支持description字段
- 为商品详情字段添加表单验证规则
- 优化表单布局结构,确保新字段正确显示
- 完善商品管理功能的数据传输类型定义
fugui001 vor 2 Wochen
Ursprung
Commit
7031f43424

+ 4 - 1
src/api/system/physical/merchantItem/types.ts

@@ -71,6 +71,8 @@ export interface MerchantItemVO {
   carouselImages?: string;
 
   categoryTagId?: string | number;
+
+  description?: string;
 }
 
 export interface MerchantItemForm extends BaseEntity {
@@ -146,6 +148,8 @@ export interface MerchantItemForm extends BaseEntity {
   carouselImages?: string;
 
   categoryTagId?: string | number;
+
+  description?: string;
 }
 
 export interface MerchantItemQuery extends PageQuery {
@@ -221,5 +225,4 @@ export interface MerchantItemQuery extends PageQuery {
   carouselImages?: string;
 
   categoryTagId?: string | number;
-
 }

+ 7 - 0
src/views/system/physical/merchantItem/index.vue

@@ -162,6 +162,13 @@
             </el-form-item>
           </el-col>
         </el-row>
+        <el-row>
+          <el-col :span="24">
+            <el-form-item label="商品详情" prop="description">
+              <el-input v-model="form.description" type="textarea" :rows="4" placeholder="请输入商品详情描述" />
+            </el-form-item>
+          </el-col>
+        </el-row>
         <el-row>
           <el-col :span="24">
             <el-form-item label="商品主图" prop="productImage">