diff --git a/public/service-worker.js b/public/service-worker.js index 2e38ce7..44295bb 100644 --- a/public/service-worker.js +++ b/public/service-worker.js @@ -1,7 +1,7 @@ const isLocalhost = self.location.hostname === "localhost" || self.location.hostname === "127.0.0.1"; if (!isLocalhost) { - const STATIC_CACHE = "construction-delivery-static-v121"; + const STATIC_CACHE = "construction-delivery-static-v122"; const RUNTIME_CACHE = "construction-delivery-runtime-v119"; const APP_SHELL_URLS = ["/", "/client", "/index.html", "/manifest.webmanifest", "/icons/icon-192.png", "/icons/icon-512.png"]; diff --git a/src/components/logistics/LogisticsReadinessBoard.jsx b/src/components/logistics/LogisticsReadinessBoard.jsx index 90733db..019a3b5 100644 --- a/src/components/logistics/LogisticsReadinessBoard.jsx +++ b/src/components/logistics/LogisticsReadinessBoard.jsx @@ -15,6 +15,8 @@ import { import { CSS } from "@dnd-kit/utilities"; import { filterOrderGroups, + getGroupSlotDate, + getGroupSlotTime, getOrderGroupDisplayStatusLabel, getOrderGroupDisplayStatusValue, getOrderGroupStatusTone, @@ -109,7 +111,7 @@ const TABLE_COLUMNS = [ { key: "customer", label: "Клиент" }, { key: "city", label: "Город" }, { key: "deliveryType", label: "Тип" }, - { key: "deliveryDate", label: "Доставка" }, + { key: "deliveryDate", label: "Дата" }, { key: "driver", label: "Водитель" }, { key: "status", label: "Статус" }, { key: "updatedAt", label: "Обновлён" }, @@ -189,6 +191,9 @@ const renderRow = (g, onSelectSet) => { const smsTone = getSmsProblemTone(g); const smsTag = smsTone !== "ok" ? SMS_TAG[smsTone] : null; const notAgreedHighlight = getNotAgreedHighlight(g); + // Дата и время слота: у самовывоза — выдача, у доставки — доставка (владелец: показывать оба типа). + const slotDate = getGroupSlotDate(g); + const slotTime = getGroupSlotTime(g); return (