优化
This commit is contained in:
+2
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user