From 161861a8f2318a83735d871b1edfad121e1d5f1a Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周三, 12 6月 2024 15:21:31 +0800 Subject: [PATCH] 2 --- yiqi_pda/pages/outBound/index.vue | 21 +++++++++++++++------ 1 files changed, 15 insertions(+), 6 deletions(-) diff --git a/yiqi_pda/pages/outBound/index.vue b/yiqi_pda/pages/outBound/index.vue index e434074..de99da2 100644 --- a/yiqi_pda/pages/outBound/index.vue +++ b/yiqi_pda/pages/outBound/index.vue @@ -63,6 +63,8 @@ methods: { // 鑾峰彇宸ヤ欢淇℃伅 async onSearchContainter(OP80NewCode) { + this.inputFocus=false + this.initFocus(100); const param = { OP80NewCode: OP80NewCode } @@ -71,17 +73,24 @@ if(!this.workPieceData.some(item=>item.workPieceID==data.workPieceID)) { this.workPieceData.push(data) } - console.log(this.workPieceData,'dsts'); - this.inputFocus=false - setTimeout(()=>{ - this.OP80NewCode = '' ;//姣忔鍒峰畬灏辨竻绌鸿緭鍏ユ 銆怑ditby shaocx,2024-06-12銆� - this.inputFocus=true - },100) + //console.log(this.workPieceData,'dsts'); + // setTimeout(()=>{ + // this.OP80NewCode = '' ;//姣忔鍒峰畬灏辨竻绌鸿緭鍏ユ 銆怑ditby shaocx,2024-06-12銆� + // this.inputFocus=true + // },100) }catch(e){ + //debugger + this.initFocus(100); //TODO handle the exception console.log(e); } }, + initFocus(num){ + setTimeout(()=>{ + this.OP80NewCode = '' ;//姣忔鍒峰畬灏辨竻绌鸿緭鍏ユ 銆怑ditby shaocx,2024-06-12銆� + this.inputFocus=true + },num) + }, // 鑾峰彇鎵爜闀垮害 // async listbycode(){ // try{ -- Gitblit v1.9.3