+
已签收
-
- 轨迹异常:停留超时{{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)}}天
@@ -569,6 +572,8 @@ import WaybillDetailReadOnly from '@/views/emis/emisWaybill/waybillDetailReadOnl
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'
import clip from '@/utils/clipboard'
@@ -844,6 +849,10 @@ export default {
onSalemanChange(){
this.queryParams.sendSiteCode=null;
},
+
+ onCustNoChange(){
+ this.queryParams.sendSiteCode=null;
+ },
//标红table指定行
tableRowClassName({row, rowIndex}) {
@@ -897,6 +906,9 @@ export default {
this.emisWaybillList = response.rows;
this.total = response.total;
this.loading = false;
+
+ // 触发获取最后轨迹更新
+ this.showLastTraceInfo();
});
// 查询统计
@@ -906,6 +918,18 @@ export default {
},
+ 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/sendWaybillListNew.vue b/src/views/emis/emisWaybill/sendWaybillListNew.vue
index 094d50d2..8b26f13a 100644
--- a/src/views/emis/emisWaybill/sendWaybillListNew.vue
+++ b/src/views/emis/emisWaybill/sendWaybillListNew.vue
@@ -573,6 +573,8 @@ import WaybillDetailReadOnly from '@/views/emis/emisWaybill/waybillDetailReadOnl
import TraceWaybillDetailView from '@/views/emis/customerService/traceWaybillDetailView.vue';
+import { queryLastRecord } from "@/api/emis/emisTmsScanRecord";
+
import {timeDiffTime,timeFormat} from '@/utils/dateUtils'
@@ -905,6 +907,8 @@ export default {
this.emisWaybillList = response.rows;
this.total = response.total;
this.loading = false;
+
+ this.showLastTraceInfo();
});
// 查询统计
@@ -913,6 +917,18 @@ export default {
});
},
+ 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