Commit be519bca by chenwq

添加“品牌方”和“供应商”字段

1 parent 9997c6b6
...@@ -58,6 +58,14 @@ export default { ...@@ -58,6 +58,14 @@ export default {
name: 'goodsCodeName' name: 'goodsCodeName'
}, },
{ {
label: '品牌方',
name: ''
},
{
label: '供应方',
name: ''
},
{
label: '产品类型', label: '产品类型',
name: 'typeTxt' name: 'typeTxt'
}, },
......
...@@ -15,6 +15,20 @@ const commodityObj = { ...@@ -15,6 +15,20 @@ const commodityObj = {
maxlength: 50 maxlength: 50
}, },
{ {
label: '品牌方',
name: '',
type: 'input',
isClear: true,
maxlength: 20
},
{
label: '供应商',
name: '',
type: 'input',
isClear: true,
maxlength: 20
},
{
label: '使用门店', label: '使用门店',
name: 'merchantIdList', name: 'merchantIdList',
type: 'select', type: 'select',
...@@ -78,7 +92,7 @@ const editCommodityObj = { ...@@ -78,7 +92,7 @@ const editCommodityObj = {
optionLabel: 'goodsName', optionLabel: 'goodsName',
optionsName: 'goodsSeriesList', optionsName: 'goodsSeriesList',
changeAttr: function(val, targetItem, that) { changeAttr: function(val, targetItem, that) {
let labeList = ['产品类型','质保年限'] let labeList = ['产品类型', '质保年限']
let txt = targetItem.optionList.find(k => k.goodsCode == val)?.goodsName || '' let txt = targetItem.optionList.find(k => k.goodsCode == val)?.goodsName || ''
that.changeFormAttr('editFormData', 'isHide', labeList, txt != '太阳膜') that.changeFormAttr('editFormData', 'isHide', labeList, txt != '太阳膜')
if (val != '1') { if (val != '1') {
...@@ -90,6 +104,18 @@ const editCommodityObj = { ...@@ -90,6 +104,18 @@ const editCommodityObj = {
} }
}, },
{ {
label: '品牌方',
name: '',
type: 'input',
maxlength: 20
},
{
label: '供应方',
name: '',
type: 'input',
maxlength: 20
},
{
label: '产品类型', label: '产品类型',
name: '', name: '',
type: 'slot', type: 'slot',
......
...@@ -84,8 +84,17 @@ export default { ...@@ -84,8 +84,17 @@ export default {
width: '100' width: '100'
}, },
{ {
label: '品牌方',
prop: ''
},
{
label: '供应方',
prop: ''
},
{
label: '产品类型', label: '产品类型',
prop: 'baseProductFlag', prop: 'baseProductFlag',
width: 120,
formatter: cellValue => { formatter: cellValue => {
let list = [] let list = []
cellValue.baseProductFlag == 'Y' ? list.push('基础产品') : '' cellValue.baseProductFlag == 'Y' ? list.push('基础产品') : ''
...@@ -95,7 +104,8 @@ export default { ...@@ -95,7 +104,8 @@ export default {
}, },
{ {
label: '售价/元', label: '售价/元',
prop: 'sellPrice' prop: 'sellPrice',
width: 100
}, },
{ {
label: '最低售价/元', label: '最低售价/元',
...@@ -104,11 +114,13 @@ export default { ...@@ -104,11 +114,13 @@ export default {
}, },
{ {
label: '赠送成本', label: '赠送成本',
prop: 'giftCost' prop: 'giftCost',
width: 120
}, },
{ {
label: '产品成本', label: '产品成本',
prop: 'productCost' prop: 'productCost',
width: 120
}, },
{ {
label: '质保年限/年', label: '质保年限/年',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!