ソースを参照

新增分支

autoSR1012
douzhuo 1年前
コミット
9bbd3c3885
4個のファイルの変更1666行の追加1650行の削除
  1. +1156
    -1320
      pages/center/consumer/index.vue
  2. +302
    -235
      pages/center/records/index.vue
  3. +72
    -5
      pages/mine/details2.vue
  4. +136
    -90
      pages/mine/reception/addreception.vue

+ 1156
- 1320
pages/center/consumer/index.vue
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 302
- 235
pages/center/records/index.vue ファイルの表示

@@ -15,17 +15,17 @@
<!-- 选择器 -->
<view class="boxtittab">
<!-- 排序 -->
<view class="tabbox" @click="soltishow = true" :style="sortFilter=='排序'?'color:#666':'color:#409eff'">
<view class="tabbox" @click="soltishow = true" :style="sortFilter=='排序'?'color:#666':'color:#409eff'">
{{ sortFilter }}
<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
</view>
<!-- 接待时间 -->
<view class="tabbox" @click="timeshow = true" :style="arriveFilter=='接待时间'?'color:#666':'color:#409eff'">
<view class="tabbox" @click="timeshow = true" :style="arriveFilter=='接待时间'?'color:#666':'color:#409eff'">
{{ arriveFilter }}
<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
</view>
<!-- //接待顾问 -->
<view class="tabbox" @click="selectshow = true" :style="counselorName=='接待顾问'?'color:#666':'color:#409eff'">
<view class="tabbox" @click="selectshow = true" :style="counselorName=='接待顾问'?'color:#666':'color:#409eff'">
{{ counselorName }}
<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
</view>
@@ -74,7 +74,7 @@
</view>
<view class="content-sec">
<view class="left">客户:{{item.name || '--'}}</view>
<!-- <view class="right">咨询业务:--</view> -->
<view class="right">{{ item.marketingBusinessName }}</view>
</view>
<view class="content-last">
<view class="cont-item">
@@ -94,130 +94,162 @@
<view class="count" style="color: #2671E2;font-weight:600">{{item.fraction|| 0}}%</view>
<view class="text">销讲执行率</view>
</view>
</view>
</view>
</view>
</view>
<!-- 更多筛选 -->
<u-popup v-model="screenShow" mode="top" height="900">
<view class="screen">
<scroll-view scroll-y="true" style="height: 750rpx;">
<!-- 咨询业务 -->
<!-- <view class="screen-record">
<view class="screen-record-text" @click="zixunArrow=!zixunArrow">
咨询业务<image v-if="zixunArrow" class="arrow" src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
<image v-else class="arrow" src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
</view>
<view class="screen-record-tab" v-if="zixunArrow">
<block v-for="(item,index) in zixunList" :key="index">
<view class="screen-record-item" :class="[item.isShow?'screen-record-chose':'screen-record-nochose']"
@click="choice(item)">
{{item.label}}
</view>
</block>
<!-- 销讲业务 -->
<view class="screen-record">
<view class="screen-record-text" @click="showTemplate=!showTemplate">
销讲业务
<image v-if="showTemplate" class="arrow"
src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
<image v-else class="arrow"
src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
</view>
<view class="screen-record-tab" v-if="showTemplate">
<block v-for="(item,index) in templateList" :key="index">
<view class="screen-record-item"
:class="[item.isShow?'screen-record-chose':'screen-record-nochose']"
@click="choice(item)">
{{item.templateName}}
</view>
</block>
</view>
</view>
</view> -->
<!-- 销讲执行率 -->
<view class="screen-record">
<view class="screen-record-text" @click="xiaojiangArrow=!xiaojiangArrow">
销讲执行率 <image v-if="xiaojiangArrow" class="arrow" src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
<image v-else class="arrow" src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
<!-- 销讲执行率 -->
<view class="screen-record">
<view class="screen-record-text" @click="xiaojiangArrow=!xiaojiangArrow">
销讲执行率
<image v-if="xiaojiangArrow" class="arrow"
src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
<image v-else class="arrow"
src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
</view>
<view class="screen-record-tab" v-if="xiaojiangArrow">
<block v-for="(item,index) in xiaojiangList" :key="index">
<view class="screen-record-item"
:class="[item.isShow?'screen-record-chose':'screen-record-nochose']"
@click="choice(item)">
{{item.label}}
</view>
</block>
</view>
</view>
<view class="screen-record-tab" v-if="xiaojiangArrow">
<block v-for="(item,index) in xiaojiangList" :key="index">
<view class="screen-record-item" :class="[item.isShow?'screen-record-chose':'screen-record-nochose']"
@click="choice(item)">
{{item.label}}
</view>
</block>
<!-- 需求挖掘率 -->
<view class="screen-record">
<view class="screen-record-text" @click="wajueArrow=!wajueArrow">
需求挖掘率
<image v-if="wajueArrow" class="arrow"
src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
<image v-else class="arrow"
src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
</view>
<view class="screen-record-tab" v-if="wajueArrow">
<block v-for="(item,index) in wajueList" :key="index">
<view class="screen-record-item"
:class="[item.isShow?'screen-record-chose':'screen-record-nochose']"
@click="choice(item)">
{{item.label}}
</view>
</block>
</view>
</view>
</view>
<!-- 需求挖掘率 -->
<view class="screen-record">
<view class="screen-record-text" @click="wajueArrow=!wajueArrow">
需求挖掘率 <image v-if="wajueArrow" class="arrow" src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
<image v-else class="arrow" src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
<!-- 接待时长 -->
<view class="screen-record">
<view class="screen-record-text" @click="jiedaiArrow=!jiedaiArrow">
接待时长
<image v-if="jiedaiArrow" class="arrow"
src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
<image v-else class="arrow"
src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
</view>
<view class="screen-record-tab" v-if="jiedaiArrow">
<block v-for="(item,index) in jiedaiList" :key="index">
<view class="screen-record-item"
:class="[item.isShow?'screen-record-chose':'screen-record-nochose']"
@click="choice(item)">
{{item.label}}
</view>
</block>
</view>
</view>
<view class="screen-record-tab" v-if="wajueArrow">
<block v-for="(item,index) in wajueList" :key="index">
<view class="screen-record-item" :class="[item.isShow?'screen-record-chose':'screen-record-nochose']"
@click="choice(item)">
{{item.label}}
<!-- 录音标识 -->
<view class="screen-record">
<view class="screen-record-text" @click="luyinArrow=!luyinArrow">
录音标识
<image v-if="luyinArrow" class="arrow"
src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
<image v-else class="arrow"
src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
</view>
<view class="screen-record-tab" v-if="luyinArrow">
<view class="screen-record-item"
:class="[screen.validInvalid===0?'screen-record-chose':'screen-record-nochose']"
@click="screenvisivalidInvalid(0)">
有效接待
</view>
</block>
</view>
</view>
<!-- 接待时长 -->
<view class="screen-record">
<view class="screen-record-text" @click="jiedaiArrow=!jiedaiArrow">
接待时长<image v-if="jiedaiArrow" class="arrow" src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
<image v-else class="arrow" src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
</view>
<view class="screen-record-tab" v-if="jiedaiArrow">
<block v-for="(item,index) in jiedaiList" :key="index">
<view class="screen-record-item" :class="[item.isShow?'screen-record-chose':'screen-record-nochose']"
@click="choice(item)">
{{item.label}}
<view class="screen-record-item"
:class="[screen.validInvalid===1?'screen-record-chose':'screen-record-nochose']"
@click="screenvisivalidInvalid(1)">
无效接待
</view>
<view class="screen-record-item"
:class="[screen.validInvalid===2?'screen-record-chose':'screen-record-nochose']"
@click="screenvisivalidInvalid(2)">
无录音
</view>
<view class="screen-record-item"
:class="[screen.validInvalid===3?'screen-record-chose':'screen-record-nochose']"
@click="screenvisivalidInvalid(3)">
无效(未审核)
</view>
</block>
</view>
</view>
<!-- 录音标识 -->
<view class="screen-record">
<view class="screen-record-text" @click="luyinArrow=!luyinArrow">
录音标识<image v-if="luyinArrow" class="arrow" src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
<image v-else class="arrow" src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
</view>
<view class="screen-record-tab" v-if="luyinArrow">
<view class="screen-record-item" :class="[screen.validInvalid===0?'screen-record-chose':'screen-record-nochose']"
@click="screenvisivalidInvalid(0)">
有效接待
</view>
<view class="screen-record-item" :class="[screen.validInvalid===1?'screen-record-chose':'screen-record-nochose']"
@click="screenvisivalidInvalid(1)">
无效接待
</view>
<view class="screen-record-item" :class="[screen.validInvalid===2?'screen-record-chose':'screen-record-nochose']"
@click="screenvisivalidInvalid(2)">
无录音
</view>
<!-- 标记顾问 -->
<view class="screen-record">
<view class="screen-record-text" @click="markArrow=!markArrow">
标记顾问
<image v-if="markArrow" class="arrow"
src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
<image v-else class="arrow"
src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
</view>
<view class="screen-record-item" :class="[screen.validInvalid===3?'screen-record-chose':'screen-record-nochose']"
@click="screenvisivalidInvalid(3)">
无效(未审核)
<view class="screen-record-tab" v-if="markArrow">
<view class="screen-record-item"
:class="[screen.markAdvisor==1?'screen-record-chose':'screen-record-nochose']"
@click="screenvisitRecord(1)">
标记
</view>
<view class="screen-record-item"
:class="[screen.markAdvisor===0?'screen-record-chose':'screen-record-nochose']"
@click="screenvisitRecord(0)">
未标记
</view>
</view>
</view>
</view>
<!-- 标记顾问 -->
<view class="screen-record">
<view class="screen-record-text" @click="markArrow=!markArrow">
标记顾问<image v-if="markArrow" class="arrow" src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
<image v-else class="arrow" src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
</view>
<view class="screen-record-tab" v-if="markArrow">
<view class="screen-record-item" :class="[screen.markAdvisor==1?'screen-record-chose':'screen-record-nochose']"
@click="screenvisitRecord(1)">
标记
<!-- 到访次数 -->
<view class="screen-record">
<view class="screen-record-text" @click="visitArrow=!visitArrow">
到访次数
<image v-if="visitArrow" class="arrow"
src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
<image v-else class="arrow"
src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
</view>
<view class="screen-record-item" :class="[screen.markAdvisor===0?'screen-record-chose':'screen-record-nochose']"
@click="screenvisitRecord(0)">
未标记
<view class="screen-record-tab" v-if="visitArrow">
<block v-for="(item,index) in visitList" :key="index">
<view class="screen-record-item"
:class="[item.isShow?'screen-record-chose':'screen-record-nochose']"
@click="choice(item)">
{{item.label}}
</view>
</block>
</view>
</view>
</view>
<!-- 到访次数 -->
<view class="screen-record">
<view class="screen-record-text" @click="visitArrow=!visitArrow">
到访次数<image v-if="visitArrow" class="arrow" src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
<image v-else class="arrow" src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
</view>
<view class="screen-record-tab" v-if="visitArrow">
<block v-for="(item,index) in visitList" :key="index">
<view class="screen-record-item" :class="[item.isShow?'screen-record-chose':'screen-record-nochose']"
@click="choice(item)">
{{item.label}}
</view>
</block>
</view>
</view>
</scroll-view>
<view class="screen-foot">
<view class="screen-foot-reset" @click="reset">
@@ -229,13 +261,15 @@
</view>
</view>
</u-popup>


