|
|
@@ -36,6 +36,7 @@ import AppTag from "@/components/module/app-tag.vue";
|
|
|
import AppSearchModule from "@/components/module/app-search";
|
|
|
import { list } from "@/mixins";
|
|
|
import { getList } from "@/api/shop";
|
|
|
+import { mapGetters } from "vuex";
|
|
|
export default {
|
|
|
name: "selectShop",
|
|
|
components: {
|
|
|
@@ -69,6 +70,9 @@ export default {
|
|
|
uni.stopPullDownRefresh();
|
|
|
}
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ ...mapGetters(["getLoginInfo"]),
|
|
|
+ },
|
|
|
onLoad(option) {
|
|
|
// #ifdef APP-PLUS
|
|
|
if(plus.device.vendor == 'Newland'){
|
|
|
@@ -81,6 +85,10 @@ export default {
|
|
|
let style = this.option.style ? this.option.style : 1
|
|
|
this.selectStyle = style
|
|
|
if(style == 1){
|
|
|
+ if(item.id == this.getLoginInfo.shopId){
|
|
|
+ this.$msg('当前门店不可用,请选择其它门店')
|
|
|
+ return false
|
|
|
+ }
|
|
|
if(this.$util.isScanEnv()){
|
|
|
this.$util.pageTo({url: '/pagesStorehouse/allot/addExDetails',type:2,query: {inShopId: item.id,inShopName:item.shopName}})
|
|
|
}else{
|