退料问题修复

This commit is contained in:
hongchao 2025-08-04 15:59:31 +08:00
parent 01bed0ed7b
commit 624fb6bbcd
7 changed files with 9 additions and 67 deletions

View File

@ -315,7 +315,7 @@ export default {
//
getCameraFj(){
navigator.camera.getPicture(onCameraSuccessFj, onCameraErrorFj, {
navigator.camera.getPicture(this.onCameraSuccessFj, this.onCameraErrorFj, {
quality: 50,
destinationType: window.Camera.DestinationType.DATA_URL,
sourceType: window.Camera.PictureSourceType.CAMERA,
@ -323,7 +323,7 @@ export default {
},
//
getPhotoFj(){
navigator.camera.getPicture(onCameraSuccessFj, onCameraErrorFj, {
navigator.camera.getPicture(this.onCameraSuccessFj, this.onCameraErrorFj, {
quality: 50,
destinationType: window.Camera.DestinationType.DATA_URL,
sourceType: window.Camera.PictureSourceType.SAVEDPHOTOALBUM,
@ -412,6 +412,7 @@ export default {
typeId: this.codeData.typeId,
apDetection: this.apDetection,
bmFileInfos: this.bmFileInfos,
maVos:[{maId:this.codeData.maId,maCode:this.codeData.maCode}]
}
let param = {
backApplyInfo: this.queryParams,

View File

@ -360,7 +360,7 @@ export default {
// 相机预览配置 - 始终使用全屏背景模式
let cameraY = 0;
let cameraHeight = screenHeight;
let toBack = true; // 设置为背景层让UI元素显示在上方
let toBack = false; // 设置为背景层让UI元素显示在上方
console.log('屏幕信息:', {
platform: systemInfo.platform,

View File

@ -139,6 +139,7 @@ import { baseURL } from '@/utils/http'
import treeSelect from '../tree-select/tselectTwo.vue'
import { onLoad } from '@dcloudio/uni-app'
import PreviewImg from '@/components/PreviewImg/index.vue'
import { decryptWithSM4, encryptWithSM4, hashWithSM3AndSalt } from '@/utils/sm'
const queryParams = ref({})
const rowIndex = ref(-1)
//
@ -242,70 +243,6 @@ const uploadImg2 = () => {
console.error('操作菜单选择失败:', err)
},
})
// uni.chooseImage({
// count: 3 - imgList2.value.length, // 3
// sizeType: ['original', 'compressed'],
// sourceType: ['album', 'camera'],
// success: async (res) => {
// const tempFiles = res.tempFiles
// if (imgList2.value.length + tempFiles.length > 3) {
// uni.showToast({ title: '3', icon: 'none' })
// return
// }
// //
// for (let i = 0; i < tempFiles.length; i++) {
// imgList2.value.push({
// url: tempFiles[i].path,
// uploading: true
// })
// }
// //
// const uploadPromises = tempFiles.map(file => {
// return new Promise((resolve, reject) => {
// uni.uploadFile({
// url: '/file/upload',
// filePath: file.path,
// name: 'file',
// success: (uploadRes) => {
// const resData = JSON.parse(uploadRes.data)
// if (resData.code === 200) {
// resolve({
// name: resData.data.name,
// url: resData.data.url
// })
// } else {
// reject(new Error(''))
// }
// },
// fail: (err) => {
// reject(err)
// }
// })
// })
// })
// try {
// const results = await Promise.all(uploadPromises)
// fileData.value.fileList = [...bmFileInfos.value, ...results]
// uni.showToast({ title: '', icon: 'none' })
// //
// imgList2.value = imgList2.value.map(img => {
// return {
// ...img,
// uploading: false
// }
// })
// } catch (error) {
// uni.showToast({ title: '', icon: 'none' })
// //
// imgList2.value = imgList2.value.filter(img => !img.uploading)
// }
// }
// })
}
const generateRandomString = (length) => {

View File

@ -220,6 +220,7 @@ import {
import { baseURL } from '@/utils/http'
import treeSelect from '../tree-select/tselectTwo.vue';
import { onLoad } from '@dcloudio/uni-app'
import { decryptWithSM4, encryptWithSM4, hashWithSM3AndSalt } from '@/utils/sm'
import PreviewImg from '@/components/PreviewImg/index.vue'
// const query = defineProps() //
// const queryParams = JSON.parse(query.queryParams)

View File

@ -142,6 +142,7 @@ import { baseURL } from '@/utils/http'
import treeSelect from '../tree-select/tselectTwo.vue'
import { onLoad,onShow } from '@dcloudio/uni-app'
import PreviewImg from '@/components/PreviewImg/index.vue'
import { decryptWithSM4, encryptWithSM4, hashWithSM3AndSalt } from '@/utils/sm'
const queryParams = ref({})
const rowIndex = ref(-1)
//

View File

@ -273,6 +273,7 @@ import {
import { baseURL } from '@/utils/http'
import treeSelect from '../tree-select/tselectTwo.vue'
import { onLoad,onShow } from '@dcloudio/uni-app'
import { decryptWithSM4, encryptWithSM4, hashWithSM3AndSalt } from '@/utils/sm'
import PreviewImg from '@/components/PreviewImg/index.vue'
const queryParams = ref({})
const rowIndex = ref(-1)

View File

@ -261,6 +261,7 @@ import {
} from '@/services/repair/repair.js'
import treeSelect from '../tree-select/tselectTwo.vue';
import {onLoad, onShow} from '@dcloudio/uni-app'
import { decryptWithSM4, encryptWithSM4, hashWithSM3AndSalt } from '@/utils/sm'
import PreviewImg from '@/components/PreviewImg/index.vue'
// const query = defineProps() //
// const queryParams = JSON.parse(query.queryParams)