diff --git a/public/pages/property/returnPayFeeManage/returnPayFeeManage.js b/public/pages/property/returnPayFeeManage/returnPayFeeManage.js index 47b5f3b59..fd49862aa 100644 --- a/public/pages/property/returnPayFeeManage/returnPayFeeManage.js +++ b/public/pages/property/returnPayFeeManage/returnPayFeeManage.js @@ -113,12 +113,12 @@ vc.http.apiGet('/returnPayFee.listReturnPayFees', param, function (json) { - var _returnPayFeeManageInfo = JSON.parse(json); - $that.returnPayFeeManageInfo.total = _returnPayFeeManageInfo.total; + let _json = JSON.parse(json); + $that.returnPayFeeManageInfo.total = _json.total; // $that.returnPayFeeManageInfo.records = parseInt(_returnPayFeeManageInfo.total/_rows +1); - $that.returnPayFeeManageInfo.records = _returnPayFeeManageInfo.records; - if (_returnPayFeeManageInfo.returnPayFees != null && _returnPayFeeManageInfo.returnPayFees.length > 0) { - _returnPayFeeManageInfo.returnPayFees.forEach(item => { + $that.returnPayFeeManageInfo.records = _json.records; + if (_json.data != null && _json.data.length > 0) { + _json.data.forEach(item => { if (item.feeAccountDetailDtoList != null && item.feeAccountDetailDtoList.length > 0) { item.feeAccountDetailDtoList.forEach(item2 => { if (item2.state == '1001' || item2.state == '1003') { //无抵扣或积分抵扣 @@ -130,7 +130,7 @@ } }); } - $that.returnPayFeeManageInfo.returnPayFees = _returnPayFeeManageInfo.returnPayFees; + $that.returnPayFeeManageInfo.returnPayFees = _json.data; vc.emit('pagination', 'init', { total: $that.returnPayFeeManageInfo.records, dataCount: $that.returnPayFeeManageInfo.total,