Commit da5f7767 by 杨北旺

Merge branch 'v2.0.0' into ybw_dev_v2.0.0

2 parents 82ee5859 301fb3eb
......@@ -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
......
......@@ -663,4 +663,7 @@ export default {
color: #999;
margin-left: -10px;
}
.glsx-combi-form .el-form-item--small.el-form-item {
margin-top: 0px !important;
}
</style>
......@@ -537,4 +537,7 @@ export default {
color: #999;
margin-left: -10px;
}
.glsx-combi-form .el-form-item--small.el-form-item {
margin-top: 0px !important;
}
</style>
......@@ -189,6 +189,7 @@ export default {
color: #333;
background-color: #fff;
border-radius: 4px;
word-wrap: break-word;
word-break: break-all;
line-height: 20px;
/deep/ img {
......@@ -198,6 +199,7 @@ export default {
}
}
.text {
width: 100%;
font-size: 12px;
padding: 0px;
margin-bottom: 6px;
......
......@@ -811,6 +811,32 @@ export default {
// 运费
'editForm.expressFee'(newValue, oldValue) {
this.editForm.expressFee = limitPrice(newValue, oldValue, 5, 2, 0, 100000)
},
// 判断配送发货状态
'editForm.relatedCouponName'(newValue, oldValue) {
if (newValue) {
let inx = this.externalFormList[2].editFormData.findIndex(val => val.name == 'deliveryType')
this.externalFormList[2].editFormData[inx].optionList.map(val => {
if (val.confId == 2) return (val.isDisabled = true)
})
this.editForm.deliveryType = 1
this.handleTypeChange(this.editForm.deliveryType)
} else {
let inx = this.externalFormList[2].editFormData.findIndex(val => val.name == 'deliveryType')
this.externalFormList[2].editFormData[inx].optionList.map(val => {
if (val.confId == 2) return (val.isDisabled = false)
})
this.editForm.deliveryType = 2
this.handleTypeChange(this.editForm.deliveryType)
}
},
// 关联优惠券radio
'editForm.relatedCouponId'(newValue, oldValue) {
if (newValue) {
this.radio = newValue
} else {
this.radio = newValue
}
}
},
......@@ -857,9 +883,10 @@ 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.radio = this.editForm.relatedCouponId
this.dialogTableVisible = false
},
getCurrentRow() {
......@@ -868,7 +895,6 @@ export default {
let inx = this.templateSelection.findIndex(value => value.id == this.radio)
this.associationList.pop()
this.associationList.push(this.templateSelection[inx])
console.log('this.associationList', this.associationList)
},
getBaseDate() {
return new Promise(resolve => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!