-
- 商品管理
-
+
+ 商品管理
+
-
-
- 上架
- 下架
-
-
+
+
+ 上架
+ 下架
+ 修改商品信息
+
+
+
+
+
-
-
+
diff --git a/src/views/Shop/GoodsManage/_jcookList/depend/config.js b/src/views/Shop/GoodsManage/_jcookList/depend/config.js
index 5118f53..a5458cf 100644
--- a/src/views/Shop/GoodsManage/_jcookList/depend/config.js
+++ b/src/views/Shop/GoodsManage/_jcookList/depend/config.js
@@ -4,6 +4,12 @@ export const columns = [
width: "8%",
dataIndex: "skuName",
},
+ {
+ title: "主图url",
+ width: "4%",
+ dataIndex: "mainPhoto",
+ scopedSlots: { customRender: "mainPhoto"}
+ },
{
title: "sku编码",
width: "8%",
@@ -71,11 +77,6 @@ export const columns = [
}
}
},
- {
- title: "主图url",
- width: "8%",
- dataIndex: "mainPhoto",
- },
{
title: "供货价",
width: "5%",
diff --git a/src/views/Shop/GoodsManage/_jcookList/depend/form.js b/src/views/Shop/GoodsManage/_jcookList/depend/form.js
index 1358dae..09000e8 100644
--- a/src/views/Shop/GoodsManage/_jcookList/depend/form.js
+++ b/src/views/Shop/GoodsManage/_jcookList/depend/form.js
@@ -1,21 +1,32 @@
export const form = {
id:undefined,
- title:undefined,
- categoryId:undefined,
- status:undefined,
- content:undefined,
- imgUrls:[]
+ defaultSkuName:true,
+ defaultShopName: true,
+ defaultVendorName:true,
+ defaultBrandName:true,
+ defaultCategoryName:true,
+ skuName:undefined,
+ shopId:undefined,
+ vendorId:undefined,
+ brandId:undefined,
+ categoryFirstId:undefined,
+ categorySecondId:undefined,
+ categoryThirdId:undefined,
+ sellPrice:undefined,
+ discountPrice:undefined,
}
export const rules = {
- title:[{required:true,message:'请输入标题',trigger:'blur'}],
- categoryId:[{required:true,message:'请选择分类',trigger:'change'}],
- status:[{required:true,message:'请选择',trigger:'change'}],
- content:[{required:true,message:'请输入',trigger:'blur'}],
+ skuName:[{required:true,message:'请输入',trigger:'blur'}],
+ shopId:[{required:true,message:'请选择',trigger:'change'}],
+ vendorId:[{required:true,message:'请选择',trigger:'change'}],
+ brandId: [{ required: true, message: '请选择', trigger: 'change' }],
+ cateValue: [{ required: true, message: '请选择', trigger: 'change',type: 'array'}],
+ sellPrice:[{required:true,message:'请输入',trigger:'blur'}],
+ discountPrice:[{required:true,message:'请输入',trigger:'blur'}],
}
export const options = {
- status:[
- { id:1, name:'未发布' },
- { id:2, name:'已发布' },
- ],
- categoryId:[]
-}
\ No newline at end of file
+ cate:[],
+ shop: [],
+ vendor: [],
+ brand:[],
+}
diff --git a/src/views/Shop/GoodsManage/_jcookList/depend/form.vue b/src/views/Shop/GoodsManage/_jcookList/depend/form.vue
index 50729b0..bc3de34 100644
--- a/src/views/Shop/GoodsManage/_jcookList/depend/form.vue
+++ b/src/views/Shop/GoodsManage/_jcookList/depend/form.vue
@@ -1,10 +1,10 @@
@@ -17,63 +17,82 @@
layout="vertical"
>
-
-
-
-
-
-
-
-
- {{ item.name }}
-
-
-
-
-
-
- {{ item.name }}
-
-
-
-
-
-
-
-
-
- 资讯封面图片
-
-
+
+
+
+
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -89,110 +108,76 @@