edit
This commit is contained in:
@ -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 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user