|
|
@@ -69,6 +69,7 @@ import { submitProcessingGroupScan } from '@/api/processing/index'
|
|
|
import { androidFocus, getHeader, goBack, scanSuccess, scanError } from '@/utils/android'
|
|
|
import { closeListener, openListener, scanInit } from '@/utils/keydownListener'
|
|
|
import { barcodeToUpperCase } from '@/utils/dataType'
|
|
|
+import { useStore } from '@/store/modules/user'
|
|
|
|
|
|
try {
|
|
|
getHeader()
|
|
|
@@ -77,6 +78,9 @@ try {
|
|
|
console.log(error)
|
|
|
}
|
|
|
|
|
|
+const store = useStore()
|
|
|
+const warehouse = store.warehouse
|
|
|
+
|
|
|
const submitting = ref(false)
|
|
|
const expressNo = ref('')
|
|
|
const expressNoRef = ref(null)
|
|
|
@@ -92,12 +96,16 @@ const handleSubmit = async () => {
|
|
|
return
|
|
|
}
|
|
|
if (submitting.value) return
|
|
|
+ if (!warehouse) {
|
|
|
+ showFailToast('未获取到仓库信息')
|
|
|
+ return
|
|
|
+ }
|
|
|
|
|
|
submitting.value = true
|
|
|
showLoadingToast({ message: '提交中...', forbidClick: true })
|
|
|
|
|
|
try {
|
|
|
- const response = await submitProcessingGroupScan(deliveryNo)
|
|
|
+ const response = await submitProcessingGroupScan(deliveryNo, warehouse)
|
|
|
closeToast()
|
|
|
if (response.code === 200) {
|
|
|
showNotify({ type: 'success', message: '提交成功' })
|