Commit 68575121 by 张立顺

Merge branch 'SAAS+V4.52.0-0429' of http://192.168.3.233:8090/saas_plus/dj-car-b…

…outique-work-wechat into SAAS+V4.52.0-0429
2 parents a6087b7f 49bd1130
......@@ -620,8 +620,6 @@ Component({
return new Promise(resolve => {
// if (wx.$receptionLoaded) return
let userInfo = wx.$util.getUserInfo() || {}
// 飞行督导角色不展示接待记录(0415四月中版本)
if (userInfo?.loginRole == 6) return
let {
menuList
} = this.data
......@@ -632,10 +630,10 @@ Component({
message
} = res
if (code == 0) {
let index = data?.findIndex(v => v.merchantNo == userInfo?.default4SStoreInfo?.merchantId)
// 超管/区域运营/广联销售
let index = data?.findIndex(v => v.merchantNo == userInfo?.default4SStoreInfo?.merchantId) //匹配质检门店
// 超管/区域运营3/广联销售5/飞行督导6
if (userInfo.isSuper || index > -1 || userInfo.loginRole === 3 || userInfo.loginRole == 5 || userInfo?.loginRole == 6) {
if (menuList.every((item) => item.menuText != "接待记录")) {
if (menuList.every((item) => item.menuText != "接待记录") && userInfo?.loginRole != 6) { // 飞行督导角色不展示接待记录(0415四月中版本)
menuList.push({
menuText: "接待记录",
icon: "reception-record-icon",
......@@ -656,7 +654,8 @@ Component({
this.setData({
storeRangeList: data,
listData: [],
nothing: false
nothing: false,
showReceive:true
}, () => {
this.getReceptionList()
})
......
......@@ -102,7 +102,7 @@
</block>
</view> -->
</view>
<view class="receive-list" wx:if="{{storeRangeList.length || userInfo.loginRole== 3 || userInfo.loginRole== 5}}">
<view class="receive-list" wx:if="{{showReceive}}">
<view class="'screen-box' {{showScreen ? '' : 'sticky-screen'}} {{isScrollTop ? 'bg-white' : ''}}">
<view>
<!-- <text class="title">接待记录</text> -->
......
......@@ -36,7 +36,7 @@
<attack wx:elif="{{activeIndex==2}}" defenceResultFlag="{{record.defenceResultFlag}}" batchId="{{record.batchId}}"></attack>
</block>
</view>
<block wx:if="{{showViolationBtn}}">
<block wx:if="{{showViolationBtn && (userInfo.isSuper || userInfo.loginRole == 3 || userInfo.loginRole == 6)}}">
<view class="violation-btn-box">
<view class="violation-btn" bindtap="violationPopupToggle">去确认</view>
</view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!