This commit is contained in:
bb_pan 2025-06-19 16:04:53 +08:00
parent 23e7349f7d
commit 576bf3b248
2 changed files with 3 additions and 3 deletions

View File

@ -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()
}
}

View File

@ -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',