|
@@ -10,12 +10,12 @@
|
|
|
:background="{background: 'none' }"></u-navbar>
|
|
|
<view class="info">
|
|
|
<view class="payee-no">工号:{{vuexUser.payeeNo}}</view>
|
|
|
- <view class="current-time">{{$u.timeFormat(currentTime, 'yyyy年mm月dd日 hh:MM:ss')}}</view>
|
|
|
+ <!-- <view class="current-time">{{$u.timeFormat(currentTime, 'yyyy年mm月dd日 hh:MM:ss')}}</view> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="calendar-wrap">
|
|
|
+ <!-- <view class="calendar-wrap">
|
|
|
<u-calendar v-model="calendarShow" mode="date" @change="calendarChange"></u-calendar>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
<view class="statistics">
|
|
|
<view class="statistics-title">实收数(聚合)</view>
|
|
|
<view class="statistics-total">
|
|
@@ -37,6 +37,12 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view class="time" @click="selectTime">
|
|
|
+ {{pickerYear}}年{{pickerMonth}}月<span class="dd">{{pickerDay}}</span>日
|
|
|
+ <u-icon name="arrow-down-fill" color="#3D3D3D" size="28"></u-icon>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <u-picker v-model="pickerShow" mode="time" :params="pickerParams" @confirm="confirmTime"></u-picker>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -47,11 +53,27 @@
|
|
|
vuexUser:'',
|
|
|
currentTime: new Date().getTime(),
|
|
|
calendarShow:true,
|
|
|
+ pickerShow:false,
|
|
|
+ pickerParams: {
|
|
|
+ year: true,
|
|
|
+ month: true,
|
|
|
+ day: true,
|
|
|
+ hour: false,
|
|
|
+ minute: false,
|
|
|
+ second: false
|
|
|
+ },
|
|
|
+ pickerYear:'',
|
|
|
+ pickerMonth:'',
|
|
|
+ pickerDay:'',
|
|
|
|
|
|
}
|
|
|
},
|
|
|
onLoad(){
|
|
|
this.vuexUser = this.$store.state.vuex_user;
|
|
|
+ let date = new Date().getTime();
|
|
|
+ this.pickerYear = this.$u.timeFormat(date, 'yyyy');
|
|
|
+ this.pickerMonth = this.$u.timeFormat(date, 'mm');
|
|
|
+ this.pickerDay = this.$u.timeFormat(date, 'dd');
|
|
|
},
|
|
|
onShow(){
|
|
|
|
|
@@ -66,8 +88,22 @@
|
|
|
calendarChange(e){
|
|
|
console.log('e',e);
|
|
|
this.calendarShow = true;
|
|
|
+ },
|
|
|
+ selectTime(){
|
|
|
+ this.pickerShow = true;
|
|
|
+ },
|
|
|
+ confirmTime(e){
|
|
|
+ console.log('confirmTime e',e);
|
|
|
+ this.pickerYear = e.year;
|
|
|
+ this.pickerMonth = e.month;
|
|
|
+ this.pickerDay = e.day;
|
|
|
}
|
|
|
|
|
|
+ },
|
|
|
+ computed:{
|
|
|
+ theTime(){
|
|
|
+ return this.pickerYear+this.pickerMonth+this.pickerDay
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|