fix bug
This commit is contained in:
@ -532,13 +532,13 @@ export class OrderManagementReceiptsAuditComponent implements OnInit {
|
||||
}
|
||||
// 批量生成电子单据
|
||||
sign1(item?: any) {
|
||||
if (this.selectedRows.length <= 0) {
|
||||
if (this.selectedRows?.length <= 0) {
|
||||
this.service.msgSrv.error('请选择订单!')
|
||||
return
|
||||
}
|
||||
let params: any[] = [];
|
||||
this.selectedRows.forEach(item => {
|
||||
params.push(item.id);
|
||||
params.push(item?.id);
|
||||
});
|
||||
this.modal.confirm({
|
||||
nzTitle: `<b>已选择${this.selectedRows.length}条订单,确认批量生成电子单据吗?</b>`,
|
||||
@ -555,10 +555,10 @@ export class OrderManagementReceiptsAuditComponent implements OnInit {
|
||||
// this.getGoodsSourceStatistical();
|
||||
// })
|
||||
{
|
||||
this.service.downloadFile(this.service.$api_createBillTakeGoods,{billIds: params})
|
||||
this.service.downloadFile(this.service.$api_createBillTakeGoods,{billIds: params.join(',')})
|
||||
|
||||
|
||||
this.service.downloadFile(this.service.$api_createBillDischargeGoods,{billIds: params})}
|
||||
this.service.downloadFile(this.service.$api_createBillDischargeGoods,{billIds: params.join(',')})}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user