|
|
@@ -449,6 +449,11 @@ export default {
|
|
|
const meetNum = Number(this.form.meetNum) || 0
|
|
|
const meetAmount = Number(this.form.meetAmount) || 0
|
|
|
const cutAmount = Number(this.form.cutAmount) || 0
|
|
|
+ // meetNum 要为整数
|
|
|
+ if (meetNum !== Math.floor(meetNum)) {
|
|
|
+ this.$msg('整单满扎数必须为整数')
|
|
|
+ return
|
|
|
+ }
|
|
|
if (meetNum < 0 || meetAmount < 0 || cutAmount < 0) {
|
|
|
this.$msg('满减优惠数值不能为负数')
|
|
|
return
|