mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
优化1.7版本代码
This commit is contained in:
parent
6c43bc7f49
commit
8735f30ff1
@ -113,12 +113,12 @@
|
|||||||
vc.http.apiGet('/returnPayFee.listReturnPayFees',
|
vc.http.apiGet('/returnPayFee.listReturnPayFees',
|
||||||
param,
|
param,
|
||||||
function (json) {
|
function (json) {
|
||||||
var _returnPayFeeManageInfo = JSON.parse(json);
|
let _json = JSON.parse(json);
|
||||||
$that.returnPayFeeManageInfo.total = _returnPayFeeManageInfo.total;
|
$that.returnPayFeeManageInfo.total = _json.total;
|
||||||
// $that.returnPayFeeManageInfo.records = parseInt(_returnPayFeeManageInfo.total/_rows +1);
|
// $that.returnPayFeeManageInfo.records = parseInt(_returnPayFeeManageInfo.total/_rows +1);
|
||||||
$that.returnPayFeeManageInfo.records = _returnPayFeeManageInfo.records;
|
$that.returnPayFeeManageInfo.records = _json.records;
|
||||||
if (_returnPayFeeManageInfo.returnPayFees != null && _returnPayFeeManageInfo.returnPayFees.length > 0) {
|
if (_json.data != null && _json.data.length > 0) {
|
||||||
_returnPayFeeManageInfo.returnPayFees.forEach(item => {
|
_json.data.forEach(item => {
|
||||||
if (item.feeAccountDetailDtoList != null && item.feeAccountDetailDtoList.length > 0) {
|
if (item.feeAccountDetailDtoList != null && item.feeAccountDetailDtoList.length > 0) {
|
||||||
item.feeAccountDetailDtoList.forEach(item2 => {
|
item.feeAccountDetailDtoList.forEach(item2 => {
|
||||||
if (item2.state == '1001' || item2.state == '1003') { //无抵扣或积分抵扣
|
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', {
|
vc.emit('pagination', 'init', {
|
||||||
total: $that.returnPayFeeManageInfo.records,
|
total: $that.returnPayFeeManageInfo.records,
|
||||||
dataCount: $that.returnPayFeeManageInfo.total,
|
dataCount: $that.returnPayFeeManageInfo.total,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user