Commit 235d5aad authored by dragondean@qq.com's avatar dragondean@qq.com

修复优惠的货币单位限制

parent 3bca5b87
...@@ -513,7 +513,7 @@ export default { ...@@ -513,7 +513,7 @@ export default {
// 满减活动如果选择的满多少金额减,则在选择满货币后需要同步减的货币,且禁用减的货币修改 // 满减活动如果选择的满多少金额减,则在选择满货币后需要同步减的货币,且禁用减的货币修改
checkReduceCurrency(item){ checkReduceCurrency(item){
// 金额满减 // 金额满减
if(this.form.type == 2){ if([2,4,5,7].indexOf(this.form.type) > -1){
// 只要不是按产品单位满减 // 只要不是按产品单位满减
if(!item.combUnit || item.combUnit.split('_')[0] != 'prodUnit'){ if(!item.combUnit || item.combUnit.split('_')[0] != 'prodUnit'){
this.$set(item, 'reduceCurrencyDisabled', true) this.$set(item, 'reduceCurrencyDisabled', true)
...@@ -524,21 +524,29 @@ export default { ...@@ -524,21 +524,29 @@ export default {
if(!currencyId){ if(!currencyId){
currencyId = this.currencyList[0].id currencyId = this.currencyList[0].id
} }
// 满减
if(this.form.type == 2){
this.$set(item, 'reduceCurrencyId', currencyId) this.$set(item, 'reduceCurrencyId', currencyId)
}
// 优惠5,区间价7
if(this.form.type == 5 || this.form.type == 7){
this.$set(item, 'netReceiptsCurrencyId', currencyId)
}
}else this.$set(item, 'reduceCurrencyDisabled', false) }else this.$set(item, 'reduceCurrencyDisabled', false)
return return
} }
// 优惠 // 优惠
if(this.form.type == 5){ /* if(this.form.type == 5){
if(!item.fullCurrencyId){ if(!item.fullCurrencyId){
this.$set(item, 'fullCurrencyId', this.currencyList[0].id) this.$set(item, 'fullCurrencyId', this.currencyList[0].id)
} }
this.$set(item, 'reduceCurrencyDisabled', true) // this.$set(item, 'reduceCurrencyDisabled', true)
this.$set(item, 'netReceiptsCurrencyId', +item.fullCurrencyId) this.$set(item, 'netReceiptsCurrencyId', +item.fullCurrencyId)
return return
} } */
// 区间价 // 区间价
if(this.form.type== 7){ if(this.form.type== 7){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment