|
|
@@ -1,13 +1,10 @@
|
|
|
<template>
|
|
|
<view class="app-content">
|
|
|
<view class="ex-page">
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
<view class="top-bar">
|
|
|
<DateSelect class="bar" top="0" @selectDateFn="selectDateFn" />
|
|
|
</view>
|
|
|
- <scroll-view scroll-y scroll-with-animation class="main-view">
|
|
|
+ <view scroll-y scroll-with-animation class="main-view">
|
|
|
<view class="space-view ex-table">
|
|
|
<block v-if="!$util.isEmpty(profile)">
|
|
|
<t-table :headerBackgroundColor="'#F0F2F6'">
|
|
|
@@ -22,7 +19,8 @@
|
|
|
</t-table>
|
|
|
</block>
|
|
|
</view>
|
|
|
- </scroll-view>
|
|
|
+ <view style="margin-top:30upx;margin-left:80upx;font-size:30upx;">合计:{{totalNum}}扎 <text style="margin-left:18upx;">{{totalCost}}元</text></view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -53,7 +51,9 @@ export default {
|
|
|
startTime: "",
|
|
|
endTime: ""
|
|
|
},
|
|
|
- profile:[]
|
|
|
+ profile:[],
|
|
|
+ totalNum:0,
|
|
|
+ totalCost:0
|
|
|
};
|
|
|
},
|
|
|
onPullDownRefresh() {
|
|
|
@@ -81,6 +81,8 @@ export default {
|
|
|
getWastage(this.params).then(res => {
|
|
|
uni.hideLoading()
|
|
|
this.profile = res.data.stat
|
|
|
+ this.totalNum = res.data.totalNum ? parseFloat(res.data.totalNum) : 0
|
|
|
+ this.totalCost = res.data.totalCost ? parseFloat(res.data.totalCost):0
|
|
|
});
|
|
|
}
|
|
|
}
|