|
|
@@ -2,14 +2,15 @@
|
|
|
<view class="button-area">
|
|
|
<view class="active" @click="calcFn">{{calc == 'add' ? '+' : '-'}}</view>
|
|
|
<!-- <view class="active" @click="resetCustomer">选客</view> -->
|
|
|
- <view class="active" @click="gatheringFn()">收款</view>
|
|
|
<view class="active" @click="changeProperty">{{property==1 ? '花材' : '商品'}}</view>
|
|
|
<view class="active"
|
|
|
style="background-color:orange;color:white;border-color:orange;position:fixed;left:135upx;bottom:13upx;width:84upx;height:50upx;line-height:30upx;font-size:16upx;"
|
|
|
@click="goSettleCommit">结算 </view>
|
|
|
<view class="active" @click="toWastage">报损</view>
|
|
|
+ <view class="active" style="background-color:orange;color:white;border-color:orange;height:50upx;line-height:30upx;font-size:14upx;" @click="gatheringFn()">收款</view>
|
|
|
<view class="active" @click="clearItemFn">清空</view>
|
|
|
<view class="active" @click="logoutFn">退出</view>
|
|
|
+ <view class="active" @click="closeFn">关闭</view>
|
|
|
|
|
|
<!-- 清空 -->
|
|
|
<uni-popup ref="clearItemRef" type="dialog">
|
|
|
@@ -109,6 +110,21 @@ export default {
|
|
|
// #endif
|
|
|
},
|
|
|
methods:{
|
|
|
+ closeFn(){
|
|
|
+ // #ifdef APP-PLUS
|
|
|
+ let that = this
|
|
|
+ let type = uni.getSystemInfoSync().platform
|
|
|
+ switch(type){
|
|
|
+ case 'android':
|
|
|
+ plus.runtime.quit()
|
|
|
+ break;
|
|
|
+ case 'ios':
|
|
|
+ that.$msg('IOS暂不支持关闭')
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ }
|
|
|
+ // #endif
|
|
|
+ },
|
|
|
addToClear(){
|
|
|
let params = {
|
|
|
hasPay: 0,
|