| | |
| | | // 获取工件信息 |
| | | async onSearchContainter(OP80NewCode) { |
| | | this.inputFocus=false |
| | | this.initFocus(100); |
| | | const param = { |
| | | OP80NewCode: OP80NewCode |
| | | } |
| | | try{ |
| | | let {data}=await getWorkPieceByOP80NewCode(param) |
| | | if(!this.workPieceData.some(item=>item.workPieceID==data.workPieceID)) { |
| | | data.addTime=new Date(); |
| | | this.workPieceData.push(data) |
| | | } |
| | | //顺序调转,排序 |
| | | this.workPieceData.sort((a, b) => b.addTime - a.addTime); |
| | | |
| | | this.initFocus(100); |
| | | //console.log(this.workPieceData,'dsts'); |
| | | // setTimeout(()=>{ |
| | | // this.OP80NewCode = '' ;//每次刷完就清空输入框 【Editby shaocx,2024-06-12】 |