|
@@ -173,6 +173,7 @@
|
|
|
}
|
|
|
],
|
|
|
curTab: '4',
|
|
|
+ searcTab: '', // 实际查询条件
|
|
|
webView: null
|
|
|
}
|
|
|
},
|
|
@@ -199,8 +200,13 @@
|
|
|
},
|
|
|
onNavigationBarButtonTap() {
|
|
|
this.showSearch = true
|
|
|
+ this.curTab = this.searcTab
|
|
|
},
|
|
|
onBackPress() {
|
|
|
+ if(this.showDate){
|
|
|
+ this.showDate = false
|
|
|
+ return true
|
|
|
+ }
|
|
|
if(this.showSearch){
|
|
|
this.showSearch = false
|
|
|
return true
|
|
@@ -212,25 +218,10 @@
|
|
|
this.dateArray = date.startDate + ' ~ ' + date.endDate
|
|
|
this.queryPramas.beginDate = date.startDate + ' 00:00:00'
|
|
|
this.queryPramas.endDate = date.endDate + ' 23:59:59'
|
|
|
- //#ifdef APP-PLUS
|
|
|
- this.webView.setTitleNViewButtonStyle(0, {
|
|
|
- "text":"\ue626 "+date.startDate.substr(5)+"至"+date.endDate.substr(5),
|
|
|
- "color": "#00aaff",
|
|
|
- "width": "130px"
|
|
|
- });
|
|
|
- //#endif
|
|
|
},
|
|
|
tabChange(data){
|
|
|
this.curTab = data.val
|
|
|
- if(data.val != 6){
|
|
|
- //#ifdef APP-PLUS
|
|
|
- this.webView.setTitleNViewButtonStyle(0, {
|
|
|
- "text":"\ue626 "+data.name,
|
|
|
- "color": "#00aaff",
|
|
|
- "width": "80px"
|
|
|
- });
|
|
|
- //#endif
|
|
|
- }else{
|
|
|
+ if(data.val == 6){
|
|
|
this.dateArray = ''
|
|
|
this.queryPramas.beginDate = ''
|
|
|
this.queryPramas.endDate = ''
|
|
@@ -239,6 +230,7 @@
|
|
|
// 重置
|
|
|
handleClean(){
|
|
|
this.tabChange(this.placeTab[2])
|
|
|
+ this.searcTab = this.placeTab[2].val
|
|
|
this.$refs.rangeDate.init()
|
|
|
this.showSearch = false
|
|
|
this.getServerData()
|
|
@@ -325,6 +317,26 @@
|
|
|
this.opts1 = this.getOpts(res.data.orderDateList)
|
|
|
this.chartData2 = this.getFormatData(res.data.tempDateList,res.data.tempAmountList,"急送产品金额")
|
|
|
this.opts2 = this.getOpts(res.data.tempDateList)
|
|
|
+
|
|
|
+ // 不是自定义时间段
|
|
|
+ if(this.curTab != 6){
|
|
|
+ //#ifdef APP-PLUS
|
|
|
+ this.webView.setTitleNViewButtonStyle(0, {
|
|
|
+ "text":"\ue626 "+ this.placeTab[this.curTab].name,
|
|
|
+ "color": "#00aaff",
|
|
|
+ "width": "80px"
|
|
|
+ });
|
|
|
+ //#endif
|
|
|
+ }else{
|
|
|
+ //#ifdef APP-PLUS
|
|
|
+ this.webView.setTitleNViewButtonStyle(0, {
|
|
|
+ "text":"\ue626 "+this.queryPramas.beginDate.substr(5,5)+"至"+this.queryPramas.endDate.substr(5,5),
|
|
|
+ "color": "#00aaff",
|
|
|
+ "width": "130px"
|
|
|
+ });
|
|
|
+ //#endif
|
|
|
+ }
|
|
|
+ this.searcTab = this.curTab
|
|
|
}
|
|
|
})
|
|
|
},
|