diff --git a/src/views/HardCountDetail.vue b/src/views/HardCountDetail.vue index 48b5e246..ec43cb8a 100644 --- a/src/views/HardCountDetail.vue +++ b/src/views/HardCountDetail.vue @@ -641,7 +641,7 @@ function getVariance(item: any , isRecounting: boolean) { } function hasUnsavedChanges() { - return inputCount.value >= 0 || cycleCountItems.value.itemList.find((item: any) => item.scannedCount && !item.isMatchNotFound); + return (inputCount.value && inputCount.value >= 0) || cycleCountItems.value.itemList.find((item: any) => item.scannedCount && !item.isMatchNotFound); } function isItemAlreadyAdded(product: any) {