车辆对接
This commit is contained in:
@ -88,8 +88,8 @@
|
||||
|
||||
<nz-card class="content-box" nzBordered>
|
||||
<div class="d-flex align-items-center mb-md">
|
||||
<button nz-button (click)="openRequestedModal()">全部开票</button>
|
||||
<button nz-button (click)="openRequestedModal()">开票</button>
|
||||
<button nz-button (click)="openRequestedModal('1')">全部开票</button>
|
||||
<button nz-button (click)="openRequestedModal('2')">开票</button>
|
||||
<button nz-button (click)="removeOrder()">移除</button>
|
||||
<div class="ml-md">
|
||||
已选择
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { Component, OnInit, ViewChild, ViewEncapsulation } from '@angular/core';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { ActivatedRoute, Router, Params } from '@angular/router';
|
||||
import { STComponent, STColumn, STChange, STRequestOptions } from '@delon/abc/st';
|
||||
import { SFComponent, SFSchema, SFDateWidgetSchema, SFTextWidgetSchema } from '@delon/form';
|
||||
import { NzModalService } from 'ng-zorro-antd/modal';
|
||||
@ -70,16 +70,34 @@ export class InvoiceRequestedDetailComponent implements OnInit {
|
||||
}
|
||||
}
|
||||
|
||||
openRequestedModal() {
|
||||
openRequestedModal(status: any) {
|
||||
if(status === '2' && this.selectedRows.length == 0) {
|
||||
this.service.msgSrv.warning('请选择订单!')
|
||||
return
|
||||
}
|
||||
console.log(this.selectedRows)
|
||||
const modal = this.nzModalService.create({
|
||||
nzTitle: '开票',
|
||||
nzContent: RequestedDetailComponent,
|
||||
nzWidth: 800,
|
||||
nzComponentParams: {
|
||||
i: this.selectedRows,
|
||||
status: status,
|
||||
Id: this.id
|
||||
},
|
||||
nzFooter: [
|
||||
{
|
||||
type: 'default',
|
||||
label: '手工处理',
|
||||
onClick: () => {
|
||||
console.log('11111')
|
||||
const params = {
|
||||
ficoVatappBillVOList: this.selectedRows,
|
||||
id: this.id
|
||||
}
|
||||
this.service.request(this.service.$api_get_applyFicoVatinv, params).subscribe((res: any) => {
|
||||
console.log(res)
|
||||
})
|
||||
modal.destroy();
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user