|
|
@@ -1,34 +1,34 @@
|
|
|
<template>
|
|
|
-<view class="app-content">
|
|
|
- <view class="ex-page">
|
|
|
- <view class="input-wrap_box">
|
|
|
- <view>
|
|
|
- <AppSearchModule placeholder="输入英文字母搜索" @input="searchFn"/>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
+ <view class="app-content">
|
|
|
+ <view class="ex-page">
|
|
|
+ <view class="input-wrap_box">
|
|
|
+ <view>
|
|
|
+ <AppSearchModule placeholder="输入英文字母搜索" @input="searchFn"/>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
|
|
|
- <view class="top-bar">
|
|
|
- <DateSelect class="bar" top="0" @selectDateFn="selectDateFn" />
|
|
|
- </view>
|
|
|
+ <view class="top-bar">
|
|
|
+ <DateSelect class="bar" top="0" @selectDateFn="selectDateFn" />
|
|
|
+ </view>
|
|
|
|
|
|
- <scroll-view scroll-y scroll-with-animation class="main-view">
|
|
|
- <view class="space-view ex-table">
|
|
|
- <block v-if="!$util.isEmpty(profile)">
|
|
|
+ <view scroll-y scroll-with-animation class="main-view">
|
|
|
+ <view class="space-view ex-table">
|
|
|
<t-table :headerBackgroundColor="'#F0F2F6'">
|
|
|
<t-tr header><t-th>花材</t-th><t-th>数量</t-th><t-th>金额</t-th></t-tr>
|
|
|
- <view v-for="(item, index) in profile" :key="index" @click="goDetail(item)">
|
|
|
- <t-tr>
|
|
|
- <t-td><view>{{item.name}}</view></t-td>
|
|
|
- <t-td><view>{{parseFloat(item.num)}}</view></t-td>
|
|
|
- <t-td><view>{{parseFloat(item.amount)}}</view></t-td>
|
|
|
- </t-tr>
|
|
|
- </view>
|
|
|
+ <template v-if="!$util.isEmpty(profile)">
|
|
|
+ <view v-for="(item, index) in profile" :key="index" @click="goDetail(item)">
|
|
|
+ <t-tr>
|
|
|
+ <t-td><view>{{item.name}}</view></t-td>
|
|
|
+ <t-td><view>{{parseFloat(item.num)}}</view></t-td>
|
|
|
+ <t-td><view>{{parseFloat(item.amount)}}</view></t-td>
|
|
|
+ </t-tr>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
</t-table>
|
|
|
- </block>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- </scroll-view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
-</view>
|
|
|
</template>
|
|
|
<script>
|
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
@@ -37,12 +37,14 @@ import { getStatItemProfit } from "@/api/statistics/index";
|
|
|
import { list } from "@/mixins";
|
|
|
import ShopSelect from "@/components/module/shopSelect";
|
|
|
import DateSelect from "@/components/module/dateSelect";
|
|
|
-import {mapActions, mapGetters} from "vuex";
|
|
|
+import {mapGetters} from "vuex";
|
|
|
import AppSearchModule from "@/components/module/app-search";
|
|
|
export default {
|
|
|
components: { SelectList, AppWrapperEmpty,ShopSelect,DateSelect,AppSearchModule},
|
|
|
mixins: [list],
|
|
|
- computed: { ...mapGetters(["getDictionariesInfo","getLoginInfo"]) },
|
|
|
+ computed: {
|
|
|
+ ...mapGetters(["getDictionariesInfo","getLoginInfo"])
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
isShow:false,
|
|
|
@@ -98,7 +100,6 @@ export default {
|
|
|
this.shopId = this.getLoginInfo.shopId;
|
|
|
},
|
|
|
methods: {
|
|
|
- ...mapActions(['setUserShopAll']),
|
|
|
searchFn(e){
|
|
|
this.searchContent = e;
|
|
|
this.filterStat()
|
|
|
@@ -134,14 +135,17 @@ export default {
|
|
|
},
|
|
|
getStatList() {
|
|
|
let that = this
|
|
|
- uni.showLoading()
|
|
|
+ uni.showLoading({mask:true})
|
|
|
getStatItemProfit(this.params).then(res => {
|
|
|
uni.hideLoading()
|
|
|
if (!this.$util.isEmpty(res.data.list)) {
|
|
|
+ console.log('3333344444')
|
|
|
that.storageData = res.data.list
|
|
|
that.filterStat()
|
|
|
}else{
|
|
|
+ console.log('33333')
|
|
|
that.storageData=[]
|
|
|
+ that.profile = []
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
@@ -160,7 +164,7 @@ export default {
|
|
|
left: 0;
|
|
|
display: flex;
|
|
|
width: 100%;
|
|
|
- top:116upx;
|
|
|
+ top:153upx;
|
|
|
z-index: 20;
|
|
|
.bar{
|
|
|
width: 50%;
|