|
|
@@ -95,12 +95,12 @@ export default {
|
|
|
],
|
|
|
entryData: [
|
|
|
{
|
|
|
- name: '开单',
|
|
|
+ name: '开单 Ctrl+,',
|
|
|
icon: 'icondingdanguanli',
|
|
|
url: '/order/add'
|
|
|
},
|
|
|
{
|
|
|
- name: '采购',
|
|
|
+ name: '采购 Ctrl+.',
|
|
|
icon: 'icondingdanguanli',
|
|
|
url: '/in/add'
|
|
|
},
|
|
|
@@ -176,6 +176,26 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
+
|
|
|
+ let that = this;
|
|
|
+ document.onkeydown=function(e) {
|
|
|
+ console.log(e)
|
|
|
+ if(e && e.key == 'Enter' && e.ctrlKey){
|
|
|
+ if(that.showCommitPop == true){
|
|
|
+ that.createOrder()
|
|
|
+ }else{
|
|
|
+ that.$message({message: '不在结算页',type: 'warning'})
|
|
|
+ }
|
|
|
+ }
|
|
|
+ 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})
|
|
|
+ }
|
|
|
+ }
|
|
|
this.init();
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -194,7 +214,7 @@ export default {
|
|
|
this.promptModal = true;
|
|
|
}
|
|
|
setTimeout(() => {
|
|
|
- this.initChart();
|
|
|
+ //this.initChart();
|
|
|
});
|
|
|
// total
|
|
|
this.totalData[0].val = `¥${res.todayData.income}`;
|
|
|
@@ -221,7 +241,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
initChart() {
|
|
|
- this.$refs.incomeEchart.initChart();
|
|
|
+ //this.$refs.incomeEchart.initChart();
|
|
|
},
|
|
|
noticeFn(item) {
|
|
|
window.open(item.url);
|