fix bug
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user