Commit 0b3a39a8 by 李伟康

提交埋点

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