小程序:质检报工(过程检验) 扫码结果成功时,等待2s再次打开扫码框

This commit is contained in:
郑庆 2025-11-17 20:43:53 +08:00
parent 3b034fa28c
commit 7c23a3f002

View File

@ -61,7 +61,7 @@ const saveSearchValue = (value: string) => {
console.error('保存搜索条件失败:', error);
}
};
const delay = ref(3);//
const delay = ref(2);// 2
const getListData = async () => {
queryParams.pgType = props.orderState;
@ -108,12 +108,12 @@ const getListData = async () => {
isFinish.value = false
}
} catch (e){
if(e.data.data==null && e.data.msg){
//
setTimeout(() => {
handleScan()
}, delay.value * 1000);
}
// if(e.data.data==null && e.data.msg){ 2025/11/17
// //
// setTimeout(() => {
// handleScan()
// }, delay.value * 1000);
// }
} finally {
isLoading.value = false
queryParams.type=0