Browse Source

最近30天

shish 3 weeks ago
parent
commit
93a8f50547
1 changed files with 8 additions and 3 deletions
  1. 8 3
      hdApp/src/pagesPurchase/shopping.vue

+ 8 - 3
hdApp/src/pagesPurchase/shopping.vue

@@ -3,7 +3,7 @@
     <app-tabs :tabs="tabs" :isFixed="true" :currentTab="tabIndex" @change="change" itemWidth="20%"/>
 
 			<view style="margin-left:60upx;margin-top:110upx;padding-bottom:30upx;position: relative;">
-				<DateSelect @selectDateFn="selectDateFn" defaultShowName='时间' />
+				<DateSelect ref="dateSelectRef" @selectDateFn="selectDateFn" defaultShowName="近30天" />
         
         <button class="admin-button-com mini-btn blue" style="position: absolute;right:300upx;top:-8upx;" @click="selGhs()">{{ ghsName==''?'选供货商':ghsName }}</button>
 
@@ -82,7 +82,7 @@ export default {
       status: '0',
       refreshPage:0,
 			searchContent:'',			
-			searchTime:'',
+			searchTime:'last30Days',
 			startTime:'',
       endTime:'',
       ghsId:0,
@@ -118,9 +118,14 @@ export default {
     resetSearch(){
       this.ghsId = 0
       this.ghsName=''
-      this.searchTime = ''
+      this.searchTime = 'last30Days'
       this.startTime = ''
       this.endTime = ''
+      if (this.$refs.dateSelectRef) {
+        this.$refs.dateSelectRef.defaultDateName = '近30天'
+        this.$refs.dateSelectRef.startDate = ''
+        this.$refs.dateSelectRef.endDate = ''
+      }
       this.resetList()
       this.getMyPurchase()      
     },