Commit 72ca9a1f by wuwx

修改关联优惠券弹窗radio bug

1 parent 4357a18d
...@@ -18,9 +18,9 @@ module.exports = { ...@@ -18,9 +18,9 @@ module.exports = {
code_message_map: {} code_message_map: {}
}, },
request: { request: {
// baseURL: 'http://scrm.test.glsx.com.cn/', baseURL: 'http://scrm.test.glsx.com.cn/',
// baseURL: 'http://192.168.2.42:8064/', // baseURL: 'http://192.168.2.42:8064/',
baseURL: 'http://scrm.dev.glsx.com.cn/', // baseURL: 'http://scrm.dev.glsx.com.cn/',
// 设置超时时间 // 设置超时时间
timeout: 180000, timeout: 180000,
// 携带凭证 // 携带凭证
......
...@@ -829,6 +829,14 @@ export default { ...@@ -829,6 +829,14 @@ export default {
this.editForm.deliveryType = 2 this.editForm.deliveryType = 2
this.handleTypeChange(this.editForm.deliveryType) this.handleTypeChange(this.editForm.deliveryType)
} }
},
// 关联优惠券radio
'editForm.relatedCouponId'(newValue, oldValue) {
if (newValue) {
this.radio = newValue
} else {
this.radio = newValue
}
} }
}, },
...@@ -878,6 +886,7 @@ export default { ...@@ -878,6 +886,7 @@ export default {
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 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() { associationCancel() {
this.radio = this.editForm.relatedCouponId
this.dialogTableVisible = false this.dialogTableVisible = false
}, },
getCurrentRow() { getCurrentRow() {
...@@ -886,7 +895,6 @@ export default { ...@@ -886,7 +895,6 @@ export default {
let inx = this.templateSelection.findIndex(value => value.id == this.radio) let inx = this.templateSelection.findIndex(value => value.id == this.radio)
this.associationList.pop() this.associationList.pop()
this.associationList.push(this.templateSelection[inx]) this.associationList.push(this.templateSelection[inx])
console.log('this.associationList', this.associationList)
}, },
getBaseDate() { getBaseDate() {
return new Promise(resolve => { 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!