shish пре 2 година
родитељ
комит
dcf1baf622
1 измењених фајлова са 10 додато и 5 уклоњено
  1. 10 5
      ghs/src/views/order/add.vue

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

@@ -159,8 +159,8 @@
         <div class="accounts-list">
           打印小票
           <div class="accounts-center">
-            <el-button :type="form.needPrint == 1?'primary':''" @keyup.enter.native="form.needPrint = 1" @click="form.needPrint = 1" size="small">需要(-)</el-button>
-            <el-button :type="form.needPrint == 2?'primary':''" @keyup.enter.native="form.needPrint = 2" @click="form.needPrint = 2" size="small">不要(=)</el-button>
+          <el-button :type="form.needPrint == 1?'primary':''" @keyup.enter.native="form.needPrint = 1" @click="form.needPrint = 1" size="small">需要(Ctrl + , )</el-button>
+            <el-button :type="form.needPrint == 2?'primary':''" @keyup.enter.native="form.needPrint = 2" @click="form.needPrint = 2" size="small">不要(Ctrl + . )</el-button>
           </div>
         </div>
         <div class="accounts-list">
@@ -361,16 +361,21 @@ export default {
       if(e && e.key =='ArrowDown'){
         that.goDown();
       }
-      if(e && e.key=='='){
+      if(e && e.key=='.' && e.ctrlKey){
         if(that.showCommitPop == true){
           that.form.needPrint = 2
         }
       }
-      if( e && e.key=='-'){
+      if( e && e.key==',' && e.ctrlKey){
         if(that.showCommitPop == true){
           that.form.needPrint = 1
         }
       }
+      if( e && e.key=='/' && e.ctrlKey){
+        if(that.showCommitPop == true){
+          that.$refs.kdStaffRef.focus()
+        }
+      }
       if(e && e.key=='Delete'){
         if(that.selectList[that.selectIndex]){
           let current = that.selectList[that.selectIndex]
@@ -418,7 +423,7 @@ export default {
             for(const ele of that.staffList){
               if(currentStaff.id == ele.id){
                 that.form.getStaffId = ele.id
-                that.form.getStaffName = ele.name
+                that.form.getStaffName = ele.name+'(Ctrl + / )'
               }
             }
           }