From f6659af42b1caccfccfa91447e7e088e84a6edb6 Mon Sep 17 00:00:00 2001
From: liuyihe <2513762445@qq.com>
Date: Wed, 23 Sep 2026 09:06:31 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/warehouse-transfer/warehouse-transfer.vue | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/pages/warehouse-transfer/warehouse-transfer.vue b/src/pages/warehouse-transfer/warehouse-transfer.vue
index 75857a1..d7a0ecf 100644
--- a/src/pages/warehouse-transfer/warehouse-transfer.vue
+++ b/src/pages/warehouse-transfer/warehouse-transfer.vue
@@ -19,6 +19,8 @@
正在读取转运明细请稍候,不要重复选择
+ 库存转运 · 无需测量该单来源于仓库现有库存,不需要重复测量或上传现场照片。请进入托盘作业,按来源托盘执行整托转运、拆托重打,或与相同目的仓合托。
+
当前测量任务{{ selected.transferNo }}
{{ totalCartons }}实收箱
@@ -62,6 +64,7 @@
还不能提交{{ validationMessage }}
整单测量汇总{{ pallets.length }} 托 · {{ totalCartons }} / {{ selected.packageCount || 0 }} 箱
+
操作失败{{ error.message || error }}requestId:{{ error.requestId }}
@@ -98,9 +101,11 @@ export default {
completedDestinationLabel() { return this.destinationLabel({ fbaWarehouseCode: this.completedDestination, destinationType: this.completedDestinationType }) },
totalCartons() { return this.pallets.reduce((sum, pallet) => sum + Math.max(0, Number(pallet.cartonCount) || 0), 0) },
cartonDifference() { return this.totalCartons - Number(this.selected?.packageCount || 0) },
+ isInventoryTransfer() { return Boolean(this.selected && this.selected.inboundCode && this.selected.inboundCode !== this.selected.transferNo) },
totalVolume() { return this.pallets.reduce((sum, pallet) => sum + this.rawPalletVolume(pallet), 0).toFixed(3) },
totalWeight() { return this.pallets.reduce((sum, pallet) => sum + Math.max(0, Number(pallet.grossWeightKg) || 0), 0).toFixed(2) },
validationMessage() {
+ if (this.isInventoryTransfer) return ''
if (!this.selected || !this.pallets.length) return '转运单缺少可测量的托盘'
for (let index = 0; index < this.pallets.length; index += 1) {
const pallet = this.pallets[index]
@@ -119,7 +124,8 @@ export default {
onShow() { if (requireSession()) { this.user = session.currentUser; this.startScanner(); this.loadCandidates() } },
onHide() { this.stopScanner() },
beforeUnmount() { this.stopScanner() },
- methods: {
+ methods: {
+ openPalletOperations() { uni.navigateTo({ url: '/pages/pallet/pallet' }) },
destinationLabel(value, fallback = {}) { const code = String(value?.fbaWarehouseCode || fallback?.fbaWarehouseCode || '').trim(); if (code) return code; const type = value?.destinationType || fallback?.destinationType; return type === 'PRIVATE' ? '私人仓' : '目的仓待定' },
startScanner() { this.stopScanner(); this._stopScanner = startScanBroadcast({ onScan: (value) => this.handlePalletScan(value), onError: (error) => { this.error = error } }) },
stopScanner() { if (this._stopScanner) this._stopScanner(); this._stopScanner = null },