Browse Source

工单资料工艺回车

liuhairui 1 year ago
parent
commit
f9d97fce28
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/view/yunyin/shengchanguanli/components/addGongYi.vue

+ 2 - 2
src/view/yunyin/shengchanguanli/components/addGongYi.vue

@@ -199,14 +199,14 @@ const add_gyzlent = async (event,id1,id2,id3) => {
       document.getElementById(id3).focus()
     }
   }
-  if (id2 === '车间名称' && event.key==='Enter') {
+  if (id2 === '车间名称' && event.key==='Enter' || id2 === '车间名称' && event.key==='Tab') {
     document.getElementById(id3).focus()
     cjdisplay.value = true
   }
   // if (id2 === '损耗系数' && event.key==='Tab') {
   //   document.getElementById(id3).focus()
   // }
-  if (id2 === '工序损耗' &&  event.key==='Enter') {
+  if (id2 === '工序损耗' &&  event.key==='Enter' || id2 === '工序损耗' &&  event.key==='Tab') {
     if(form['车间名称']){
       await getGxshList();
       _getSH()