Commit cd638a04 by 王志慧

修改第二轮提测bug

1 parent a6e19629
......@@ -50,7 +50,7 @@ export default {
},
{
label: '所属系列',
name: 'goodsCode'
name: 'goodsCodeName'
},
{
label: '产品类型',
......@@ -142,6 +142,11 @@ export default {
this.detailForm.baseProductFlag == 'Y' ? list.push('基础产品') : ''
this.detailForm.upgradeProductFlag == 'Y' ? list.push('升级产品') : ''
this.detailForm.typeTxt = list.join(',')
if(list.length!=2&&this.detailForm.baseProductFlag == 'Y'){
this.detailForm.sellPrice = '-';
this.detailForm.minSellPrice = '-'
this.detailForm.productCost = '-'
}
})
},
handleCancel() {
......
......@@ -109,7 +109,7 @@ export default {
},
// 售价
'editForm.sellPrice'(newValue, oldValue) {
this.editForm.sellPrice = limitPrice(newValue, oldValue, 6, 2)
this.editForm.sellPrice = limitPrice(newValue, oldValue, 6, 2,)
},
// 最低售价
'editForm.minSellPrice'(newValue, oldValue) {
......@@ -160,7 +160,7 @@ export default {
},
validateProduct(goodsCode) {
let isFlag = goodsCode != '太阳膜'
let AttrList = isFlag ? ['售价/元', '最低售价/元', '产品成本/元'] : ['产品类型']
let AttrList = isFlag ? ['售价/元', '最低售价/元', '产品成本/元'] : ['产品类型','质保年限']
this.changeFormAttr('editFormData', 'isHide', AttrList, false)
if (!isFlag)
return (val, attr) => {
......@@ -180,7 +180,7 @@ export default {
// 产品类型改变
handleCheckChange(val, attr) {
console.log(val, attr)
let baseAttrList = ['赠送成本/元']
let baseAttrList = ['赠送成本/元',]
let upAttrList = ['售价/元', '最低售价/元', '产品成本/元']
switch (attr) {
case 'baseProductFlag':
......@@ -199,7 +199,8 @@ export default {
minSellPrice: '',
productCost: '',
warningValue: '',
giftCost:''
giftCost:'',
warrantyPeriod:''
}
},
changeFormAttr(formName, attrName, labelList, attrValue) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!