|
|
@@ -1,11 +1,10 @@
|
|
|
<template>
|
|
|
<view class="middle-area">
|
|
|
|
|
|
- <view @click="logout"> 退出 </view>
|
|
|
- <view @click="selectUser"> 客户 </view>
|
|
|
- <view @click="clearItemFn"> 清空花材 </view>
|
|
|
- <view>临时商品</view>
|
|
|
- <view @click="breakage"> 报损 </view>
|
|
|
+ <view @click="logout">退出</view>
|
|
|
+ <view @click="resetCustomer">选客户</view>
|
|
|
+ <view @click="clearItemFn">清空花材</view>
|
|
|
+ <view @click="breakage">报损</view>
|
|
|
<view @click="settle">结算 </view>
|
|
|
|
|
|
<!-- 清空花材 -->
|
|
|
@@ -50,8 +49,12 @@ export default {
|
|
|
|
|
|
},
|
|
|
methods:{
|
|
|
- //结算创建订单
|
|
|
+ resetCustomer(){
|
|
|
+ this.$util.hitRemind()
|
|
|
+ this.$emit('resetCustomer')
|
|
|
+ },
|
|
|
async setCreateOrder(){
|
|
|
+ this.$util.hitRemind()
|
|
|
try {
|
|
|
let arr = this.itemList.map(i=>({ productId:i.id, unitType: i.unitType, num: i.currentNum, property: i.property, unitPrice: i.currentUnitPrice }))
|
|
|
const {settleId,payId,payUserId,isPrint,proceeds,freight} = this.$refs.settlePop
|
|
|
@@ -75,18 +78,19 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
cancelPay(){
|
|
|
+ this.$util.hitRemind()
|
|
|
this.$refs.selectPayWayRef.close()
|
|
|
},
|
|
|
async settleReturn(){
|
|
|
+ this.$util.hitRemind()
|
|
|
this.setCreateOrder()
|
|
|
},
|
|
|
- selectCurrentActive(item){
|
|
|
- this.selectCurrentActiveItem = item
|
|
|
- },
|
|
|
selectPayWayBack(price){
|
|
|
+ this.$util.hitRemind()
|
|
|
console.log(price)
|
|
|
},
|
|
|
breakage(){
|
|
|
+ this.$util.hitRemind()
|
|
|
if(this.$util.isEmpty(this.itemList)) {
|
|
|
this.$msg('请选择报损花材')
|
|
|
return false
|
|
|
@@ -109,6 +113,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
settle(){
|
|
|
+ this.$util.hitRemind()
|
|
|
if(this.$util.isEmpty(this.itemList)) {
|
|
|
this.$msg('请选择结算花材')
|
|
|
return false
|
|
|
@@ -121,22 +126,25 @@ export default {
|
|
|
},
|
|
|
//清空花材弹框
|
|
|
clearItemFn(){
|
|
|
+ this.$util.hitRemind()
|
|
|
this.$refs.clearItemRef.open()
|
|
|
},
|
|
|
//确认清空花材
|
|
|
confirmClearItem(){
|
|
|
-
|
|
|
+ this.$util.hitRemind()
|
|
|
},
|
|
|
confirmLogout(){
|
|
|
+ this.$util.hitRemind()
|
|
|
uni.clearStorage()
|
|
|
this.$store.commit("setLoginInfo", {})
|
|
|
plus.runtime.restart()
|
|
|
},
|
|
|
logout(){
|
|
|
+ this.$util.hitRemind()
|
|
|
this.$refs.logoutRef.open()
|
|
|
},
|
|
|
delSelectItem(){
|
|
|
-
|
|
|
+ this.$util.hitRemind()
|
|
|
}
|
|
|
}
|
|
|
}
|