|
@@ -203,7 +203,7 @@ export default {
|
203
|
203
|
return
|
204
|
204
|
}
|
205
|
205
|
if (idx > 0) { // 同步修改前一规则的最大值数据
|
206
|
|
- if (Number(currentMinVal) < Number(this.amount_setvale[idx - 1].start_amount)) {
|
|
206
|
+ if ((this.amount_setvale[idx - 1].start_amount !== '') && Number(currentMinVal) < Number(this.amount_setvale[idx - 1].start_amount)) {
|
207
|
207
|
this.$message.warning('当前输入值不能小于前面规则的最小值')
|
208
|
208
|
this.amount_setvale[idx].start_amount = ''
|
209
|
209
|
return
|
|
@@ -219,7 +219,7 @@ export default {
|
219
|
219
|
return
|
220
|
220
|
}
|
221
|
221
|
if (idx !== this.amount_setvale.length - 1) { // 同步修改后一规则的最小值数据
|
222
|
|
- if (Number(currentMaxVal) > Number(this.amount_setvale[idx + 1].end_amount)) {
|
|
222
|
+ if ((this.amount_setvale[idx + 1].end_amount !== '') && Number(currentMaxVal) > Number(this.amount_setvale[idx + 1].end_amount)) {
|
223
|
223
|
this.$message.warning('当前输入值不能大于后面规则的最大值')
|
224
|
224
|
this.amount_setvale[idx].end_amount = ''
|
225
|
225
|
return
|