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请求