|
@@ -171,6 +171,7 @@ import { barcodeIsData } from '@/views/inbound/blindCollection/task/hooks/barcod
|
|
|
import { closeLoading, showLoading } from '@/utils/loading'
|
|
import { closeLoading, showLoading } from '@/utils/loading'
|
|
|
import { binData } from '@/views/inbound/blindCollection/task/hooks/binData'
|
|
import { binData } from '@/views/inbound/blindCollection/task/hooks/binData'
|
|
|
import { closeListener, openListener, scanInit } from '@/utils/keydownListener'
|
|
import { closeListener, openListener, scanInit } from '@/utils/keydownListener'
|
|
|
|
|
+import { formatDateTime } from '@/utils/date'
|
|
|
const route = useRoute()
|
|
const route = useRoute()
|
|
|
//箱号
|
|
//箱号
|
|
|
const boxNo = ref('')
|
|
const boxNo = ref('')
|
|
@@ -352,7 +353,8 @@ const setLocalData=(barCode,type,dataType)=>{
|
|
|
dataType,
|
|
dataType,
|
|
|
cartonCode: null,
|
|
cartonCode: null,
|
|
|
index:localData.value.length,
|
|
index:localData.value.length,
|
|
|
- qty:1
|
|
|
|
|
|
|
+ qty:1,
|
|
|
|
|
+ operateStartTime:formatDateTime(new Date())
|
|
|
};
|
|
};
|
|
|
const existingItem = localData.value.find(item => item.barcode === barCode);
|
|
const existingItem = localData.value.find(item => item.barcode === barCode);
|
|
|
if (existingItem) {
|
|
if (existingItem) {
|