|
|
@ -2,7 +2,7 @@ |
|
|
|
<view class="collection-detail"> |
|
|
|
<view class="cd-address">当前所在门店:{{storeInfo.name || '-'}}</view> |
|
|
|
<view class="cd-overview"> |
|
|
|
<picker mode="multiSelector" :range="timerArr" @change="dateChange"> |
|
|
|
<picker mode="multiSelector" :range="timerArr" @change="dateChange" :value="curTimePickerValue"> |
|
|
|
<view class="co-time"> |
|
|
|
<text>{{curSelectedDate.month || 0}}月{{curSelectedDate.date || 0}}日</text> |
|
|
|
<view></view> |
|
|
@ -47,6 +47,7 @@ export default { |
|
|
|
receiveList: [], |
|
|
|
receiveInfo: {}, // 收款统计信息 |
|
|
|
timerArr: [], // 时间选择数据 |
|
|
|
curTimePickerValue:[0,0], // 时间picker当前选中 |
|
|
|
curType: 0, |
|
|
|
curSelectedDate: { |
|
|
|
year: '', |
|
|
@ -59,8 +60,10 @@ export default { |
|
|
|
let _query = util.jsonPar(options.query); |
|
|
|
this.storeInfo = _query.store; |
|
|
|
this.detail = _query.detail; |
|
|
|
this.timerArr = this.getTimerArr(_query.detail.date); |
|
|
|
|
|
|
|
let _curDate = _query.detail.date || '' |
|
|
|
let _curTime = new Date(_curDate.replace(/\-/g,'/')); |
|
|
|
this.timerArr = this.getTimerArr(_curDate.replace(/\-/g,'/')); |
|
|
|
this.curTimePickerValue = [_curTime.getMonth(), _curTime.getDate()-1] |
|
|
|
this.getDetail({ |
|
|
|
date: _query.detail.date, |
|
|
|
type: this.curType, |
|
|
@ -97,7 +100,7 @@ export default { |
|
|
|
stadium_id: storeInfo.id, |
|
|
|
}) |
|
|
|
}, |
|
|
|
getTimerArr(curDate){ |
|
|
|
getTimerArr(curDate = ''){ |
|
|
|
let _dateObj = new Date(curDate); |
|
|
|
let _year = _dateObj.getFullYear(); |
|
|
|
let _month = util.formatNumber(_dateObj.getMonth()+1); |
|
|
|