跟踪预警逻辑调整

This commit is contained in:
wuteng 2025-12-31 15:33:30 +08:00
parent 982841aa28
commit b122b85db3
4 changed files with 20 additions and 0 deletions

View File

@ -399,12 +399,17 @@
已签收 已签收
</div> </div>
<div v-else > <div v-else >
<div v-if="[150,151,170,173].includes(scope.row.problemType)">
<span style="color: red">{{ scope.row.problemTypeName }}</span>
</div>
<div v-else>
<span v-if="calcDeliveryTime(new Date(),scope.row.lastScanRecord.scanDate)>2" style="color: red" > <span v-if="calcDeliveryTime(new Date(),scope.row.lastScanRecord.scanDate)>2" style="color: red" >
轨迹异常:停留超时{{calcDeliveryTime(new Date(),scope.row.lastScanRecord.scanDate)}} 天 轨迹异常:停留超时{{calcDeliveryTime(new Date(),scope.row.lastScanRecord.scanDate)}} 天
</span> </span>
<span v-else > <span v-else >
{{calcDeliveryTime(new Date(),scope.row.lastScanRecord.scanDate)}}天 {{calcDeliveryTime(new Date(),scope.row.lastScanRecord.scanDate)}}天
</span> </span>
</div>
</div> </div>
</div> </div>
</template> </template>

View File

@ -382,6 +382,10 @@
已签收 已签收
</div> </div>
<div v-else > <div v-else >
<div v-if="[150,151,170,173].includes(scope.row.problemType)">
<span style="color: red">{{ scope.row.problemTypeName }}</span>
</div>
<div v-else>
<span v-if="calcDeliveryTime(new Date(),scope.row.lastScanRecord.scanDate)>2" style="color: red" > <span v-if="calcDeliveryTime(new Date(),scope.row.lastScanRecord.scanDate)>2" style="color: red" >
轨迹异常:停留超时{{calcDeliveryTime(new Date(),scope.row.lastScanRecord.scanDate)}} 天 轨迹异常:停留超时{{calcDeliveryTime(new Date(),scope.row.lastScanRecord.scanDate)}} 天
</span> </span>
@ -390,6 +394,7 @@
</span> </span>
</div> </div>
</div> </div>
</div>
</template> </template>
</el-table-column> </el-table-column>

View File

@ -386,6 +386,10 @@
已签收 已签收
</div> </div>
<div v-else > <div v-else >
<div v-if="[150,151,170,173].includes(scope.row.problemType)" >
<span style="color: red">{{ scope.row.problemTypeName }}</span>
</div>
<div v-else>
<span v-if="calcDeliveryTime(new Date(),scope.row.lastScanDate)>2" style="color: red" > <span v-if="calcDeliveryTime(new Date(),scope.row.lastScanDate)>2" style="color: red" >
轨迹异常:停留超时{{calcDeliveryTime(new Date(),scope.row.lastScanDate)}} 天 轨迹异常:停留超时{{calcDeliveryTime(new Date(),scope.row.lastScanDate)}} 天
</span> </span>
@ -394,6 +398,7 @@
</span> </span>
</div> </div>
</div> </div>
</div>
</template> </template>
</el-table-column> </el-table-column>

View File

@ -378,6 +378,10 @@
已签收 已签收
</div> </div>
<div v-else > <div v-else >
<div v-if="[150,151,170,173].includes(scope.row.problemType)" >
<span style="color: red">{{ scope.row.problemTypeName }}</span>
</div>
<div v-else>
<span v-if="calcDeliveryTime(new Date(),scope.row.lastScanRecord.scanDate)>2" style="color: red" > <span v-if="calcDeliveryTime(new Date(),scope.row.lastScanRecord.scanDate)>2" style="color: red" >
轨迹异常:停留超时{{calcDeliveryTime(new Date(),scope.row.lastScanRecord.scanDate)}} 天 轨迹异常:停留超时{{calcDeliveryTime(new Date(),scope.row.lastScanRecord.scanDate)}} 天
</span> </span>
@ -386,6 +390,7 @@
</span> </span>
</div> </div>
</div> </div>
</div>
</template> </template>
</el-table-column> </el-table-column>