From 4c12831ee070e3ad5fe6c7e304134a2b268baacb Mon Sep 17 00:00:00 2001 From: ouyangxq <775153912@qq.com> Date: Wed, 12 Aug 2026 18:16:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/ContainersView.test.ts | 1 + .../container-loading/pages/ContainersView.vue | 2 +- .../pages/GlobalSmartLoadingView.test.ts | 1 + .../pages/GlobalSmartLoadingView.vue | 3 ++- .../pages/SmartLoadingWorkbenchView.test.ts | 1 + .../pages/SmartLoadingWorkbenchView.vue | 4 ++-- .../customs/pages/CustomsCasesView.test.ts | 1 + src/modules/customs/pages/CustomsCasesView.vue | 2 +- .../PlatformFirstLegOrdersPanel.test.ts | 7 +++++++ .../components/PlatformFirstLegOrdersPanel.vue | 12 ++++++++---- .../components/LoadingListDetailDrawer.vue | 1 + .../components/LoadingListsView.test.ts | 2 ++ .../components/LoadingListsView.vue | 1 + .../pages/OceanBookingsView.test.ts | 13 +++++++++++++ .../ocean-bookings/pages/OceanBookingsView.vue | 6 +++--- .../pages/OutboundDispatchesView.test.ts | 1 + .../pages/OutboundDispatchesView.vue | 2 +- .../pages/PortSchedulesView.test.ts | 1 + .../port-schedules/pages/PortSchedulesView.vue | 2 +- .../components/TruckAttachmentDialog.test.ts | 2 ++ .../components/TruckAttachmentDialog.vue | 2 +- .../pages/TruckAppointmentsView.test.ts | 1 + .../trucking/pages/TruckAppointmentsView.vue | 2 +- .../components/SmartLoadingWorkbench.test.ts | 17 +++++++++++++++++ .../components/SmartLoadingWorkbench.vue | 7 ++++--- 25 files changed, 75 insertions(+), 19 deletions(-) create mode 100644 src/modules/unified-orders/workflows/components/SmartLoadingWorkbench.test.ts diff --git a/src/modules/container-loading/pages/ContainersView.test.ts b/src/modules/container-loading/pages/ContainersView.test.ts index 26c149ea..0ecca07d 100644 --- a/src/modules/container-loading/pages/ContainersView.test.ts +++ b/src/modules/container-loading/pages/ContainersView.test.ts @@ -188,5 +188,6 @@ describe('ContainersView', () => { expect(source).toContain("row.planStatus === 'EDITING' && canSmartLoading") expect(source).not.toContain('canSmartLoading && row.containerNo') expect(source).not.toContain('link type="primary" :aria-label="containerViewLabel') + expect(source).toContain(':loading="loading" stripe preference-key="container-loading-table"') }) }) diff --git a/src/modules/container-loading/pages/ContainersView.vue b/src/modules/container-loading/pages/ContainersView.vue index 64c7edf3..32ce800e 100644 --- a/src/modules/container-loading/pages/ContainersView.vue +++ b/src/modules/container-loading/pages/ContainersView.vue @@ -323,7 +323,7 @@ onMounted(() => { void Promise.all([loadWarehouses(), loadBusinessOptions(), loa
- + diff --git a/src/modules/container-loading/pages/GlobalSmartLoadingView.test.ts b/src/modules/container-loading/pages/GlobalSmartLoadingView.test.ts index 060fad9d..cbc5b455 100644 --- a/src/modules/container-loading/pages/GlobalSmartLoadingView.test.ts +++ b/src/modules/container-loading/pages/GlobalSmartLoadingView.test.ts @@ -222,5 +222,6 @@ describe('GlobalSmartLoadingView', () => { expect(source).toContain('type="danger" plain') expect(source).not.toContain('link type="danger"') expect(source).toContain('@media (max-width: 720px)') + expect(source.match(/
体积{{ formatNumber(totalVolume) }} / {{ formatNumber(volumeLimit) }} m³
重量{{ formatNumber(totalWeight, 1) }} / {{ formatNumber(weightLimit, 1) }} kg
- + diff --git a/src/modules/container-loading/pages/SmartLoadingWorkbenchView.test.ts b/src/modules/container-loading/pages/SmartLoadingWorkbenchView.test.ts index a7b21d18..7365b72e 100644 --- a/src/modules/container-loading/pages/SmartLoadingWorkbenchView.test.ts +++ b/src/modules/container-loading/pages/SmartLoadingWorkbenchView.test.ts @@ -92,5 +92,6 @@ describe('SmartLoadingWorkbenchView', () => { expect(source).toContain("canPush && plan?.status === 'EDITING'") expect(source).not.toContain("canPush && plan?.status === 'EDITING' && container?.containerNo") expect(source).not.toContain('link type="primary" :disabled="!routeMatches(row)') + expect(source.match(/]*\bstripe\b/g)).toHaveLength(2) }) }) diff --git a/src/modules/container-loading/pages/SmartLoadingWorkbenchView.vue b/src/modules/container-loading/pages/SmartLoadingWorkbenchView.vue index ab2af338..3338130d 100644 --- a/src/modules/container-loading/pages/SmartLoadingWorkbenchView.vue +++ b/src/modules/container-loading/pages/SmartLoadingWorkbenchView.vue @@ -227,7 +227,7 @@ onMounted(load)
体积占用(含 110% 上限){{ formatNumber(totalVolume) }} / {{ formatNumber(volumeLimit) }} m³
重量占用(含 110% 上限){{ formatNumber(totalWeight,1) }} / {{ formatNumber(weightLimit,1) }} kg
创建排柜计划