This commit is contained in:
Taric Xin
2022-01-18 17:00:48 +08:00
parent 7d0d2fb7da
commit 09e1dd38f1
13 changed files with 369 additions and 64 deletions

View File

@ -9,7 +9,7 @@ import { TicketService } from '../../services/ticket.service';
@Component({
selector: 'app-invoiced-list',
templateUrl: './invoiced-list.component.html',
styleUrls: ['./invoiced-list.component.less'],
styleUrls: ['./invoiced-list.component.less']
})
export class InvoicedListComponent implements OnInit {
@ViewChild('st', { static: true })
@ -25,11 +25,12 @@ export class InvoicedListComponent implements OnInit {
selectedRows: any[] = [];
totalCallNo = 0;
constructor(
public service: TicketService,
private nzModalService: NzModalService,
private router: Router,
) {}
routesInfo: any = {
mailNo: '',
routes: []
};
constructor(public service: TicketService, private nzModalService: NzModalService, private router: Router) {}
ngOnInit(): void {}
@ -80,11 +81,18 @@ export class InvoicedListComponent implements OnInit {
}
showlogosticsLogs(item: any) {
this.nzModalService.create({
nzTitle: '查看物流',
nzWidth: 600,
nzContent: this.logosticsLogsModal,
nzFooter: []
this.service.request(this.service.$api_get_express_routes, item.expressno).subscribe(res => {
console.log(res);
if (res) {
res.routes = res.routes.map((route: any) => ({ time: route.acceptTime, value: route.remark + route.acceptAddress, color: 'gray' }));
this.routesInfo = res;
this.nzModalService.create({
nzTitle: '查看物流',
nzWidth: 600,
nzContent: this.logosticsLogsModal,
nzFooter: []
});
}
});
}
@ -217,7 +225,10 @@ export class InvoicedListComponent implements OnInit {
buttons: [
{
text: '查看明细',
click: item => this.router.navigate(['/ticket/invoice-list/detail/' + item.id])
click: item =>
this.router.navigate(['/ticket/invoice-list/detail/' + item.id], {
queryParams: { expressno: item.expressno }
})
},
{
text: '查看物流',