|
|
@@ -126,6 +126,20 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view class="filter-section">
|
|
|
+ <view class="filter-title">时间筛选</view>
|
|
|
+ <view class="filter-options">
|
|
|
+ <view
|
|
|
+ v-for="(item, index) in timeTypeOptions"
|
|
|
+ :key="index"
|
|
|
+ class="filter-option"
|
|
|
+ :class="{ active: searchTimeType === item.value }"
|
|
|
+ @click="onSelectTimeType(index)"
|
|
|
+ >
|
|
|
+ {{ item.label }}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
<view class="filter-section">
|
|
|
<view class="filter-title">片区</view>
|
|
|
<view class="filter-options">
|
|
|
@@ -250,6 +264,7 @@ export default {
|
|
|
this.filterDebt !== -1 ||
|
|
|
this.filterOnlinePay !== -1 ||
|
|
|
this.filterBook !== -1 ||
|
|
|
+ this.searchTimeType !== 0 ||
|
|
|
this.filterShopAdminId !== 0 ||
|
|
|
this.filterSendType !== -1
|
|
|
);
|
|
|
@@ -326,6 +341,7 @@ export default {
|
|
|
filterBook: -1,
|
|
|
filterOnlinePay: -1,
|
|
|
filterSendType: -1,
|
|
|
+ searchTimeType: 0, // 0: 创建时间,1: 账单时间
|
|
|
debtOptions: [
|
|
|
{ label: '全部', value: -1 },
|
|
|
{ label: '挂账', value: 1 },
|
|
|
@@ -341,6 +357,10 @@ export default {
|
|
|
{ label: '预订单', value: 1 },
|
|
|
{ label: '普通单', value: 0 }
|
|
|
],
|
|
|
+ timeTypeOptions: [
|
|
|
+ { label: '创建时间', value: 0 },
|
|
|
+ { label: '账单时间', value: 1 }
|
|
|
+ ],
|
|
|
sendTypeOptions: [
|
|
|
{ label: '全部', value: -1 },
|
|
|
{ label: '送货上门', value: 0 },
|
|
|
@@ -531,6 +551,15 @@ export default {
|
|
|
this.filterBook = item.value;
|
|
|
}
|
|
|
},
|
|
|
+ /**
|
|
|
+ * 选择时间筛选类型:0 创建时间,1 账单时间
|
|
|
+ */
|
|
|
+ onSelectTimeType(index) {
|
|
|
+ const item = this.timeTypeOptions[index];
|
|
|
+ if (item) {
|
|
|
+ this.searchTimeType = item.value;
|
|
|
+ }
|
|
|
+ },
|
|
|
onSelectStaff(id) {
|
|
|
this.filterShopAdminId = id;
|
|
|
},
|
|
|
@@ -545,6 +574,7 @@ export default {
|
|
|
this.filterDebt = -1;
|
|
|
this.filterOnlinePay = -1;
|
|
|
this.filterBook = -1;
|
|
|
+ this.searchTimeType = 0;
|
|
|
this.filterShopAdminId = 0;
|
|
|
this.filterSendType = -1;
|
|
|
this.resetDefaultDateRange();
|
|
|
@@ -602,6 +632,7 @@ export default {
|
|
|
this.filterDebt = -1;
|
|
|
this.filterOnlinePay = -1;
|
|
|
this.filterBook = -1;
|
|
|
+ this.searchTimeType = 0;
|
|
|
this.filterShopAdminId = 0;
|
|
|
this.filterSendType = -1;
|
|
|
this.resetDefaultDateRange();
|
|
|
@@ -645,7 +676,8 @@ export default {
|
|
|
shopAdminId: this.filterShopAdminId,
|
|
|
book: this.filterBook,
|
|
|
onlinePay: this.filterOnlinePay,
|
|
|
- sendType: this.filterSendType
|
|
|
+ sendType: this.filterSendType,
|
|
|
+ searchTimeType: this.searchTimeType
|
|
|
}).then((res) => {
|
|
|
this.completes(res);
|
|
|
if (this.$util.isEmpty(res.data)) {
|