This commit is contained in:
wangshiming
2022-03-31 17:36:50 +08:00
parent 765f2fa723
commit 599fe261f2
3 changed files with 12 additions and 6 deletions

View File

@ -532,13 +532,13 @@ export class OrderManagementReceiptsAuditComponent implements OnInit {
} }
// 批量生成电子单据 // 批量生成电子单据
sign1(item?: any) { sign1(item?: any) {
if (this.selectedRows.length <= 0) { if (this.selectedRows?.length <= 0) {
this.service.msgSrv.error('请选择订单!') this.service.msgSrv.error('请选择订单!')
return return
} }
let params: any[] = []; let params: any[] = [];
this.selectedRows.forEach(item => { this.selectedRows.forEach(item => {
params.push(item.id); params.push(item?.id);
}); });
this.modal.confirm({ this.modal.confirm({
nzTitle: `<b>已选择${this.selectedRows.length}条订单,确认批量生成电子单据吗?</b>`, nzTitle: `<b>已选择${this.selectedRows.length}条订单,确认批量生成电子单据吗?</b>`,
@ -555,10 +555,10 @@ export class OrderManagementReceiptsAuditComponent implements OnInit {
// this.getGoodsSourceStatistical(); // 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(',')})}
}); });
} }

View File

@ -761,6 +761,12 @@ export class OrderManagementVehicleComponent extends BasicTableComponent impleme
}, },
nzFooter: null nzFooter: null
}); });
modalRef.afterClose.subscribe((res: boolean) => {
if (res) {
this.resetSF;
this.st.load();
}
});
} }
revoke(item: any) { revoke(item: any) {
this.modal.confirm({ this.modal.confirm({

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2021-12-15 13:17:42 * @Date : 2021-12-15 13:17:42
* @LastEditors : Shiming * @LastEditors : Shiming
* @LastEditTime : 2022-03-31 14:21:48 * @LastEditTime : 2022-03-31 17:36:46
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\confir-receipt\\confir-receipt.component.ts * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\confir-receipt\\confir-receipt.component.ts
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
*/ */
@ -74,7 +74,7 @@ export class VehicleConfirReceiptComponent implements OnInit {
console.log(res); console.log(res);
if (res) { if (res) {
this.service.msgSrv.success('确认签收成功!'); this.service.msgSrv.success('确认签收成功!');
this.modal.destroy(); this.modal.destroy(true);
} }
}); });
} }