This commit is contained in:
parent
ed7350ae84
commit
7f2cf4a392
|
|
@ -739,18 +739,17 @@ const handleScanError = (error) => {
|
|||
const getMaInfoScan = async () => {
|
||||
let param = {
|
||||
qrCode: qrCodeScan.value,
|
||||
typeId: queryParams.value.typeId
|
||||
}
|
||||
const res = await getCodeScanAPI(param)
|
||||
console.log(res)
|
||||
if (res.code == 200) {
|
||||
if (res.data && res.data.recordList.length > 0) {
|
||||
if (res.data.recordList[0].typeModelName != queryParams.value.typeName) {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '当前扫描到的物资规格与当前任务规格不一致, 请仔细检查核对',
|
||||
confirmText: '关闭',
|
||||
confirmColor: '#FF0000',
|
||||
showCancel: false,
|
||||
uni.showToast({
|
||||
title: '当前扫描到的物资规格与当前任务规格不一致, 请仔细检查核对',
|
||||
icon: 'none',
|
||||
duration: 2000,
|
||||
})
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue