|
@@ -8,7 +8,8 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view class="top-bar">
|
|
<view class="top-bar">
|
|
|
<DateSelect class="bar" top="0" @selectDateFn="selectDateFn" />
|
|
<DateSelect class="bar" top="0" @selectDateFn="selectDateFn" />
|
|
|
- <button class="admin-button-com mini-btn blue" style="margin-left:130upx;" @click="printOrder()">打印</button>
|
|
|
|
|
|
|
+ <button class="admin-button-com mini-btn blue" style="margin-left:30upx;" @click="printOrder()">打印</button>
|
|
|
|
|
+ <button class="admin-button-com mini-btn blue" style="margin-left:50upx;" @click="beginBook()">开启预订</button>
|
|
|
</view>
|
|
</view>
|
|
|
<scroll-view scroll-y scroll-with-animation class="main-view">
|
|
<scroll-view scroll-y scroll-with-animation class="main-view">
|
|
|
<view class="space-view ex-table">
|
|
<view class="space-view ex-table">
|
|
@@ -34,6 +35,7 @@
|
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
import SelectList from "@/components/plugin/selectList";
|
|
import SelectList from "@/components/plugin/selectList";
|
|
|
import { getStatBookProfit,getStatBookPrint } from "@/api/stat";
|
|
import { getStatBookProfit,getStatBookPrint } from "@/api/stat";
|
|
|
|
|
+import { openBook } from "@/api/book"
|
|
|
import { list } from "@/mixins";
|
|
import { list } from "@/mixins";
|
|
|
import ShopSelect from "@/components/module/shopSelect";
|
|
import ShopSelect from "@/components/module/shopSelect";
|
|
|
import DateSelect from "@/components/module/dateSelect";
|
|
import DateSelect from "@/components/module/dateSelect";
|
|
@@ -87,6 +89,15 @@ export default {
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
...mapActions(['setUserShopAll']),
|
|
...mapActions(['setUserShopAll']),
|
|
|
|
|
+ beginBook(){
|
|
|
|
|
+ this.$util.confirmModal({content:'确认开启?'},() => {
|
|
|
|
|
+ openBook().then(res=>{
|
|
|
|
|
+ if(res.code == 1){
|
|
|
|
|
+ this.$msg(res.msg)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
printOrder(){
|
|
printOrder(){
|
|
|
this.$util.confirmModal({content:'确认打印?'},() => {
|
|
this.$util.confirmModal({content:'确认打印?'},() => {
|
|
|
uni.showLoading({mask:true})
|
|
uni.showLoading({mask:true})
|