pull/6/head
zhangyouji 2 years ago
parent 597f47f689
commit 4922e75985
  1. 50
      packageOrders/pages/orderList/orderList.vue

@ -47,8 +47,8 @@
</scroll-view> </scroll-view>
</view> --> </view> -->
<view v-if="exportShow==true"> <view v-if="exportShow==true">
<view style="padding: 20upx;"></view> <view style="padding: 30upx;"></view>
<view style="position: fixed;width: 750upx;z-index: 5;text-align: right;top:300upx;right: 30upx;"> <view style="position: fixed;width: 750upx;z-index: 5;text-align: right;top:315upx;right: 30upx;">
<button class="cu-btn bg-white" @click="orderExport">订单导出</button> <button class="cu-btn bg-white" @click="orderExport">订单导出</button>
</view> </view>
</view> </view>
@ -111,7 +111,7 @@
<view class="popup_card_from_item"> <view class="popup_card_from_item">
<view class="popup_card_from_item_left_text">开始时间</view> <view class="popup_card_from_item_left_text">开始时间</view>
<view class="uni-list-cell-db"> <view class="uni-list-cell-db">
<picker mode="date" :value="startDate" @change="startDateChange"> <picker mode="date" :value="startDate" @change="startDateChange" class="uni-picker">
<view class="uni-input">{{startDate}}</view> <view class="uni-input">{{startDate}}</view>
</picker> </picker>
</view> </view>
@ -119,7 +119,7 @@
<view class="popup_card_from_item"> <view class="popup_card_from_item">
<view class="popup_card_from_item_left_text">结束时间</view> <view class="popup_card_from_item_left_text">结束时间</view>
<view class="uni-list-cell-db"> <view class="uni-list-cell-db">
<picker mode="date" :value="endDate" @change="endDateChange" :start="endStartDate" :end="endEndDate"> <picker mode="date" :value="endDate" @change="endDateChange" :start="endStartDate" :end="endEndDate" class="uni-picker">
<view class="uni-input">{{endDate}}</view> <view class="uni-input">{{endDate}}</view>
</picker> </picker>
</view> </view>
@ -203,14 +203,14 @@
params: { params: {
siteId: uni.getStorageSync('oilSitePriceId'), siteId: uni.getStorageSync('oilSitePriceId'),
siteName: uni.getStorageSync('oilSitePriceName'), siteName: uni.getStorageSync('oilSitePriceName'),
email:'13287118566@163.com', email:'',
startTime:curstartDate, startTime:'',
endTime:currentDate endTime:''
}, },
startDate:curstartDate, startDate:'',
endDate:currentDate, endDate:'',
endStartDate:'', endStartDate:'',
endEndDate:currentDate, endEndDate:'',
exportShow:false exportShow:false
} }
@ -228,7 +228,8 @@
'1689183144276463616', '1689183144276463616',
'1689183774927818752', '1689183774927818752',
'1689184331812888576', '1689184331812888576',
'1689185023261741056' '1689185023261741056',
'100'
] ]
var exportFields = exportList.filter((item) => { var exportFields = exportList.filter((item) => {
return item == uni.getStorageSync('oilSitePriceId'); return item == uni.getStorageSync('oilSitePriceId');
@ -464,8 +465,16 @@
this.params.startTime = this.startDate this.params.startTime = this.startDate
}, },
endDateChange:function(e){ endDateChange:function(e){
this.endDate = e.detail.value if(this.startDate ==''){
this.params.endTime = this.endDate uni.showToast({
title: '请先输入开始时间',
icon: 'none'
});
}else{
this.endDate = e.detail.value
this.params.endTime = this.endDate
}
}, },
getEndDate(val){ getEndDate(val){
let nowDate = new Date(val) let nowDate = new Date(val)
@ -490,6 +499,11 @@
return `${year}-${month}-${day}` return `${year}-${month}-${day}`
}, },
orderExport(){ orderExport(){
this.startDate = ''
this.endDate = ''
this.params.email = ''
this.params.startTime = ''
this.params.endTime = ''
this.$refs.popup.open('center') this.$refs.popup.open('center')
}, },
@ -556,6 +570,16 @@
width: 750upx; width: 750upx;
z-index: 3; z-index: 3;
} }
.uni-input{
height: 25rpx;
}
.uni-picker{
height: 25rpx;
}
.uni-list-cell-db{
width: 100%;
height: 30rpx;
}
.popup_card_bottom { .popup_card_bottom {
display: flex; display: flex;

Loading…
Cancel
Save