diff --git a/src/pages/operation/operation.vue b/src/pages/operation/operation.vue
index 7a23392..9a9e529 100644
--- a/src/pages/operation/operation.vue
+++ b/src/pages/operation/operation.vue
@@ -5,7 +5,7 @@
{{ operationName }}{{ inboundMode ? '海外仓真实入仓作业' : prototype.subtitle }}{{ inboundMode ? '真实接口' : '静态原型' }}
任务范围
- {{ task.taskNo }}计划:{{ task.planNo }}状态:{{ task.status }}卸柜照片:{{ task.unloadPhotoFileIds?.length || 0 }} 张预计报空:{{ task.estimatedEmptyReturnAt }}
+ {{ task.taskNo }}计划:{{ task.planNo }}状态:{{ task.status }}卸柜照片:{{ task.unloadPhotoFileIds?.length || 0 }} 张预计报空:{{ task.estimatedEmptyReturnAt }}
托盘资源分配
卸柜实收
卸柜照片与完成已上传文件ID:{{ photoFileIds.join('、') }}
@@ -38,6 +38,7 @@
operator() { return { operatorId: String(this.user?.id || ''), operatorName: this.user?.name || 'PDA作业员' } },
selectPallet(item) { this.form.planPalletId = String(item.planPalletId); if (item.warehousePalletId) this.form.palletId = String(item.warehousePalletId); if (item.warehouseLocationId) this.form.locationId = String(item.warehouseLocationId) },
selectAllocation(item) { this.form.allocationId = String(item.allocationId); this.form.planPalletId = String(item.planPalletId); this.form.packageCount = Math.max(1, Number(item.plannedPackageCount || 0) - Number(item.pickedPackageCount || 0)) },
+ selectCarton(item) { this.form.cartonMark = item.cartonMark || ''; if (positive(item.planPalletId)) this.form.planPalletId = String(item.planPalletId) },
async loadTask() { try { this.validateScope(); this.task = await this.execute('查询入仓任务', () => getInboundTask(this.form.planNo.trim(), this.form.customerId.trim())) } catch (_) {} },
async pushTask() { try { this.validateScope(); const payload = this.operator(); const key = this.key('push', payload); this.task = await this.execute('推送入仓任务', () => pushInboundTask(this.form.planNo.trim(), this.form.customerId.trim(), { ...payload, idempotencyKey: key.value })); delete this.keys[key.signature] } catch (_) {} },
async assignPallet() { try { this.validateScope(); for (const field of ['planPalletId','warehouseId','palletId','locationId']) if (!positive(this.form[field])) throw new Error('计划托盘、仓库、实物托盘和库位ID均必须填写'); const payload = { warehouseId: this.form.warehouseId, palletId: this.form.palletId, locationId: this.form.locationId }; const key = this.key('assign', payload); await this.execute('分配托盘资源', () => assignInboundPallet(this.form.planNo.trim(), this.form.customerId.trim(), this.form.planPalletId, { ...payload, idempotencyKey: key.value })); delete this.keys[key.signature] } catch (error) { if (!this.error) this.error = error } },