This commit is contained in:
wangshiming
2022-04-13 19:54:31 +08:00
parent bd95bcc71f
commit d5e8e5eb60
5 changed files with 56 additions and 17 deletions

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2021-12-06 20:20:26 * @Date : 2021-12-06 20:20:26
* @LastEditors : Shiming * @LastEditors : Shiming
* @LastEditTime : 2022-04-13 19:02:35 * @LastEditTime : 2022-04-13 19:38:36
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\bulk-detail\\bulk-detail.component.html * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\bulk-detail\\bulk-detail.component.html
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
--> -->
@ -241,13 +241,14 @@
[page]="{ show: false, showSize: false }"> </st> [page]="{ show: false, showSize: false }"> </st>
</nz-tab> </nz-tab>
<nz-tab nzTitle="操作日志"> <nz-tab nzTitle="操作日志">
<st #logSt [data]="service.$api_get_log_list" [columns]="operateLogColums" <!-- <st #logSt [data]="service.$api_get_log_list" [columns]="operateLogColums"
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: logParams ,lazyLoad:true}" [req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: logParams ,lazyLoad:true}"
[res]="{ reName: { list: 'data.records', total: 'data.total' } }"> [res]="{ reName: { list: 'data.records', total: 'data.total' } }">
<ng-template st-row="operator" let-item> <ng-template st-row="operator" let-item>
{{item?.operator}}/{{item.telephone}} {{item?.operator}}/{{item.telephone}}
</ng-template> </ng-template>
</st> </st> -->
<app-logistics-time-line [data]="operationList"></app-logistics-time-line>
</nz-tab> </nz-tab>
</nz-tabset> </nz-tabset>
</nz-card> </nz-card>

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2021-12-06 20:20:26 * @Date : 2021-12-06 20:20:26
* @LastEditors : Shiming * @LastEditors : Shiming
* @LastEditTime : 2022-04-13 19:29:45 * @LastEditTime : 2022-04-13 19:52:18
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\bulk-detail\\bulk-detail.component.ts * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\bulk-detail\\bulk-detail.component.ts
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
*/ */
@ -31,6 +31,7 @@ export class OrderManagementBulkeDetailComponent implements OnInit {
billExpenses: any[] = []; //运费信息表格信息 billExpenses: any[] = []; //运费信息表格信息
pois: any[] = []; pois: any[] = [];
abnormalList: any[] = []; abnormalList: any[] = [];
operationList: any;
i: any; i: any;
imges: any; imges: any;
totalObj: any; totalObj: any;
@ -72,8 +73,6 @@ export class OrderManagementBulkeDetailComponent implements OnInit {
} }
]; ];
get logParams() { get logParams() {
console.log(this.i?.billCode);
return { operateObject: this.i?.billCode, operateTypeList: ['3','8'] } return { operateObject: this.i?.billCode, operateTypeList: ['3','8'] }
} }
trajectory = 'car'; trajectory = 'car';
@ -118,8 +117,21 @@ export class OrderManagementBulkeDetailComponent implements OnInit {
time: '计划卸货时间:' + res.unloadPlanTime time: '计划卸货时间:' + res.unloadPlanTime
} }
]; ];
setTimeout(() => { this.service.request(this.service.$api_get_log_list,{operateObject: this.i?.billCode, operateTypeList: ['3','8']}).subscribe(res => {
this.logSt.load(1); if (res) {
console.log('操作日志');
console.log(res);
let a :any= []
res.records.forEach((item: any) => {
a.push({
value: `操作人: ${item.operator} <br /> 操作内容: ${ item.operationContent}`,
time: item.operatorTimestamp,
color: 'green'
})
})
console.log(a);
this.operationList = a;
}
}); });
} }
}); });
@ -130,6 +142,7 @@ export class OrderManagementBulkeDetailComponent implements OnInit {
this.abnormalList = res; this.abnormalList = res;
} }
}); });
this.service.request(this.service.$api_getAbnormalWarningByBillId, { id: this.id }).subscribe(res => { this.service.request(this.service.$api_getAbnormalWarningByBillId, { id: this.id }).subscribe(res => {
if (res) { if (res) {
console.log('异常预警'); console.log('异常预警');

View File

@ -247,13 +247,15 @@
[page]="{ show: false, showSize: false }"> </st> [page]="{ show: false, showSize: false }"> </st>
</nz-tab> </nz-tab>
<nz-tab nzTitle="操作日志"> <nz-tab nzTitle="操作日志">
<st #logSt [data]="service.$api_get_log_list" [columns]="operateLogColums" <!-- <st #logSt [data]="service.$api_get_log_list" [columns]="operateLogColums"
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: logParams ,lazyLoad:true}" [req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: logParams ,lazyLoad:true}"
[res]="{ reName: { list: 'data.records', total: 'data.total' } }"> [res]="{ reName: { list: 'data.records', total: 'data.total' } }">
<ng-template st-row="operator" let-item> <ng-template st-row="operator" let-item>
{{item?.operator}}/{{item.telephone}} {{item?.operator}}/{{item.telephone}}
</ng-template> </ng-template>
</st> </st> -->
<app-logistics-time-line [data]="operationList"></app-logistics-time-line>
</nz-tab> </nz-tab>
</nz-tabset> </nz-tabset>
</nz-card> </nz-card>

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2021-12-28 14:42:03 * @Date : 2021-12-28 14:42:03
* @LastEditors : Shiming * @LastEditors : Shiming
* @LastEditTime : 2022-04-13 19:30:46 * @LastEditTime : 2022-04-13 19:52:15
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\vehicle-detail\\vehicle-detail.component.ts * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\vehicle-detail\\vehicle-detail.component.ts
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
*/ */
@ -27,6 +27,7 @@ export class OrderManagementVehicleDetailComponent implements OnInit {
modalcontent: any; modalcontent: any;
modalTitle: string = ''; modalTitle: string = '';
trajectory = 'car'; trajectory = 'car';
operationList: any;
mapList: any[] = []; //地图点位数据组 mapList: any[] = []; //地图点位数据组
pois: any[] = []; pois: any[] = [];
addressItems: any[] = []; //打点地址数据组 addressItems: any[] = []; //打点地址数据组
@ -107,13 +108,25 @@ export class OrderManagementVehicleDetailComponent implements OnInit {
time: '计划卸货时间:' + res.unloadPlanTime time: '计划卸货时间:' + res.unloadPlanTime
} }
]; ];
this.service.request(this.service.$api_get_log_list,{operateObject: this.i?.billCode, operateTypeList: ['3','8']}).subscribe(res => {
if (res) {
console.log('操作日志');
console.log(res);
let a :any= []
res.records.forEach((item: any) => {
a.push({
value: `操作人: ${item.operator} <br /> 操作内容: ${ item.operationContent}`,
time: item.operatorTimestamp,
color: 'green'
})
})
console.log(a);
this.operationList = a;
}
});
this.billExpenses = this.i?.billExpenseDetails?.filter( this.billExpenses = this.i?.billExpenseDetails?.filter(
(data: any) => data.expenseCode === 'PRE' || data.expenseCode === 'RECE' || data.expenseCode === 'BACK' (data: any) => data.expenseCode === 'PRE' || data.expenseCode === 'RECE' || data.expenseCode === 'BACK'
); );
this.i.scheduleVOList = this.i?.scheduleVOList?.filter((data: any) => data.displayStatus !== 'HIDE');
setTimeout(() => {
this.logSt.load(1);
});
} }
}); });
this.service.request(this.service.$api_listBillComplianceAbnormalByBillId, { id: this.id }).subscribe(res => { this.service.request(this.service.$api_listBillComplianceAbnormalByBillId, { id: this.id }).subscribe(res => {

View File

@ -1,5 +1,15 @@
<!--
* @Description :
* @Version : 1.0
* @Author : Shiming
* @Date : 2022-03-14 14:17:38
* @LastEditors : Shiming
* @LastEditTime : 2022-04-13 19:41:48
* @FilePath : \\tms-obc-web\\src\\app\\shared\\components\\logistics-time-line\\logistics-time-line.component.html
* Copyright (C) 2022 huzhenhong. All rights reserved.
-->
<nz-timeline [nzMode]="'left'"> <nz-timeline [nzMode]="'left'">
<nz-timeline-item *ngFor="let item of data" [nzLabel]="item.time" [nzColor]="item.color"> <nz-timeline-item *ngFor="let item of data" [nzLabel]="item.time" [nzColor]="item?.color">
<label [innerHtml]="item.value"></label> <label [innerHtml]="item?.value"></label>
</nz-timeline-item> </nz-timeline-item>
</nz-timeline> </nz-timeline>