Commit 395e6649 authored by 盖献康's avatar 盖献康

bug(67347) - 医院自有设备 之前时间不可预约

parent 9a14bebd
...@@ -433,6 +433,7 @@ ...@@ -433,6 +433,7 @@
class="el-button--success--solid--four" class="el-button--success--solid--four"
plain plain
@click="handleSubscribeDevice(scope.row)" @click="handleSubscribeDevice(scope.row)"
:disabled="accordingToTime(scope.row.checkTime)"
>立即预约 >立即预约
</el-button> </el-button>
</template> </template>
...@@ -621,7 +622,7 @@ export default { ...@@ -621,7 +622,7 @@ export default {
// 计算的时间 // 计算的时间
const startTime = checkTime.split('-')[0] const startTime = checkTime.split('-')[0]
// 当前时间 // 当前时间
const currentDay = new Date().getHours() + ':' + new Date().getMinutes() const currentDay = new Date().getHours() + ':' + String(new Date().getMinutes()).padStart(2, '0')
// 计算的时间小于当前时间就false // 计算的时间小于当前时间就false
if (startTime < currentDay) { if (startTime < currentDay) {
return true return true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment