diff --git a/public/pages/property/feeDiscountManage/feeDiscountManage.html b/public/pages/property/feeDiscountManage/feeDiscountManage.html index 05b0cf3a8..1527cec6a 100644 --- a/public/pages/property/feeDiscountManage/feeDiscountManage.html +++ b/public/pages/property/feeDiscountManage/feeDiscountManage.html @@ -67,7 +67,7 @@ {{feeDiscount.discountId}} {{feeDiscount.discountName}} - {{feeDiscount.discountType == '1001'?'优惠':'违约'}} + {{feeDiscount.discountType == '1001'?'优惠':(feeDiscount.discountType == '2002'?'违约':'优惠(需要申请)')}} {{feeDiscount.ruleName}}
diff --git a/public/pages/property/reportPayFeeDetail/reportPayFeeDetail.html b/public/pages/property/reportPayFeeDetail/reportPayFeeDetail.html index 26d642b8e..44da5dac9 100644 --- a/public/pages/property/reportPayFeeDetail/reportPayFeeDetail.html +++ b/public/pages/property/reportPayFeeDetail/reportPayFeeDetail.html @@ -119,8 +119,13 @@ 费用开始时间 费用结束时间 缴费时间 - 应收金额(单位:元) - 实收金额(单位:元) + 应收金额(元) + 实收金额(元) + 优惠金额(元) + 减免金额(元) + 滞纳金(元) + 空置房打折(元) + 空置房减免(元) @@ -130,11 +135,17 @@ {{fee.feeName}} {{fee.primeRate}} {{vc.dateFormat(fee.startTime)}} - {{vc.dateFormat(fee.endTime)}} - {{vc.dateSub(vc.dateFormat(fee.endTime),fee.feeFlag)}} + {{vc.dateFormat(fee.endTime)}} + + {{vc.dateSub(vc.dateFormat(fee.endTime),fee.feeFlag)}} {{fee.createTime}} {{fee.receivableAmount}} {{fee.receivedAmount}} + {{fee.preferentialAmount}} + {{fee.deductionAmount}} + {{fee.lateFee}} + {{fee.vacantHousingDiscount}} + {{fee.vacantHousingReduction}} @@ -147,18 +158,34 @@
-
- 小计应收: {{reportPayFeeDetailInfo.totalReceivableAmount}}元 - 小计实收: {{reportPayFeeDetailInfo.totalReceivedAmount}}元 -
-
- +
+ 小计 + 应收: {{reportPayFeeDetailInfo.totalReceivableAmount}}元 + 实收: {{reportPayFeeDetailInfo.totalReceivedAmount}}元 + 优惠: {{reportPayFeeDetailInfo.totalPreferentialAmount}}元 + 减免: {{reportPayFeeDetailInfo.totalDeductionAmount}}元 + 滞纳金: {{reportPayFeeDetailInfo.totalLateFee}}元 + 空置房打折: {{reportPayFeeDetailInfo.totalVacantHousingDiscount}}元 + 空置房减免: {{reportPayFeeDetailInfo.allVacantHousingReduction}}元 +
-
- 大计应收: {{reportPayFeeDetailInfo.allReceivableAmount}}元 - 大计实收: {{reportPayFeeDetailInfo.allReceivedAmount}}元 +
+ 大计 + 应收: {{reportPayFeeDetailInfo.allReceivableAmount}}元 + 实收: {{reportPayFeeDetailInfo.allReceivedAmount}}元 + 优惠: {{reportPayFeeDetailInfo.allPreferentialAmount}}元 + 减免: {{reportPayFeeDetailInfo.allDeductionAmount}}元 + 滞纳金: {{reportPayFeeDetailInfo.allLateFee}}元 + 空置房打折: {{reportPayFeeDetailInfo.allVacantHousingDiscount}}元 + 空置房减免: {{reportPayFeeDetailInfo.allVacantHousingReduction}}元 + +
+
+
+
+
diff --git a/public/pages/property/reportPayFeeDetail/reportPayFeeDetail.js b/public/pages/property/reportPayFeeDetail/reportPayFeeDetail.js index 74ea0401a..f8493bddd 100644 --- a/public/pages/property/reportPayFeeDetail/reportPayFeeDetail.js +++ b/public/pages/property/reportPayFeeDetail/reportPayFeeDetail.js @@ -19,6 +19,16 @@ totalReceivedAmount: 0.0, allReceivableAmount: 0.0, allReceivedAmount: 0.0, + totalPreferentialAmount: 0.0, + totalDeductionAmount: 0.0, + totalLateFee: 0.0, + totalVacantHousingDiscount: 0.0, + totalVacantHousingReduction: 0.0, + allPreferentialAmount: 0.0, + allDeductionAmount: 0.0, + allLateFee: 0.0, + allVacantHousingDiscount: 0.0, + allVacantHousingReduction: 0.0, conditions: { floorId: '', floorName: '', @@ -133,18 +143,79 @@ vc.component.reportPayFeeDetailInfo.total = _reportPayFeeDetailInfo.total; vc.component.reportPayFeeDetailInfo.records = _reportPayFeeDetailInfo.records; vc.component.reportPayFeeDetailInfo.fees = _reportPayFeeDetailInfo.data; - if (_reportPayFeeDetailInfo.data.length > 0) { - vc.component.reportPayFeeDetailInfo.totalReceivableAmount = _reportPayFeeDetailInfo.data[0].totalReceivableAmount; - vc.component.reportPayFeeDetailInfo.totalReceivedAmount = _reportPayFeeDetailInfo.data[0].totalReceivedAmount; - vc.component.reportPayFeeDetailInfo.allReceivableAmount = _reportPayFeeDetailInfo.data[0].allReceivableAmount; - vc.component.reportPayFeeDetailInfo.allReceivedAmount = _reportPayFeeDetailInfo.data[0].allReceivedAmount; - vc.component.reportPayFeeDetailInfo.feeConfigDtos = _reportPayFeeDetailInfo.data[0].feeConfigDtos; + if (typeof(_reportPayFeeDetailInfo.sumTotal.totalReceivableAmount) != 'undefined') { + vc.component.reportPayFeeDetailInfo.totalReceivableAmount = _reportPayFeeDetailInfo.sumTotal.totalReceivableAmount; } else { vc.component.reportPayFeeDetailInfo.totalReceivableAmount = "0.0"; + } + if (typeof(_reportPayFeeDetailInfo.sumTotal.totalReceivedAmount) != 'undefined') { + vc.component.reportPayFeeDetailInfo.totalReceivedAmount = _reportPayFeeDetailInfo.sumTotal.totalReceivedAmount; + } else { vc.component.reportPayFeeDetailInfo.totalReceivedAmount = "0.0"; + } + if (typeof(_reportPayFeeDetailInfo.sumTotal.allReceivableAmount) != 'undefined') { + vc.component.reportPayFeeDetailInfo.allReceivableAmount = _reportPayFeeDetailInfo.sumTotal.allReceivableAmount; + } else { vc.component.reportPayFeeDetailInfo.allReceivableAmount = "0.0"; + } + if (typeof(_reportPayFeeDetailInfo.sumTotal.allReceivedAmount) != 'undefined') { + vc.component.reportPayFeeDetailInfo.allReceivedAmount = _reportPayFeeDetailInfo.sumTotal.allReceivedAmount; + } else { vc.component.reportPayFeeDetailInfo.allReceivedAmount = "0.0"; } + if (typeof(_reportPayFeeDetailInfo.sumTotal.totalPreferentialAmount) != 'undefined') { + vc.component.reportPayFeeDetailInfo.totalPreferentialAmount = _reportPayFeeDetailInfo.sumTotal.totalPreferentialAmount; + } else { + vc.component.reportPayFeeDetailInfo.totalPreferentialAmount = "0.0"; + } + if (typeof(_reportPayFeeDetailInfo.sumTotal.totalDeductionAmount) != 'undefined') { + vc.component.reportPayFeeDetailInfo.totalDeductionAmount = _reportPayFeeDetailInfo.sumTotal.totalDeductionAmount; + } else { + vc.component.reportPayFeeDetailInfo.totalDeductionAmount = "0.0"; + } + if (typeof(_reportPayFeeDetailInfo.sumTotal.totalLateFee) != 'undefined') { + vc.component.reportPayFeeDetailInfo.totalLateFee = (_reportPayFeeDetailInfo.sumTotal.totalLateFee)*(-1); + } else { + vc.component.reportPayFeeDetailInfo.totalLateFee = "0.0"; + } + if (typeof(_reportPayFeeDetailInfo.sumTotal.totalVacantHousingDiscount) != 'undefined') { + vc.component.reportPayFeeDetailInfo.totalVacantHousingDiscount = _reportPayFeeDetailInfo.sumTotal.totalVacantHousingDiscount; + } else { + vc.component.reportPayFeeDetailInfo.totalVacantHousingDiscount = "0.0"; + } + if (typeof(_reportPayFeeDetailInfo.sumTotal.totalVacantHousingReduction) != 'undefined') { + vc.component.reportPayFeeDetailInfo.totalVacantHousingReduction = _reportPayFeeDetailInfo.sumTotal.totalVacantHousingReduction; + } else { + vc.component.reportPayFeeDetailInfo.totalVacantHousingReduction = "0.0"; + } + if (typeof(_reportPayFeeDetailInfo.sumTotal.allPreferentialAmount) != 'undefined') { + vc.component.reportPayFeeDetailInfo.allPreferentialAmount = _reportPayFeeDetailInfo.sumTotal.allPreferentialAmount; + } else { + vc.component.reportPayFeeDetailInfo.allPreferentialAmount = "0.0"; + } + if (typeof(_reportPayFeeDetailInfo.sumTotal.allDeductionAmount) != 'undefined') { + vc.component.reportPayFeeDetailInfo.allDeductionAmount = _reportPayFeeDetailInfo.sumTotal.allDeductionAmount; + } else { + vc.component.reportPayFeeDetailInfo.allDeductionAmount = "0.0"; + } + if (typeof(_reportPayFeeDetailInfo.sumTotal.allLateFee) != 'undefined') { + vc.component.reportPayFeeDetailInfo.allLateFee = (_reportPayFeeDetailInfo.sumTotal.allLateFee)*(-1); + } else { + vc.component.reportPayFeeDetailInfo.allLateFee = "0.0"; + } + if (typeof(_reportPayFeeDetailInfo.sumTotal.allVacantHousingDiscount) != 'undefined') { + vc.component.reportPayFeeDetailInfo.allVacantHousingDiscount = _reportPayFeeDetailInfo.sumTotal.allVacantHousingDiscount; + } else { + vc.component.reportPayFeeDetailInfo.allVacantHousingDiscount = "0.0"; + } + if (typeof(_reportPayFeeDetailInfo.sumTotal.allVacantHousingReduction) != 'undefined') { + vc.component.reportPayFeeDetailInfo.allVacantHousingReduction = _reportPayFeeDetailInfo.sumTotal.allVacantHousingReduction; + } else { + vc.component.reportPayFeeDetailInfo.allVacantHousingReduction = "0.0"; + } + if (_reportPayFeeDetailInfo.data.length > 0) { + vc.component.reportPayFeeDetailInfo.feeConfigDtos = _reportPayFeeDetailInfo.data[0].feeConfigDtos; + } vc.emit('pagination', 'init', { total: vc.component.reportPayFeeDetailInfo.records, currentPage: _page, @@ -179,17 +250,78 @@ vc.component.reportPayFeeDetailInfo.total = _reportPayFeeDetailInfo.total; vc.component.reportPayFeeDetailInfo.records = _reportPayFeeDetailInfo.records; vc.component.reportPayFeeDetailInfo.fees = _reportPayFeeDetailInfo.data; - if (_reportPayFeeDetailInfo.data.length > 0) { - vc.component.reportPayFeeDetailInfo.totalReceivableAmount = _reportPayFeeDetailInfo.data[0].totalReceivableAmount; - vc.component.reportPayFeeDetailInfo.totalReceivedAmount = _reportPayFeeDetailInfo.data[0].totalReceivedAmount; - vc.component.reportPayFeeDetailInfo.allReceivableAmount = _reportPayFeeDetailInfo.data[0].allReceivableAmount; - vc.component.reportPayFeeDetailInfo.allReceivedAmount = _reportPayFeeDetailInfo.data[0].allReceivedAmount; - vc.component.reportPayFeeDetailInfo.feeConfigDtos = _reportPayFeeDetailInfo.data[0].feeConfigDtos; + if (typeof(_reportPayFeeDetailInfo.sumTotal.totalReceivableAmount) != 'undefined') { + vc.component.reportPayFeeDetailInfo.totalReceivableAmount = _reportPayFeeDetailInfo.sumTotal.totalReceivableAmount; } else { - vc.component.reportPayFeeDetailInfo.totalReceivableAmount = 0.0; - vc.component.reportPayFeeDetailInfo.totalReceivedAmount = 0.0; - vc.component.reportPayFeeDetailInfo.allReceivableAmount = 0.0; - vc.component.reportPayFeeDetailInfo.allReceivedAmount = 0.0; + vc.component.reportPayFeeDetailInfo.totalReceivableAmount = "0.0"; + } + if (typeof(_reportPayFeeDetailInfo.sumTotal.totalReceivedAmount) != 'undefined') { + vc.component.reportPayFeeDetailInfo.totalReceivedAmount = _reportPayFeeDetailInfo.sumTotal.totalReceivedAmount; + } else { + vc.component.reportPayFeeDetailInfo.totalReceivedAmount = "0.0"; + } + if (typeof(_reportPayFeeDetailInfo.sumTotal.allReceivableAmount) != 'undefined') { + vc.component.reportPayFeeDetailInfo.allReceivableAmount = _reportPayFeeDetailInfo.sumTotal.allReceivableAmount; + } else { + vc.component.reportPayFeeDetailInfo.allReceivableAmount = "0.0"; + } + if (typeof(_reportPayFeeDetailInfo.sumTotal.allReceivedAmount) != 'undefined') { + vc.component.reportPayFeeDetailInfo.allReceivedAmount = _reportPayFeeDetailInfo.sumTotal.allReceivedAmount; + } else { + vc.component.reportPayFeeDetailInfo.allReceivedAmount = "0.0"; + } + if (typeof(_reportPayFeeDetailInfo.sumTotal.totalPreferentialAmount) != 'undefined') { + vc.component.reportPayFeeDetailInfo.totalPreferentialAmount = _reportPayFeeDetailInfo.sumTotal.totalPreferentialAmount; + } else { + vc.component.reportPayFeeDetailInfo.totalPreferentialAmount = "0.0"; + } + if (typeof(_reportPayFeeDetailInfo.sumTotal.totalDeductionAmount) != 'undefined') { + vc.component.reportPayFeeDetailInfo.totalDeductionAmount = _reportPayFeeDetailInfo.sumTotal.totalDeductionAmount; + } else { + vc.component.reportPayFeeDetailInfo.totalDeductionAmount = "0.0"; + } + if (typeof(_reportPayFeeDetailInfo.sumTotal.totalLateFee) != 'undefined') { + vc.component.reportPayFeeDetailInfo.totalLateFee = (_reportPayFeeDetailInfo.sumTotal.totalLateFee)*(-1); + } else { + vc.component.reportPayFeeDetailInfo.totalLateFee = "0.0"; + } + if (typeof(_reportPayFeeDetailInfo.sumTotal.totalVacantHousingDiscount) != 'undefined') { + vc.component.reportPayFeeDetailInfo.totalVacantHousingDiscount = _reportPayFeeDetailInfo.sumTotal.totalVacantHousingDiscount; + } else { + vc.component.reportPayFeeDetailInfo.totalVacantHousingDiscount = "0.0"; + } + if (typeof(_reportPayFeeDetailInfo.sumTotal.totalVacantHousingReduction) != 'undefined') { + vc.component.reportPayFeeDetailInfo.totalVacantHousingReduction = _reportPayFeeDetailInfo.sumTotal.totalVacantHousingReduction; + } else { + vc.component.reportPayFeeDetailInfo.totalVacantHousingReduction = "0.0"; + } + if (typeof(_reportPayFeeDetailInfo.sumTotal.allPreferentialAmount) != 'undefined') { + vc.component.reportPayFeeDetailInfo.allPreferentialAmount = _reportPayFeeDetailInfo.sumTotal.allPreferentialAmount; + } else { + vc.component.reportPayFeeDetailInfo.allPreferentialAmount = "0.0"; + } + if (typeof(_reportPayFeeDetailInfo.sumTotal.allDeductionAmount) != 'undefined') { + vc.component.reportPayFeeDetailInfo.allDeductionAmount = _reportPayFeeDetailInfo.sumTotal.allDeductionAmount; + } else { + vc.component.reportPayFeeDetailInfo.allDeductionAmount = "0.0"; + } + if (typeof(_reportPayFeeDetailInfo.sumTotal.allLateFee) != 'undefined') { + vc.component.reportPayFeeDetailInfo.allLateFee = (_reportPayFeeDetailInfo.sumTotal.allLateFee)*(-1); + } else { + vc.component.reportPayFeeDetailInfo.allLateFee = "0.0"; + } + if (typeof(_reportPayFeeDetailInfo.sumTotal.allVacantHousingDiscount) != 'undefined') { + vc.component.reportPayFeeDetailInfo.allVacantHousingDiscount = _reportPayFeeDetailInfo.sumTotal.allVacantHousingDiscount; + } else { + vc.component.reportPayFeeDetailInfo.allVacantHousingDiscount = "0.0"; + } + if (typeof(_reportPayFeeDetailInfo.sumTotal.allVacantHousingReduction) != 'undefined') { + vc.component.reportPayFeeDetailInfo.allVacantHousingReduction = _reportPayFeeDetailInfo.sumTotal.allVacantHousingReduction; + } else { + vc.component.reportPayFeeDetailInfo.allVacantHousingReduction = "0.0"; + } + if (_reportPayFeeDetailInfo.data.length > 0) { + vc.component.reportPayFeeDetailInfo.feeConfigDtos = _reportPayFeeDetailInfo.data[0].feeConfigDtos; } vc.emit('pagination', 'init', { total: vc.component.reportPayFeeDetailInfo.records,