Commit 19d50df9 by 匡雅琴

commit

1 parent d961bd1b
......@@ -5,7 +5,7 @@ export default {
followFindAllDictData(data) {
data.method = 'merchants.api.menu.findAllDictData'
return window.$HTTP({
url: 'rop-merchants/router',
url: 'http://rop-merchant.dev.glsx.com.cn/rop-merchants/router',
data,
returnAll: true
})
......
......@@ -13,8 +13,8 @@
<van-field name="跟进结果" label="跟进结果" class="field-bottom">
<template #input>
<div class="follow-list">
<div class="follow-list-item" v-for="item in followResultList" :key="item.id" @click="selectFollow(item)">
<div :class="item.id == selectFollowForm.followResultId ? 'follow-list-item-select' : ''">{{ item.title }}</div>
<div class="follow-list-item" v-for="item in followResultList" :key="item.dictValue" @click="selectFollow(item)">
<div :class="item.id == selectFollowForm.followResultId ? 'follow-list-item-select' : ''">{{ item.dictLabel }}</div>
</div>
</div>
</template>
......@@ -82,44 +82,7 @@ export default {
isShow: false,
show: false,
tabIndex: 0,
followResultList: [
{
id: 1,
title: '预约到店'
},
{
id: 2,
title: '价格高'
},
{
id: 3,
title: '已保养'
},
{
id: 4,
title: '未接听'
},
{
id: 5,
title: '不感兴趣'
},
{
id: 6,
title: '空号'
},
{
id: 7,
title: '距离远'
},
{
id: 8,
title: '非本人'
},
{
id: 9,
title: '其他'
}
],
followResultList: [],
datePickList: [
{
index: 0,
......@@ -164,12 +127,13 @@ export default {
}
solicitApi.followFindAllDictData(params).then(res => {
console.log(res)
this.followResultList = res.data
})
},
// 选择跟进结果
selectFollow(val) {
console.log(val)
this.selectFollowForm.followResultId = val.id
this.selectFollowForm.followResultId = val.dictValue
},
// 获取跟进备注
getTips(e) {
......
<template>
<div>
<van-tabs v-model="tabIndex" sticky>
<van-tabs v-model="tabIndex" sticky @change="tabChange">
<van-tab :title="'未送达(' + customerInfo1.length + ')'">
<scroll-view @ReachBottom="onReachBottom" ref="scrollView">
<div class="reason">
......@@ -29,7 +29,7 @@
</div>
</div>
<select-bar :index="3" :list="selectBarList"></select-bar>
<customer-card :customerInfo="customerInfo"></customer-card>
<customer-card :customerInfo="customerInfo2"></customer-card>
</van-tab>
</van-tabs>
</div>
......@@ -57,6 +57,10 @@ export default {
pagesize: 10,
pageNum: 1
},
// 未送达客户数量
unSendCount: null,
// 送达客户数量
sendCount: null,
// 未送达客户列表
customerInfo1: [
{
......@@ -202,11 +206,19 @@ export default {
// this.getSendCustomerList()
},
methods: {
// tab栏切换
tabChange(e) {
console.log(e)
this.tabIndex = e
},
// 获取未送达客户信息
getUnSendCustomerList() {
var params = { ...this.unSendPageParam }
// followFlag-跟进状态:0待跟进、1已跟进
params.followFlag = 0
// params.groupId =
// params.id =
// params.staffId =
console.log(params)
solicitApi.getCustomerList().then(res => {
console.log(res)
......@@ -217,6 +229,9 @@ export default {
var params = { ...this.sendPageParam }
// followFlag-跟进状态:0待跟进、1已跟进
params.followFlag = 1
// params.groupId =
// params.id =
// params.staffId =
console.log(params)
solicitApi.getCustomerList().then(res => {
console.log(res)
......@@ -227,6 +242,13 @@ export default {
console.log('触底')
this.$refs.scrollView.loading = false
this.$refs.scrollView.finished = true
// 未送达页面
if (this.tabIndex == 0) {
this.unSendPageParam.pageNum++
return
}
// 送达页面
this.sendPageParam.pageNum++
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!