This commit is contained in:
wangshiming
2022-04-01 14:54:14 +08:00
parent 7798b51ee9
commit 5c9f68c967
4 changed files with 83 additions and 33 deletions

View File

@ -397,25 +397,25 @@ export class OrderManagementReceiptsAuditComponent implements OnInit {
{
text: '生成电子单据',
click: _record => this.generate(_record, 2),
iif: item => item.auditStatus == '1',
iif: item => item.auditStatus == '1' && !item.loadingLadingBillFilePath,
acl: { ability: ['ORDER-RECEIPTS-electronicBillingOne'] },
},
{
text: '通过',
click: _record => this.sign(_record),
iif: item => item.auditStatus == '1',
iif: item => item.auditStatus == '1' && !item.loadingLadingBillFilePath,
acl: { ability: ['ORDER-RECEIPTS-billAuditPassBatch'] },
},
{
text: '修改',
click: _record => this.modification(_record),
iif: item => item.auditStatus == '1',
iif: item => item.auditStatus == '1' && !item.loadingLadingBillFilePath,
acl: { ability: ['ORDER-RECEIPTS-updateBillExamine'] },
},
{
text: '查看凭证',
click: _record => this.generate(_record, 3),
iif: item => item.auditStatus == '2',
iif: item => item.loadingLadingBillFilePath,
acl: { ability: ['ORDER-RECEIPTS-view'] },
},
]
@ -544,23 +544,14 @@ export class OrderManagementReceiptsAuditComponent implements OnInit {
nzTitle: `<b>已选择${this.selectedRows.length}条订单,确认批量生成电子单据吗?</b>`,
nzContent: `<b>确认后单据不可修改,请谨慎操作。</b>`,
nzOnOk: () =>
// this.service.request(this.service.$api_get_cancelAnOrder, { ids: params }).subscribe(res => {
// if (res === true) {
// this.service.msgSrv.success('操作成功!');
// this.st?.reload(1);
// this.getGoodsSourceStatistical();
// this.initST();
// }
// this.st?.reload(1);
{
this.service.downloadFile(this.service.$api_createBillTakeGoods,params)
this.service.downloadFile(this.service.$api_createBillDischargeGoods,params)
this.service.msgSrv.success('生成成功!');
this.st?.reload()
// this.getGoodsSourceStatistical();
// })
{
this.service.downloadFile(this.service.$api_createBillTakeGoods,params)
this.service.downloadFile(this.service.$api_createBillDischargeGoods,params)}
});
}
})
}
// 获取所属项目
getRegionCode(regionCode: any) {