Commit 05c54e3e by liwk

commit

1 parent 4e0a815d
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
</el-radio-group> </el-radio-group>
</div> </div>
<div class="box"> <div class="box">
<div class="title">基本信息</div>
<el-form-item <el-form-item
label="产品提供方" label="产品提供方"
required required
......
...@@ -148,7 +148,7 @@ export default { ...@@ -148,7 +148,7 @@ export default {
mixins: [searchMixin], mixins: [searchMixin],
data () { data () {
return { return {
flag: false, flag: true,
brandNameList: [], brandNameList: [],
supplierList: [ supplierList: [
{ {
...@@ -184,7 +184,8 @@ export default { ...@@ -184,7 +184,8 @@ export default {
label: '商品SKU', label: '商品SKU',
minWidth: '200', minWidth: '200',
formatter: (cell) => { formatter: (cell) => {
return cell.appearance == 1 ? `${cell.brandName}${cell.productName}` : `${cell.brandName}${cell.productName}\n${cell.salesPrice}元` if (cell.appearance != 1) console.log(cell)
return cell.appearance == 1 ? `${cell.brandName}${cell.productName}` : `<div>${cell.brandName}${cell.productName}</div><div>${cell.denomination}元</div>`
} }
}, },
{ {
...@@ -213,6 +214,7 @@ export default { ...@@ -213,6 +214,7 @@ export default {
label: '库存', label: '库存',
prop: 'stock', prop: 'stock',
minWidth: '200', minWidth: '200',
sortable: true,
}, },
{ {
label: '商品状态', label: '商品状态',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!