<!-- 选择顾问的选择框 -->
<u-select v-model="selectshow" :list="freeList" @confirm="actionSelectCallback"></u-select>
<!-- //排序 -->
<u-select v-model="soltishow" :list="orderBylist" @confirm="selectCallback2"></u-select>
<!-- 日历-自定义 -->
<u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar>
<!-- 接待时间 -到访时间-->
<!-- 接待时间 -到访时间-->
<u-popup v-model="timeshow" mode="bottom">
<view class="timeview" :style="{ color: activeTotal == 15 ? '#2B6EFF' : '#333333' }"
@click="tabtimetap(15, '接待时间')">
@@ -249,7 +283,7 @@
<view class="timeview" :style="{ color: activeTotal == 2 ? '#2B6EFF' : '#333333' }"
@click="tabtimetap(2, '近7天')">
近7天</view>
<view class="timeview" :style="{ color: activeTotal == 5 ? '#2B6EFF' : '#333333' }"
<view class="timeview" :style="{ color: activeTotal == 5 ? '#2B6EFF' : '#333333' }"
@click="tabtimetap(5, '近15天')">
近15天</view>
<view class="timeview" :style="{ color: activeTotal == 6 ? '#2B6EFF' : '#333333' }"
@@ -325,8 +359,7 @@
value: '10'
}
],
zixunList:[
{
zixunList: [{
label: '一期住宅',
value: 1,
isShow: false,
@@ -342,10 +375,8 @@
label: '商铺',
value: 4,
isShow: false,
}
],
jiedaiList:[
{
}],
jiedaiList: [{
label: '0~15min',
value: 1,
isShow: false,
@@ -365,10 +396,8 @@
label: '91min及以上',
value: 5,
isShow: false,
}
],
wajueList:[
{
}],
wajueList: [{
label: '30%及以下',
value: 1,
isShow: false,
@@ -384,10 +413,8 @@
label: '71%及以上',
value: 4,
isShow: false,
}
],
xiaojiangList:[
{
}],
xiaojiangList: [{
label: '30%及以下',
value: 1,
isShow: false,
@@ -403,8 +430,7 @@
label: '71%及以上',
value: 4,
isShow: false,
}
],
}],
visitList: [{
label: '首次到访',
value: 1,
@@ -422,21 +448,22 @@
value: 4,
isShow: false,
}],
activeTotal:15,
activeTotal: 15,
value: '',
screenShow: false,//更多筛选
selectshow: false,//选择顾问的选择框
totalTimeShow: false,// 日历
screenShow: false, //更多筛选
selectshow: false, //选择顾问的选择框
totalTimeShow: false, // 日历
screen: {
orderBy: '',//排序
orderBy: '', //排序
agentId: '', //顾问id
markAdvisor: '',//标记顾问
visitRecord: [],// 到访次数
markAdvisor: '', //标记顾问
visitRecord: [], // 到访次数
// zixunVal: [],// 咨询业务
wajueVal: [],// 需求挖掘
xiaojiangVal:[],//销讲执行率
jiedaiVal: [],// 接待时长
validInvalid: ''// 录音标识
wajueVal: [], // 需求挖掘
xiaojiangVal: [], //销讲执行率
jiedaiVal: [], // 接待时长
validInvalid: '' ,// 录音标识
marketingBusiness: '', // 选中销讲业务id ,
},
freeList: [], //顾问
recordList: [],
@@ -458,7 +485,11 @@
sortFilter: '排序',
arriveFilter: '接待时间',
counselorName: '接待顾问',
source: ''//从挖掘分析页跳转来的
source: '', //从挖掘分析页跳转来的


