|
|
@ -4,8 +4,7 @@ |
|
|
|
<view class="lm-list"> |
|
|
|
<view class="ll-item" v-for="(e,i) in boxList" :key="i" @click="itemClick(i)"> |
|
|
|
<view class="li-left"> |
|
|
|
|
|
|
|
<view class="ll-box">{{e.id || '-'}}号</view> |
|
|
|
<view class="ll-box"><view>{{e.cabinet_name || '-'}}</view></view> |
|
|
|
<view |
|
|
|
v-if="getleaseBoxType(e)" |
|
|
|
class="ll-tag" |
|
|
@ -16,14 +15,14 @@ |
|
|
|
<view class="li-content"> |
|
|
|
<!-- 储物柜 --> |
|
|
|
<view v-if="optionsQuery.page_id == 9"> |
|
|
|
<view class="lc-name">{{e.cabinet_name || '-'}}</view> |
|
|
|
<view class="lc-name">{{e.locker_price_name || '-'}}</view> |
|
|
|
<view class="lc-price"> |
|
|
|
<view>{{e.price || 0}}<text>{{e.dimensions[0] || '-'}}</text></view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- 租售柜 --> |
|
|
|
<view v-if="optionsQuery.page_id == 8"> |
|
|
|
<view class="lc-name">{{isRent(e)?e.cabinet_name || '-':e.goods_name || '-'}}</view> |
|
|
|
<view class="lc-name">{{e.goods_name || '-'}}</view> |
|
|
|
<view class="lc-price"> |
|
|
|
<view>{{e.price || '0'}}<text>{{e.unit || '-'}}</text></view> |
|
|
|
<view v-if="optionsQuery.page_id == 8&&isRent(e)">押金:{{e.deposit || '0'}}元</view> |
|
|
@ -96,6 +95,9 @@ export default { |
|
|
|
this.optionsQuery = _query; |
|
|
|
console.log(_query); |
|
|
|
this.getBoxList(); |
|
|
|
uni.setNavigationBarTitle({ |
|
|
|
title: _query.page_id == 8?'租售柜管理':_query.page_id == 9?'储物柜管理':'' |
|
|
|
}) |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
selectAll(){ |
|
|
@ -128,8 +130,11 @@ export default { |
|
|
|
deviceServer.get({ |
|
|
|
url: this.getListApi(), |
|
|
|
data: { |
|
|
|
cabine_ids: optionsQuery.id, |
|
|
|
brand_id: curStoreInfo.brand_id |
|
|
|
// cabine_ids: optionsQuery.id, |
|
|
|
// brand_id: curStoreInfo.brand_id, |
|
|
|
'filter[stadium_hardware_id]': optionsQuery.id, |
|
|
|
'filter[brand_id]': curStoreInfo.brand_id, |
|
|
|
'filter[stadium_id]': optionsQuery.stadium_id, |
|
|
|
}, |
|
|
|
failMsg: '加载失败!' |
|
|
|
}) |
|
|
@ -171,7 +176,10 @@ export default { |
|
|
|
content: _tipStr, |
|
|
|
showCancel: true, |
|
|
|
success: async modalRes=>{ |
|
|
|
if(modalRes.confirm)this.leaseReset(_selledList.map(el=>el.id).join(',')); |
|
|
|
if(modalRes.confirm){ |
|
|
|
this.leaseReset(_selledList.map(el=>el.id).join(',')) |
|
|
|
.then(this.getBoxList); |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
@ -185,7 +193,7 @@ export default { |
|
|
|
leaseReset(ids){ |
|
|
|
let { curStoreInfo } = this; |
|
|
|
util.showLoad(); |
|
|
|
deviceServer.get({ |
|
|
|
return deviceServer.get({ |
|
|
|
url: deviceApi.leaseReset, |
|
|
|
data: { |
|
|
|
brand_id: curStoreInfo.brand_id, |
|
|
@ -274,17 +282,27 @@ export default { |
|
|
|
padding: 10upx; |
|
|
|
width: 120upx; |
|
|
|
height: 120upx; |
|
|
|
line-height: 100upx; |
|
|
|
text-align: center; |
|
|
|
border-radius: 10upx; |
|
|
|
font-size: 32upx; |
|
|
|
color: #9a9a9d; |
|
|
|
overflow: hidden; |
|
|
|
text-overflow: ellipsis; |
|
|
|
white-space: nowrap; |
|
|
|
border: 2upx solid #ededf5; |
|
|
|
>view{ |
|
|
|
position: absolute; |
|
|
|
left: 50%; |
|
|
|
top: 50%; |
|
|
|
z-index: 2; |
|
|
|
transform: translate(-50%, -50%); |
|
|
|
width: 100%; |
|
|
|
height: 120upx; |
|
|
|
text-align: center; |
|
|
|
line-height: 120upx; |
|
|
|
font-size: 32upx; |
|
|
|
color: #9a9a9d; |
|
|
|
overflow: hidden; |
|
|
|
text-overflow: ellipsis; |
|
|
|
white-space: nowrap; |
|
|
|
} |
|
|
|
&::before{ |
|
|
|
content: ''; |
|
|
|
z-index: 0; |
|
|
|
position: absolute; |
|
|
|
left: 10upx; |
|
|
|
top: 50%; |
|
|
|