Commit 8b1c3550 by 前端

Merge branch 'SAAS+V5.5.2' into 'master'

上线合并

See merge request !57
2 parents 1c2f6af7 36f8c454
...@@ -516,10 +516,11 @@ export default { ...@@ -516,10 +516,11 @@ export default {
this.getDailyReportCarBrand() this.getDailyReportCarBrand()
}, },
async getDailyReportCarBrand () { async getDailyReportCarBrand () {
const { HMCarBandId } = await uni.$api.systemApi.getMockData(true) const { HMCarBandId, moreTemplatingIds } = await uni.$api.systemApi.getMockData(true)
let isHmStore = false, let { userInfo } = this,
{ userInfo } = this, { shopMerchantId } = userInfo,
{ shopMerchantId } = userInfo hmPresent = false,
containsShangJie = false
const data = await uni.$api.boutiqueApi.getDailyReportCarBrand({ const data = await uni.$api.boutiqueApi.getDailyReportCarBrand({
merchantId: shopMerchantId, merchantId: shopMerchantId,
sceneType: 0 sceneType: 0
...@@ -527,10 +528,11 @@ export default { ...@@ -527,10 +528,11 @@ export default {
data.map(e => { data.map(e => {
let { firstBrandId, firstBrandName, brandName } = e let { firstBrandId, firstBrandName, brandName } = e
e.tabName = firstBrandId == -1 ? firstBrandName : brandName e.tabName = firstBrandId == -1 ? firstBrandName : brandName
if (e.firstBrandId == HMCarBandId) isHmStore = true if (e.firstBrandId == HMCarBandId) hmPresent = true
if (moreTemplatingIds.includes(+e.brandId)) containsShangJie = true
}) })
this.carBandList = data this.carBandList = data
this.isHmStore = isHmStore this.isHmStore = hmPresent && !containsShangJie
this.getStaffDailyReportDetail() this.getStaffDailyReportDetail()
}, },
setMonthDay () { setMonthDay () {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!