This commit is contained in:
Taric Xin
2022-04-19 19:33:06 +08:00
parent a787ea5442
commit af14c7ab1a
2 changed files with 28 additions and 5 deletions

View File

@ -1,4 +1,5 @@
import { Component, OnInit, ViewChild, Type } from '@angular/core';
import { Router } from '@angular/router';
import { STComponent, STColumn, STChange } from '@delon/abc/st';
import {
SFComponent,
@ -57,7 +58,14 @@ export class WaybillManagementAbnormalAppearComponent implements OnInit {
click: item => this.reviewDetailAction(item)
},
{ title: '异常类型', index: 'exceptionTypeLabel', width: '180px', className: 'text-left' },
{ title: '关联运单号', index: 'wayBillCode', width: '180px', className: 'text-left' },
{
title: '关联运单号',
index: 'wayBillCode',
width: '180px',
className: 'text-left',
type: 'link',
click: item => this.routeToBill(item)
},
{ title: '网络货运人', index: 'enterpriseInfoName', width: '250px', className: 'text-left' },
{ title: '货主', index: 'shipperAppUserName', width: '250px', className: 'text-left' },
{ title: '装货地', index: 'loadingAddressArr', width: '220px', className: 'text-left' },
@ -84,7 +92,9 @@ export class WaybillManagementAbnormalAppearComponent implements OnInit {
click: item => this.reviewDetailAction(item)
},
{ title: '异常类型', index: 'exceptionTypeLabel', width: '180px', className: 'text-left' },
{ title: '关联运单号', index: 'wayBillCode', width: '180px', className: 'text-left' },
{ title: '关联运单号', index: 'wayBillCode', width: '180px', className: 'text-left',
type: 'link',
click: item => this.routeToBill(item) },
{ title: '网络货运人', index: 'enterpriseInfoName', width: '180px', className: 'text-left' },
{ title: '货主', index: 'shipperAppUserName', width: '180px', className: 'text-left' },
{ title: '装货地', index: 'loadingAddressArr', width: '180px', className: 'text-left' },
@ -121,7 +131,12 @@ export class WaybillManagementAbnormalAppearComponent implements OnInit {
}
itemInfo: any = {};
replyContent = '';
constructor(public service: WaybillManagementServe, private nzModalService: NzModalService, public shipperSrv: ShipperBaseService) {}
constructor(
public service: WaybillManagementServe,
private nzModalService: NzModalService,
public shipperSrv: ShipperBaseService,
private router: Router
) {}
ngOnInit(): void {
this.initSF();
@ -144,7 +159,7 @@ export class WaybillManagementAbnormalAppearComponent implements OnInit {
reviewDetailAction(item: any) {
this.itemInfo = {};
this.service.request(this.service.$api_get_listOperate_detail, { id: item.id }).subscribe(res => {
this.service.request(`${this.service.$api_get_listOperate_detail}${item.id}`, {}, 'GET').subscribe(res => {
if (res) {
this.itemInfo = res;
const modal = this.nzModalService.create({
@ -186,6 +201,14 @@ export class WaybillManagementAbnormalAppearComponent implements OnInit {
});
}
routeToBill(item: any) {
if (item.billType === '1') {
this.router.navigate([`/waybill-management/vehicle/vehicle-detail/${item.wayBillId}`]);
} else {
this.router.navigate([`/waybill-management/bulk/bulk-detail/${item.wayBillId}`]);
}
}
initSF() {
this.schema = {
properties: {

View File

@ -52,7 +52,7 @@ export class WaybillManagementServe extends BaseService {
// 查询运营端异常上报
$api_get_listOperatePage = '/api/sdc/exceptionReport/listOperatePage';
// 查询运营端异常上报详情
$api_get_listOperate_detail = '/api/sdc/exceptionReport/getOperateDetail';
$api_get_listOperate_detail = '/api/sdc/exceptionReport/operateDetail/';
// 运营端异常回复
$api_operate_reply = '/api/sdc/exceptionReport/operateReply';
// 查询运营端异常上报数据统计