shish před 2 roky
rodič
revize
4fce7788e1
1 změnil soubory, kde provedl 3 přidání a 2 odebrání
  1. 3 2
      ghs/src/views/order/add.vue

+ 3 - 2
ghs/src/views/order/add.vue

@@ -356,9 +356,8 @@ export default {
       if( e && e.key=='Escape'){
       if( e && e.key=='Escape'){
         if(that.showCommitPop){
         if(that.showCommitPop){
           that.showCommitPop = false;
           that.showCommitPop = false;
-          return;
+          that.backToSearchItem();
         }
         }
-        that.backToSearchItem();
       }
       }
       if( e && e.key=='F9' ){
       if( e && e.key=='F9' ){
         if(that.$util.isEmpty(that.selectList)){
         if(that.$util.isEmpty(that.selectList)){
@@ -412,6 +411,8 @@ export default {
           setTimeout(function(){
           setTimeout(function(){
             that.$refs['itemSearchRef'].focus()
             that.$refs['itemSearchRef'].focus()
           },900)
           },900)
+        }).catch(()=>{
+          that.$refs['itemSearchRef'].focus()
         })
         })
     },
     },
     changeKdStaff(info){
     changeKdStaff(info){