guadan
This commit is contained in:
@@ -94,6 +94,10 @@
|
||||
<template v-slot:item.name="{item}">
|
||||
{{item.follower?.u_name}}
|
||||
</template>
|
||||
<template v-slot:item.sex="{item}">
|
||||
{{item.follower?.sex}}
|
||||
</template>
|
||||
|
||||
<template #item.actions="{ item }">
|
||||
<div>
|
||||
<!-- 取消預訂 -->
|
||||
@@ -325,13 +329,13 @@
|
||||
<div v-for="bed in region_modal.currentSelectBeds" :key="bed.uuid" @click="selectBed(bed)" style="padding: 8px; border: 1px solid #d9d9d9; cursor: pointer; max-height: 250px;" :style="{
|
||||
backgroundColor: region_modal.currentSelectBed?.uuid === bed.uuid
|
||||
? '#bae7ff' // 當前選中
|
||||
: (bed.canUsed ? '#f6ffed' : '#fff1f0'), // 可用綠色,不可用紅色
|
||||
color: bed.canUsed ? 'black' : '#999', // 不可用時灰色文字
|
||||
pointerEvents: bed.canUsed ? 'auto' : 'none' // 不可用時無法點擊
|
||||
: ((bed.canUsed && bed.isActive && !bed.bedIsStop) ? '#f6ffed' : '#fff1f0'), // 可用綠色,不可用紅色
|
||||
color: (bed.canUsed && bed.isActive && !bed.bedIsStop) ? 'black' : '#999', // 不可用時灰色文字
|
||||
pointerEvents: (bed.canUsed && bed.isActive && !bed.bedIsStop) ? 'auto' : 'none' // 不可用時無法點擊
|
||||
}">
|
||||
<div style="font-weight: 500;">{{ bed.name }}</div>
|
||||
<div style="margin-top: 4px; font-size: 12px;">
|
||||
{{ bed.canUsed ? '可用' : '不可用' }}
|
||||
{{ (!bed.isActive || bed.bedIsStop) ? '停用' : (bed.canUsed ? '可用' : '不可用') }}
|
||||
</div>
|
||||
|
||||
<div
|
||||
@@ -884,6 +888,10 @@
|
||||
text: '姓名',
|
||||
value: 'name'
|
||||
},
|
||||
{
|
||||
text: '性別',
|
||||
value: 'sex'
|
||||
},
|
||||
{
|
||||
text: '掛單開始時間',
|
||||
value: 'checkinat'
|
||||
@@ -892,10 +900,6 @@
|
||||
text: '掛單結束時間',
|
||||
value: 'checkoutat'
|
||||
},
|
||||
{
|
||||
text: '房間',
|
||||
value: 'roomName'
|
||||
},
|
||||
{
|
||||
text: '床位',
|
||||
value: 'bedName'
|
||||
|
||||
@@ -51,6 +51,9 @@
|
||||
<template #item.created_at="{item}">
|
||||
{{item.created_at | timeString('YYYY/MM/DD HH:mm')}}
|
||||
</template>
|
||||
<template #item.activity="{item}">
|
||||
{{item.activity?.subject}}
|
||||
</template>
|
||||
</v-data-table>
|
||||
<v-container>
|
||||
<v-row class="align-baseline" wrap="false">
|
||||
@@ -114,7 +117,7 @@
|
||||
{ text: '掛單人數', value: 'guest_count' },
|
||||
{ text: '狀態', value: 'statusName', align: 'center' },
|
||||
{ text: '建立時間', value: 'created_at', align: 'center' },
|
||||
{ text: '備註', value: 'notes', align: 'center' },
|
||||
{ text: '關聯活動', value: 'activity', align: 'center' },
|
||||
{ text: '操作', value: 'actions', align: 'center' }
|
||||
],
|
||||
options: {
|
||||
|
||||
Reference in New Issue
Block a user