This commit is contained in:
parent
32a145835e
commit
4852fe1a7d
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Reference in New Issue