From ea035628aa0aaa4ee8f7dee724f612f6e654c84c Mon Sep 17 00:00:00 2001 From: ouyangxq <775153912@qq.com> Date: Fri, 4 Sep 2026 14:04:57 +0800 Subject: [PATCH 01/14] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/platformContainerLoading.ts | 2 ++ .../pages/GlobalSmartLoadingView.vue | 14 +++++--- .../pages/SmartLoadingWorkbenchView.vue | 16 +++++++-- .../container-loading/smartLoadingItems.ts | 2 ++ src/modules/container-loading/types.ts | 2 ++ .../WeightOcrPanel.behavior.test.ts | 24 ++++++-------- .../weight/components/WeightOcrPanel.test.ts | 5 ++- .../weight/components/WeightOcrPanel.vue | 33 +------------------ 8 files changed, 44 insertions(+), 54 deletions(-) diff --git a/src/modules/container-loading/api/platformContainerLoading.ts b/src/modules/container-loading/api/platformContainerLoading.ts index 2c0947a3..da5d5f19 100644 --- a/src/modules/container-loading/api/platformContainerLoading.ts +++ b/src/modules/container-loading/api/platformContainerLoading.ts @@ -104,6 +104,8 @@ function item(raw: SmartLoadingItem): SmartLoadingItem { packageCount: numberValue(raw.packageCount), pickedPackageCount: numberValue(raw.pickedPackageCount), minPackageCount: numberValue(raw.minPackageCount, 1), + totalPackageCount: numberValue(raw.totalPackageCount, raw.packageCount), + remainingPackageCount: numberValue(raw.remainingPackageCount), canAdjust: Boolean(raw.canAdjust), canRemove: Boolean(raw.canRemove), productQuantity: raw.productQuantity == null ? null : numberValue(raw.productQuantity), grossWeightKg: raw.grossWeightKg == null ? null : numberValue(raw.grossWeightKg), diff --git a/src/modules/container-loading/pages/GlobalSmartLoadingView.vue b/src/modules/container-loading/pages/GlobalSmartLoadingView.vue index ec3efbcd..8982e18d 100644 --- a/src/modules/container-loading/pages/GlobalSmartLoadingView.vue +++ b/src/modules/container-loading/pages/GlobalSmartLoadingView.vue @@ -1,6 +1,6 @@