shish 2 лет назад
Родитель
Сommit
4fce7788e1
1 измененных файлов с 3 добавлено и 2 удалено
  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(that.showCommitPop){
           that.showCommitPop = false;
-          return;
+          that.backToSearchItem();
         }
-        that.backToSearchItem();
       }
       if( e && e.key=='F9' ){
         if(that.$util.isEmpty(that.selectList)){
@@ -412,6 +411,8 @@ export default {
           setTimeout(function(){
             that.$refs['itemSearchRef'].focus()
           },900)
+        }).catch(()=>{
+          that.$refs['itemSearchRef'].focus()
         })
     },
     changeKdStaff(info){