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

+ 5 - 0
ghs/src/views/order/add.vue

@@ -339,11 +339,16 @@ export default {
         that.form.needPrint = 1
         that.form.needPrint = 1
       }
       }
       if(e && e.key=='Delete'){
       if(e && e.key=='Delete'){
+        that.$refs['itemSearchRef'].blur()
         let current = that.selectList[that.selectIndex]
         let current = that.selectList[that.selectIndex]
         that.$confirm('确定删除 '+current.name+'?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => {
         that.$confirm('确定删除 '+current.name+'?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => {
           current.bigCount = 0
           current.bigCount = 0
           that.replaceItemFn(current,1,'sub')
           that.replaceItemFn(current,1,'sub')
+          that.selectIndex = 0
           that.$refs.singleTable.setCurrentRow(that.selectList[0])
           that.$refs.singleTable.setCurrentRow(that.selectList[0])
+          setTimeout(function(){
+            that.$refs['itemSearchRef'].focus()
+          },900)
         })
         })
       }
       }
       if(e && e.key=='PageDown'){
       if(e && e.key=='PageDown'){