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/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 @@