优化1.7版本代码

This commit is contained in:
wuxw 2024-03-24 11:52:58 +08:00
parent 6c43bc7f49
commit 8735f30ff1

View File

@ -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,