Commit caeca750 by zhangxw

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

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