2
schangxiang@126.com
2024-06-12 161861a8f2318a83735d871b1edfad121e1d5f1a
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 = '' ;//每次刷完就清空输入框 【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{