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 { onLoad, onShow } from '@dcloudio/uni-app'
|
||||||
import {
|
import {
|
||||||
getCodeDetailAPI,
|
getCodeDetailAPI,
|
||||||
getCodeScanAPI,
|
getNumCodeListAPI,
|
||||||
getInfoByTypeId,
|
getInfoByTypeId,
|
||||||
getBoxDetailsAPI,
|
getBoxDetailsAPI,
|
||||||
} from '@/services/picking/outbound.js'
|
} from '@/services/picking/outbound.js'
|
||||||
|
|
@ -363,11 +363,11 @@ const getMaInfoScan = async () => {
|
||||||
let param = {
|
let param = {
|
||||||
qrCode: qrCodeScan.value,
|
qrCode: qrCodeScan.value,
|
||||||
}
|
}
|
||||||
const res = await getCodeScanAPI(param)
|
const res = await getNumCodeListAPI(param)
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
if (res.data && res.data.recordList.length > 0) {
|
if (res.data && res.data.length > 0) {
|
||||||
const maCodeList = res.data.recordList.map((item) => ({
|
const maCodeList = res.data.map((item) => ({
|
||||||
maId: item.maId,
|
maId: item.id,
|
||||||
maCode: item.maCode,
|
maCode: item.maCode,
|
||||||
typeId: queryParams.value.typeId,
|
typeId: queryParams.value.typeId,
|
||||||
}))
|
}))
|
||||||
|
|
@ -375,10 +375,10 @@ const getMaInfoScan = async () => {
|
||||||
uni.$emit('maCodeList', { maCodeList })
|
uni.$emit('maCodeList', { maCodeList })
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({ title: res.data.msg, icon: 'none' })
|
uni.showToast({ title: res.msg, icon: 'none' })
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({ title: res.data.msg, icon: 'none' })
|
uni.showToast({ title: res.msg, icon: 'none' })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -76,6 +76,13 @@ export const getCodeScanAPI = (data) => {
|
||||||
data,
|
data,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export const getNumCodeListAPI = (data) => {
|
||||||
|
return http({
|
||||||
|
method: 'GET',
|
||||||
|
url: '/material/wsMaInfo/list',
|
||||||
|
data,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
export const getScanCodeAPI = (data) => {
|
export const getScanCodeAPI = (data) => {
|
||||||
return http({
|
return http({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue