优化
This commit is contained in:
@@ -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 : []
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user