Commit 3abff05e by 张立顺

代码合并

2 parents b036890c ea0f6bb5
...@@ -36,11 +36,14 @@ export const getYQInfo = userInfo => { ...@@ -36,11 +36,14 @@ export const getYQInfo = userInfo => {
let subIndex = 0 let subIndex = 0
console.log(!userInfo.isSuper && userInfo.merchantType && userInfo.userType == 2); console.log(!userInfo.isSuper && userInfo.merchantType && userInfo.userType == 2);
console.log(userInfo.merchantId,'userInfo.merchantId');
if (!userInfo.loginRole || userInfo.loginRole ==4 ) { if (!userInfo.loginRole || userInfo.loginRole ==4 ) {
// console.log(userInfo.merchantId,'userInfo.merchantId');
app.globalData.yqdInfo = { app.globalData.yqdInfo = {
subIndex, subIndex,
merchantRange: [{ merchantRange: [{
merchantName: userInfo.merchantName merchantName: userInfo.merchantName,
merchantId: userInfo.merchantId
}] }]
} }
// this.setData({ // this.setData({
...@@ -71,7 +74,8 @@ export const getYQInfo = userInfo => { ...@@ -71,7 +74,8 @@ export const getYQInfo = userInfo => {
arr = [all, ...data] arr = [all, ...data]
} else { } else {
arr = [{ arr = [{
merchantName: userInfo.merchantName merchantName: userInfo.merchantName,
merchantId: userInfo.merchantId
}] }]
} }
app.globalData.yqdInfo = { app.globalData.yqdInfo = {
......
...@@ -149,10 +149,6 @@ Page({ ...@@ -149,10 +149,6 @@ Page({
jump(e) { jump(e) {
let { item, type } = e.currentTarget.dataset let { item, type } = e.currentTarget.dataset
let { userInfo } = this.data let { userInfo } = this.data
// recordId
// console.log(item);
// return
wx.$util.pointRecord(item.recordId)
// 判断是不是门店员工 // 判断是不是门店员工
if (userInfo.merchantType && !userInfo.isSuper && type == 2) { if (userInfo.merchantType && !userInfo.isSuper && type == 2) {
if (item.type == 'scanCode') { if (item.type == 'scanCode') {
...@@ -226,9 +222,12 @@ Page({ ...@@ -226,9 +222,12 @@ Page({
// ['dateObj.beginDateStr']: selectDate + '-01', // ['dateObj.beginDateStr']: selectDate + '-01',
// ['dateObj.endDateStr']: endDate // ['dateObj.endDateStr']: endDate
}) })
let { subIndex, merchantRange } = this.data let {
// subIndex,
merchantRange
} = this.data
this.getOutputValue({ this.getOutputValue({
subIndex, // subIndex,
merchantRange merchantRange
}) })
// console.log(date) // console.log(date)
...@@ -398,8 +397,9 @@ Page({ ...@@ -398,8 +397,9 @@ Page({
}, },
getOutputValue(yqdInfo) { getOutputValue(yqdInfo) {
let { dateObj, userInfo } = this.data let { dateObj, userInfo } = this.data
console.log(yqdInfo, 'yqdInfo')
let { subIndex, merchantRange } = yqdInfo let { subIndex, merchantRange } = yqdInfo
// let { userInfo } = this.data // yqMerchantId 不是全部就必要要带过去
// 1-超管 2-商户管理员 3-区域督导 4-驻店人员 // 1-超管 2-商户管理员 3-区域督导 4-驻店人员
const yqMerchantId = merchantRange[subIndex].merchantId || '' const yqMerchantId = merchantRange[subIndex].merchantId || ''
const loginRole = userInfo.subLoginUser.loginRole const loginRole = userInfo.subLoginUser.loginRole
...@@ -610,8 +610,12 @@ Page({ ...@@ -610,8 +610,12 @@ Page({
}, },
{ {
name: '经营数据', name: '经营数据',
<<<<<<< HEAD
url: 'tabOperating.index', url: 'tabOperating.index',
recordId: 11 recordId: 11
=======
url: 'tabOperating.index'
>>>>>>> dev_v4.22.2
} }
] ]
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!