|
|
|
@@ -74,7 +74,7 @@ |
|
|
|
<view class="">{{item.fraction || '0'}}% | {{item.mm || '0'}}<text style="font-size: 24rpx;">min</text></view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="content-last" v-if="item.isshow==true"> |
|
|
|
<view class="content-last" v-if="permissions.commonly2"> |
|
|
|
<!-- <view class="content-last-tab">添加提醒</view> |
|
|
|
<view class="content-last-tab">拨打电话</view> --> |
|
|
|
<view class="content-last-tab" @click.stop="gotoFollowUp(item.id)">写跟进</view> |
|
|
|
@@ -234,13 +234,20 @@ |
|
|
|
soltishow:false, |
|
|
|
staTime:'', |
|
|
|
endtime:'', |
|
|
|
orderBy:'' |
|
|
|
orderBy:'', |
|
|
|
permissions:{ |
|
|
|
commonly1:false, |
|
|
|
commonly2:false |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad(options) { |
|
|
|
this.isnorefresh=options.refresh; |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
let newmenulist= uni.getStorageSync('weapp_session_Menu_data'); |
|
|
|
this.permissions.commonly1=newmenulist.khgl_ck; |
|
|
|
this.permissions.commonly2=newmenulist.khgl_gj; |
|
|
|
if(this.isnorefresh=='refresh'){ |
|
|
|
this.buildingID = uni.getStorageSync('buildingID').id; |
|
|
|
this.nextPage=1; |
|
|
|
@@ -328,9 +335,11 @@ |
|
|
|
}, |
|
|
|
// 客户详情 |
|
|
|
gotoDetail(id) { |
|
|
|
uni.navigateTo({ |
|
|
|
url: `/pages/center/consumer/consumerDetail?id=${id}` |
|
|
|
}) |
|
|
|
if(this.permissions.commonly1==true){ |
|
|
|
uni.navigateTo({ |
|
|
|
url: `/pages/center/consumer/consumerDetail?id=${id}` |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
getMyCustom(){ |
|
|
|
let dateType=0; |
|
|
|
@@ -357,8 +366,8 @@ |
|
|
|
} |
|
|
|
|
|
|
|
var parames = { |
|
|
|
pageNum: this.nextPage, |
|
|
|
pageSize: 10, |
|
|
|
current: this.nextPage, |
|
|
|
size: 10, |
|
|
|
query: { |
|
|
|
projectId:this.buildingID, |
|
|
|
keywordsId:this.screen.cunsumerTipsid, |
|
|
|
@@ -384,17 +393,9 @@ |
|
|
|
}else{ |
|
|
|
parames.query.levels=null |
|
|
|
} |
|
|
|
this.userInfo = uni.getStorageSync('weapp_session_userInfo_data'); |
|
|
|
this.$u.post("/customer/customerManagement", parames).then(data => { |
|
|
|
var list = data.results || []; |
|
|
|
list.forEach(item=>{ |
|
|
|
if(this.userInfo.dataCode == 6){ |
|
|
|
item.isshow=true; |
|
|
|
}else{ |
|
|
|
item.isshow=false; |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
var list = data.records || []; |
|
|
|
console.log(list) |
|
|
|
list.forEach(item=>{ |
|
|
|
if(item.demand.cusSemanticWordsList!=null){ |
|
|
|
item.demand.cusSemanticWordsList.forEach(che=>{ |
|
|
|
|