diff --git a/src/common/model/goods/MultiSpec.js b/src/common/model/goods/MultiSpec.js index 3c5c747..b6d8e49 100644 --- a/src/common/model/goods/MultiSpec.js +++ b/src/common/model/goods/MultiSpec.js @@ -4,11 +4,23 @@ import { debounce, isEmpty } from '@/utils/util' // 默认的sku字段属性 const defaultColumns = [ - { + /* { title: '预览图', dataIndex: 'image', width: 90, scopedSlots: { customRender: 'image' } + }, */ + { + title: '选择商品', + dataIndex: 'select_goods', + width: 120, + scopedSlots: { customRender: 'select_goods' } + }, + { + title: '商品名称', + dataIndex: 'goods_name', + width: 120, + scopedSlots: { customRender: 'goods_name' } }, { title: '商品价格', @@ -22,6 +34,12 @@ const defaultColumns = [ width: 120, scopedSlots: { customRender: 'cost_price' } }, + /* { + title: '划线价格', + dataIndex: 'line_price', + width: 120, + scopedSlots: { customRender: 'line_price' } + }, */ { title: '库存数量', dataIndex: 'stock_num', @@ -39,6 +57,13 @@ const defaultColumns = [ dataIndex: 'goods_sku_no', width: 140, scopedSlots: { customRender: 'goods_sku_no' } + }, + + { + title: '操作', + dataIndex: 'action', + width: 140, + scopedSlots: { customRender: 'action' } } ] @@ -47,8 +72,11 @@ const defaultSkuItemData = { image_id: 0, image: {}, // imageList: [], + goods_id: '', + goods_name: '', goods_price: '', line_price: '', + cost_price: '', stock_num: '', goods_weight: '', goods_sku_no: '' diff --git a/src/views/goods/modules/MultiSpec.vue b/src/views/goods/modules/MultiSpec.vue index 821709a..8a9eb3b 100644 --- a/src/views/goods/modules/MultiSpec.vue +++ b/src/views/goods/modules/MultiSpec.vue @@ -19,7 +19,8 @@ class="group-item-delete" href="javascript:;" @click="handleDeleteSpecGroup(index)" - >删除规格组 + >删除规格组
@@ -39,11 +40,7 @@ />
- 新增规格值 + 新增规格值
@@ -53,14 +50,10 @@ class="spec-group-add-btn" icon="plus" @click="handleAddSpecGroup" - >添加规格组 + >添加规格组 - +
批量设置: @@ -76,6 +69,12 @@ :min="0" :precision="2" /> + 立即设置
+ - -