From f6e14b78fe0e9e6e1fa6006ef110b04002599dc4 Mon Sep 17 00:00:00 2001 From: wzy <wzy19931122ai@163.com> Date: Fri, 07 Oct 2022 13:58:23 +0800 Subject: [PATCH] 修复任选套餐-无限次数时无默认999的bug --- 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