From 099ce05556390525451c1428810bccb9726ba096 Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Fri, 14 Jun 2024 08:44:15 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E7=BB=93=E6=9D=9F=E6=97=B6=E9=97=B4=E4=BC=98=E6=83=A0bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: java110 <928255095@qq.com> --- .../property/payFeeDiscount/payFeeDiscount.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/public/components/property/payFeeDiscount/payFeeDiscount.js b/public/components/property/payFeeDiscount/payFeeDiscount.js index ca4e0f8da..47f2ffdaa 100644 --- a/public/components/property/payFeeDiscount/payFeeDiscount.js +++ b/public/components/property/payFeeDiscount/payFeeDiscount.js @@ -58,14 +58,7 @@ _listFeeDiscounts: function (_page, _rows) { let _cycles = $that.payFeeDiscountInfo.cycles; - //todo 自定义缴费周期 - if (_cycles == '103' && $that.payFeeDiscountInfo.custEndTime) { - let _customEndTime = vc.dateAdd($that.payFeeDiscountInfo.custEndTime); - const timeDiff = Math.abs(new Date(_customEndTime) - new Date($that.payFeeDiscountInfo.endTime)); - _cycles =timeDiff / (1000 * 3600 * 24 * 30); - _cycles = _cycles.toFixed(2) - } let param = { params: { @@ -76,7 +69,8 @@ cycles: _cycles, payerObjId: $that.payFeeDiscountInfo.payerObjId, payerObjType: $that.payFeeDiscountInfo.payerObjType, - endTime: $that.payFeeDiscountInfo.endTime + endTime: $that.payFeeDiscountInfo.endTime, + custEndTime:vc.dateAdd($that.payFeeDiscountInfo.custEndTime) } }; //发送get请求