From cd73ef5c283feed4e96931a64b7ab4f6c5fb021c Mon Sep 17 00:00:00 2001 From: zhangyouji Date: Wed, 6 Sep 2023 17:01:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packageOrders/pages/orderList/orderList.vue | 28 +++------------------ 1 file changed, 3 insertions(+), 25 deletions(-) diff --git a/packageOrders/pages/orderList/orderList.vue b/packageOrders/pages/orderList/orderList.vue index 0fb2491..e03907e 100644 --- a/packageOrders/pages/orderList/orderList.vue +++ b/packageOrders/pages/orderList/orderList.vue @@ -106,7 +106,7 @@ 邮箱: - + 开始时间: @@ -148,12 +148,6 @@ UniLoadMore }, data() { - const curstartDate=this.getStartDate({ - format:true - }) - const currentDate=this.getDate({ - format:true - }) return { startTime:'', @@ -228,8 +222,7 @@ '1689183144276463616', '1689183774927818752', '1689184331812888576', - '1689185023261741056', - '100' + '1689185023261741056' ] var exportFields = exportList.filter((item) => { return item == uni.getStorageSync('oilSitePriceId'); @@ -460,7 +453,7 @@ startDateChange:function(e){ this.startDate = e.detail.value let data=this.startDate - this.endStartDate = this.getEndDate(Date.parse(data)- 3600 * 1000 * 24 * 30) + this.endStartDate = data this.endEndDate = this.getEndDate(Date.parse(data)+ 3600 * 1000 * 24 * 30) this.params.startTime = this.startDate }, @@ -483,21 +476,6 @@ let day = nowDate.getDate() < 10 ? "0" + nowDate.getDate() : nowDate.getDate(); return year + "-" + month + "-" + day }, - getStartDate(){ - let nowDate = new Date(); - nowDate.setTime(nowDate.getTime() - 3600 * 1000 * 24 * 30); - let year = nowDate.getFullYear(); - let month = nowDate.getMonth() + 1 < 10 ? "0" + (nowDate.getMonth() + 1) : nowDate.getMonth() + 1; - let day = nowDate.getDate() < 10 ? "0" + nowDate.getDate() : nowDate.getDate(); - return `${year}-${month}-${day}` - }, - getDate(){ - let nowDate = new Date(); - let year = nowDate.getFullYear(); - let month = nowDate.getMonth() + 1 < 10 ? "0" + (nowDate.getMonth() + 1) : nowDate.getMonth() + 1; - let day = nowDate.getDate() < 10 ? "0" + nowDate.getDate() : nowDate.getDate(); - return `${year}-${month}-${day}` - }, orderExport(){ this.startDate = '' this.endDate = ''