|
@@ -1,6 +1,8 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view>
|
|
<view>
|
|
|
- <keyboard-listener @keyup="onKeyup" @keydown="onKeydown"></keyboard-listener>
|
|
|
|
|
|
|
+ <!-- #ifdef APP-PLUS -->
|
|
|
|
|
+ <keyboard-listener @keyup="onKeyup" @keydown="onKeydown"></keyboard-listener>
|
|
|
|
|
+ <!-- #endif -->
|
|
|
<block v-if="loginStyle == 0">
|
|
<block v-if="loginStyle == 0">
|
|
|
<!-- #ifdef MP-WEIXIN -->
|
|
<!-- #ifdef MP-WEIXIN -->
|
|
|
<view style="width:100vw;height:400upx;display:flex;align-items:center;justify-content:center;position:relative;">
|
|
<view style="width:100vw;height:400upx;display:flex;align-items:center;justify-content:center;position:relative;">
|
|
@@ -166,8 +168,10 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
|
+//#ifdef APP-PLUS
|
|
|
import keyboardListener from "@/components/keyboard-listener/keyboard-listener";
|
|
import keyboardListener from "@/components/keyboard-listener/keyboard-listener";
|
|
|
const Uhf53Helper = uni.requireNativePlugin("Uhf53Helper");
|
|
const Uhf53Helper = uni.requireNativePlugin("Uhf53Helper");
|
|
|
|
|
+//#endif
|
|
|
import { mapGetters,mapActions } from "vuex";
|
|
import { mapGetters,mapActions } from "vuex";
|
|
|
import { getShopInfo } from "@/utils/auth";
|
|
import { getShopInfo } from "@/utils/auth";
|
|
|
import { consoleIndex } from "@/api/workbench";
|
|
import { consoleIndex } from "@/api/workbench";
|
|
@@ -181,8 +185,10 @@ import { getWeixinId } from "@/api/invite/index";
|
|
|
import { getErrorPrice } from "@/api/item"
|
|
import { getErrorPrice } from "@/api/item"
|
|
|
import { getStaffInfo } from "@/api/shop-admin"
|
|
import { getStaffInfo } from "@/api/shop-admin"
|
|
|
export default {
|
|
export default {
|
|
|
- name: "admin-workbench",
|
|
|
|
|
|
|
+ name: "workbench",
|
|
|
|
|
+ //#ifdef APP-PLUS
|
|
|
components: { keyboardListener },
|
|
components: { keyboardListener },
|
|
|
|
|
+ //#endif
|
|
|
mixins: [productMins,autoUpdateMixins],
|
|
mixins: [productMins,autoUpdateMixins],
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -251,6 +257,7 @@ export default {
|
|
|
if(this.$util.isScanEnv()){
|
|
if(this.$util.isScanEnv()){
|
|
|
this.isScanEnv = true
|
|
this.isScanEnv = true
|
|
|
}
|
|
}
|
|
|
|
|
+ //#ifdef APP-PLUS
|
|
|
//如果是rfid手持机
|
|
//如果是rfid手持机
|
|
|
if(uni.getSystemInfoSync().brand == 'rockchip'){
|
|
if(uni.getSystemInfoSync().brand == 'rockchip'){
|
|
|
let _this = this;
|
|
let _this = this;
|
|
@@ -260,6 +267,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
+ //#endif
|
|
|
},
|
|
},
|
|
|
onPullDownRefresh() {
|
|
onPullDownRefresh() {
|
|
|
this.init();
|
|
this.init();
|
|
@@ -278,6 +286,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
...mapActions(['setUserShopAll']),
|
|
...mapActions(['setUserShopAll']),
|
|
|
|
|
+ //#ifdef APP-PLUS
|
|
|
onKeydown(event) {
|
|
onKeydown(event) {
|
|
|
if(this.switch == 1){
|
|
if(this.switch == 1){
|
|
|
return false
|
|
return false
|
|
@@ -308,6 +317,7 @@ export default {
|
|
|
let _this = this;
|
|
let _this = this;
|
|
|
Uhf53Helper.releaseUhfDevice();
|
|
Uhf53Helper.releaseUhfDevice();
|
|
|
},
|
|
},
|
|
|
|
|
+ //#endif
|
|
|
getShopName(){
|
|
getShopName(){
|
|
|
currentShop().then(res => {
|
|
currentShop().then(res => {
|
|
|
if(res.code == 1){
|
|
if(res.code == 1){
|