Commit be519bca by chenwq

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

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