This commit is contained in:
parent
c9ad727508
commit
062594b9b5
|
|
@ -171,7 +171,7 @@
|
||||||
import { ref, computed } from 'vue'
|
import { ref, computed } from 'vue'
|
||||||
import { onLoad, onShow } from '@dcloudio/uni-app'
|
import { onLoad, onShow } from '@dcloudio/uni-app'
|
||||||
import {
|
import {
|
||||||
getInfoByQrcode,
|
getCodeScanAPI,
|
||||||
getMachineByIdApi,
|
getMachineByIdApi,
|
||||||
getCodeDeviceListAPI,
|
getCodeDeviceListAPI,
|
||||||
} from '@/services/materialsStation'
|
} from '@/services/materialsStation'
|
||||||
|
|
@ -375,7 +375,7 @@ const scanStart = () => {
|
||||||
// const params = { qrCode, typeId: queryParams.value.typeId }
|
// const params = { qrCode, typeId: queryParams.value.typeId }
|
||||||
// console.log('🚀 ~ success: ~ queryParams.value.isAddCode:', queryParams.value.isAddCode)
|
// console.log('🚀 ~ success: ~ queryParams.value.isAddCode:', queryParams.value.isAddCode)
|
||||||
// try {
|
// try {
|
||||||
// const res = await getInfoByQrcode(params)
|
// const res = await getCodeScanAPI(params)
|
||||||
// console.log('🚀 ~ success: ~ res:', res)
|
// console.log('🚀 ~ success: ~ res:', res)
|
||||||
// if (res.code === 200) {
|
// if (res.code === 200) {
|
||||||
// if (res.data && res.data.recordList.length > 0) {
|
// if (res.data && res.data.recordList.length > 0) {
|
||||||
|
|
@ -444,7 +444,7 @@ const handleQrCode = async (qrCode) => {
|
||||||
const params = { qrCode, typeId: queryParams.value.typeId }
|
const params = { qrCode, typeId: queryParams.value.typeId }
|
||||||
console.log('🚀 ~ success: ~ queryParams.value.isAddCode:', queryParams.value.isAddCode)
|
console.log('🚀 ~ success: ~ queryParams.value.isAddCode:', queryParams.value.isAddCode)
|
||||||
try {
|
try {
|
||||||
const res = await getInfoByQrcode(params)
|
const res = await getCodeScanAPI(params)
|
||||||
console.log('🚀 ~ success: ~ res:', res)
|
console.log('🚀 ~ success: ~ res:', res)
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
if (res.data && res.data.recordList.length > 0) {
|
if (res.data && res.data.recordList.length > 0) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue