This commit is contained in:
Taric Xin
2022-01-19 16:30:12 +08:00
parent ce64b48674
commit 48ce6a1d10
22 changed files with 623 additions and 144 deletions

View File

@ -37,11 +37,12 @@ export class InvoiceDetailComponent implements OnInit {
mailNo: '',
routes: []
};
id: any = null;
constructor(public service: TicketService, private route: ActivatedRoute) {
this.isCanEdit = !!route.snapshot.queryParams.type;
const expressno = route.snapshot.queryParams.expressno;
const id = route.snapshot.params.id;
this.loadInvoiceHeader(id);
this.id = route.snapshot.params.id;
this.loadInvoiceHeader(this.id);
if (expressno) {
this.loadRoutes(expressno);
}
@ -50,6 +51,7 @@ export class InvoiceDetailComponent implements OnInit {
ngOnInit(): void {}
beforeReq = (requestOptions: STRequestOptions) => {
Object.assign(requestOptions.body, { vatinvHId: this.id });
if (this.orderSf) {
Object.assign(requestOptions.body, { ...this.orderSf.value });
}