From 39a5520c112081aff9f55ad13c1b4b53e4136a87 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Wed, 19 Oct 2022 15:05:43 +0800 Subject: [PATCH] Merge branch 'score_shop' --- zq-erp/src/main/resources/templates/views/admin/hive/products/goods-form.html | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/zq-erp/src/main/resources/templates/views/admin/hive/products/goods-form.html b/zq-erp/src/main/resources/templates/views/admin/hive/products/goods-form.html index 1e8f66d..a97efed 100644 --- a/zq-erp/src/main/resources/templates/views/admin/hive/products/goods-form.html +++ b/zq-erp/src/main/resources/templates/views/admin/hive/products/goods-form.html @@ -1605,10 +1605,16 @@ 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; } -- Gitblit v1.9.1