This commit is contained in:
2026-08-11 20:39:38 +08:00
parent 687b4e4377
commit 64a8fcd130
5 changed files with 68 additions and 42 deletions
+2 -1
View File
@@ -11,7 +11,7 @@ function createInitialState() {
boxes,
currentBoxIndex: 0,
itemStates: createItemStates(boxes[0].items),
partialQuantities: {}, boxDrafts: {}, completedBoxes: {}, scanValue: '', scanHistory: []
partialQuantities: {}, scannedBoxCodes: {}, boxDrafts: {}, completedBoxes: {}, scanValue: '', scanHistory: []
}
}
@@ -46,6 +46,7 @@ function draftPayload(nextState, identity) {
currentBoxIndex: nextState.currentBoxIndex,
itemStates: nextState.itemStates,
partialQuantities: nextState.partialQuantities,
scannedBoxCodes: nextState.scannedBoxCodes,
boxDrafts: nextState.boxDrafts,
completedBoxes: nextState.completedBoxes,
scanHistory: nextState.scanHistory,