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> <se [col]="1" label="发票号码" required>
<input nz-input [(ngModel)]="openInfo.invoiceno" placeholder="请输入" /> <input nz-input [(ngModel)]="openInfo.invoiceno" placeholder="请输入" />
</se> </se>
<se [col]="1" label="发票代码" required>
<input nz-input [(ngModel)]="openInfo.invoiceno2" placeholder="请输入" />
</se>
</div> </div>
</div> </div>
</ng-template> </ng-template>

View File

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

View File

@ -137,6 +137,13 @@ export class InvoicedListComponent implements OnInit {
autocomplete: 'off' autocomplete: 'off'
} }
}, },
invoiceno2: {
type: 'string',
title: '发票代码',
ui: {
autocomplete: 'off'
}
},
vatappHCode: { vatappHCode: {
type: 'string', type: 'string',
title: '申请编号', title: '申请编号',
@ -151,7 +158,10 @@ export class InvoicedListComponent implements OnInit {
widget: 'sl-from-to-search', widget: 'sl-from-to-search',
format: 'yyyy-MM-dd', format: 'yyyy-MM-dd',
placeholder: '请选择', placeholder: '请选择',
nzShowTime: true nzShowTime: true,
visibleIf: {
expand: (value: boolean) => value
}
} as SFDateWidgetSchema } as SFDateWidgetSchema
}, },
artoname: { artoname: {
@ -196,6 +206,7 @@ export class InvoicedListComponent implements OnInit {
return [ return [
{ title: '', index: 'key', type: 'checkbox' }, { title: '', index: 'key', type: 'checkbox' },
{ title: '发票号码', index: 'invoiceno', width: 150 }, { title: '发票号码', index: 'invoiceno', width: 150 },
{ title: '发票代码', index: 'invoiceno2', width: 150 },
{ {
title: '申请编号', title: '申请编号',
index: 'vatappHCode', index: 'vatappHCode',