|
@@ -8,6 +8,10 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view class="top-bar">
|
|
<view class="top-bar">
|
|
|
<DateSelect class="bar" top="0" @selectDateFn="selectDateFn" />
|
|
<DateSelect class="bar" top="0" @selectDateFn="selectDateFn" />
|
|
|
|
|
+ <view>
|
|
|
|
|
+ <button class="admin-button-com middel" :class="params.contain == 0 ? 'blue' : 'default'" @click="changeContain(0)">不含结账</button>
|
|
|
|
|
+ <button class="admin-button-com middel" :class="params.contain == 1 ? 'blue' : 'default'" @click="changeContain(1)" style="margin-left:30upx;">含结账</button>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="main-view">
|
|
<view class="main-view">
|
|
|
<view class="space-view ex-table">
|
|
<view class="space-view ex-table">
|
|
@@ -102,6 +106,7 @@ export default {
|
|
|
startTime: "",
|
|
startTime: "",
|
|
|
endTime: "",
|
|
endTime: "",
|
|
|
shopId: "",
|
|
shopId: "",
|
|
|
|
|
+ contain:0
|
|
|
},
|
|
},
|
|
|
profile:[],
|
|
profile:[],
|
|
|
income:0,
|
|
income:0,
|
|
@@ -121,6 +126,10 @@ export default {
|
|
|
this.shopId = this.getLoginInfo.shopId;
|
|
this.shopId = this.getLoginInfo.shopId;
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ changeContain(val){
|
|
|
|
|
+ this.params.contain = val
|
|
|
|
|
+ this._list()
|
|
|
|
|
+ },
|
|
|
confirmDetail(val){
|
|
confirmDetail(val){
|
|
|
if (val.index === 0) {
|
|
if (val.index === 0) {
|
|
|
this.cancelShowDetail();
|
|
this.cancelShowDetail();
|
|
@@ -157,7 +166,7 @@ export default {
|
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
|
that.profile = res.data.list
|
|
that.profile = res.data.list
|
|
|
that.income = res.data.income
|
|
that.income = res.data.income
|
|
|
- });
|
|
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|