|  |  |  | 
|---|
|  |  |  | if (valid) { | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if ( _this.form.goodType == '套餐' && _this.form.isCourse == 'Y' && _this.form.isInfinite == 'N' && !_this.form.carUseCount) { | 
|---|
|  |  |  | this.$message.error('请输入套餐最大使用次数!'); | 
|---|
|  |  |  | _this.submiting = false; | 
|---|
|  |  |  | return false; | 
|---|
|  |  |  | if ( _this.form.goodType == '套餐' && _this.form.isCourse == 'Y' && _this.form.isInfinite == 'N') { | 
|---|
|  |  |  | if (!_this.form.carUseCount) { | 
|---|
|  |  |  | this.$message.error('请输入套餐最大使用次数!'); | 
|---|
|  |  |  | _this.submiting = false; | 
|---|
|  |  |  | return false; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (_this.form.goodType == '套餐' && _this.form.isCourse == 'Y' && _this.form.isInfinite == 'Y') { | 
|---|
|  |  |  | _this.form.carUseCount = 999; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|