|
|
@@ -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})
|