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(',')})}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
@ -761,6 +761,12 @@ export class OrderManagementVehicleComponent extends BasicTableComponent impleme
|
||||
},
|
||||
nzFooter: null
|
||||
});
|
||||
modalRef.afterClose.subscribe((res: boolean) => {
|
||||
if (res) {
|
||||
this.resetSF;
|
||||
this.st.load();
|
||||
}
|
||||
});
|
||||
}
|
||||
revoke(item: any) {
|
||||
this.modal.confirm({
|
||||
|
||||
Reference in New Issue
Block a user