This commit is contained in:
bb_pan 2025-07-05 19:51:33 +08:00
parent 32a145835e
commit 4852fe1a7d
2 changed files with 14 additions and 7 deletions

View File

@ -132,7 +132,7 @@ import { ref, computed } from 'vue'
import { onLoad, onShow } from '@dcloudio/uni-app'
import {
getCodeDetailAPI,
getCodeScanAPI,
getNumCodeListAPI,
getInfoByTypeId,
getBoxDetailsAPI,
} from '@/services/picking/outbound.js'
@ -363,11 +363,11 @@ const getMaInfoScan = async () => {
let param = {
qrCode: qrCodeScan.value,
}
const res = await getCodeScanAPI(param)
const res = await getNumCodeListAPI(param)
if (res.code == 200) {
if (res.data && res.data.recordList.length > 0) {
const maCodeList = res.data.recordList.map((item) => ({
maId: item.maId,
if (res.data && res.data.length > 0) {
const maCodeList = res.data.map((item) => ({
maId: item.id,
maCode: item.maCode,
typeId: queryParams.value.typeId,
}))
@ -375,10 +375,10 @@ const getMaInfoScan = async () => {
uni.$emit('maCodeList', { maCodeList })
uni.navigateBack()
} else {
uni.showToast({ title: res.data.msg, icon: 'none' })
uni.showToast({ title: res.msg, icon: 'none' })
}
} else {
uni.showToast({ title: res.data.msg, icon: 'none' })
uni.showToast({ title: res.msg, icon: 'none' })
}
}
</script>

View File

@ -76,6 +76,13 @@ export const getCodeScanAPI = (data) => {
data,
})
}
export const getNumCodeListAPI = (data) => {
return http({
method: 'GET',
url: '/material/wsMaInfo/list',
data,
})
}
export const getScanCodeAPI = (data) => {
return http({