This commit is contained in:
2026-10-20 11:34:58 +08:00
parent 53cb68a8bc
commit 8cce909c78
3 changed files with 67 additions and 5 deletions
+6 -1
View File
@@ -33,7 +33,7 @@
<script>
import PortalHeader from '@/components/PortalHeader.vue'
import ScanTargetInput from '@/components/ScanTargetInput.vue'
import { listDropshipPalletizationTasks } from '@/api/pda-dropship.js'
import { listDropshipPalletizationTasks, resolveDropshipWorkspacePallet } from '@/api/pda-dropship.js'
import { session, requireSession } from '@/stores/session.js'
import { formatApiError } from '@/utils/user-facing.js'
@@ -50,6 +50,11 @@
if (!this.user?.warehouseId) { this.error = '请返回首页选择作业仓库'; return }
this.loading = true; this.error = ''
try {
// 返回列表时重查跨票续装目标,已封托盘不再传入其他任务。
if (this.palletNo) {
const workspace = await resolveDropshipWorkspacePallet(this.user.warehouseId, this.palletNo)
if (workspace.pallet.status !== 'OPEN') this.palletNo = ''
}
const records = await listDropshipPalletizationTasks(this.keyword, this.user.warehouseId)
this.tasks = Array.isArray(records) ? records : []
}