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