Commit 4d996a3c by huaying

fix: 积分校验提示信息修改

parent 2b9146dc
......@@ -400,7 +400,7 @@ export default {
this.scrollToError(this, 'yearY');
that.$message.error({
duration: 1000,
message: "请选择积分有效期类型"
message: "请设置积分有效期"
})
return;
}
......@@ -409,21 +409,21 @@ export default {
this.scrollToError(this, 'yearY');
that.$message.error({
duration: 1000,
message: "请选择按月失效规则"
message: "请完善积分有效期信息"
})
return;
}else if(data.integralExpireType ==2 && (this.yearY == '' || this.yearM == '' || this.yearD == -1 )) {
this.scrollToError(this, 'yearY');
that.$message.error({
duration: 1000,
message: "请选择按年失效规则"
message: "请完善积分有效期信息"
})
return;
} else if (data.integralExpireType ==0 && data.effectiveTime=='') {
this.scrollToError(this, 'yearY');
that.$message.error({
duration: 1000,
message: "请填写积分有效期"
message: "请完善积分有效期信息"
})
return;
}else if ( String(data.integralExpireType)== 0 && data.effectiveTime=='' && parseInt(data.effectiveTime) < 1) {
......
......@@ -994,20 +994,20 @@ export default {
if (data.userGeneralIntegralExpireRule == 0) {
if(data.integralExpireType == null) {
this.scrollToError(this, 'mouthM');
showMsg.showmsg('请选择积分失效规则','error')
showMsg.showmsg('请设置积分有效期','error')
return;
}
if(data.integralExpireType ==3 && (this.mouthM == '' || this.mouthD == -1)) {
this.scrollToError(this, 'mouthM');
showMsg.showmsg('请选择按月失效规则','error')
showMsg.showmsg('请完善积分有效期信息','error')
return;
}else if(data.integralExpireType ==2 && (this.yearY == '' || this.yearM == '' || this.yearD == -1 )) {
this.scrollToError(this, 'yearY');
showMsg.showmsg('请选择按年失效规则','error')
showMsg.showmsg('请完善积分有效期信息','error')
return;
} else if (data.integralExpireType ==0 && !Number(data.integralGetEffectiveDays)) {
this.scrollToError(this, 'integralGetEffectiveDays');
showMsg.showmsg('请填写积分有效期','error')
showMsg.showmsg('请完善积分有效期信息','error')
return;
}
}
......
......@@ -293,7 +293,7 @@
</el-form-item>
<el-form-item label="选择店铺:" class="margin-20">
<el-select v-model="storeValue" v-if="!isJinHua" class="w215">
<el-option label="所有门店:" value=""></el-option>
<el-option label="所有门店" value=""></el-option>
</el-select>
<vue-gic-store-new :disabled="opendisabled9" v-else :scenesVal="scencs" :options="options" :isAdd="isAdd" :uuid.sync="wmuuid" ref="wmstoreGroup"></vue-gic-store-new>
</el-form-item>
......@@ -1070,21 +1070,21 @@ export default {
}
}
if (data.integralGetStatus == 1 && !Number(data.integralGetFreezeDays) && data.integralGetFreezeDays != '0') {
showMsg.showmsg('请填写积分冻结期', 'error');
showMsg.showmsg('请设置积分有效期', 'error');
return;
}
if (data.userGeneralIntegralExpireRule == 0) {
if(data.integralExpireType ==3 && (this.mouthM == '' || this.mouthD == -1)) {
this.scrollToError(this, 'mouthM');
showMsg.showmsg('请选择按月失效规则','error')
showMsg.showmsg('请完善积分有效期信息','error')
return;
}else if(data.integralExpireType ==2 && (this.yearY == '' || this.yearM == '' || this.yearD == -1 )) {
this.scrollToError(this, 'yearY');
showMsg.showmsg('请选择按年失效规则','error')
showMsg.showmsg('请完善积分有效期信息','error')
return;
} else if (data.integralExpireType ==0 && !Number(data.integralGetEffectiveDays)) {
this.scrollToError(this, 'integralGetEffectiveDays');
showMsg.showmsg('请填写积分有效期','error')
showMsg.showmsg('请完善积分有效期信息','error')
return;
}
}
......
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