|
|
|
@ -59,7 +59,15 @@ export class CouponUseComponent implements OnInit { |
|
|
|
|
param['pageNum'] = this.pageNum; |
|
|
|
|
param['pageSize'] = this.pageSize; |
|
|
|
|
this.couponService.getCount(param,response => { |
|
|
|
|
this.countObject = response['return_data']; |
|
|
|
|
const returnData = response['return_data']; |
|
|
|
|
if (returnData != null) { |
|
|
|
|
this.countObject = returnData; |
|
|
|
|
} else { |
|
|
|
|
this.countObject.batchNum = 0; |
|
|
|
|
this.countObject.useNum = 0; |
|
|
|
|
this.countObject.usePrice = 0; |
|
|
|
|
this.countObject.useRate = 0; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
this.couponService.getBatchUseCount(param, response => { |
|
|
|
|
this.dataObject = response['return_data']; |
|
|
|
|