diff --git a/mes-ui/mini-app/src/pages/pgMaster/components/dataItem.vue b/mes-ui/mini-app/src/pages/pgMaster/components/dataItem.vue index 1116f803..8cf36e76 100644 --- a/mes-ui/mini-app/src/pages/pgMaster/components/dataItem.vue +++ b/mes-ui/mini-app/src/pages/pgMaster/components/dataItem.vue @@ -61,6 +61,7 @@ const saveSearchValue = (value: string) => { console.error('保存搜索条件失败:', error); } }; +const delay = ref(3);//等待三秒再次打开扫码窗口 后续改为从接口获取 const getListData = async () => { queryParams.pgType = props.orderState; @@ -103,6 +104,12 @@ const getListData = async () => { isFinish.value = false } } catch (e){ + if(e.data.data==null && e.data.msg){ + //等待三秒再次打开扫码窗口 + setTimeout(() => { + handleScan() + }, delay.value * 1000); + } } finally { isLoading.value = false queryParams.type=0