This commit is contained in:
aaron 2025-03-25 09:51:58 +08:00
parent a850b61ed9
commit 6183bb5937

View File

@ -84,8 +84,8 @@
<template #default="scope">
<div v-if="scope.row.delivery_date && scope.row.time_period_name"
:class="{
'time-in-progress': getDeliveryTimeStatus(scope.row.delivery_date, scope.row.time_period_name) === 'in-progress',
'time-expired': getDeliveryTimeStatus(scope.row.delivery_date, scope.row.time_period_name) === 'expired'
'time-in-progress': ['CREATED', 'RECEIVED', 'DELIVERING'].includes(scope.row.status) && getDeliveryTimeStatus(scope.row.delivery_date, scope.row.time_period_name) === 'in-progress',
'time-expired': ['CREATED', 'RECEIVED', 'DELIVERING'].includes(scope.row.status) && getDeliveryTimeStatus(scope.row.delivery_date, scope.row.time_period_name) === 'expired'
}">
<div>{{ scope.row.delivery_date }}</div>
<div>{{ scope.row.time_period_name }}</div>