diff --git a/src/pages/picking/outbound/code-outbound.vue b/src/pages/picking/outbound/code-outbound.vue index 5817a1d..08b0141 100644 --- a/src/pages/picking/outbound/code-outbound.vue +++ b/src/pages/picking/outbound/code-outbound.vue @@ -491,10 +491,10 @@ const scanStart = () => { // 处理扫描成功事件 const handleScanSuccess = (result) => { - qrCodeScan.value = result?.text || '' if (qrCodeScan.value === '') { uni.showToast({ title: '扫码识别失败', icon: 'none' }) } else { + qrCodeScan.value = result?.text?.split('?qrcode=')[1] || result?.text getMaInfoScan() } } diff --git a/src/pages/picking/outbound/num-outbound.vue b/src/pages/picking/outbound/num-outbound.vue index 389723a..debcbce 100644 --- a/src/pages/picking/outbound/num-outbound.vue +++ b/src/pages/picking/outbound/num-outbound.vue @@ -64,7 +64,7 @@ const maxNum = computed(() => { }) onLoad((options) => { - queryParams.value = JSON.parse(options.queryParams) + queryParams.value = options.queryParams ? JSON.parse(options.queryParams) : {} outboundNum.value = queryParams.value.preNum - queryParams.value.alNum console.log("xxxxxxxxxxxxxx", queryParams.value) }) @@ -100,7 +100,7 @@ const onHandleOutbound = async () => { }) return } - if(outboundNum.value > queryParams.storageNum.value) { + if(outboundNum.value > queryParams.value.storageNum) { uni.showToast({ title: '出库数量不能大于库存数量', icon: 'none',