| | |
| | | methods: { |
| | | // 获取工件信息 |
| | | async onSearchContainter(OP80NewCode) { |
| | | this.inputFocus=false |
| | | this.initFocus(100); |
| | | const param = { |
| | | OP80NewCode: OP80NewCode |
| | | } |
| | |
| | | if(!this.workPieceData.some(item=>item.workPieceID==data.workPieceID)) { |
| | | this.workPieceData.push(data) |
| | | } |
| | | console.log(this.workPieceData,'dsts'); |
| | | this.inputFocus=false |
| | | setTimeout(()=>{ |
| | | this.OP80NewCode = '' ;//每次刷完就清空输入框 【Editby shaocx,2024-06-12】 |
| | | this.inputFocus=true |
| | | },100) |
| | | //console.log(this.workPieceData,'dsts'); |
| | | // setTimeout(()=>{ |
| | | // this.OP80NewCode = '' ;//每次刷完就清空输入框 【Editby 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 = '' ;//每次刷完就清空输入框 【Editby shaocx,2024-06-12】 |
| | | this.inputFocus=true |
| | | },num) |
| | | }, |
| | | // 获取扫码长度 |
| | | // async listbycode(){ |
| | | // try{ |