fix bug
This commit is contained in:
@ -335,17 +335,22 @@ export class OrderManagementReceiptsAuditComponent implements OnInit {
|
||||
{
|
||||
text: '通过',
|
||||
click: _record => this.sign(_record),
|
||||
// iif: item => item.billStatus == '5'
|
||||
iif: item => item.auditStatus == '1'
|
||||
},
|
||||
{
|
||||
text: '生成电子单据',
|
||||
click: _record => this.generate(_record),
|
||||
// iif: item => item.billStatus == '4'
|
||||
click: _record => this.generate(_record, 2),
|
||||
iif: item => item.auditStatus == '1'
|
||||
},
|
||||
{
|
||||
text: '查看凭证',
|
||||
click: _record => this.generate(_record, 3),
|
||||
iif: item => item.auditStatus == '2'
|
||||
},
|
||||
{
|
||||
text: '修改',
|
||||
click: _record => this.modification(_record),
|
||||
// iif: item => item.billStatus == '4'
|
||||
iif: item => item.auditStatus == '1'
|
||||
},
|
||||
]
|
||||
}
|
||||
@ -404,14 +409,14 @@ export class OrderManagementReceiptsAuditComponent implements OnInit {
|
||||
});
|
||||
}
|
||||
// 生成电子单据
|
||||
generate(item: any) {
|
||||
generate(item: any, sts?: number) {
|
||||
const modalRef = this.modal.create({
|
||||
nzTitle: '查看凭证',
|
||||
nzWidth: '50%',
|
||||
nzContent: orderManagementVoucherViewComponent,
|
||||
nzComponentParams: {
|
||||
i: item,
|
||||
Status: 2
|
||||
Status: sts
|
||||
},
|
||||
nzFooter: null
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user