|
@ -1,7 +1,7 @@ |
|
|
<template> |
|
|
<template> |
|
|
<view class="checkout-detail-bg"> |
|
|
<view class="checkout-detail-bg"> |
|
|
<!-- 房间图片 --> |
|
|
<!-- 房间图片 --> |
|
|
<image class="room-img" :src="roomDetail.roomImg" mode="aspectFill"></image> |
|
|
<image class="room-img" :src="userInfo.houseTypeCoverImg" mode="aspectFill"></image> |
|
|
<!-- 基本信息卡片 --> |
|
|
<!-- 基本信息卡片 --> |
|
|
<view class="info-card"> |
|
|
<view class="info-card"> |
|
|
<view class="info-header"> |
|
|
<view class="info-header"> |
|
@ -283,29 +283,29 @@ export default { |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// if (!this.roomDetail.facilitiesCheckResults || this.roomDetail.facilitiesCheckResults.length === 0) { |
|
|
|
|
|
// uni.showToast({ title: "请完成设备检查", icon: "none" }); |
|
|
|
|
|
// return; |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
// 检查设备检查是否都已完成 |
|
|
// 检查设备检查是否都已完成 |
|
|
// const unfinishedDevices = this.roomDetail.facilitiesCheckResults.filter(item => |
|
|
if (!this.roomDetail.facilitiesCheckResults || this.roomDetail.facilitiesCheckResults.length === 0) { |
|
|
// item.checkResult === undefined || item.checkResult === null |
|
|
uni.showToast({ title: "请完成设备检查", icon: "none" }); |
|
|
// ); |
|
|
return; |
|
|
// if (unfinishedDevices.length > 0) { |
|
|
} |
|
|
// uni.showToast({ title: "请完成所有设备检查", icon: "none" }); |
|
|
|
|
|
// return; |
|
|
// 检查所有设备是否都是完好状态 |
|
|
// } |
|
|
const unfinishedDevices = this.roomDetail.facilitiesCheckResults.filter(item => |
|
|
|
|
|
item.checkResult === undefined || item.checkResult === null |
|
|
// if (!this.value || this.value.trim() === '') { |
|
|
); |
|
|
// uni.showToast({ title: "请输入其他说明", icon: "none" }); |
|
|
if (unfinishedDevices.length > 0) { |
|
|
// return; |
|
|
uni.showToast({ title: "请完成所有设备检查", icon: "none" }); |
|
|
// } |
|
|
return; |
|
|
|
|
|
} |
|
|
// if (!this.fileList || this.fileList.length === 0) { |
|
|
|
|
|
// uni.showToast({ title: "请上传图片或视频", icon: "none" }); |
|
|
// 检查是否所有设备都是完好状态(值为0) |
|
|
// return; |
|
|
const nonIntactDevices = this.roomDetail.facilitiesCheckResults.filter(item => |
|
|
// } |
|
|
item.checkResult !== 0 |
|
|
|
|
|
); |
|
|
|
|
|
if (nonIntactDevices.length > 0) { |
|
|
|
|
|
uni.showToast({ title: "所有设备必须都是完好状态才能提交", icon: "none" }); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
let parm = { |
|
|
let parm = { |
|
|
roomId: this.roomId, |
|
|
roomId: this.roomId, |
|
@ -313,6 +313,7 @@ export default { |
|
|
cleaned: this.cleaned, |
|
|
cleaned: this.cleaned, |
|
|
facilitiesCheckDesc: this.value, |
|
|
facilitiesCheckDesc: this.value, |
|
|
facilitiesCheckImages: this.fileList, |
|
|
facilitiesCheckImages: this.fileList, |
|
|
|
|
|
imageList:this.fileList |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
const res = await releaseRoom(parm); |
|
|
const res = await releaseRoom(parm); |
|
|