+
已签收
@@ -403,11 +403,11 @@
{{ scope.row.problemTypeName }}
-
- 轨迹异常:停留超时{{calcDeliveryTime(new Date(),scope.row.lastScanRecord.scanDate)}} 天
+
+ 轨迹异常:停留超时{{calcDeliveryTime(new Date(),scope.row.lastScanDate)}} 天
- {{calcDeliveryTime(new Date(),scope.row.lastScanRecord.scanDate)}}天
+ {{calcDeliveryTime(new Date(),scope.row.lastScanDate)}}天
@@ -654,6 +654,7 @@ import ProblemTypeMultiplePicker from '@/views/emis/EmisBaseTools/ProblemTypeMul
import EmisMonthpayAccountPicker from '@/views/emis/EmisBaseTools/EmisMonthpayAccountPicker.vue';
import TraceWaybillDetailView from '@/views/emis/customerService/traceWaybillDetailView.vue';
+import { queryLastRecord } from "@/api/emis/emisTmsScanRecord";
import {timeDiffTime,timeFormat} from '@/utils/dateUtils'
import { formatSearchStr,deepClone } from '@/utils/index'
@@ -1017,6 +1018,8 @@ export default {
this.emisWaybillList = response.rows;
this.total = response.total;
this.loading = false;
+
+ this.showLastTraceInfo();
});
// 查询统计
@@ -1024,7 +1027,17 @@ export default {
this.queryStatInfoMap = response.data;
});
},
-
+ showLastTraceInfo(){
+ if(this.emisWaybillList&&this.emisWaybillList.length>0){
+ this.emisWaybillList.forEach(item=>{
+ queryLastRecord(item.billCode).then(response => {
+ let data=response.data;
+ item.lastTraceInfo=data.lastTraceInfo;
+ item.lastScanDate=data.scanDate;
+ });
+ });
+ }
+ },
onDateSelect(value){
this.dateTimeRange=value;
// scanDate
diff --git a/src/views/emis/emisWaybill/dispatchWaybillList.vue b/src/views/emis/emisWaybill/dispatchWaybillList.vue
index 40528d5f..ff9d34d3 100644
--- a/src/views/emis/emisWaybill/dispatchWaybillList.vue
+++ b/src/views/emis/emisWaybill/dispatchWaybillList.vue
@@ -377,7 +377,7 @@