This commit is contained in:
Taric Xin
2022-03-24 10:04:03 +08:00
parent 29fee8e3aa
commit fcce660bea
3 changed files with 27 additions and 12 deletions

View File

@ -65,6 +65,9 @@
<se [col]="1" label="发票号码" required>
<input nz-input [(ngModel)]="openInfo.invoiceno" placeholder="请输入" />
</se>
<se [col]="1" label="发票代码" required>
<input nz-input [(ngModel)]="openInfo.invoiceno2" placeholder="请输入" />
</se>
</div>
</div>
</ng-template>

View File

@ -29,10 +29,10 @@ export class CancellationInvoiceComponent implements OnInit {
selectedRows: any[] = [];
totalCallNo = 0;
openInfo: any = { invoicedate: null, invoiceno: null };
constructor(public service: TicketService, private nzModalService: NzModalService, private router: Router) { }
openInfo: any = { invoicedate: null, invoiceno: null, invoiceno2: null };
constructor(public service: TicketService, private nzModalService: NzModalService, private router: Router) {}
ngOnInit(): void { }
ngOnInit(): void {}
beforeReq = (requestOptions: STRequestOptions) => {
if (this.sf) {
@ -78,7 +78,7 @@ export class CancellationInvoiceComponent implements OnInit {
* @param item
*/
requestedAction(item: any) {
this.openInfo = { invoicedate: null, invoiceno: null };
this.openInfo = { invoicedate: null, invoiceno: null, invoiceno2: null };
const modal = this.nzModalService.create({
nzTitle: '发票确认',
nzContent: this.requestedModal,
@ -89,7 +89,8 @@ export class CancellationInvoiceComponent implements OnInit {
}
const params = {
invoiceno: this.openInfo.invoiceno,
invoicedate: dateTimePickerUtil.format(this.openInfo.invoicedate)
invoicedate: dateTimePickerUtil.format(this.openInfo.invoicedate),
invoiceno2: this.openInfo.invoiceno2
};
this.service
.request(this.service.$api_apply_fico_invoic, {
@ -154,7 +155,7 @@ export class CancellationInvoiceComponent implements OnInit {
this.nzModalService.warning({
nzTitle: '确定将所选待确认开票申请撤回?',
nzContent: '提交税控后发票信息不可修改,待税控开票完成后返回开票结果',
nzOnOk: () => { }
nzOnOk: () => {}
});
}
@ -170,7 +171,7 @@ export class CancellationInvoiceComponent implements OnInit {
this.nzModalService.warning({
nzTitle: '确定将所选待确认开票申请撤回?',
nzContent: '提交税控后发票信息不可修改,待税控开票完成后返回开票结果',
nzOnOk: () => { }
nzOnOk: () => {}
});
}
@ -369,22 +370,22 @@ export class CancellationInvoiceComponent implements OnInit {
buttons: [
{ type: 'divider' },
{
text: '查看明细',
text: '查看明细<br>',
click: item =>
this.router.navigate(['ticket/cancellation-invoice/detail/' + item.id], {
queryParams: { type: 1, expressno: item.expressno, ltdId: item.shipperId }
})
},
{
text: '手工开票',
text: '手工开票<br>',
iif: item => item.sts != '3',
click: item => this.requestedAction(item)
},
{
text: '推送开票',
text: '推送开票<br>',
iif: item => item.sts === '1',
click: item => this.pushInvoiceAction(item)
},
}
// {
// text: '作废发票',
// iif: item => item.sts === '3',