update
This commit is contained in:
parent
a850b61ed9
commit
6183bb5937
@ -84,8 +84,8 @@
|
|||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<div v-if="scope.row.delivery_date && scope.row.time_period_name"
|
<div v-if="scope.row.delivery_date && scope.row.time_period_name"
|
||||||
:class="{
|
:class="{
|
||||||
'time-in-progress': getDeliveryTimeStatus(scope.row.delivery_date, scope.row.time_period_name) === 'in-progress',
|
'time-in-progress': ['CREATED', 'RECEIVED', 'DELIVERING'].includes(scope.row.status) && 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-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.delivery_date }}</div>
|
||||||
<div>{{ scope.row.time_period_name }}</div>
|
<div>{{ scope.row.time_period_name }}</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user