|
|
@@ -261,7 +261,7 @@
|
|
|
<van-row>
|
|
|
<van-col
|
|
|
span="5"
|
|
|
- v-if="item.stateString != '已拜访' && deptLevel == 3"
|
|
|
+ v-if="item.stateString != '已拜访' && showChainsVisitButton"
|
|
|
@click="storeVisit(item)">
|
|
|
<img
|
|
|
:src="require('@/assets/icon/call.png')"
|
|
|
@@ -270,7 +270,7 @@
|
|
|
</van-col>
|
|
|
<van-col
|
|
|
span="5"
|
|
|
- v-if="item.stateString != '已拜访' && deptLevel == 3"
|
|
|
+ v-if="item.stateString != '已拜访' && showChainsVisitButton"
|
|
|
@click="abnormalVisit(item)">
|
|
|
<img
|
|
|
:src="require('@/assets/icon/yichang.png')"
|
|
|
@@ -490,6 +490,7 @@ export default {
|
|
|
computed: {
|
|
|
...mapState({
|
|
|
deviceOutsidePage: (state) => state.isRefreshPage.deviceOutsidePage,
|
|
|
+ userInfo: (state) => state.user.userInfo,
|
|
|
}),
|
|
|
},
|
|
|
components: { tabBar },
|
|
|
@@ -546,11 +547,12 @@ export default {
|
|
|
timeData: '',
|
|
|
SKUDateShow: false,
|
|
|
SKUList: [],
|
|
|
- deptLevel: null,
|
|
|
+ showChainsVisitButton: true,
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
- this.deptLevel = localStorage.getItem('deptLevel') || null;
|
|
|
+ // 经销商拜访,是否显示拜访按钮
|
|
|
+ this.showChainsVisitButton = this.userInfo.showChainsVisitButton;
|
|
|
// 当前tabs,0:销售部;1:我的
|
|
|
this.tabVal = localStorage.getItem('tabVal') == '0' ? '0' : '1';
|
|
|
store.dispatch('setDeviceOutsidePage', false);
|