|
@@ -89,7 +89,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view style="text-align: right;">
|
|
<view style="text-align: right;">
|
|
|
<button @tap="assignOrder()" class="admin-button-com mini-btn blue" style="">刷新货位</button>
|
|
<button @tap="assignOrder()" class="admin-button-com mini-btn blue" style="">刷新货位</button>
|
|
|
- <button @tap="" class="admin-button-com mini-btn blue" style="margin-left:50upx;">隐藏货位</button>
|
|
|
|
|
|
|
+ <button @tap="changeView()" class="admin-button-com mini-btn blue" style="margin-left:50upx;">{{showSeat == 0 ?'显示货位':'隐藏货位'}}</button>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="module-com content-box">
|
|
<view class="module-com content-box">
|
|
|
<view class="commodity-view">
|
|
<view class="commodity-view">
|
|
@@ -125,14 +125,16 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view v-if="Number(s.noSeatNum)>0" style="margin-bottom:7upx;">
|
|
|
|
|
- 无货位 {{ s.noSeatNum }}
|
|
|
|
|
- </view>
|
|
|
|
|
- <view v-if="!$util.isEmpty(s.sendList)" style="margin-bottom:10upx;">
|
|
|
|
|
- <view v-for="(send, sendIndex) in s.sendList" style="margin-bottom:7upx;">
|
|
|
|
|
- {{ send.customName }} 货位:{{ send.seatSn }} 数量:{{ send.num }} {{ send.status == 0 ?'待上架':send.status == 1?'已上架':'已取消' }}
|
|
|
|
|
|
|
+ <block v-if="showSeat == 1">
|
|
|
|
|
+ <view v-if="Number(s.noSeatNum)>0" style="margin-bottom:7upx;">
|
|
|
|
|
+ 无货位 {{ s.noSeatNum }}
|
|
|
</view>
|
|
</view>
|
|
|
- </view>
|
|
|
|
|
|
|
+ <view v-if="!$util.isEmpty(s.sendList)" style="margin-bottom:10upx;">
|
|
|
|
|
+ <view v-for="(send, sendIndex) in s.sendList" style="margin-bottom:7upx;">
|
|
|
|
|
+ {{ send.customName }} 货位:{{ send.seatSn }} 数量:{{ send.num }} {{ send.status == 0 ?'待上架':send.status == 1?'已上架':'已取消' }}
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </block>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="summary-bar">
|
|
<view class="summary-bar">
|
|
@@ -305,7 +307,8 @@ export default {
|
|
|
wcPrintNum:1,
|
|
wcPrintNum:1,
|
|
|
T:null,
|
|
T:null,
|
|
|
orderSn:'',
|
|
orderSn:'',
|
|
|
- salt:''
|
|
|
|
|
|
|
+ salt:'',
|
|
|
|
|
+ showSeat:1
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
onPullDownRefresh() {
|
|
onPullDownRefresh() {
|
|
@@ -320,12 +323,22 @@ export default {
|
|
|
clearInterval(this.T)
|
|
clearInterval(this.T)
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ changeView(){
|
|
|
|
|
+ if(this.showSeat == 0){
|
|
|
|
|
+ this.assignOrder()
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.showSeat = 0
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
assignOrder(){
|
|
assignOrder(){
|
|
|
|
|
+ uni.showLoading()
|
|
|
assignSeat({id:this.detailInfo.id,salt:this.salt}).then(res=>{
|
|
assignSeat({id:this.detailInfo.id,salt:this.salt}).then(res=>{
|
|
|
|
|
+ uni.hideLoading()
|
|
|
if(res.code == 1){
|
|
if(res.code == 1){
|
|
|
if(res.data && res.data.assign == 1){
|
|
if(res.data && res.data.assign == 1){
|
|
|
this.$msg(res.msg)
|
|
this.$msg(res.msg)
|
|
|
this.initCgData()
|
|
this.initCgData()
|
|
|
|
|
+ this.showSeat = 1
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|