diff --git a/src/common/model/goods/MultiSpec.js b/src/common/model/goods/MultiSpec.js index 059e05c..e385d70 100644 --- a/src/common/model/goods/MultiSpec.js +++ b/src/common/model/goods/MultiSpec.js @@ -5,24 +5,22 @@ import { log } from '@/api/market/presale' // 默认的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: '商品ID', + dataIndex: 'goods_id', + width: 90, + }, + { + title: '商品信息', + scopedSlots: { customRender: 'item' }, + width: 180, + }, { title: '商品价格', dataIndex: 'goods_price', @@ -79,7 +77,9 @@ const defaultSkuItemData = { cost_price: '', stock_num: '', goods_weight: '', - goods_sku_no: '' + goods_sku_no: '', + goods_image :'', +goods_name :'' } // const demoSpecList = [ diff --git a/src/components/Modal/GoodsModal/GoodsModal.vue b/src/components/Modal/GoodsModal/GoodsModal.vue index 7d40d47..4473fdf 100644 --- a/src/components/Modal/GoodsModal/GoodsModal.vue +++ b/src/components/Modal/GoodsModal/GoodsModal.vue @@ -52,6 +52,11 @@ /> + +

+ {{ text == 10 ? '单规格' : '多规格' }} +

+
{{ text == 10 ? '上架' : '下架' }} @@ -76,6 +81,11 @@ const columns = [ title: '商品信息', width: '335px', scopedSlots: { customRender: 'item' }, + }, + { + title: '规格类型', + dataIndex: 'spec_type', + scopedSlots: { customRender: 'spec_type' }, }, { title: '商品价格', diff --git a/src/components/SelectGoods/SelectGoods.vue b/src/components/SelectGoods/SelectGoods.vue index 3d4c0da..df0feb8 100644 --- a/src/components/SelectGoods/SelectGoods.vue +++ b/src/components/SelectGoods/SelectGoods.vue @@ -1,7 +1,7 @@