mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-23 21:36:37 +08:00
小区和楼栋加入 精度和维度
This commit is contained in:
parent
0331e712bc
commit
3ec61176ab
@ -12,6 +12,7 @@
|
||||
payerObjId: '',
|
||||
payerObjType: '',
|
||||
endTime: '',
|
||||
custEndTime: '',
|
||||
communityId: vc.getCurrentCommunity().communityId,
|
||||
cycles: 1,
|
||||
quanDiscount: false,
|
||||
@ -42,6 +43,8 @@
|
||||
if ($that.payFeeDiscountInfo.cycles < 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
$that._listFeeDiscounts(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
});
|
||||
},
|
||||
@ -53,13 +56,24 @@
|
||||
$('.popover-show').popover('hide');
|
||||
},
|
||||
_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: {
|
||||
page: DEFAULT_PAGE,
|
||||
row: DEFAULT_ROWS,
|
||||
feeId: $that.payFeeDiscountInfo.feeId,
|
||||
communityId: $that.payFeeDiscountInfo.communityId,
|
||||
cycles: $that.payFeeDiscountInfo.cycles,
|
||||
cycles: _cycles,
|
||||
payerObjId: $that.payFeeDiscountInfo.payerObjId,
|
||||
payerObjType: $that.payFeeDiscountInfo.payerObjType,
|
||||
endTime: $that.payFeeDiscountInfo.endTime
|
||||
|
||||
@ -396,6 +396,7 @@
|
||||
if (!_cycles) {
|
||||
_cycles = 1;
|
||||
}
|
||||
|
||||
let param = {
|
||||
params: {
|
||||
communityId: vc.getCurrentCommunity().communityId,
|
||||
@ -443,7 +444,8 @@
|
||||
cycles: _cycles,
|
||||
payerObjId: $that.payFeeOrderInfo.payerObjId,
|
||||
payerObjType: $that.payFeeOrderInfo.payerObjType,
|
||||
endTime: $that.payFeeOrderInfo.endTime
|
||||
endTime: $that.payFeeOrderInfo.endTime,
|
||||
custEndTime:$that.payFeeOrderInfo.custEndTime
|
||||
});
|
||||
vc.emit('payFeeCoupon', 'computeFeeCoupon', {
|
||||
feeId: $that.payFeeOrderInfo.feeId,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user