Commit 0b3a39a8 by 李伟康

提交埋点

1 parent a8853fcd
...@@ -10,8 +10,14 @@ ...@@ -10,8 +10,14 @@
</view> </view>
<view class="select-box-list select-component flex"> <view class="select-box-list select-component flex">
<template v-if="tabIndex == 0"> <template v-if="tabIndex == 0">
<select-component :selectList="orderTypeList" /> <select-component
<select-component :selectList="receptionTypeList" /> :selectList="orderTypeList"
@chooseType="searchReceptionList($event,'orderFinishFlag')"
/>
<select-component
:selectList="receptionTypeList"
@chooseType="searchReceptionList($event,'reviewFlag')"
/>
</template> </template>
</view> </view>
<template v-if="tabIndex == 1"> <template v-if="tabIndex == 1">
...@@ -131,12 +137,12 @@ export default { ...@@ -131,12 +137,12 @@ export default {
{ text: '未提交', dot: () => this.preRecordFailList.length }, { text: '未提交', dot: () => this.preRecordFailList.length },
]), ]),
orderTypeList: Object.freeze([ orderTypeList: Object.freeze([
{ label: '战败' }, { label: '战败', value: 0 },
{ label: '成交' }, { label: '成交', value: 1 },
]), ]),
receptionTypeList: Object.freeze([ receptionTypeList: Object.freeze([
{ label: '未复盘' }, { label: '未复盘', value: 0 },
{ label: '已复盘' }, { label: '已复盘', value: 1 },
]), ]),
uploadTypeList: Object.freeze([ uploadTypeList: Object.freeze([
{ label: '待上传' }, { label: '待上传' },
...@@ -158,7 +164,9 @@ export default { ...@@ -158,7 +164,9 @@ export default {
flag: false, flag: false,
nothing: false, nothing: false,
pageSize: 10, pageSize: 10,
isPrePage: false isPrePage: false,
reviewFlag: 0,
orderFinishFlag: 0
} }
}, },
mounted () { mounted () {
...@@ -191,6 +199,7 @@ export default { ...@@ -191,6 +199,7 @@ export default {
}, },
jumpDetail (item) { jumpDetail (item) {
if (this.tabIndex == 0) { // 已上传 && 新质检 if (this.tabIndex == 0) { // 已上传 && 新质检
uni.$track.add({ eventCode: item.orderFinishFlag ? 'app_reception_deal' : 'app_reception_defeat' })
const { sceneType } = uni.$storage.get("userInfo"); const { sceneType } = uni.$storage.get("userInfo");
if (sceneType == 1 || item.checkHistoryFlag != 0) return uni.showToast({ if (sceneType == 1 || item.checkHistoryFlag != 0) return uni.showToast({
title: '该接待尚不支持复盘', title: '该接待尚不支持复盘',
...@@ -271,15 +280,15 @@ export default { ...@@ -271,15 +280,15 @@ export default {
uni.showLoading({ uni.showLoading({
mask: true mask: true
}) })
const { tabIndex, pageNum, pageSize } = this, const { tabIndex, pageNum, pageSize, reviewFlag, orderFinishFlag } = this,
userInfo = uni.$storage.get("userInfo"), userInfo = uni.$storage.get("userInfo"),
{ shopMerchantId, sceneType } = 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: '2024-01-01 00:00:00', reviewFlag,
endTime: '2025-07-31 23:59:59', orderFinishFlag,
bussinessType: sceneType == 0 ? 1 : 2, // sceneType 0延保 1精品。 bussinessType 1.延保 2.轻改 bussinessType: sceneType == 0 ? 1 : 2, // sceneType 0延保 1精品。 bussinessType 1.延保 2.轻改
}) })
uni.hideLoading() uni.hideLoading()
...@@ -329,9 +338,7 @@ export default { ...@@ -329,9 +338,7 @@ export default {
}, },
pageonReachBottom () { pageonReachBottom () {
let { pageNum, total, nothing, pageSize } = this let { pageNum, total, nothing, pageSize } = this
if (this.firstIndex == 1) { if (this.tabIndex == 1) return
return
}
if (!nothing) nothing = 'nothing' if (!nothing) nothing = 'nothing'
if (Math.ceil(total / pageSize) > pageNum) { if (Math.ceil(total / pageSize) > pageNum) {
this.pageNum += 1 this.pageNum += 1
...@@ -367,7 +374,13 @@ export default { ...@@ -367,7 +374,13 @@ export default {
await this.recorder.save(val) await this.recorder.save(val)
this.getRecordNum() this.getRecordNum()
await this.getPreRecordFail() await this.getPreRecordFail()
},
searchReceptionList ({ item }, name) {
this[name] = item.value
this.resetData()
this.getReceptionList()
} }
} }
} }
</script> </script>
...@@ -447,7 +460,7 @@ export default { ...@@ -447,7 +460,7 @@ export default {
font-size: toRpx(24); font-size: toRpx(24);
justify-content: center; justify-content: center;
} }
.disabled { .disabled {
background: #f2f2f2; background: #f2f2f2;
color: #999999; color: #999999;
......
...@@ -65,10 +65,11 @@ export default { ...@@ -65,10 +65,11 @@ export default {
}, },
async jump () { async jump () {
let { item, sceneMarketLevelTwoItem } = this, let { item, sceneMarketLevelTwoItem } = this,
params = `id=${item.id}&specialFlag=1` // params = `id=${item.id}&specialFlag=1`
// params = `id=${item.id}&specialFlag=${sceneMarketLevelTwoItem.specialFlag ? 1 : 0}` params = `id=${item.id}&specialFlag=${sceneMarketLevelTwoItem.specialFlag ? 1 : 0}`
// 类型:0-图片;1-视频;2-pdf;3-富文本; 4-Excel; 5-Word // 类型:0-图片;1-视频;2-pdf;3-富文本; 4-Excel; 5-Word
let url = `/pages/common/caseDetail?${params}` let url = `/pages/common/caseDetail?${params}`
uni.$track.add({ eventCode: 'scene_market', businessId: item.id })
if (item.type != 3) { if (item.type != 3) {
uni.showLoading({ uni.showLoading({
mask: true mask: true
......
...@@ -30,6 +30,7 @@ class Track { ...@@ -30,6 +30,7 @@ class Track {
if (data.eventCode) item.eventCode = data.eventCode if (data.eventCode) item.eventCode = data.eventCode
if (data.businessParam) item.businessParam = JSON.stringify(data.businessParam) if (data.businessParam) item.businessParam = JSON.stringify(data.businessParam)
if (data.pagePath) item.pagePath = data.pagePath if (data.pagePath) item.pagePath = data.pagePath
if (data.businessId) item.businessId = data.businessId
trackList.push(item) trackList.push(item)
uni.setStorageSync('TRACK_LIST', trackList) uni.setStorageSync('TRACK_LIST', trackList)
if (trackList.length > 9) this.sendTrackData() if (trackList.length > 9) this.sendTrackData()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!