Commit 2a9d19c6 by 匡雅琴

触达接口联调

1 parent a059dafe
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<div class="customer-info-label"> <div class="customer-info-label">
<div class="customer-info-name">企微账号:</div> <div class="customer-info-name">企微账号:</div>
<div v-if="item.wechatnick"> <div v-if="item.wechatnick">
<span class="customer-info-message">{{ item.wechatnick }}</span> <span class="customer-info-message customer-info-wechatnick text-hide">{{ item.wechatnick }}</span>
<span class="customer-info-wechat customer-info-message" v-if="item.type == 1">@微信</span> <span class="customer-info-wechat customer-info-message" v-if="item.type == 1">@微信</span>
<span class="customer-info-qiwechat customer-info-message" v-else>@企微</span> <span class="customer-info-qiwechat customer-info-message" v-else>@企微</span>
</div> </div>
...@@ -72,7 +72,7 @@ export default { ...@@ -72,7 +72,7 @@ export default {
} }
}, },
groupId: { groupId: {
type: Number, type: String,
default: () => { default: () => {
return null return null
} }
...@@ -146,7 +146,7 @@ export default { ...@@ -146,7 +146,7 @@ export default {
followCustomer(val) { followCustomer(val) {
console.log(val) console.log(val)
this.followCustomerData = val this.followCustomerData = val
this.$refs.customerFollowRef.init() this.$refs.customerFollowRef.init(val)
}, },
// 客户详情 // 客户详情
sendMessage(val) { sendMessage(val) {
...@@ -224,10 +224,16 @@ export default { ...@@ -224,10 +224,16 @@ export default {
color: #333333; color: #333333;
line-height: 18px; line-height: 18px;
} }
.customer-info-wechatnick {
display: inline-block;
max-width: 58px;
}
.customer-info-wechat { .customer-info-wechat {
vertical-align: bottom;
color: #3975c6; color: #3975c6;
} }
.customer-info-qiwechat { .customer-info-qiwechat {
vertical-align: bottom;
color: #2cca74; color: #2cca74;
} }
</style> </style>
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div> <div>
<van-action-sheet v-model="show"> <van-action-sheet v-model="show">
<van-sticky class="name-title"> <van-sticky class="name-title">
<div class="name-title-text">{{ info.name }}</div> <div class="name-title-text">xxx</div>
</van-sticky> </van-sticky>
<div class="follow-content"> <div class="follow-content">
<!-- <div class="name-title"> <!-- <div class="name-title">
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
<van-field name="跟进结果" label="跟进结果" class="field-bottom"> <van-field name="跟进结果" label="跟进结果" class="field-bottom">
<template #input> <template #input>
<div class="follow-list"> <div class="follow-list">
<div class="follow-list-item" v-for="item in followResultList" :key="item.dictValue" @click="selectFollow(item)"> <div class="follow-list-tag" v-for="item in followResultList" :key="item.dictValue" @click="selectFollow(item)">
<div :class="item.dictValue == selectFollowForm.followResult ? 'follow-list-item-select' : ''">{{ item.dictLabel }}</div> <div :class="item.dictValue == selectFollowForm.followResult ? 'follow-list-item-select' : 'follow-list-item'">{{ item.dictLabel }}</div>
</div> </div>
</div> </div>
</template> </template>
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
</template> </template>
<script> <script>
import { Toast } from 'vant' import { Toast, Notify } from 'vant'
import { mapState } from 'vuex' import { mapState } from 'vuex'
import { solicitApi } from '@/api' import { solicitApi } from '@/api'
export default { export default {
...@@ -101,10 +101,10 @@ export default { ...@@ -101,10 +101,10 @@ export default {
} }
}, },
props: { props: {
info: { // info: {
type: Object, // type: Object,
default: () => {} // default: () => {}
}, // },
groupId: { groupId: {
type: String, type: String,
default: '' default: ''
...@@ -118,7 +118,8 @@ export default { ...@@ -118,7 +118,8 @@ export default {
}) })
}, },
methods: { methods: {
init() { init(val) {
// this.customerName = val.customerName
console.log(this.followResultList) console.log(this.followResultList)
console.log(this.activityId) console.log(this.activityId)
this.show = true this.show = true
...@@ -191,7 +192,7 @@ export default { ...@@ -191,7 +192,7 @@ export default {
} }
if (this.selectFollowForm.followResult == 1) params.orderTime = this.selectFollowForm.orderTime if (this.selectFollowForm.followResult == 1) params.orderTime = this.selectFollowForm.orderTime
console.log(params) console.log(params)
solicitApi.sendSolicitRecord().then(({ code, data, message }) => { solicitApi.sendSolicitRecord({ params }).then(({ code, data, message }) => {
if (code == 0) { if (code == 0) {
Toast('提交成功') Toast('提交成功')
this.initFormData() this.initFormData()
...@@ -200,7 +201,7 @@ export default { ...@@ -200,7 +201,7 @@ export default {
} }
}) })
}, },
//数据清空 // 数据清空
initFormData() { initFormData() {
this.selectFollowForm = { this.selectFollowForm = {
followResult: '', followResult: '',
...@@ -270,21 +271,23 @@ export default { ...@@ -270,21 +271,23 @@ export default {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: space-around; justify-content: space-around;
&-item { &-tag {
width: 80px; width: 80px;
height: 28px; height: 28px;
margin-bottom: 8px; margin-bottom: 8px;
text-align: center;
line-height: 28px;
}
&-item {
background: #ffffff; background: #ffffff;
border-radius: 14px; border-radius: 14px;
border: 1px solid #dadde0; border: 1px solid #dadde0;
text-align: center;
line-height: 28px;
} }
&-item-select { &-item-select {
color: #3975c6; color: #3975c6;
border-radius: 14px; border-radius: 14px;
background: rgba(57, 117, 198, 0.1); background: rgba(57, 117, 198, 0.1);
border: none; border: 1px solid transparent;
} }
} }
.item { .item {
...@@ -340,12 +343,12 @@ export default { ...@@ -340,12 +343,12 @@ export default {
.van-sheet-gap { .van-sheet-gap {
height: 8px; height: 8px;
background-color: #f7f8fa; background-color: #f7f8fa;
margin-bottom:40px; margin-bottom: 40px;
} }
.btn-group { .btn-group {
position:fixed; position: fixed;
bottom:0; bottom: 0;
width:100%; width: 100%;
} }
.dialog-follow /deep/ .van-field__label { .dialog-follow /deep/ .van-field__label {
width: 60px !important; width: 60px !important;
......
...@@ -212,7 +212,7 @@ export default { ...@@ -212,7 +212,7 @@ export default {
&-text { &-text {
font-size: 16px; font-size: 16px;
font-family: PingFangSC-Medium, PingFang SC; font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500; font-weight: 600;
color: #333333; color: #333333;
line-height: 48px; line-height: 48px;
} }
...@@ -227,6 +227,7 @@ export default { ...@@ -227,6 +227,7 @@ export default {
font-weight: 400; font-weight: 400;
color: #333333; color: #333333;
line-height: 22px; line-height: 22px;
margin-bottom: 12px;
} }
.customer-info-item { .customer-info-item {
display: flex; display: flex;
...@@ -272,8 +273,8 @@ export default { ...@@ -272,8 +273,8 @@ export default {
width: 1px; width: 1px;
background: #e6e8eb; background: #e6e8eb;
position: absolute; position: absolute;
left: 8px; left: 10px;
top: 4px; top: 20px;
} }
.stepBox { .stepBox {
width: 90%; width: 90%;
...@@ -284,7 +285,7 @@ export default { ...@@ -284,7 +285,7 @@ export default {
&-name { &-name {
font-size: 14px; font-size: 14px;
font-family: PingFangSC-Medium, PingFang SC; font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500; font-weight: 600;
color: #333333; color: #333333;
line-height: 22px; line-height: 22px;
} }
......
...@@ -8,10 +8,10 @@ ...@@ -8,10 +8,10 @@
*/ */
// 本地环境配置 // 本地环境配置
module.exports = { module.exports = {
envVersion: "develop", envVersion: 'develop',
title: '嘀加企微管家', title: '嘀加企微管家',
request: { request: {
baseURL: 'http://scrm.test.glsx.com.cn', // 本地测试项目地址, baseURL: 'http://scrm.dev.glsx.com.cn', // 本地测试项目地址,
// 设置超时时间 // 设置超时时间
timeout: 180000, timeout: 180000,
// 携带凭证 // 携带凭证
...@@ -28,14 +28,14 @@ module.exports = { ...@@ -28,14 +28,14 @@ module.exports = {
logout_function: 'reLogin', logout_function: 'reLogin',
code_message_map: {} code_message_map: {}
}, },
secret: "c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b", secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b',
shopmall_appid: "wxe10067a63c1856ac", shopmall_appid: 'wxe10067a63c1856ac',
sign: { sign: {
appKey: "48e5e13229b82c1b4e6e8c96151f0637", appKey: '48e5e13229b82c1b4e6e8c96151f0637',
format: "json", format: 'json',
locale: "zh_CN", locale: 'zh_CN',
source: "scrm-main", source: 'scrm-main',
v: "1.0.0", v: '1.0.0'
}, },
vconsole: true vconsole: true
}
\ No newline at end of file \ No newline at end of file
}
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
import pieChart from '../solicit/components/pie.vue' import pieChart from '../solicit/components/pie.vue'
import barChart from '../solicit/components/bar.vue' import barChart from '../solicit/components/bar.vue'
import { solicitApi } from '@/api' import { solicitApi } from '@/api'
import { mapState } from 'vuex'
export default { export default {
components: { components: {
pieChart, pieChart,
...@@ -101,16 +101,24 @@ export default { ...@@ -101,16 +101,24 @@ export default {
} }
} }
}, },
computed: {
...mapState({
activityId: state => state.solicit.activityId,
staffId: state => state.solicit.staffId
})
},
created() { created() {
this.bulletinList = this.$constants.BULLETINLIST this.bulletinList = this.$constants.BULLETINLIST
// this.getTaskOverviewData() this.getTaskOverviewData()
this.initChartData() // this.initChartData()
}, },
methods: { methods: {
getTaskOverviewData() { getTaskOverviewData() {
let params = { let params = {
activityId: this.activityId, // activityId: this.activityId,
staffId: this.staffId activityId: 1,
// staffId: this.staffId
staffId: 363
} }
this.showLoading() this.showLoading()
solicitApi.taskOverviewData(params).then(({ code, data, message }) => { solicitApi.taskOverviewData(params).then(({ code, data, message }) => {
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<div class="circle" :style="{ background: status.color }"></div> <div class="circle" :style="{ background: status.color }"></div>
{{ status.text }} {{ status.text }}
<span class="font-16 color-3 m-l-8 bold">{{ status.value(deliveredData) }}</span> <span class="font-16 color-3 m-l-8 bold">{{ status.value(deliveredData) }}</span>
<span class="font-10 color39 m-l-4 fw5">({{ (Number(status.value(deliveredData)) / Number(status.proportion(deliveredData))) * 100 }}%)</span> <span class="font-10 color39 m-l-4 fw5">({{ ((Number(status.value(deliveredData)) / Number(status.proportion(deliveredData))) * 100).toFixed(2) }}%)</span>
</div> </div>
</template> </template>
</div> </div>
...@@ -155,7 +155,7 @@ export default { ...@@ -155,7 +155,7 @@ export default {
updatedTime: '05-07 15:30', updatedTime: '05-07 15:30',
phoneNumber: '18818188989', phoneNumber: '18818188989',
type: 2, type: 2,
wechatnick: '横穿', wechatnick: '横公司高峰期穿',
cars: [ cars: [
{ {
customerId: 0, customerId: 0,
...@@ -186,10 +186,10 @@ export default { ...@@ -186,10 +186,10 @@ export default {
} }
], ],
deliveredData: { deliveredData: {
delivered: '2000', // delivered: '2000',
viewed: '1600', // viewed: '1600',
received: '800', // received: '800',
arrived: '400' // arrived: '400'
}, },
reachStatus: [ reachStatus: [
{ {
...@@ -251,6 +251,8 @@ export default { ...@@ -251,6 +251,8 @@ export default {
this.getSendCustomerList(0) this.getSendCustomerList(0)
// 已送达 // 已送达
this.getSendCustomerList(1) this.getSendCustomerList(1)
// 触达统计-客户送达分层
this.deliveredStatistics()
}, },
methods: { methods: {
// tab栏切换 // tab栏切换
...@@ -274,10 +276,13 @@ export default { ...@@ -274,10 +276,13 @@ export default {
let target = ['customerInfo1', 'customerInfo2'] let target = ['customerInfo1', 'customerInfo2']
let { alreadyIndex } = this let { alreadyIndex } = this
let params = { let params = {
customerGroupType: 2, customerGroupType: 1,
id: this.activityId, // id: this.activityId,
staffId: this.staffId, id: 3,
groupId: this.groupId, // staffId: this.staffId,
staffId: 363,
// groupId: this.groupId,
groupId: 527,
// 发送状态 0-未发送 1-已发送 // 发送状态 0-未发送 1-已发送
sendStatus: index sendStatus: index
} }
...@@ -290,24 +295,26 @@ export default { ...@@ -290,24 +295,26 @@ export default {
if (alreadyIndex === 3) params.retFacFlag = 1 if (alreadyIndex === 3) params.retFacFlag = 1
} }
console.log(params) console.log(params)
// solicitApi.getCustomerList().then(({ code, data, message }) => { solicitApi.getCustomerList(params).then(({ code, data, message }) => {
// if (code === 0) { if (code == 0) {
// this.target[index] = data this.target[index] = data
// } else { }
// Notify(message) })
// }
// })
}, },
// 客户送达分层 // 客户送达分层
deliveredStatistics() { deliveredStatistics() {
let params = { let params = {
id: this.activityId, // id: this.activityId,
staffId: this.staffId, id: 3,
groupId: this.groupId // staffId: this.staffId,
staffId: 363,
// groupId: this.groupId
groupId: 527
} }
solicitApi.deliveredStatistics({ params }).then(({ code, data, message }) => { solicitApi.deliveredStatistics(params).then(({ code, data, message }) => {
if (code === 0) { if (code == 0) {
this.deliveredData = data this.deliveredData = data
console.log(this.deliveredData, '------')
} }
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!