Selaa lähdekoodia

首页工作首复访查询跳转

master
zzjjd 9 kuukautta sitten
vanhempi
commit
2e42297214
3 muutettua tiedostoa jossa 118 lisäystä ja 17 poistoa
  1. +1
    -1
      manifest.json
  2. +8
    -0
      pages/center/records/index.vue
  3. +109
    -16
      pages/index/index.vue

+ 1
- 1
manifest.json Näytä tiedosto

@@ -72,7 +72,7 @@
},
"quickapp" : {},
"mp-weixin" : {
"appid" : "wx3c3f25187e6b6176",
"appid" : "wxe044603515ff2cb5",
"setting" : {
"urlCheck" : false,
"es6" : true,


+ 8
- 0
pages/center/records/index.vue Näytä tiedosto

@@ -507,6 +507,13 @@
this.staTime = options.staTime;
this.endtime = options.endtime + ' 23:59:59';
}
if (options.visitRecords==1) {
this.visitList[0].isShow=true
}else if(options.visitRecords==2){
this.visitList[1].isShow=true
this.visitList[2].isShow=true
this.visitList[3].isShow=true
}
},
onShow() {
try {
@@ -753,6 +760,7 @@
if (this.screen.agentId) {
parames.query.agentId = this.screen.agentId
}
console.log("zzj2:"+this.screen.visitRecord)
this.$u.post("/customer/findbypage", parames).then(data => {
this.LOADING = false
// console.log(data)


+ 109
- 16
pages/index/index.vue Näytä tiedosto

@@ -128,9 +128,21 @@
</view>
<!-- 今日工作 -->
<view class="contbox" v-if="permissions.sstj">
<view class="title">
<view class="title" >
<image class="title-icon" src="https://static.quhouse.com/bc2ec951ad9a47e5bf58f2829926e143.png"
mode="" />今日工作
<view style="width: 33%;"/>
<view class="title1" style="flex: 1;">
<view class="title1-box" @click="taptimeisshow1(0)">
<view style="height: 42rpx;" :class="{ activecltab1: eharTab.active1 == 0 }">全部</view>
</view>
<view class="title1-box" @click="taptimeisshow1(1)">
<view style="height: 42rpx;" :class="{ activecltab1: eharTab.active1 == 1 }">首访</view>
</view>
<view class="title1-box" @click="taptimeisshow1(2)">
<view style="height: 42rpx;" :class="{ activecltab1: eharTab.active1 == 2 }">复访</view>
</view>
</view>
</view>
<view class="real-timebox">
<view class="timebox">
@@ -190,10 +202,21 @@
<view class="title">
<image class="title-icon" src="https://static.quhouse.com/bc2ec951ad9a47e5bf58f2829926e143.png"
mode="" />
<view style="width: 70%;" @click="taptimeisshow">
<view style="width: 50%;" @click="taptimeisshow">
<!-- 概览 -->
{{choiceIndex}}累计<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
</view>
<view class="title2" style="flex: 1;">
<view class="title2-box" @click="taptimeisshow2(0)">
<view style="height: 42rpx;" :class="{ activecltab2: eharTab.active2 == 0 }">全部</view>
</view>
<view class="title2-box" @click="taptimeisshow2(1)">
<view style="height: 42rpx;" :class="{ activecltab2: eharTab.active2 == 1 }">首访</view>
</view>
<view class="title2-box" @click="taptimeisshow2(2)">
<view style="height: 42rpx;" :class="{ activecltab2: eharTab.active2 == 2 }">复访</view>
</view>
</view>
</view>
<view class="real-timebox">
<view class="timebox">
@@ -499,6 +522,13 @@
export default {
data() {
return {
activeTotal: 4,
eharTab: {
active1: 0,
active2: 0,
active3: 0,
active4: 0,
},
// tabbar配置项
$domain: this.$domain,
//--- end --- tabbar配置项
@@ -556,6 +586,8 @@
totalTimeShow: false,
statDateStart: '',
statDateEnd: '',
visitRecord: null,
visitRecord1: null,
permissions: {}, // 权限菜单
paraphraseObj: {}, // 转写消费
};
@@ -784,6 +816,24 @@
taptimeisshow() {
this.timeshow = true;
},
taptimeisshow1(idx) {
this.eharTab.active1 = idx
if(idx == 0){
this.visitRecord = null
}else{
this.visitRecord = idx
}
this.initrealTimeStatistics()
},
taptimeisshow2(idx) {
this.eharTab.active2 = idx
if(idx == 0){
this.visitRecord1 = null
}else{
this.visitRecord1 = idx
}
this.initworkThisWeek()
},
//获取权限
getMenu() {
uni.request({
@@ -833,7 +883,8 @@
houseId: this.buildingID,
dateType: this.zhixingcenterindex == 7 ? null : this.zhixingcenterindex,
statDateStart: this.statDateStart,
statDateEnd: this.statDateEnd
statDateEnd: this.statDateEnd,
visitRecord: this.visitRecord1
},
success: (data) => {
if (data.data.data == null) {
@@ -854,7 +905,8 @@
'Authorization': 'Bearer ' + uni.getStorageSync('weapp_session_login_data').token
},
data: {
houseId: this.buildingID
houseId: this.buildingID,
visitRecord: this.visitRecord
},
success: (data) => {
this.LOADING = false
@@ -1040,45 +1092,45 @@
let str = ''
switch (i) {
case '1':
str = '&activeTotal=0';
str = '&activeTotal=0'+'&visitRecords='+this.visitRecord;
break;
case 'auth':
str = '&activeTotal=0&validInvalid=0'
str = '&activeTotal=0&validInvalid=0'+'&visitRecords='+this.visitRecord;
break;
case '3':
// 筛选时间类型后传的参数
if (this.zhixingcenterindex == 2) {
str = '&activeTotal=2'
str = '&activeTotal=2'+'&visitRecords='+this.visitRecord1
} else if (this.zhixingcenterindex == 6) {
str = '&activeTotal=3'
str = '&activeTotal=3'+'&visitRecords='+this.visitRecord1
} else {
str = `&activeTotal=4&staTime=${this.statDateStart}&endtime=${this.statDateEnd}`
str = `&activeTotal=4&staTime=${this.statDateStart}&endtime=${this.statDateEnd}`+'&visitRecords='+this.visitRecord1
}
break;
case '333':
case '7':
if (this.zhixingcenterindex == 2) {
str = '&activeTotal=2&validInvalid=0'
str = '&activeTotal=2&validInvalid=0'+'&visitRecords='+this.visitRecord1
} else if (this.zhixingcenterindex == 6) {
str = '&activeTotal=3&validInvalid=0'
str = '&activeTotal=3&validInvalid=0'+'&visitRecords='+this.visitRecord1
} else {
str = `&activeTotal=4&staTime=${this.statDateStart}&endtime=${this.statDateEnd}&validInvalid=0`
}
break;
case '6':
str = '&activeTotal=0&validInvalid=0'
str = '&activeTotal=0&validInvalid=0'+'&visitRecords='+this.visitRecord;
break;
case '4':
str = '&activeTotal=0&markAdvisor=0&validInvalid=0'
str = '&activeTotal=0&markAdvisor=0&validInvalid=0'+'&visitRecords='+this.visitRecord;
break;
case '44':
if (this.zhixingcenterindex == 2) {
str = '&activeTotal=2&validInvalid=0&markAdvisor=0'
str = '&activeTotal=2&validInvalid=0&markAdvisor=0'+'&visitRecords='+this.visitRecord1
} else if (this.zhixingcenterindex == 6) {
str = '&activeTotal=3&validInvalid=0&markAdvisor=0'
str = '&activeTotal=3&validInvalid=0&markAdvisor=0'+'&visitRecords='+this.visitRecord1
} else {
str =
`&activeTotal=4&staTime=${this.statDateStart}&endtime=${this.statDateEnd}&validInvalid=0&markAdvisor=0`
`&activeTotal=4&staTime=${this.statDateStart}&endtime=${this.statDateEnd}&validInvalid=0&markAdvisor=0`+'&visitRecords='+this.visitRecord1
}
break;

@@ -1086,6 +1138,7 @@
str = '&activeTotal=0&markAdvisor=0'
break;
}
// str=str+'&visitRecords='+this.visitRecord
return str
},

@@ -1413,6 +1466,46 @@
height: 20rpx;
margin-right: 18rpx;
}
.title1 {
flex: 3;
height: 90rpx;
display: flex;
align-items: center;
justify-content: flex-end;
padding-right: 30rpx;
.title1-box {
display: flex;
align-items: center;
width: 25%;
justify-content: center;
.activecltab1 {
color: #2671E2;
border-bottom: 4rpx solid #2671E2;
}
}
}
.title2 {
flex: 3;
height: 90rpx;
display: flex;
align-items: center;
justify-content: flex-end;
padding-right: 30rpx;
.title2-box {
display: flex;
align-items: center;
width: 25%;
justify-content: center;
.activecltab2 {
color: #2671E2;
border-bottom: 4rpx solid #2671E2;
}
}
}
}

.timeshow {


Ladataan…
Peruuta
Tallenna