Commit f669ea8b by 前端

Merge branch 'SAAS+V5.7.0' into 'master'

上线合并

See merge request !11
2 parents 8337d6f5 2d1f8285
/*
* @Author: 'wangzhihui' '1733904062@qq.com'
* @Date: 2026-03-02 11:21:49
* @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2026-03-20 16:53:17
* @FilePath: \wx-notification\src\api\evection.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
const url = '/rop-dj-staff-miniprogram/router' const url = '/rop-dj-staff-miniprogram/router'
const url2='/rop-scrm-clue/router'
export default { export default {
/** 美团消费个人月度总结*/ /** 美团消费个人月度总结*/
getMeituanOrderPerson(data = {}) { getMeituanOrderPerson(data = {}) {
...@@ -27,4 +36,13 @@ export default { ...@@ -27,4 +36,13 @@ export default {
returnAll: true returnAll: true
}) })
}, },
/** 埋点记录批量插入 */
insertBurialPointRecordBatch(data = {}) {
data.method = 'clue.api.burial.point.record.batch.insert'
return window.$SCRM_HTTP({
url:url2,
data,
returnAll: true
})
},
} }
\ No newline at end of file \ No newline at end of file
/*
* @Author: 'wangzhihui' '1733904062@qq.com'
* @Date: 2026-01-26 12:02:37
* @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2026-03-20 16:50:12
* @FilePath: \wx-notification\src\store\modules\app.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import { util } from 'utils' import { util } from 'utils'
import { Http } from 'glsx-common' import { Http } from 'glsx-common'
...@@ -18,7 +26,10 @@ const actions = { ...@@ -18,7 +26,10 @@ const actions = {
commit('SET_PAGE_META', meta) commit('SET_PAGE_META', meta)
}, },
registerHttp ({ }, sessionId = '') { registerHttp ({ }, sessionId = '') {
window.$HTTP = new Http({ ...window.$fetchConfig, alert: Notify, headers: { token: sessionId } }) let { scrmRequest, djRequest } = window.$fetchConfig
window.$SCRM_HTTP = new Http({ ...scrmRequest, alert: Notify })
window.$HTTP = new Http({ ...djRequest, alert: Notify, headers: { token: sessionId } })
// window.$HTTP = new Http({ ...window.$fetchConfig, alert: Notify, headers: { token: sessionId } })
}, },
login ({ dispatch }) { login ({ dispatch }) {
const { corpId, agentId } = util.getLocalStorage('ww_storage_info'), const { corpId, agentId } = util.getLocalStorage('ww_storage_info'),
......
...@@ -135,6 +135,7 @@ ...@@ -135,6 +135,7 @@
</template> </template>
<script> <script>
import { parseTime } from '@/utils/tools.js'
import StatisticCard from './components/StatisticCard.vue' import StatisticCard from './components/StatisticCard.vue'
import SectionTitle from './components/SectionTitle.vue' import SectionTitle from './components/SectionTitle.vue'
import DataItem from './components/DataItem.vue' import DataItem from './components/DataItem.vue'
...@@ -270,6 +271,23 @@ export default { ...@@ -270,6 +271,23 @@ export default {
this.getData() this.getData()
}, },
methods: { methods: {
insertBurialPointRecordBatch() {
let recordList = [
{
loginAccount: this.infoData.staffName,
phoneNumber: this.infoData.staffPhone,
userType: 1,
systemSource: 10,
eventTime: parseTime(new Date().getTime(), '{y}-{m}-{d} {h}:{i}:{s}'),
eventType: 0,
pagePath: 'company',
eventCode: 'meituan'
}
]
evectionApi.insertBurialPointRecordBatch({
recordList
})
},
getData() { getData() {
evectionApi evectionApi
.getMeituanOrderCompany({ .getMeituanOrderCompany({
...@@ -278,6 +296,7 @@ export default { ...@@ -278,6 +296,7 @@ export default {
.then(res => { .then(res => {
console.log(res) console.log(res)
this.infoData = res.data this.infoData = res.data
this.insertBurialPointRecordBatch()
}) })
} }
} }
...@@ -338,13 +357,13 @@ $boxWidth: 351; ...@@ -338,13 +357,13 @@ $boxWidth: 351;
font-size: 18px; font-size: 18px;
font-family: numberBold; font-family: numberBold;
margin: 4px 0; margin: 4px 0;
margin-left:14px; margin-left: 14px;
} }
.data-item-ratio { .data-item-ratio {
display: flex; display: flex;
align-items: center; align-items: center;
font-size: 11px; font-size: 11px;
margin-left:14px; margin-left: 14px;
.data-item-label { .data-item-label {
color: #999999; color: #999999;
} }
......
...@@ -118,6 +118,7 @@ ...@@ -118,6 +118,7 @@
</template> </template>
<script> <script>
import { parseTime } from '@/utils/tools.js'
import StatisticCard from './components/StatisticCard.vue' import StatisticCard from './components/StatisticCard.vue'
import SectionTitle from './components/SectionTitle.vue' import SectionTitle from './components/SectionTitle.vue'
import DataItem from './components/DataItem.vue' import DataItem from './components/DataItem.vue'
...@@ -259,6 +260,23 @@ export default { ...@@ -259,6 +260,23 @@ export default {
this.getData() this.getData()
}, },
methods: { methods: {
insertBurialPointRecordBatch(){
let recordList = [
{
loginAccount:this.infoData.staffName,
phoneNumber:this.infoData.staffPhone,
userType:1,
systemSource:10,
eventTime:parseTime(new Date().getTime(), '{y}-{m}-{d} {h}:{i}:{s}'),
eventType:0,
pagePath:'department',
eventCode:'meituan'
}
]
evectionApi.insertBurialPointRecordBatch({recordList})
},
getData() { getData() {
evectionApi evectionApi
.getMeituanOrderDept({ .getMeituanOrderDept({
...@@ -267,6 +285,7 @@ export default { ...@@ -267,6 +285,7 @@ export default {
.then(res => { .then(res => {
console.log(res) console.log(res)
this.infoData = res.data this.infoData = res.data
this.insertBurialPointRecordBatch()
}) })
} }
} }
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
</template> </template>
</div> </div>
</div> </div>
<div class="standard" v-if="infoData.reportDetail&&infoData.reportDetail.exceedCount != 0"> <div class="standard" v-if="infoData.reportDetail && infoData.reportDetail.exceedCount != 0">
招待标准 招待标准
<span>{{ infoData.reportDetail.dinnerStandardAmount || 0 }}元/人</span> <span>{{ infoData.reportDetail.dinnerStandardAmount || 0 }}元/人</span>
</div> </div>
...@@ -76,6 +76,7 @@ import StatisticCard from './components/StatisticCard.vue' ...@@ -76,6 +76,7 @@ import StatisticCard from './components/StatisticCard.vue'
import SectionTitle from './components/SectionTitle.vue' import SectionTitle from './components/SectionTitle.vue'
import DataItem from './components/DataItem.vue' import DataItem from './components/DataItem.vue'
import evectionApi from '@/api/evection' import evectionApi from '@/api/evection'
import { parseTime } from '@/utils/tools.js'
export default { export default {
components: { StatisticCard, SectionTitle, DataItem }, components: { StatisticCard, SectionTitle, DataItem },
data() { data() {
...@@ -167,7 +168,23 @@ export default { ...@@ -167,7 +168,23 @@ export default {
}) })
.then(res => { .then(res => {
this.infoData = res.data this.infoData = res.data
this.insertBurialPointRecordBatch()
}) })
},
insertBurialPointRecordBatch() {
let recordList = [
{
loginAccount: this.infoData.staffName,
phoneNumber: this.infoData.staffPhone,
userType: 1,
systemSource: 10,
eventTime: parseTime(new Date().getTime(), '{y}-{m}-{d} {h}:{i}:{s}'),
eventType: 0,
pagePath: 'personage',
eventCode: 'meituan'
}
]
evectionApi.insertBurialPointRecordBatch({recordList})
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!