|
@@ -76,7 +76,7 @@
|
|
|
<a-input-number
|
|
|
v-model="form.regularAmount"
|
|
|
@blur="calculatePrice"
|
|
|
- :max="form.gateType==='FIXED_AMOUNT'?form.quotaAmount:999999"
|
|
|
+ :max="999999"
|
|
|
:step="1"
|
|
|
:precision="2"
|
|
|
:min="0"
|
|
@@ -322,6 +322,12 @@ export default {
|
|
|
_this.$message.warning('满赠规则条件不能为空!')
|
|
|
return
|
|
|
}
|
|
|
+ if (_this.form.gateType === 'FIXED_AMOUNT' && _this.form.regularAmount) {
|
|
|
+ if (_this.form.quotaAmount * 1 < _this.form.regularAmount * 1) {
|
|
|
+ _this.$message.warning('可使用配额必须大于购买正价产品金额!')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
if (_this.form.minOrderFlag == 1 && !_this.form.minOrderAmount) {
|
|
|
_this.$message.warning('请输入订单起订限制金额数!')
|