|
@@ -13,7 +13,7 @@
|
|
|
<view class="filter-row">
|
|
<view class="filter-row">
|
|
|
<view class="filter-chip date-chip">
|
|
<view class="filter-chip date-chip">
|
|
|
<image class="filter-icon" :src="iconSrc('order-calendar')" mode="aspectFit" />
|
|
<image class="filter-icon" :src="iconSrc('order-calendar')" mode="aspectFit" />
|
|
|
- <DateSelect class="date-select" top="0" @selectDateFn="selectDateFn" defaultShowName="时间" />
|
|
|
|
|
|
|
+ <DateSelect ref="dateSelectRef" class="date-select" top="0" @selectDateFn="selectDateFn" defaultShowName="近30天" />
|
|
|
</view>
|
|
</view>
|
|
|
<view class="filter-chip mode-chip" :class="{ active: searchStyle == 0 }" @click="changeSearchStyle">
|
|
<view class="filter-chip mode-chip" :class="{ active: searchStyle == 0 }" @click="changeSearchStyle">
|
|
|
<image class="filter-icon" :src="iconSrc('order-account-name')" mode="aspectFit" />
|
|
<image class="filter-icon" :src="iconSrc('order-account-name')" mode="aspectFit" />
|
|
@@ -367,7 +367,7 @@ export default {
|
|
|
showSearch: false,
|
|
showSearch: false,
|
|
|
searchList: [],
|
|
searchList: [],
|
|
|
customId: 0,
|
|
customId: 0,
|
|
|
- searchTime: "",
|
|
|
|
|
|
|
+ searchTime: "last30Days",
|
|
|
startTime: "",
|
|
startTime: "",
|
|
|
endTime: "",
|
|
endTime: "",
|
|
|
repeat: -1,
|
|
repeat: -1,
|
|
@@ -729,6 +729,17 @@ export default {
|
|
|
selectStaffFn () {
|
|
selectStaffFn () {
|
|
|
this.$refs.getStaffRef.open("top");
|
|
this.$refs.getStaffRef.open("top");
|
|
|
},
|
|
},
|
|
|
|
|
+ // 重置日期为默认近30天
|
|
|
|
|
+ resetDefaultDateRange () {
|
|
|
|
|
+ this.searchTime = "last30Days";
|
|
|
|
|
+ this.startTime = "";
|
|
|
|
|
+ this.endTime = "";
|
|
|
|
|
+ if (this.$refs.dateSelectRef) {
|
|
|
|
|
+ this.$refs.dateSelectRef.defaultDateName = "近30天";
|
|
|
|
|
+ this.$refs.dateSelectRef.startDate = "";
|
|
|
|
|
+ this.$refs.dateSelectRef.endDate = "";
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
clearFn () {
|
|
clearFn () {
|
|
|
this.resetList();
|
|
this.resetList();
|
|
|
this.shopAdminId = 0;
|
|
this.shopAdminId = 0;
|
|
@@ -736,9 +747,7 @@ export default {
|
|
|
this.lastSearchText = "";
|
|
this.lastSearchText = "";
|
|
|
this.showSearch = false;
|
|
this.showSearch = false;
|
|
|
this.customId = 0;
|
|
this.customId = 0;
|
|
|
- this.searchTime = "";
|
|
|
|
|
- this.startTime = "";
|
|
|
|
|
- this.endTime = "";
|
|
|
|
|
|
|
+ this.resetDefaultDateRange();
|
|
|
if (this.$refs && this.$refs.searchRef) {
|
|
if (this.$refs && this.$refs.searchRef) {
|
|
|
this.$refs.searchRef.search = "";
|
|
this.$refs.searchRef.search = "";
|
|
|
}
|
|
}
|
|
@@ -967,7 +976,7 @@ export default {
|
|
|
top: 0;
|
|
top: 0;
|
|
|
z-index: 30;
|
|
z-index: 30;
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
- padding: 10upx 22upx 16upx;
|
|
|
|
|
|
|
+ padding: 10upx 8upx 16upx;
|
|
|
background: linear-gradient(180deg, #f4fbf7 0%, #f8fcfa 60upx, #ffffff 100upx, #ffffff 100%);
|
|
background: linear-gradient(180deg, #f4fbf7 0%, #f8fcfa 60upx, #ffffff 100upx, #ffffff 100%);
|
|
|
border-radius: 0;
|
|
border-radius: 0;
|
|
|
box-shadow: 0 8upx 20upx rgba(24, 37, 30, 0.06);
|
|
box-shadow: 0 8upx 20upx rgba(24, 37, 30, 0.06);
|