2
schangxiang@126.com
2024-06-20 3ae4d4e84face9c3f81a8cd74e6458b5914a43e0
yiqi_pda/pages/outBound/index.vue
@@ -86,15 +86,19 @@
         // 获取工件信息
         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】