Commit 0ad36539 by 前端

Merge branch 'v1.0.5' of http://192.168.3.233:8090/glsx/gl_tape into v1.0.5

2 parents c9c6a82e 7d16c069
...@@ -333,10 +333,10 @@ export default { ...@@ -333,10 +333,10 @@ export default {
this.$refs[e].open() this.$refs[e].open()
}, },
closeAllPopup () { closeAllPopup () {
this.$refs.carBrandListVisible.close() this.$refs.carBrandListVisible?.close()
this.$refs.employeeBoxVisible.close() this.$refs.employeeBoxVisible?.close()
this.$refs.couponBoxVisible.close() this.$refs.couponBoxVisible?.close()
this.$refs.qrbox.close() this.$refs.qrbox?.close()
this.resetFocusIndex() this.resetFocusIndex()
this.closeQr() this.closeQr()
}, },
......
...@@ -174,11 +174,12 @@ export default { ...@@ -174,11 +174,12 @@ export default {
const { dateList } = this, const { dateList } = this,
{ startTime, endTime } = dateList[index], { startTime, endTime } = dateList[index],
userInfo = uni.$storage.get("userInfo"), userInfo = uni.$storage.get("userInfo"),
{ shopMerchantId } = userInfo, { shopMerchantId, sceneType } = userInfo,
data = await uni.$api.commonApi.getReceptionStatistics({ data = await uni.$api.commonApi.getReceptionStatistics({
merchantId: shopMerchantId, merchantId: shopMerchantId,
startTime, startTime,
endTime endTime,
bussinessType: sceneType == 0 ? 1 : 2, // sceneType 0延保 1精品。 bussinessType 1.延保 2.轻改
}) })
if (data.avgTime) { if (data.avgTime) {
const { minutes, seconds } = this.formatTime(data.avgTime) const { minutes, seconds } = this.formatTime(data.avgTime)
...@@ -197,13 +198,14 @@ export default { ...@@ -197,13 +198,14 @@ export default {
const { dateList, dateIndex, pageNum, pageSize } = this, const { dateList, dateIndex, pageNum, pageSize } = this,
{ startTime, endTime } = dateList[dateIndex], { startTime, endTime } = dateList[dateIndex],
userInfo = uni.$storage.get("userInfo"), userInfo = uni.$storage.get("userInfo"),
{ shopMerchantId } = userInfo, { shopMerchantId, sceneType } = userInfo,
{ list, total } = await uni.$api.commonApi.getReceptionList({ { list, total } = await uni.$api.commonApi.getReceptionList({
merchantId: shopMerchantId, merchantId: shopMerchantId,
pageNum, pageNum,
pageSize, pageSize,
startTime, startTime,
endTime endTime,
bussinessType: sceneType == 0 ? 1 : 2, // sceneType 0延保 1精品。 bussinessType 1.延保 2.轻改
}) })
uni.hideLoading() uni.hideLoading()
list?.length && list.map(e => { list?.length && list.map(e => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!