调整订单列表待处理数量口径
This commit is contained in:
@@ -108,6 +108,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ t('orderList.columns.order') }}</th>
|
||||
<th>{{ t('orderList.columns.openTasks') }}</th>
|
||||
<th>{{ t('orderList.columns.createdAt') }}</th>
|
||||
<th>{{ t('workbench.columns.updatedAt') }}</th>
|
||||
<th>{{ t('workbench.columns.operation') }}</th>
|
||||
@@ -121,6 +122,9 @@
|
||||
<td>
|
||||
<strong>{{ formatOrderKey(order) }}</strong>
|
||||
</td>
|
||||
<td class="open-count-cell">
|
||||
{{ formatOpenWorkItemCount(order) }}
|
||||
</td>
|
||||
<td>{{ formatReservationDateTime(order.created_at) }}</td>
|
||||
<td>{{ formatReservationDateTime(order.updated_at) }}</td>
|
||||
<td>
|
||||
@@ -309,6 +313,13 @@ function formatOrderKey(order: ReservationOrderListItem): string {
|
||||
)
|
||||
}
|
||||
|
||||
function formatOpenWorkItemCount(order: ReservationOrderListItem): string {
|
||||
if (typeof order.open_work_item_count !== 'number') {
|
||||
return '-'
|
||||
}
|
||||
return String(order.open_work_item_count)
|
||||
}
|
||||
|
||||
function resolveContinueTarget(order: ReservationOrderListItem): string | null {
|
||||
if (order.next_v4_order_task_id) {
|
||||
return `/reservation/order-tasks/${order.next_v4_order_task_id}`
|
||||
@@ -476,6 +487,12 @@ td small {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.open-count-cell {
|
||||
color: var(--th-color-slate-900);
|
||||
font-size: 15px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.row-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
||||
Reference in New Issue
Block a user