Commit 7c69d4de by 张立顺

fix bug修复

1 parent fb81bf68
...@@ -276,5 +276,6 @@ module.exports = { ...@@ -276,5 +276,6 @@ module.exports = {
"dj.api.smartcarlife.staff.login.record.save", "dj.api.smartcarlife.staff.login.record.save",
data data
); );
//selectMerchantScene
}, },
}; };
...@@ -103,10 +103,9 @@ App({ ...@@ -103,10 +103,9 @@ App({
// wx.reLaunch({url: '/pages/accountItems/accountItems'}) // wx.reLaunch({url: '/pages/accountItems/accountItems'})
util.setSessionId(data?.sessionId) util.setSessionId(data?.sessionId)
wx.reLaunch({ url: '/pages/loading/loading' }) wx.reLaunch({ url: '/pages/loading/loading' })
// let { uuid } = wx.$util.getUserInfo() // let now = new Date()
let now = new Date() // api.loginRecordSave({ staffUuid: data.noSignInUuid, loginTime: now.format('yyyy-MM-dd hh:mm:ss') })
api.loginRecordSave({ staffUuid: data.noSignInUuid, loginTime: now.format('yyyy-MM-dd hh:mm:ss') }) // return
return
} else { } else {
util.removeStorage() util.removeStorage()
removeSystemStorage() removeSystemStorage()
......
...@@ -278,7 +278,16 @@ Component({ ...@@ -278,7 +278,16 @@ Component({
} else { } else {
wx.$util.showToast(message) wx.$util.showToast(message)
} }
// let { uuid } = wx.$util.getUserInfo()
let now = new Date()
api.loginRecordSave({
staffUuid: userInfo.uuid,
loginTime: now.format('yyyy-MM-dd hh:mm:ss'),
merchantId: item?.merchantId,
merchantName: item?.merchantName
})
}) })
} }
}, },
eventCallback(item, sceneType, isSuper, data) { eventCallback(item, sceneType, isSuper, data) {
......
...@@ -148,7 +148,16 @@ Page({ ...@@ -148,7 +148,16 @@ Page({
orderCode: item.orderCode || '' // 工单号 orderCode: item.orderCode || '' // 工单号
} }
} }
let now = new Date()
let { uuid } = wx.$util.getUserInfo()
api.loginRecordSave({
staffUuid: uuid,
loginTime: now.format('yyyy-MM-dd hh:mm:ss'),
merchantId: shopMerchantId,
merchantName: shopMerchantName
})
wx.$router.reLaunch(constantData?.pageUrl[1], queryParams) wx.$router.reLaunch(constantData?.pageUrl[1], queryParams)
} else { } else {
wx.$util.showToast(message) wx.$util.showToast(message)
} }
......
...@@ -49,13 +49,15 @@ Page({ ...@@ -49,13 +49,15 @@ Page({
} }
}) })
// 是初次登录并进入到选场景的时候,不是是切换园区店进来不用处理 // 是初次登录并进入到选场景的时候,不是是切换园区店进来不用处理
if (!userInfo.isLog) { // if (!userInfo.isLog) {
let now = new Date() let now = new Date()
api.loginRecordSave({ api.loginRecordSave({
staffUuid: userInfo.uuid, loginTime: now.format('yyyy-MM-dd hh:mm:ss'), merchantId: shopMerchantId, staffUuid: userInfo.uuid,
merchantName: shopMerchantName loginTime: now.format('yyyy-MM-dd hh:mm:ss'),
merchantId: userInfo?.shopMerchantId,
merchantName: userInfo?.shopMerchantName,
}) })
} // }
} }
this.setData({ this.setData({
......
...@@ -455,7 +455,8 @@ Page({ ...@@ -455,7 +455,8 @@ Page({
// debugger // debugger
let now = new Date() let now = new Date()
api.loginRecordSave({ api.loginRecordSave({
staffUuid: loginUserObj.uuid, loginTime: now.format('yyyy-MM-dd hh:mm:ss'), merchantId: shopMerchantId, staffUuid: loginUserObj.uuid, loginTime: now.format('yyyy-MM-dd hh:mm:ss'),
merchantId: shopMerchantId,
merchantName: shopMerchantName merchantName: shopMerchantName
}) })
} }
...@@ -477,7 +478,11 @@ Page({ ...@@ -477,7 +478,11 @@ Page({
this.setData({ jumpPageFlag: false }) this.setData({ jumpPageFlag: false })
let { uuid } = wx.$util.getUserInfo() let { uuid } = wx.$util.getUserInfo()
let now = new Date() let now = new Date()
api.loginRecordSave({ staffUuid: uuid, loginTime: now.format('yyyy-MM-dd hh:mm:ss') }) api.loginRecordSave({ staffUuid: uuid,
loginTime: now.format('yyyy-MM-dd hh:mm:ss'),
merchantId,
merchantName
})
return return
} }
// 仅一家4s店 // 仅一家4s店
...@@ -504,16 +509,19 @@ Page({ ...@@ -504,16 +509,19 @@ Page({
this.setData({ jumpPageFlag: false }) this.setData({ jumpPageFlag: false })
let { uuid } = wx.$util.getUserInfo() let { uuid } = wx.$util.getUserInfo()
let now = new Date() let now = new Date()
api.loginRecordSave({ staffUuid: uuid, loginTime: now.format('yyyy-MM-dd hh:mm:ss') }) api.loginRecordSave({ staffUuid: uuid,
loginTime: now.format('yyyy-MM-dd hh:mm:ss'),
merchantId,
merchantName })
} else if (!result?.length) { } else if (!result?.length) {
this.setData({ jumpPageFlag: false }) this.setData({ jumpPageFlag: false })
return wx.$util.showToast('园区店关联的4s店商户账号无效,请联系总部管理员') return wx.$util.showToast('园区店关联的4s店商户账号无效,请联系总部管理员')
} else { } else {
wx.$router.go(pageUrl) wx.$router.go(pageUrl)
this.setData({ jumpPageFlag: false }) this.setData({ jumpPageFlag: false })
let { uuid } = wx.$util.getUserInfo() // let { uuid } = wx.$util.getUserInfo()
let now = new Date() // let now = new Date()
api.loginRecordSave({ staffUuid: uuid, loginTime: now.format('yyyy-MM-dd hh:mm:ss') }) // api.loginRecordSave({ staffUuid: uuid, loginTime: now.format('yyyy-MM-dd hh:mm:ss') })
} }
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!