|
|
@@ -36,6 +36,10 @@ |
|
|
|
<view class="tabbox" :class="{activeColor: tagSign}" @click="huaxiangShow = true"> |
|
|
|
画像标签<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon> |
|
|
|
</view> |
|
|
|
<view class="tabbox" :class="{activeColor: trendTagSign}" @click="trendShow=true"> |
|
|
|
{{ trendShowText }} |
|
|
|
<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 筛选后的数量 --> |
|
|
@@ -65,7 +69,7 @@ |
|
|
|
<view class="test">{{item.name}}</view> |
|
|
|
</view> |
|
|
|
<view class="right"> |
|
|
|
|
|
|
|
|
|
|
|
<view class="clientStageName"> |
|
|
|
{{ item.fraction || 0 }}% |
|
|
|
</view> |
|
|
@@ -359,6 +363,38 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</u-popup> |
|
|
|
|
|
|
|
<!-- 销讲话术 --> |
|
|
|
<u-popup v-model="trendShow" mode="top" height="850"> |
|
|
|
<view class="screen"> |
|
|
|
<scroll-view scroll-y="true" style="height: 700rpx;"> |
|
|
|
<view class="screen-record" v-if="item.children.length" |
|
|
|
v-for="(item,index) in trendAnalysisAllLevelList" :key="index"> |
|
|
|
<view class="screen-record-text" @click="choice(item)"> |
|
|
|
{{item.name}} |
|
|
|
<image v-if="item.isShow" 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="item.isShow"> |
|
|
|
<block v-for="(subitem, ind) in item.children" :key="ind"> |
|
|
|
<view class="screen-record-item" :class="[ |
|
|
|
subitem.isShow ? 'screen-record-chose' : 'screen-record-nochose', |
|
|
|
]" @click="choices(subitem)"> |
|
|
|
{{ subitem.name }} |
|
|
|
</view> |
|
|
|
</block> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</scroll-view> |
|
|
|
<view class="screen-foot"> |
|
|
|
<view class="screen-foot-reset" @click="resetHuaShu"> 重置 </view> |
|
|
|
<view class="screen-foot-sure" @click="screensures"> 确定 </view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</u-popup> |
|
|
|
|
|
|
|
<!-- 加载组件 --> |
|
|
|
<u-loadings v-model="LOADING"></u-loadings> |
|
|
|
</view> |
|
|
@@ -589,15 +625,15 @@ |
|
|
|
isRefresh: false, |
|
|
|
showFilterOption: false, // 筛选 |
|
|
|
tagSign: false, // 画像标签active |
|
|
|
|
|
|
|
trendAnalysisAllLevelList: [], // 销讲执行列表 |
|
|
|
trendShow: false, // 销讲话术 |
|
|
|
trendShowText: '销讲话术', // 销讲话术 |
|
|
|
trendTagSign: false, // 选中内容 |
|
|
|
resultList: [], // result最终结果数组 |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
// computed: { |
|
|
|
// showFilterOption() { |
|
|
|
// return this.sortFilter !== '排序' || this.arriveFilter !== '接待时间' || this.agentIdtext !== '接待顾问' |
|
|
|
// } |
|
|
|
// }, |
|
|
|
|
|
|
|
onLoad(options) { |
|
|
|
this.LOADING = true |
|
|
|
this.userInfo = uni.getStorageSync("weapp_session_userInfo_data") |
|
|
@@ -636,6 +672,7 @@ |
|
|
|
this.getCustomPhase(); |
|
|
|
this.getFromSource(); |
|
|
|
this.getMarketingBusiness(); // 销讲业务 |
|
|
|
this.trendAnalysisAllLevel() |
|
|
|
this.isRefresh = false; |
|
|
|
this.isnorefresh = 'refresh'; |
|
|
|
uni.setStorageSync('updatebuildingID', ''); |
|
|
@@ -657,6 +694,26 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 获取一级销讲词 |
|
|
|
trendAnalysisAllLevel() { |
|
|
|
this.$u.get('customer/trendAnalysisAllLevel', { |
|
|
|
showStatus: 0, |
|
|
|
houseId: this.buildingID, |
|
|
|
}).then(res => { |
|
|
|
if (res) { |
|
|
|
res.forEach(item => { |
|
|
|
item.isShow = true |
|
|
|
if (item.children) { |
|
|
|
item.children.forEach(i => { |
|
|
|
i.isShow = false |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
this.trendAnalysisAllLevelList = res |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 跳转编辑 |
|
|
|
goedit(data) { |
|
|
@@ -808,6 +865,26 @@ |
|
|
|
choice(item) { |
|
|
|
item.isShow = !item.isShow; |
|
|
|
}, |
|
|
|
|
|
|
|
// 销讲 |
|
|
|
choices(item) { |
|
|
|
item.isShow = !item.isShow; |
|
|
|
|
|
|
|
let arr = [] |
|
|
|
this.trendAnalysisAllLevelList.filter(item => { |
|
|
|
if (item.children) { |
|
|
|
let array = item.children.filter(i => i.isShow) |
|
|
|
if (array) { |
|
|
|
arr = [...arr, ...array] |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
if (arr.length > 0) { |
|
|
|
this.trendTagSign = true |
|
|
|
} else { |
|
|
|
this.trendTagSign = false |
|
|
|
} |
|
|
|
}, |
|
|
|
// 客户详情 |
|
|
|
gotoDetail(id) { |
|
|
|
if (this.permissions.commonly1 == true) { |
|
|
@@ -862,7 +939,11 @@ |
|
|
|
this.sourceList.forEach(i => { |
|
|
|
if (i.isShow) this.screen.sourceIds.push(i.value) |
|
|
|
}) |
|
|
|
var parames = { |
|
|
|
// 销讲话术 |
|
|
|
// this.trendAnalysisAllLevelList.forEach(i => { |
|
|
|
// if (i.isShow) this.screen.sourceIds.push(i.value) |
|
|
|
// }) |
|
|
|
const parames = { |
|
|
|
pageNum: this.nextPage, |
|
|
|
pageSize: 10, |
|
|
|
query: { |
|
|
@@ -880,6 +961,7 @@ |
|
|
|
endTime: this.screen.endTime, |
|
|
|
agentId: this.screen.agentId, // 顾问 |
|
|
|
orderBy: this.screen.orderBy == '' ? '' : this.screen.orderBy, // 排序 |
|
|
|
result: this.resultList.join(','), // 销讲话术二级的词 |
|
|
|
}, |
|
|
|
}; |
|
|
|
let ars = [] |
|
|
@@ -1071,6 +1153,20 @@ |
|
|
|
this.recordList = []; |
|
|
|
this.isRefresh = false; |
|
|
|
}, |
|
|
|
// 重置销讲话术 |
|
|
|
resetHuaShu() { |
|
|
|
if (this.trendAnalysisAllLevelList.length) { |
|
|
|
this.trendAnalysisAllLevelList.forEach(item => { |
|
|
|
item.isShow = true; |
|
|
|
if (item.children.length) { |
|
|
|
item.children.forEach(subitem => { |
|
|
|
subitem.isShow = false; |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
//重置画像标签选择 |
|
|
|
resetHuaXiang() { |
|
|
|
if (this.huaxiangList.length) { |
|
|
@@ -1111,17 +1207,47 @@ |
|
|
|
}) |
|
|
|
return a |
|
|
|
}, |
|
|
|
|
|
|
|
//筛选确认 |
|
|
|
screensure() { |
|
|
|
this.showFilterOption = this.chooseMores() |
|
|
|
this.tagSign = this.chooseMore() |
|
|
|
// 重置分页参数 |
|
|
|
resetPageParams() { |
|
|
|
this.nextPage = 1; |
|
|
|
this.recordList = []; |
|
|
|
this.keywordsIds = [] |
|
|
|
this.resultList = []; |
|
|
|
this.screenShow = false; |
|
|
|
this.huaxiangShow = false; |
|
|
|
this.trendShow = false |
|
|
|
this.isRefresh = false; |
|
|
|
}, |
|
|
|
|
|
|
|
//筛选确认 |
|
|
|
screensures() { |
|
|
|
let arr = [] |
|
|
|
this.resetPageParams() |
|
|
|
this.trendAnalysisAllLevelList.filter(item => { |
|
|
|
if (item.children) { |
|
|
|
let array = item.children.filter(i => i.isShow) |
|
|
|
if (array) { |
|
|
|
arr = [...arr, ...array] |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
console.log(arr) |
|
|
|
if (arr.length > 0) { |
|
|
|
this.trendTagSign = true |
|
|
|
this.resultList = arr.map(item => { |
|
|
|
return item.name |
|
|
|
}) |
|
|
|
console.log(this.resultList) |
|
|
|
} else { |
|
|
|
this.trendTagSign = false |
|
|
|
} |
|
|
|
this.getMyCustom(); |
|
|
|
}, |
|
|
|
//筛选确认 |
|
|
|
screensure() { |
|
|
|
this.showFilterOption = this.chooseMores() |
|
|
|
this.tagSign = this.chooseMore() |
|
|
|
this.resetPageParams() |
|
|
|
// 画像标签 |
|
|
|
this.huaxiangList.forEach(item => { |
|
|
|
if (item.children.length) { |
|
|
@@ -1132,6 +1258,8 @@ |
|
|
|
}) |
|
|
|
this.getMyCustom(); |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
goSearch() { |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/center/consumer/consumerSearch' |
|
|
@@ -1401,7 +1529,7 @@ |
|
|
|
color: #2671E2; |
|
|
|
font-size: 30rpx; |
|
|
|
align-items: flex-end; |
|
|
|
|
|
|
|
|
|
|
|
.clientStageName { |
|
|
|
font-size: 38rpx; |
|
|
|
font-family: PingFangSC-Regular, PingFang SC; |
|
|
@@ -1414,7 +1542,7 @@ |
|
|
|
// border: 1rpx solid #FF981E; |
|
|
|
box-sizing: border-box; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.right-img { |
|
|
|
margin: 5rpx 0 0 10rpx; |
|
|
|
width: 14rpx; |
|
|
@@ -1443,7 +1571,7 @@ |
|
|
|
color: #333333; |
|
|
|
word-break: break-all; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.content-sec-lab1-min { |
|
|
|
flex-shrink: 0; |
|
|
|
margin-bottom: 20rpx; |
|
|
|