From e900ccb94046eabeff772f51c9492c3d8cfa2941 Mon Sep 17 00:00:00 2001 From: liujie <1793218484@qq.com> Date: 星期一, 18 八月 2025 10:40:58 +0800 Subject: [PATCH] Merge branch '2.0' of http://120.76.84.145:10101/gitblit/r/java/PlayPai into 2.0 --- cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TCouponInfo.js | 29 +++++++++++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-) diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TCouponInfo.js b/cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TCouponInfo.js index 5cb9b52..bc2a373 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TCouponInfo.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TCouponInfo.js @@ -157,6 +157,8 @@ $("#experienceName").val('') $("#experienceName").attr('disabled', 'disabled'); + $("#goods").attr('disabled', 'disabled'); + } /** @@ -172,6 +174,7 @@ $("#experienceName").val('') $("#experienceName").attr('disabled', 'disabled'); + $("#goods").attr('disabled', 'disabled'); } @@ -188,6 +191,21 @@ $("#voucherAmount").val('') $("#voucherAmount").attr('disabled', 'disabled'); + $("#goods").attr('disabled', 'disabled'); + +} +function radio4() { + $("#goods").removeAttr("disabled"); + + $("#conditionalAmount").val('') + $("#deductionAmount").val('') + $("#deductionAmount").attr('disabled', 'disabled'); + $("#conditionalAmount").attr('disabled', 'disabled'); + + $("#voucherAmount").val('') + $("#voucherAmount").attr('disabled', 'disabled'); + $("#experienceName").val('') + $("#experienceName").attr('disabled', 'disabled'); } @@ -383,6 +401,7 @@ let voucherAmount = $('#voucherAmount').val(); // 体验券名称 let experienceName = $('#experienceName').val(); + let goods = $('#goods').val(); if (prescription === '1'){ if (conditionalAmount === undefined || conditionalAmount === '' || conditionalAmount === null){ return Feng.error('条件金额不能为空'); @@ -399,6 +418,11 @@ if (prescription === '3'){ if (experienceName === undefined || experienceName === '' || experienceName === null){ return Feng.error('体验券名称不能为空'); + } + } + if (prescription === '4'){ + if (goods === undefined || goods === '' || goods === null){ + return Feng.error('请选择抵扣商品'); } } @@ -532,6 +556,11 @@ ajax.set("quantityIssued",quantityIssued); ajax.set("pickUpQuantity",pickUpQuantity); ajax.set("periodOfValidity",periodOfValidity); + if (prescription === '4'){ + ajax.set("goodsId",goods); + }else{ + ajax.set("goodsId",0); + } if ($('#userType').val()==2) { ajax.set("exchangeMethod",1); -- Gitblit v1.7.1