Commit caeca750 by zhangxw

施工单bug修复。屏蔽驻店管理入口

1 parent 8c5b18c0
......@@ -660,22 +660,22 @@ Component({
})
}
// 超管/区域运营/广联销售/飞行督导
if (wx.$hasPermission?.canSelectMultiStoreForStaffDaily?.(userInfo) && menuList.every((item) => item.menuText != "驻店管理")) {
menuList.push({
menuText: "驻店管理",
path: "tabWorkOrder.residentManage",
recordId: 13,
icon: "residentManage",
});
}
// 飞行督导展示带教管理入口(超管/飞行督导)
if (wx.$hasPermission?.canViewMentorship?.(userInfo) && menuList.every((item) => item.menuText != "带教管理")) {
menuList.push({
menuText: "带教管理",
path: "tabWorkOrder.mentorshipManage",
icon: "mentorship-manage",
});
}
// if (wx.$hasPermission?.canSelectMultiStoreForStaffDaily?.(userInfo) && menuList.every((item) => item.menuText != "驻店管理")) {
// menuList.push({
// menuText: "驻店管理",
// path: "tabWorkOrder.residentManage",
// recordId: 13,
// icon: "residentManage",
// });
// }
// 飞行督导展示带教管理入口(超管/飞行督导) - 已屏蔽
// if (wx.$hasPermission?.canViewMentorship?.(userInfo) && menuList.every((item) => item.menuText != "带教管理")) {
// menuList.push({
// menuText: "带教管理",
// path: "tabWorkOrder.mentorshipManage",
// icon: "mentorship-manage",
// });
// }
if (isStaff || wx.$hasPermission?.canSelectMultiStoreForStaffDaily?.(userInfo)) {
if (this.merchantDirectSales) {
let { uuid, merchantId, shopMerchantId } = userInfo;
......
......@@ -1759,18 +1759,18 @@ Page({
path: ''
})
}
if (
wx.$hasPermission?.canSelectMultiStoreForStaffDaily?.(userInfo) &&
menu.every(item => item.name != '驻店管理')
) {
menu.push({
name: '驻店管理',
url: 'tabWorkOrder.residentManage',
recordId: 13,
icon: 'residentManage',
noCheckdailyReport: true
})
}
// if (
// wx.$hasPermission?.canSelectMultiStoreForStaffDaily?.(userInfo) &&
// menu.every(item => item.name != '驻店管理')
// ) {
// menu.push({
// name: '驻店管理',
// url: 'tabWorkOrder.residentManage',
// recordId: 13,
// icon: 'residentManage',
// noCheckdailyReport: true
// })
// }
// 超管/飞行督导
if (
wx.$hasPermission?.canViewMentorship?.(userInfo) &&
......
......@@ -226,7 +226,7 @@ Page({
data.customer.merchantName ||
data.customer.shopMerchantName ||
''
const serviceCount = this._calcServiceCount(data.serviceItemsList || [])
const serviceCount = this._calcServiceCount(data.serviceItemsList || [])
if (data.createdDate) {
data.createdDate = new Date(data.createdDate).format('yyyy-MM-dd hh:mm:ss')
}
......@@ -237,7 +237,7 @@ Page({
this.setData({
mainSelected,
deputySelected,
confirmInfo: data || {},
confirmInfo: data || {},
serviceCount
}, () => {
this.updateTechnicianEditable()
......@@ -492,7 +492,7 @@ Page({
// 将修改后的商品数据赋值给confirmInfo
this.setData({
['confirmInfo.serviceItemsList']: editServicesList,
editServiceFlag: false,
editServiceFlag: false,
serviceCount: this._calcServiceCount(editServicesList)
})
},
......@@ -503,8 +503,7 @@ Page({
// 选择服务项目弹窗确定
handleSelectServiceConfirm(e) {
this.setData({
editServicesList: e.detail,
serviceCount: this._calcServiceCount(e.detail)
editServicesList: e.detail,
})
this.handleSelectServiceCancel()
},
......
......@@ -94,8 +94,8 @@
</view>
<view class="tabs">
<view class="tab-item {{ currentTab === 'goods' ? 'active' : '' }}" bindtap="switchTab" data-tab="goods">施工商品({{detailInfo.subOrderList.length}})</view>
<view class="tab-item {{ currentTab === 'service' ? 'active' : '' }}" bindtap="switchTab" data-tab="service">服务项目({{serviceCount}})</view>
<view class="tab-item {{ currentTab === 'goods' ? 'active' : '' }}" bindtap="switchTab" data-tab="goods">施工商品<text style="font-size: 20rpx;">({{detailInfo.subOrderList.length}})</text></view>
<view class="tab-item {{ currentTab === 'service' ? 'active' : '' }}" bindtap="switchTab" data-tab="service">服务项目<text style="font-size: 20rpx;">({{serviceCount}})</text></view>
</view>
<view class="card tab-card">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!