templateList: [], // 销讲业务
showTemplate: true, // 展示销讲业务
}
},
onLoad(options) {
@@ -471,23 +502,23 @@
if (options.activeTotal) {
this.activeTotal = Number(options.activeTotal)
}
if (options.markAdvisor) {
this.screen.markAdvisor = Number(options.markAdvisor)
}
if (options.validInvalid) {
this.screen.validInvalid = Number(options.validInvalid)
}
if (options.keywordsId) {
this.keywordsId = Number(options.keywordsId)
}
if (options.staTime) {
this.staTime = options.staTime;
this.endTime = options.endtime;
}
if(this.keywordsName){
if (this.keywordsName) {

}
},
@@ -498,7 +529,6 @@
} else {
this.methodsisshow = true;
}

if (this.isnorefresh == 'refresh') {
this.buildingID = uni.getStorageSync('buildingID').id;
this.recordList = [];
@@ -506,6 +536,7 @@
this.isRefresh = false;
this.getRecordsList()
this.getFreeList();
this.getMarketingBusiness()
this.isnorefresh = '';
}
},
@@ -532,6 +563,21 @@
}
},
methods: {

// 获取销讲业务
getMarketingBusiness() {
this.$u.get('/customer/marketingBusiness', {
houseId: this.buildingID,
}).then(res => {
this.templateList = res.map(item => {
return {
...item,
isShow: false,
}
})
})
},

choice(item) {
item.isShow = !item.isShow;
},
@@ -593,10 +639,10 @@
// let items = JSON.parse(res[0].transferContent)
// uni.setStorageSync("searchobj", items); //写入缓存
// }).catch(e => {
// })
// }
const parames = {
pageNum: 1,
pageSize: 100,
@@ -609,7 +655,7 @@
customerId: item.id,
wordFraction: item.wordFraction
}
uni.setStorageSync("searchobj", item1); //写入缓存
uni.setStorageSync("entrance", 1); //写入缓存
this.$u.post("/corpus/findByPage", parames).then(res => {
@@ -648,50 +694,57 @@
this.screen.wajueVal = []
this.screen.xiaojiangVal = []
let dateType = 0;
if ((this.activeTotal == 15)||(this.activeTotal == 4)) {// 选择全部和自定义
if ((this.activeTotal == 15) || (this.activeTotal == 4)) { // 选择全部和自定义
dateType = null;
}else {
} else {
dateType = this.activeTotal;
this.staTime = ''
this.endTime = ''
}
// 到访次数
this.visitList.forEach(i => {
if(i.isShow) this.screen.visitRecord.push(i.value)
if (i.isShow) this.screen.visitRecord.push(i.value)
})
// 接待时长
this.jiedaiList.forEach(i => {
if(i.isShow) this.screen.jiedaiVal.push(i.value)
if (i.isShow) this.screen.jiedaiVal.push(i.value)
})
// 需求挖掘
this.wajueList.forEach(i => {
if(i.isShow) this.screen.wajueVal.push(i.value)
if (i.isShow) this.screen.wajueVal.push(i.value)
})
// 销讲执行率
this.xiaojiangList.forEach(i => {
if(i.isShow) this.screen.xiaojiangVal.push(i.value)
if (i.isShow) this.screen.xiaojiangVal.push(i.value)
})
var parames = {
pageNum: this.nextPage,
pageSize: 10,
query: {
projectId: this.buildingID,
keywordsId: this.keywordsId,
staTime: this.staTime,// 接待时间
endTime: this.endTime,// 接待时间
agentId: this.screen.agentId, // 顾问ID
visitRecordNum: this.screen.visitRecord.length?this.screen.visitRecord.join(','):'',//到访次数
wordFractions: this.screen.wajueVal.length?this.screen.wajueVal.join(','):'',//挖掘
duractionNums: this.screen.jiedaiVal.length?this.screen.jiedaiVal.join(','):'',//接待时长
fractions: this.screen.xiaojiangVal.length?this.screen.xiaojiangVal.join(','):'',//销讲
markAdvisor: this.screen.markAdvisor,//标记顾问
dateType: dateType,//时间类型
orderBy: this.screen.orderBy==''?'':this.screen.orderBy,//排序
validInvalid: this.screen.validInvalid,//录音标识
clientStage: this.screen.clientStage,// 客户阶段
recording: this.screen.validInvalid == 2 ? 0 : null // 录音
}
pageNum: this.nextPage,
pageSize: 10,
query: {
projectId: this.buildingID,
keywordsId: this.keywordsId,
staTime: this.staTime, // 接待时间
endTime: this.endTime, // 接待时间
agentId: this.screen.agentId, // 顾问ID
visitRecordNum: this.screen.visitRecord.length ? this.screen.visitRecord.join(',') : '', //到访次数
wordFractions: this.screen.wajueVal.length ? this.screen.wajueVal.join(',') : '', //挖掘
duractionNums: this.screen.jiedaiVal.length ? this.screen.jiedaiVal.join(',') : '', //接待时长
fractions: this.screen.xiaojiangVal.length ? this.screen.xiaojiangVal.join(',') : '', //销讲
markAdvisor: this.screen.markAdvisor, //标记顾问
dateType: dateType, //时间类型
orderBy: this.screen.orderBy == '' ? '' : this.screen.orderBy, //排序
validInvalid: this.screen.validInvalid, //录音标识
clientStage: this.screen.clientStage, // 客户阶段
recording: this.screen.validInvalid == 2 ? 0 : null // 录音
}
};
let ars = []
this.templateList.forEach(item => {
if (item.isShow) {
ars.push(item.id)
}
})
parames.query.marketingBusiness = ars.join(',')
if (this.screen.agentId) {
parames.query.agentId = this.screen.agentId
}
@@ -714,27 +767,27 @@
},
//获取顾问列表
getFreeList() {
if(this.userInfo.dataCode==6){// 顾问角色登录时只显示自己
this.freeList = [{
label: this.userInfo.name,
value: this.userInfo.accountId
}]
}else{
this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId", {
houseId: this.buildingID
}).then(res => {
this.freeList = res;
this.freeList.forEach(item => {
item.label = item.name;
item.value = item.accountId
})
this.freeList.unshift({
label:'全部',
value: ''
})
if (this.userInfo.dataCode == 6) { // 顾问角色登录时只显示自己
this.freeList = [{
label: this.userInfo.name,
value: this.userInfo.accountId
}]
} else {
this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId", {
houseId: this.buildingID
}).then(res => {
this.freeList = res;
this.freeList.forEach(item => {
item.label = item.name;
item.value = item.accountId
})
}
this.freeList.unshift({
label: '全部',
value: ''
})

})
}
},
actionSelectCallback(e) {
this.screen.agentId = e[0].value;
@@ -745,8 +798,8 @@
this.getRecordsList();
},
reset() {
this.screen.agentId =''
this.screen.jiedaiVal =''
this.screen.agentId = ''
this.screen.jiedaiVal = ''
this.screen.validInvalid = ''
this.screen.markAdvisor = ''
this.screen.orderBy = '';
@@ -959,8 +1012,9 @@
text-align: center;
margin: 0 10rpx;
}
.normal-status{
color:red;

.normal-status {
color: red;
}
}

@@ -979,10 +1033,12 @@
}
}
}

