wzy
2022-10-07 f6e14b78fe0e9e6e1fa6006ef110b04002599dc4
修复任选套餐-无限次数时无默认999的bug
1 files modified
14 ■■■■ changed files
zq-erp/src/main/resources/templates/views/admin/hive/products/goods-form.html 14 ●●●● patch | view | raw | blame | history
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;
                            }