edit
This commit is contained in:
@ -124,6 +124,10 @@ export class InvoiceRequestedComponent implements OnInit {
|
||||
this.service.msgSrv.warning('请选择订单');
|
||||
return;
|
||||
}
|
||||
if (this.selectedRows.find(item => item.sts !== '3')) {
|
||||
this.service.msgSrv.warning('请勿选择非已完成订单');
|
||||
return;
|
||||
}
|
||||
const modal = this.nzModalService.create({
|
||||
nzTitle: '打印面单',
|
||||
nzContent: PrintOrderModalComponent,
|
||||
@ -159,6 +163,10 @@ export class InvoiceRequestedComponent implements OnInit {
|
||||
this.service.msgSrv.warning('请选择订单');
|
||||
return;
|
||||
}
|
||||
if (this.selectedRows.find(item => item.sts !== '1')) {
|
||||
this.service.msgSrv.warning('请勿选择非待处理订单');
|
||||
return;
|
||||
}
|
||||
const modal = this.nzModalService.create({
|
||||
nzTitle: '开票',
|
||||
nzContent: '确认对所有申请单进行批量开票?',
|
||||
@ -403,7 +411,8 @@ export class InvoiceRequestedComponent implements OnInit {
|
||||
{ type: 'divider' },
|
||||
{
|
||||
text: '开票<br/>',
|
||||
click: item => this.requestedInvoiceAction(item)
|
||||
click: item => this.requestedInvoiceAction(item),
|
||||
iif: item => item.sts === '1'
|
||||
},
|
||||
// {
|
||||
// text: '驳回<br/>',
|
||||
@ -415,7 +424,8 @@ export class InvoiceRequestedComponent implements OnInit {
|
||||
},
|
||||
{
|
||||
text: '查看原因<br/>',
|
||||
click: item => this.showReason(item)
|
||||
click: item => this.showReason(item),
|
||||
iif: item => item.sts === '4'
|
||||
}
|
||||
// {
|
||||
// text: '下载对账单'
|
||||
@ -429,8 +439,6 @@ export class InvoiceRequestedComponent implements OnInit {
|
||||
this.resourceStatus = e;
|
||||
this.initST();
|
||||
setTimeout(() => {
|
||||
console.log(this.resourceStatus);
|
||||
|
||||
this.st.load();
|
||||
}, 500);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user