.content-sec {
display: flex;
justify-content: space-between;
margin: 24rpx 0;

.left {
flex: 1;
height: 40rpx;
@@ -992,7 +1048,8 @@
color: #333333;
line-height: 40rpx;
}
.right{

.right {
flex: 1;
height: 40rpx;
font-size: 28rpx;
@@ -1003,6 +1060,7 @@
text-align: right;
}
}

.content-time {
font-size: 28rpx;
font-family: PingFangSC-Regular, PingFang SC;
@@ -1012,15 +1070,18 @@
padding: 20rpx 0 24rpx;
border-bottom: 1px solid #E0E0E0;
}

.content-last {
display: flex;
justify-content: space-around;
.cont-item{

.cont-item {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
.count{

.count {
height: 42rpx;
font-size: 30rpx;
font-family: PingFangSC-Regular, PingFang SC;
@@ -1029,7 +1090,8 @@
line-height: 42rpx;
margin-bottom: 16rpx;
}
.text{

.text {
height: 32rpx;
font-size: 24rpx;
font-family: PingFangSC-Regular, PingFang SC;
@@ -1094,7 +1156,8 @@
display: flex;
align-items: center;
justify-content: space-between;
.arrow{

.arrow {
width: 30rpx;
height: 14rpx;
}
@@ -1105,7 +1168,8 @@
padding-bottom: 10rpx;
display: flex;
flex-wrap: wrap;
.screen-record-item{

.screen-record-item {
min-width: 150rpx;
padding: 0 14rpx;
height: 60rpx;
@@ -1113,14 +1177,17 @@
text-align: center;
line-height: 60rpx;
margin: 0 22rpx 22rpx 0;
&:nth-child(4n){

&:nth-child(4n) {
margin-right: 0;
}
}

.screen-record-chose {
background: #F1F6FD;
color: #2671E2;
}

.screen-record-nochose {
background: #F7F8FA;
color: #333;
@@ -1130,39 +1197,39 @@
}

.screen-foot {
width: 100%;
height: 78rpx;
display: flex;
margin: 30rpx 30rpx 0;

.screen-foot-reset {
width: 176rpx;
width: 100%;
height: 78rpx;
line-height: 78rpx;
background: #FFFFFF;
border-radius: 8rpx;
border: 1px solid #2671E2;
margin-right: 30rpx;
font-size: 30rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #2671E2;
text-align: center;
}
display: flex;
margin: 30rpx 30rpx 0;

.screen-foot-sure {
width: 484rpx;
height: 78rpx;
line-height: 78rpx;
background: #2671E2;
border: 1px solid #2671E2;
border-radius: 8rpx;
font-size: 30rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #FFFFFF;
text-align: center;
}
}
.screen-foot-reset {
width: 176rpx;
height: 78rpx;
line-height: 78rpx;
background: #FFFFFF;
border-radius: 8rpx;
border: 1px solid #2671E2;
margin-right: 30rpx;
font-size: 30rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #2671E2;
text-align: center;
}

.screen-foot-sure {
width: 484rpx;
height: 78rpx;
line-height: 78rpx;
background: #2671E2;
border: 1px solid #2671E2;
border-radius: 8rpx;
font-size: 30rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #FFFFFF;
text-align: center;
}
}
}
</style>

+ 72
- 5
pages/mine/details2.vue ファイルの表示

@@ -122,6 +122,13 @@
<view @click="Receivedetailsabouttab('Receivedetailsabout')">更多</view>

<view class="allimg" :style="[getAllImgStyle]" v-if="Thetapeidisshow">
<template
v-if="checkAuthority('更换销讲业务')">
<view @click="showTemplate = !showTemplate; Thetapeidisshow=false" class="allimg-item"
style="line-height:70rpx;">
更换销讲业务
</view>
</template>
<template v-if="eqLog!=-1">
<view class="allimg-item" @click="eqLogClick()" style="line-height: 70rpx;">设备日志
</view>
@@ -133,8 +140,10 @@
{{userlistobj.validInvalidName}}
</view>
</template>
<template v-if="(userlistobj.visitRecord == 1 || userlistobj.visitFlag == 1) && checkAuthority('修改到访次数')">
<view @click="showVisit = true;Thetapeidisshow=false" class="allimg-item" style="line-height:70rpx;">
<template
v-if="(userlistobj.visitRecord == 1 || userlistobj.visitFlag == 1) && checkAuthority('修改到访次数')">
<view @click="showVisit = true;Thetapeidisshow=false" class="allimg-item"
style="line-height:70rpx;">
到访次数
</view>
</template>
@@ -222,6 +231,12 @@
<view style="width: 25%;color: #666666;font-size: 26rpx;">接待顾问</view>
<view style="width: 75%;color: #333333;font-size: 26rpx;">{{userlistobj.agentName}}</view>
</view>
<view
style="width: 96%;height: 26rpx;display: flex;margin: 0 auto; margin-top: 40rpx;align-items: center;">
<view style="width: 25%;color: #666666;font-size: 26rpx;">销讲业务</view>
<view style="width: 75%;color: #333333;font-size: 26rpx;">{{userlistobj.marketingBusinessName}}
</view>
</view>
<view
style="width: 96%;height: 26rpx;display: flex;margin: 0 auto; margin-top: 40rpx;align-items: center;">
<view style="width: 25%;color: #666666;font-size: 26rpx;">意向项目</view>
@@ -587,6 +602,11 @@

</view>
</u-popup>
<!-- 销讲业务 -->
<u-select :mask-close-able="false" label-name="templateName" value-name="id" v-model="showTemplate"
mode="single-column" :list="templateList" @cancel="templateCancel" @confirm="templateConfirm"></u-select>

</view>

@@ -720,6 +740,12 @@
projectId: uni.getStorageSync('buildingID').id, // 当前项目id
visitRecordNum: 1, // 默认到访次数
},
templateList: [], // 销讲业务
showTemplate: false, // 展示选择销讲业务弹窗
templateName: '', // 销讲业务类型文字
};
},
computed: {
@@ -735,12 +761,17 @@
if (this.Menulistisshow) {
position += 70
}
if (this.checkAuthority('更换销讲业务')) {
position += 70
}

if (this.eqLog != -1) {
position += 70
}

if ((this.userlistobj.visitRecord == 1 || this.userlistobj.visitFlag == 1) && this.checkAuthority('修改到访次数')) {
if ((this.userlistobj.visitRecord == 1 || this.userlistobj.visitFlag == 1) && this.checkAuthority(
'修改到访次数')) {
position += 70
}

@@ -814,6 +845,7 @@
this.infos = this.itemobj;
}!this.isPageHide && this.init(this.infos);
this.gituserlist()
this.getMarketingBusiness()

},

@@ -831,6 +863,41 @@
},

methods: {

// 获取销讲业务
getMarketingBusiness() {
this.$u.get('/customer/marketingBusiness', {
houseId: this.buildingID,
}).then(res => {
this.templateList = res
})
},
// 销讲业务方法
templateCancel() {
this.showTemplate = false;
},
// 确认选择销讲业务
templateConfirm(e) {
this.showTemplate = false;
this.$u.post('/customer/updateMarketingBusiness', {
marketingBusiness: e[0].value,
id: this.userlistobj.id
}).then(res => {
uni.showToast({
title: '操作成功',
icon: 'none',
duration: 2000
})
}).catch(e => {
uni.showToast({
title: e.data.message,
icon: 'none',
duration: 2000
})
})
},

// 加减
reduce() {
if (this.visitParams.visitRecordNum == 1) {
@@ -846,13 +913,13 @@
add() {
this.visitParams.visitRecordNum++
},
// 取消
cancelVisitRecord() {
this.visitParams.visitRecordNum = 1
this.showVisit = false
},
// 确定
changeVisitRecord() {
this.$u.post('/customer/updateVisitRecord', this.visitParams).then(res => {


+ 136
- 90
pages/mine/reception/addreception.vue ファイルの表示

@@ -1,72 +1,88 @@
<template>
<view class="cented-box">
<view class="Pinspeak">客户信息</view>
<view class="chented">

<view class="title">
<view class="titletext">客户姓名</view>
<view class="titletext2">
<input class="titletext-input" style="color: #333333;" v-model="parames.name"
placeholder-class="titletext-input" placeholder-style="color:#B2B2B2;" type="text"
placeholder="请输入客户姓名(必填)" />
<view class="cented-boxs">

<view class="Pinspeak">客户信息</view>
<view class="chented">

<view class="title">
<view class="titletext">客户姓名</view>
<view class="titletext2">
<input class="titletext-input" style="color: #333333;" v-model="parames.name"
placeholder-class="titletext-input" placeholder-style="color:#B2B2B2;" type="text"
placeholder="请输入客户姓名(必填)" />
</view>
</view>
</view>
<view class="title">
<view class="titletext">客户性别</view>
<view class="titletext2 displayclick" style="display: flex;align-items: center;padding-left: 10rpx;">
<view class="sexRadio" @click="changeSex(1)" :class="{active:parames.sex == 1}">男士</view>
<view class="sexRadio" @click="changeSex(2)" :class="{active:parames.sex == 2}">女士</view>
<view class="title">
<view class="titletext">客户性别</view>
<view class="titletext2 displayclick"
style="display: flex;align-items: center;padding-left: 10rpx;">
<view class="sexRadio" @click="changeSex(1)" :class="{active:parames.sex == 1}">男士</view>
<view class="sexRadio" @click="changeSex(2)" :class="{active:parames.sex == 2}">女士</view>
</view>
</view>
</view>

<view class="title">
<view class="titletext">联系电话</view>
<view class="titletext2">
<input class="titletext-input" style="color: #333333;" v-model="parames.phone"
placeholder-class="titletext-input" placeholder-style="color:#B2B2B2;" type="number"
placeholder="请输入联系电话" />
<view class="title">
<view class="titletext">联系电话</view>
<view class="titletext2">
<input class="titletext-input" style="color: #333333;" v-model="parames.phone"
placeholder-class="titletext-input" placeholder-style="color:#B2B2B2;" type="number"
placeholder="请输入联系电话" />
</view>
</view>
</view>

<view class="title">
<view class="titletext">接待人数</view>
<view class="titletext2" style="display: flex;align-items: center;justify-content: space-around;">
<view class="num" v-for="i in 6" :key="i" :class="{active:parames.howMany == i+1}"
@click="changeHowMany(i+1)">
{{i + 1}}
<view class="title">
<view class="titletext">接待人数</view>
<view class="titletext2" style="display: flex;align-items: center;justify-content: space-around;">
<view class="num" v-for="i in 6" :key="i" :class="{active:parames.howMany == i+1}"
@click="changeHowMany(i+1)">
{{i + 1}}
</view>
</view>
</view>
</view>

<view class="title" style="border: none;" @click="Buildingselection()">
<view class="titletext">客户来源</view>
<view class="titletext2"
style="font-size: 30rpx;font-weight: 400;color: #B2B2B2;line-height: 90rpx;padding-left: 10rpx;">
<text v-if="showSourceName" style="color: #333333;">{{showSourceName}}</text>
<text v-else>请选择客户来源</text>
<view class="title" @click="Buildingselection()">
<view class="titletext">客户来源</view>
<view class="titletext2"
style="font-size: 30rpx;font-weight: 400;color: #B2B2B2;line-height: 90rpx;padding-left: 10rpx;">
<text v-if="showSourceName" style="color: #333333;">{{showSourceName}}</text>
<text v-else>请选择客户来源</text>
</view>
<view class="titleimg">
<image class="titleimg1" src="../../../static/images/arrow.png" mode=""></image>
</view>
</view>
<view class="titleimg">
<image class="titleimg1" src="../../../static/images/arrow.png" mode=""></image>

<view class="title" style="border: none;" @click="showTemplateSelect()">
<view class="titletext">销讲业务</view>
<view class="titletext2"
style="font-size: 30rpx;font-weight: 400;color: #B2B2B2;line-height: 90rpx;padding-left: 10rpx;">
<text v-if="templateName" style="color: #333333;">{{templateName}}</text>
<text v-else>请选择销讲业务</text>
</view>
<view class="titleimg">
<image class="titleimg1" src="../../../static/images/arrow.png" mode=""></image>
</view>
</view>
</view>

</view>
</view>

<view class="Pinspeak">顾问</view>
<view class="chented" @click="clickShowhid()">
<view class="title" style="border: none;">
<view class="titletext">接待顾问</view>
<view class="titletext2"
style="font-size: 30rpx;font-weight: 400;color: #B2B2B2;line-height: 90rpx;padding-left: 10rpx;">
<text v-if="text" style="color: #333333;">{{text}}</text>
<text v-else>请选择接待顾问</text>
</view>
<view class="titleimg">
<image class="titleimg1" src="../../../static/images/arrow.png" mode=""></image>
<view class="Pinspeak">顾问</view>
<view class="chented" @click="clickShowhid()">
<view class="title" style="border: none;">
<view class="titletext">接待顾问</view>
<view class="titletext2"
style="font-size: 30rpx;font-weight: 400;color: #B2B2B2;line-height: 90rpx;padding-left: 10rpx;">
<text v-if="text" style="color: #333333;">{{text}}</text>
<text v-else>请选择接待顾问</text>
</view>
<view class="titleimg">
<image class="titleimg1" src="../../../static/images/arrow.png" mode=""></image>
</view>
</view>
</view>
</view>
<!-- 提交按钮 -->
<view class="clive" @click.stop="$noMultipleClicks(save)"
:style="{background:(isBand==false?'#2671E2':'#949494')}">确定</view>
@@ -75,6 +91,10 @@
<u-select :mask-close-able="false" label-name="sourceName" value-name="id" v-model="Showhiddenunits"
mode="single-column" :list="list" @cancel="cancel" @confirm="confirm"></u-select>

<!-- 销讲业务 -->
<u-select :mask-close-able="false" label-name="templateName" value-name="id" v-model="showTemplate"
mode="single-column" :list="templateList" @cancel="templateCancel" @confirm="templateConfirm"></u-select>


<!-- 代接代提示窗 -->
<u-modal v-model="show" :mask-close-able="true" :title="'代接待提醒'" :confirm-text="confirmtext"
@@ -92,10 +112,7 @@
return {
noClick: true,
Showhiddenunits: false,
list: [
// {label: '自然到访',value:'自然到访'},
// {label: '渠道推荐',value:'渠道推荐'},
],
list: [], // 客户来源
parames: {
name: '',
// 性别1男 2女
@@ -106,7 +123,8 @@
howMany: 1,
agentId: null,
projectId: '',
replaceReception: 0
replaceReception: 0,
marketingBusiness: '', // 销讲业务默认为第一个
},
showSourceName: '', // 展示文字
shifoinfo: 0, // 高级权限 项目是否能指派顾问
@@ -123,7 +141,11 @@
fdFlag: null,
isPass: false, // 当前顾问是否正在接待
fromBack: false, // 从选择顾问页面跳回
templateList: [], // 销讲业务
showTemplate: false, // 展示选择销讲业务弹窗
templateName: '', // 销讲业务类型文字
};
},

@@ -153,8 +175,21 @@
this.init()
this.getFreeList();
this.getFromSource();
this.getMarketingBusiness();
},
methods: {
// 获取销讲业务
getMarketingBusiness() {
this.$u.get('/customer/marketingBusiness', {
houseId: this.parames.projectId,
}).then(res => {
this.templateList = res
if (res && res.length > 0) {
this.parames.marketingBusiness = res[0].id
this.templateName = res[0].templateName
}
})
},

// 获取客户来源
getFromSource() {
@@ -357,6 +392,10 @@
Buildingselection() {
this.Showhiddenunits = true;
},
showTemplateSelect() {
this.showTemplate = true;
},
cancel() {
this.Showhiddenunits = false;
},
@@ -366,6 +405,17 @@
this.parames.sourceId = e[0].value;
this.Showhiddenunits = false;
},
// 销讲业务方法
templateCancel() {
this.showTemplate = false;
},
templateConfirm(e) {
this.showTemplate = false;
this.templateName = e[0].label;
this.parames.marketingBusiness = e[0].value;
},
init() {
uni.request({
url: config.service.getSelfAssignedByHouseId + "?houseId=" + this.parames.projectId,
@@ -383,25 +433,26 @@
},
//获取顾问列表
getFreeList() {
this.$u.get("/zkAgentPool/freeList?itemId=" + this.parames.projectId+"&deptId="+''+'&name='+'').then(res => {
this.freeList = res;
this.freeList.forEach(item => {
if (item.onLine == 0) {
item.label = item.name + "(离线)";
} else if (item.onLine == 1) {
item.label = item.name + "(在线)";
} else {
item.label = item.name + "(无设备)";
}
item.value = item.agentId
// 从选择顾问页面跳回时需阻断用当前登录人的顾问id选中自身
if (!this.fromBack) {
if (this.userInfo.accountId == item.agentId) {
this.text = item.label
this.parames.agentId = item.agentId;
this.$u.get("/zkAgentPool/freeList?itemId=" + this.parames.projectId + "&deptId=" + '' + '&name=' + '')
.then(res => {
this.freeList = res;
this.freeList.forEach(item => {
if (item.onLine == 0) {
item.label = item.name + "(离线)";
} else if (item.onLine == 1) {
item.label = item.name + "(在线)";
} else {
item.label = item.name + "(无设备)";
}
}
})
item.value = item.agentId
// 从选择顾问页面跳回时需阻断用当前登录人的顾问id选中自身
if (!this.fromBack) {
if (this.userInfo.accountId == item.agentId) {
this.text = item.label
this.parames.agentId = item.agentId;
}
}
})
})
},
}
@@ -446,7 +497,13 @@
.cented-box {
background: #F8F8F8;
width: 100%;
height: 100vh;
min-height: 100vh;
display: flex;
flex-direction: column;
.cented-boxs {
flex-grow: 1;
}
}

.Pinspeak {
@@ -514,6 +571,9 @@
}

.clive {
flex-shrink: 0;
position: sticky;
bottom: 32rpx;
width: 690rpx;
height: 88rpx;
background: #2671E2;
@@ -522,20 +582,6 @@
color: #FFFFFF;
border-radius: 8rpx;
margin: 0 auto;
margin-top: 300rpx;
font-size: 32rpx;
}

.clive2 {
width: 690rpx;
height: 88rpx;
background: #999;
text-align: center;
line-height: 88rpx;
color: #666;
border-radius: 8rpx;
margin: 0 auto;
margin-top: 300rpx;
font-size: 32rpx;
}
</style>

読み込み中…
キャンセル
保存