|
|
@@ -50,7 +50,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<u-action-sheet safeAreaInsetBottom :cancelText="'取消'" @close="show = false" :actions="listSheet" @select="selectClick" :title="'设置'" :show="show" v-if="selectData">
|
|
|
- <div style="line-height:40px;" v-if="selectData.roomInfo.roomStatus === 2" @click="handleClean">置净</div>
|
|
|
+ <div style="line-height:40px;" v-if="selectData.roomInfo.roomStatus === 2 || selectData.roomInfo.roomStatus === 4" @click="handleClean">置净</div>
|
|
|
<div style="line-height:40px;" v-else @click="handleDirty">置脏</div>
|
|
|
<div style="line-height:40px;" v-if="selectData.roomInfo.roomStatus === 6" @click="handleOffLock">解锁</div>
|
|
|
<div style="line-height:40px;" v-else @click="handleLock">锁定</div>
|
|
|
@@ -246,7 +246,11 @@ export default {
|
|
|
}
|
|
|
//在住
|
|
|
if (this.current == 1) {
|
|
|
-
|
|
|
+ arr.forEach(item => {
|
|
|
+ item.rooms = item.rooms.filter(ele => {
|
|
|
+ return ele.roomInfo.roomStatus == 3 || ele.roomInfo.roomStatus == 4
|
|
|
+ })
|
|
|
+ })
|
|
|
}
|
|
|
//预离
|
|
|
if (this.current == 2) {
|
|
|
@@ -282,11 +286,11 @@ export default {
|
|
|
}
|
|
|
//散客
|
|
|
if (this.current == 6) {
|
|
|
- // arr.forEach(ele => {
|
|
|
- // ele.rooms = ele.rooms.filter(item=>{
|
|
|
-
|
|
|
- // })
|
|
|
- // })
|
|
|
+ arr.forEach(ele => {
|
|
|
+ ele.rooms = ele.rooms.filter(item=>{
|
|
|
+ return item.livingData && item.livingData.livingOrder && this.getCustomerSourceList(item.livingData.livingOrder.customerSource).indexOf('散') > -1
|
|
|
+ })
|
|
|
+ })
|
|
|
}
|
|
|
//联房
|
|
|
if (this.current == 7) {
|
|
|
@@ -294,7 +298,11 @@ export default {
|
|
|
}
|
|
|
//脏房
|
|
|
if (this.current == 8) {
|
|
|
-
|
|
|
+ arr.forEach(item => {
|
|
|
+ item.rooms = item.rooms.filter(ele => {
|
|
|
+ return ele.roomInfo.roomStatus == 2 || ele.roomInfo.roomStatus == 4
|
|
|
+ })
|
|
|
+ })
|
|
|
}
|
|
|
console.log('arrarrarrarr', arr);
|
|
|
this.dataList = JSON.parse(JSON.stringify(arr))
|