Commit 08e3efc8 by 李伟康

提交

1 parent 0a567c05
......@@ -774,7 +774,7 @@ export default {
'formObj.tencentcloudMediaId': {
handler (nVal, oVal) {
const { goodsSource } = this.formObj,
_target = this.formData.find(item => item.name == 'commerceDescribe')
_target = this.formData.find(item => item.name == 'commerceDescribe')
_target.isHide = goodsSource == 3 ? true : !nVal
if (!nVal) this.formObj.commerceDescribe = ''
},
......@@ -1116,10 +1116,16 @@ export default {
setDefault (e, target, min = 0) {
if (e[target]) e[target] = Math.abs(e[target])
if (!e[target] || e[target] < min) e[target] = min
if (target == 'activityPrice' && e[target] == 0) e.exchangeIntegralFlag = 1
if (target == 'activityPrice' && e[target] == 0) {
e.exchangeIntegralFlag = 1
this.$message.error('当前门店价不能为0')
}
},
integralSwitch (e, row) {
if (!e && row.activityPrice == 0) row.exchangeIntegralFlag = 1
if (!e && row.activityPrice == 0) {
row.exchangeIntegralFlag = 1
this.$message.error('当前门店价不能为0')
}
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!