小程序:质检报工(过程检验) 扫码结果为提示时,等待3秒再次打开扫码框
This commit is contained in:
parent
43bd381aec
commit
01bb0b9759
@ -61,6 +61,7 @@ const saveSearchValue = (value: string) => {
|
|||||||
console.error('保存搜索条件失败:', error);
|
console.error('保存搜索条件失败:', error);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
const delay = ref(3);//等待三秒再次打开扫码窗口 后续改为从接口获取
|
||||||
const getListData = async () => {
|
const getListData = async () => {
|
||||||
|
|
||||||
queryParams.pgType = props.orderState;
|
queryParams.pgType = props.orderState;
|
||||||
@ -103,6 +104,12 @@ const getListData = async () => {
|
|||||||
isFinish.value = false
|
isFinish.value = false
|
||||||
}
|
}
|
||||||
} catch (e){
|
} catch (e){
|
||||||
|
if(e.data.data==null && e.data.msg){
|
||||||
|
//等待三秒再次打开扫码窗口
|
||||||
|
setTimeout(() => {
|
||||||
|
handleScan()
|
||||||
|
}, delay.value * 1000);
|
||||||
|
}
|
||||||
} finally {
|
} finally {
|
||||||
isLoading.value = false
|
isLoading.value = false
|
||||||
queryParams.type=0
|
queryParams.type=0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user