shish 2 лет назад
Родитель
Сommit
c61a771e6f
3 измененных файлов с 57 добавлено и 4 удалено
  1. 19 1
      ghs/src/views/in/list.vue
  2. 19 2
      ghs/src/views/member/list.vue
  3. 19 1
      ghs/src/views/order/list.vue

+ 19 - 1
ghs/src/views/in/list.vue

@@ -70,7 +70,8 @@
       </template>
 
       <template #slot-new-cg>
-				<el-button type="primary" size="mini" style="margin-left:50px;" @click="newCg()">新增采购</el-button>
+        <el-button type="primary" size="mini" style="margin-left:50px;" @click="billing()">开单 Ctrl + ,</el-button>
+				<el-button type="primary" size="mini" style="margin-left:50px;" @click="newCg()">新增采购 Ctrl + .</el-button>
 			</template>
 
     </x-crud>
@@ -117,7 +118,24 @@ export default {
   created() {
     this.init();
   },
+	mounted() {
+		let that = this;
+		document.onkeydown=function(e) {
+			if(e && e.key == ',' && e.ctrlKey){
+				let query = {}
+				that.$router.push({path:'/order/add',query})
+			}
+			if(e && e.key == '.' && e.ctrlKey){
+				let query = {}
+				that.$router.push({path:'/in/add',query})
+			}
+		}
+	},
   methods: {
+    billing(){
+			let query = {}
+			this.$router.push({path:'/order/add',query})
+    },
     newCg(){
 			let query = {}
 			this.$router.push({path:'/in/add',query})

+ 19 - 2
ghs/src/views/member/list.vue

@@ -69,7 +69,8 @@
 			</template>
 			
 			<template #slot-billing>
-				<el-button type="primary" size="mini" style="margin-left:50px;" @click="billing()">开单</el-button>
+				<el-button type="primary" size="mini" style="margin-left:50px;" @click="billing()">开单 Ctrl+,</el-button>
+				<el-button type="primary" size="mini" style="margin-left:50px;" @click="newCg()">新增采购 Ctrl+.</el-button>
 			</template>
 
 			<template #table-column-name="{scope}">
@@ -159,9 +160,25 @@ export default {
 	created() {
 		this.getLevel();
 	},
-	mounted() {},
+	mounted() {
+		let that = this;
+		document.onkeydown=function(e) {
+			if(e && e.key == ',' && e.ctrlKey){
+				let query = {}
+				that.$router.push({path:'/order/add',query})
+			}
+			if(e && e.key == '.' && e.ctrlKey){
+				let query = {}
+				that.$router.push({path:'/in/add',query})
+			}
+		}
+	},
 	methods: {
 		...mapActions(['getLevel']),
+		newCg(){
+			let query = {}
+			this.$router.push({path:'/in/add',query})
+		},
 		billing(){
 			let query = {}
 			this.$router.push({path:'/order/add',query})

+ 19 - 1
ghs/src/views/order/list.vue

@@ -89,7 +89,8 @@
       </template>
 
       <template #slot-billing>
-				<el-button type="primary" size="mini" style="margin-left:50px;" @click="billing()">开单</el-button>
+				<el-button type="primary" size="mini" style="margin-left:50px;" @click="billing()">开单 Ctrl + ,</el-button>
+        <el-button type="primary" size="mini" style="margin-left:50px;" @click="newCg()">新增采购 Ctrl + .</el-button>
 			</template>
 
     </x-crud>
@@ -201,7 +202,24 @@ export default {
   created() {
     this.init();
   },
+	mounted() {
+		let that = this;
+		document.onkeydown=function(e) {
+			if(e && e.key == ',' && e.ctrlKey){
+				let query = {}
+				that.$router.push({path:'/order/add',query})
+			}
+			if(e && e.key == '.' && e.ctrlKey){
+				let query = {}
+				that.$router.push({path:'/in/add',query})
+			}
+		}
+	},
   methods: {
+		newCg(){
+			let query = {}
+			this.$router.push({path:'/in/add',query})
+		},
     billing(){
 			let query = {}
 			this.$router.push({path:'/order/add',query})