Commit a7f8ebef by wuwx

修改选项bug,处理报错

1 parent 33126dc9
......@@ -376,11 +376,13 @@ export default {
let goodHtmlIndex = this.editFormData.findIndex(item => item.name == 'goods')
let proTableIndex = this.editFormData.findIndex(item => item.addHtml == 'proTable')
if (newValue == 1) {
this.editForm.directionalFlag = '1'
this.editFormData[goodHtmlIndex].isHide = false
if (this.editForm.goodsRefList.length) {
this.editFormData[proTableIndex].isHide = false
}
} else {
this.editForm.directionalFlag = '1'
this.editForm.useBarriers = '1'
this.editForm.full = ''
this.editFormData[goodHtmlIndex].isHide = true
......
......@@ -1025,7 +1025,7 @@ export default {
this.editForm.relatedCouponId = this.associationList[0].id;
this.editForm.relatedCouponName = this.associationList[0].couponName;
this.editForm.relatedDiscountType = this.associationBaseData.discountTypeList.find(item => item.confId == this.associationList[0].discountType).confName;
this.editForm.relatedUseChannel = this.associationBaseData.useChannelList.find(item => item.confId == this.associationList[0].useChannel).confName;
if(this.associationBaseData.useChannelList.find(item => item.confId == this.associationList[0].useChannel)) this.editForm.relatedUseChannel = this.associationBaseData.useChannelList.find(item => item.confId == this.associationList[0].useChannel).confName;
},
associationCancel(){
this.dialogTableVisible = false;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!