|
|
@@ -9,6 +9,7 @@
|
|
|
|
|
|
<view class="top-bar">
|
|
|
<DateSelect class="bar" top="0" @selectDateFn="selectDateFn" />
|
|
|
+ <button class="admin-button-com mini-btn blue" style="margin-left:130upx;" @click="printOrder()">打印</button>
|
|
|
</view>
|
|
|
|
|
|
<scroll-view scroll-y scroll-with-animation class="main-view">
|
|
|
@@ -33,7 +34,7 @@
|
|
|
<script>
|
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
import SelectList from "@/components/plugin/selectList";
|
|
|
-import { getStatBookProfit } from "@/api/stat/index";
|
|
|
+import { getStatBookProfit,getStatBookPrint } from "@/api/stat";
|
|
|
import { list } from "@/mixins";
|
|
|
import ShopSelect from "@/components/module/shopSelect";
|
|
|
import DateSelect from "@/components/module/dateSelect";
|
|
|
@@ -87,6 +88,17 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
...mapActions(['setUserShopAll']),
|
|
|
+ printOrder(){
|
|
|
+ this.$util.confirmModal({content:'确认打印?'},() => {
|
|
|
+ uni.showLoading({mask:true})
|
|
|
+ getStatBookPrint(this.params).then(res => {
|
|
|
+ uni.hideLoading()
|
|
|
+ if(res.code == 1){
|
|
|
+ this.$msg('打印成功')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
searchFn(e){
|
|
|
this.searchContent = e;
|
|
|
this.filterStat()
|