| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724 |
- <template>
- <a-card :bordered="false">
- <a-tabs v-model="activeKey" type="card" @change="tabsClick">
- <a-tab-pane key="1" tab="实时房态"> </a-tab-pane>
- <a-tab-pane key="2" tab="日历房态"> </a-tab-pane>
- <a-tab-pane key="3" tab="客单"> </a-tab-pane>
- <a-tab-pane key="4" tab="远期房态"> </a-tab-pane>
- <a-tab-pane key="5" tab="物品租借"> </a-tab-pane>
- <a-tab-pane key="6" tab="客人留言"> </a-tab-pane>
- <a-tab-pane key="7" tab="客人物品管理"> </a-tab-pane>
- </a-tabs>
- <div
- v-if="activeKey === '1'"
- style="display: flex; height: calc(100vh - 240px)"
- >
- <div style="width: 80%" class="course-week">
- <div style="display: flex; flex-direction: column">
- <div style="display: flex; gap: 5px; flex-flow: wrap">
- <a-dropdown :disabled="scheduleBtnDis">
- <a-menu slot="overlay" @click="scheduleClick">
- <a-menu-item key="1"> 散客预定 </a-menu-item>
- <a-menu-item key="2"> 团队预定</a-menu-item>
- </a-menu>
- <a-button type="danger"> 预定 <a-icon type="down" /> </a-button>
- </a-dropdown>
- <a-dropdown :disabled="checkInBtnDis">
- <a-menu slot="overlay" @click="handleMenuClick">
- <a-menu-item key="1"> 散客入住 </a-menu-item>
- <a-menu-item key="2"> 团队入住</a-menu-item>
- </a-menu>
- <a-button type="danger">
- 入住 <a-icon type="down" />
- </a-button> </a-dropdown
- ><a-button
- style="margin-bottom: 10px"
- @click="handleClean"
- :disabled="cleanDisabled"
- type="danger"
- >置干净</a-button
- ><a-button
- style="margin-bottom: 10px"
- @click="handleDirty"
- type="danger"
- :disabled="dirtyDisabled"
- >置脏</a-button
- >
- <a-button
- v-if="wxCompleteBtn"
- style="margin-bottom: 10px"
- @click="handleCompleteRepair"
- type="danger"
- >完成维修</a-button
- >
- <a-button
- v-else
- style="margin-bottom: 10px"
- @click="handleWx"
- :disabled="lockDisabled"
- type="danger"
- >置维修</a-button
- >
- <a-button
- v-if="offLockBtn"
- style="margin-bottom: 10px"
- @click="handleOffLock"
- type="danger"
- >解锁</a-button
- ><a-button
- v-else
- style="margin-bottom: 10px"
- @click="handleLock"
- :disabled="lockDisabled"
- type="danger"
- >锁房</a-button
- >
- <a-button
- disabled
- style="margin-bottom: 10px"
- @click="handleAdd"
- type="danger"
- >联房</a-button
- ><a-button
- disabled
- style="margin-bottom: 10px"
- @click="handleAdd"
- type="danger"
- >批量制卡</a-button
- >
- <!-- <a-button style="margin-bottom: 10px" @click="toPage" type="danger"
- >查询散客详单</a-button
- >
- <a-button
- style="margin-bottom: 10px"
- @click="toTeamPage"
- type="danger"
- >查询团队详单</a-button
- > -->
- </div>
- <div class="week-top">
- <div class="w-choose-status">
- <div v-for="sta in roomStatusColorList">
- <span class="square" :style="{ background: sta.extend }"></span>
- <span class="title">{{ sta.title }}</span>
- </div>
- </div>
- <div class="w-choose-status">
- 批量操作<a-switch
- v-model="multipleRoom"
- @change="multipleRoomChange"
- />
- </div>
- </div>
- </div>
- <div class="week-table" style="overflow: hidden auto">
- <div id="components-grid-demo-playground" class="w-time-period-list">
- <div
- v-for="(period, cIndex) in roomList"
- :key="`period${cIndex}`"
- style="padding: 5px"
- >
- <p>
- <span style="color: rgba(0, 186, 173, 1); font-weight: 600">
- {{ period.buildingName }}{{ period.name }}
- </span>
- <a-divider type="vertical" />
- <span style="padding-right: 5px"
- >{{ period.rooms.length }}间:在住{{
- checkInCount(period.rooms)
- }}间/空置{{ vacantCount(period.rooms) }}间</span
- >
- <a-icon
- type="right"
- v-if="period.collapse == 0"
- @click="collapseClick(period, 1)"
- />
- <a-icon type="down" v-else @click="collapseClick(period, 0)" />
- </p>
- <a-row :gutter="[5, 5]" v-show="period.collapse == 1">
- <a-col
- v-for="(roomLive, roomLiveIndex) in period.rooms"
- :key="`period${cIndex}roomLive${roomLiveIndex}`"
- :span="3"
- @click.stop="roomItemClick(roomLive)"
- @dblclick.stop="handleBillInfo(roomLive)"
- >
- <!-- <div class="post-mark"></div> -->
- <div
- class="room-item"
- :style="{
- background:
- roomStatusColorList && roomStatusColorList.length > 0
- ? getRoomStatusColor(roomLive.roomInfo.roomStatus)
- : '',
- }"
- >
- <div
- class="select-cell"
- v-if="roomLive.roomInfo.state == 88"
- >
- <a-icon
- type="check-circle"
- theme="twoTone"
- two-tone-color="#52c41a"
- style="font-size: 40px"
- />
- </div>
- <a-popover placement="rightTop">
- <template
- slot="content"
- v-if="
- roomLive.livingData && roomLive.livingData.livingOrder
- "
- >
- <p>
- 入住:{{ roomLive.livingData.livingOrder.arrivalTime }}
- </p>
- <p>
- 预离:{{ roomLive.livingData.livingOrder.dueOutTime }}
- </p>
- <p>
- 已住:{{ roomLive.livingData.livingOrder.liveDayCount }}晚 已付:{{ roomLive.livingData.livingOrder.shouKuan }}元
- </p>
- <!-- <p>来源:{{ roomLive.detail.mobile }} 消费:300元</p> -->
- <p>
- 房价:{{
- roomLive.livingData.price &&
- roomLive.livingData.price.length > 0
- ? roomLive.livingData.price[0].price
- : 0
- }}/晚 余额:{{ (roomLive.livingData.livingOrder.shouKuan - roomLive.livingData.livingOrder.xiaoFei) }}
- <!-- {{ roomLive.detail.balance }} -->
- </p>
- <p>
- 来源:{{
- getCustomerSourceList(
- roomLive.livingData.livingOrder.customerSource
- )
- }}
- </p>
- <p>注:{{ roomLive.livingData.livingOrder.remark }}</p>
- </template>
- <template
- slot="title"
- v-if="
- roomLive.livingData && roomLive.livingData.livingOrder
- "
- >
- <p>
- 客人姓名:{{
- roomLive.livingData.livingCustomers
- ? roomLive.livingData.livingCustomers.customerName
- : ""
- }}
- 性别:{{
- roomLive.livingData.livingCustomers
- ? roomLive.livingData.livingCustomers.gender == 1
- ? "男"
- : "女"
- : ""
- }}
- </p>
- <p>
- 手机号:{{
- roomLive.livingData.livingCustomers
- ? roomLive.livingData.livingCustomers.phone
- : ""
- }}
- </p>
- <!-- <p>同住人:{{ roomLive.detail.mobile }} 性别:女</p> -->
- </template>
- <template
- slot="content"
- v-if="
- !roomLive.livingData ||
- !roomLive.livingData.livingOrder
- "
- >
- <p>
- 房态:{{
- getRoomStatusName(roomLive.roomInfo.roomStatus)
- }}
- </p>
- <p
- v-if="
- roomLive.bookingData &&
- roomLive.bookingData.bookingCustomer
- "
- >
- 预定人:{{
- roomLive.bookingData.bookingCustomer.name
- }}
- </p>
- <p
- v-if="
- roomLive.bookingData &&
- roomLive.bookingData.bookingCustomer
- "
- >
- 手机:{{ roomLive.bookingData.bookingCustomer.phone }}
- </p>
- <p
- v-if="
- roomLive.bookingData &&
- roomLive.bookingData.bookingOrder
- "
- >
- 预抵日:{{
- roomLive.bookingData.bookingOrder.arrivalTime
- }}
- </p>
- <!-- <p>
- 备注:{{ roomLive.livingData.livingOrder.remark }}
- </p> -->
- </template>
- <template
- slot="title"
- v-if="
- !roomLive.livingData ||
- !roomLive.livingData.livingOrder
- "
- >
- <span>{{ roomLive.layout.name }}</span
- ><span>¥{{ roomLive.layout.marketPrice }}/晚</span>
- </template>
- <a-dropdown :trigger="['contextmenu']">
- <div style="height: 100%">
- <div
- style="
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- "
- >
- <span
- style="
- font-size: 20px;
- font-weight: 600;
- margin-right: 2px;
- "
- >{{ roomLive.roomInfo.name }}</span
- >
- {{ roomLive.layout.name }}
- </div>
- <template
- v-if="
- roomLive.livingData &&
- roomLive.livingData.livingOrder
- "
- >
- <!-- <div>
- <span style="margin-right: 5px">{{
- roomLive.detail.occupant
- }}</span
- ><a-tag
- :style="{
- color:
- sourceType[roomLive.detail.source || 1]
- .color,
- }"
- >携</a-tag
- >
- </div> -->
- <div>
- <span>
- {{
- roomLive.livingData.livingCustomers
- .customerName
- }}
- <a-tag
- color="pink"
- v-if="
- roomLive.livingData.livingOrder
- .vipCustomerId
- "
- >
- vip
- </a-tag>
- </span>
- </div>
- <div>
- <span
- >{{
- roomLive.livingData.livingOrder.liveDayCount
- }}天/{{
- roomLive.livingData.livingOrder.arrivalTime.substr(
- 5,
- 5
- )
- }}</span
- >
- </div>
- <div
- style="
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- "
- >
- <!-- <span
- >¥{{ roomLive.detail.amout }}/付{{
- roomLive.detail.payAmount
- }}/余{{ roomLive.detail.balance }}</span
- > -->
- <span
- >¥{{
- roomLive.livingData.price &&
- roomLive.livingData.price.length > 0
- ? roomLive.livingData.price[0].price
- : 0
- }}/付{{
- roomLive.livingData && roomLive.livingData.livingOrder ?
- roomLive.livingData.livingOrder.shouKuan:0
- }}/余{{
- roomLive.livingData && roomLive.livingData.livingOrder ?
- (roomLive.livingData.livingOrder.shouKuan - roomLive.livingData.livingOrder.xiaoFei):0
- }}</span
- >
- </div>
- <a-tag color="blue" v-if="
- roomLive.livingData && roomLive.livingData.livingOrder
- && ((roomLive.livingData.livingOrder.shouKuan - roomLive.livingData.livingOrder.xiaoFei) < 0)
- ">欠</a-tag>
- <a-tag
- color="blue"
- v-if="
- roomLive.livingData &&
- roomLive.livingData.livingOrder &&
- roomLive.livingData.livingOrder.livingType == 2
- "
- >钟</a-tag
- >
- <a-tag
- color="blue"
- v-if="
- roomLive.livingData &&
- roomLive.livingData.livingOrder &&
- roomLive.livingData.livingOrder.isTeam
- "
- >团</a-tag
- ><a-tag
- color="blue"
- v-if="
- roomLive.livingData &&
- roomLive.livingData.livingOrder &&
- roomLive.livingData.livingOrder.dueOutTime ==
- currentDate
- "
- >离</a-tag
- >
- <a-tag color="blue">{{
- getCustomerSourceList(
- roomLive.livingData.livingOrder.customerSource,
- true
- )
- }}</a-tag>
- </template>
- <template v-else>
- <div>
- <span
- >¥{{ roomLive.layout.marketPrice }}/晚</span
- >
- </div>
- <div>
- <span
- v-if="
- roomLive.bookingData &&
- roomLive.bookingData.bookingOrder &&
- roomLive.bookingData.bookingCustomer
- "
- >
- {{ roomLive.bookingData.bookingCustomer.name }}
- </span>
- </div>
- <div>
- <span
- v-if="
- roomLive.bookingData &&
- roomLive.bookingData.bookingOrder
- "
- >
- {{
- roomLive.bookingData.bookingOrder.dayCount
- }}天/{{
- roomLive.bookingData.bookingOrder.arrivalTime.substr(
- 5,
- 5
- )
- }}
- </span>
- </div>
- <!-- <div
- style="
- margin-top: 22px;
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- "
- >
- <span
- >注:{{
- roomLive.livingData.livingOrder.remark
- }}</span
- >
- </div> -->
- <a-tag
- v-if="
- roomLive.bookingData &&
- roomLive.bookingData.bookingOrder
- "
- >订</a-tag
- >
- </template>
- </div>
- <a-menu
- slot="overlay"
- @click="(e) => onMenuClick(e, roomLive)"
- >
- <a-menu-item
- key="1"
- v-if="
- !roomLive.livingData ||
- !roomLive.livingData.livingOrder
- "
- >
- 入住
- </a-menu-item>
- <a-menu-item
- key="2"
- v-if="
- !roomLive.livingData ||
- !roomLive.livingData.livingOrder
- "
- >
- 预定</a-menu-item
- >
- <a-menu-item
- key="31"
- v-if="roomLive.roomInfo.roomStatus === 2"
- >
- 置干净
- </a-menu-item>
- <a-menu-item key="3" v-else> 置脏 </a-menu-item>
- <a-menu-item
- key="41"
- v-if="roomLive.roomInfo.roomStatus === 5"
- >
- 完成维修
- </a-menu-item>
- <a-menu-item key="4" v-else> 置维修 </a-menu-item>
- <a-menu-item
- key="51"
- v-if="roomLive.roomInfo.roomStatus === 6"
- >
- 解锁
- </a-menu-item>
- <a-menu-item key="5" v-else> 锁房 </a-menu-item>
- <!-- <a-menu-item key="3"> 日志 </a-menu-item> -->
- </a-menu>
- </a-dropdown>
- </a-popover>
- </div>
- </a-col>
- </a-row>
- </div>
- </div>
- </div>
- </div>
- <div style="width: 1%"></div>
- <div style="width: 19%; overflow: hidden auto">
- <div>
- <a-input-search
- style="width: 100%; margin-bottom: 8px"
- placeholder="房间号/姓名/手机号/身份证号"
- enter-button="搜索"
- v-model="keyWord"
- type="danger"
- @search="checkChange"
- />
- </div>
- <p style="font-size: 16px; font-weight: 600; color: rgb(0, 186, 173)">
- 按楼层
- </p>
- <a-tree-select
- style="width: 100%"
- v-model="checkedroomBuildingFloorList"
- :tree-data="roomBuildingFloorTree"
- tree-checkable
- :show-checked-strategy="SHOW_PARENT"
- :replaceFields="{
- children: 'children',
- title: 'name',
- key: 'id',
- value: 'id',
- }"
- @change="checkChange"
- />
- <p
- style="
- font-size: 16px;
- font-weight: 600;
- color: rgb(0, 186, 173);
- margin-top: 10px;
- "
- >
- 按房态
- </p>
- <a-checkbox-group
- v-model="checkedRoomStatusList"
- :options="roomStatusList"
- @change="checkChange"
- >
- </a-checkbox-group>
- <p
- style="
- font-size: 16px;
- font-weight: 600;
- color: rgb(0, 186, 173);
- margin-top: 10px;
- "
- >
- 按来源
- </p>
- <a-checkbox-group
- v-model="checkedCustomerSourceList"
- :options="customerSourceList"
- @change="checkChange"
- >
- </a-checkbox-group>
- <p
- style="
- font-size: 16px;
- font-weight: 600;
- color: rgb(0, 186, 173);
- margin-top: 10px;
- "
- >
- 按房型
- </p>
- <a-checkbox-group
- v-model="checkedCesRoomLayoutList"
- :options="cesRoomLayoutList"
- @change="checkChange"
- >
- </a-checkbox-group>
- </div>
- </div>
- <template v-else-if="activeKey === '2'">
- <calendarfangtai> </calendarfangtai>
- </template>
- <template v-else-if="activeKey === '3'">
- <guestorders></guestorders>
- </template>
- <template v-else-if="activeKey === '4'">
- <forwardfangtai></forwardfangtai>
- </template>
- <template v-else-if="activeKey === '5'">
- <leasegoods></leasegoods>
- </template>
- <template v-else-if="activeKey === '6'">
- <membermessage></membermessage>
- </template>
- <template v-else-if="activeKey === '7'">
- <membergoodsmanage></membergoodsmanage>
- </template>
- <upkeep-room-modal ref="modalForm" @ok="modalWxFormOk"></upkeep-room-modal>
- <bill-room-info-modal
- ref="ModalBillRoomInfo"
- @ok="modalLockRoomFormOk"
- ></bill-room-info-modal>
- <bill-room-form-modal
- ref="ModalBillRoomForm"
- @ok="modalBillRoomFormOk"
- ></bill-room-form-modal>
- <schedule-room-modal
- ref="ModalScheduleRoom"
- @ok="modalFormOk"
- ></schedule-room-modal>
- <schedule-team-room-modal
- ref="ModalScheduleTeamRoom"
- @ok="modalTeamFormOk"
- ></schedule-team-room-modal>
- <edit-schedule-room-modal
- ref="ModalEditScheduleRoom"
- @ok="modalFormOk"
- ></edit-schedule-room-modal>
- <lock-room-modal
- ref="ModalLockRoom"
- @ok="modalLockRoomFormOk"
- ></lock-room-modal>
- <clean-room-modal
- ref="ModalCleanRoom"
- @ok="modalLockRoomFormOk"
- ></clean-room-modal>
- </a-card>
- </template>
- <script>
- import "@/assets/less/TableExpand.less";
- // import { mixinDevice } from "@/utils/mixin";
- // import { JeecgListMixin } from "@/mixins/JeecgListMixin";
- import { httpAction, getAction, postAction } from "@/api/manage";
- import UpkeepRoomModal from "./modules/upkeep/UpkeepRoomModal.vue";
- import BillRoomInfoModal from "./modules/checkIn/BillRoomInfoModal.vue";
- import BillRoomFormModal from "./modules/checkIn/BillRoomFormModal.vue";
- import ScheduleRoomModal from "./modules/schedule/ScheduleRoomModal.vue";
- import ScheduleTeamRoomModal from "./modules/scheduleTeam/ScheduleRoomModal.vue";
- import EditScheduleRoomModal from "./modules/schedule/EditScheduleRoomModal.vue";
- import LockRoomModal from "./modules/lock/LockRoomModal.vue";
- import CleanRoomModal from "./modules/clean/CleanRoomModal.vue";
- import calendarfangtai from "./calendarfangtai";
- import forwardfangtai from "./forwardfangtai";
- import guestorders from "./guestorders";
- import leasegoods from "./leasegoods";
- import membermessage from "./membermessage";
- import membergoodsmanage from "./membergoodsmanage";
- import { TreeSelect } from "ant-design-vue";
- import moment from "moment";
- const SHOW_PARENT = TreeSelect.SHOW_PARENT;
- export default {
- name: "BusMeetingRoomList",
- // mixins: [JeecgListMixin, mixinDevice],
- components: {
- UpkeepRoomModal,
- BillRoomInfoModal,
- BillRoomFormModal,
- ScheduleRoomModal,
- ScheduleTeamRoomModal,
- EditScheduleRoomModal,
- calendarfangtai,
- guestorders,
- forwardfangtai,
- leasegoods,
- membermessage,
- membergoodsmanage,
- LockRoomModal,
- CleanRoomModal,
- },
- data() {
- return {
- currentDate: moment(new Date()).format("YYYY-MM-DD"),
- activeKey: "1",
- timeId: null,
- multipleRoom: false,
- keyWord: "",
- checkedroomBuildingFloorList: [],
- SHOW_PARENT,
- cardStatus: {
- 0: {
- title: "空净",
- color: "rgba(67, 207, 124, 1)",
- },
- 1: {
- title: "在住",
- color: "#00a0e9",
- },
- 2: {
- title: "今日预离",
- color: "rgba(10, 122, 114, 1)",
- },
- 3: {
- title: "欠费",
- color: "rgba(172, 51, 193, 1)",
- },
- 4: {
- title: "锁房/脏房",
- color: "rgba(128, 128, 128, 1)",
- },
- },
- sourceType: {
- 0: {
- title: "美团",
- color: "rgba(67, 207, 124, 1)",
- },
- 1: {
- title: "携程",
- color: "#00a0e9",
- },
- 2: {
- title: "飞猪",
- color: "rgba(10, 122, 114, 1)",
- },
- 3: {
- title: "去哪儿",
- color: "rgba(172, 51, 193, 1)",
- },
- 4: {
- title: "同程艺龙",
- color: "rgba(128, 128, 128, 1)",
- },
- 5: {
- title: "微信订房",
- color: "rgba(128, 128, 128, 1)",
- },
- },
- startDate: "",
- endDate: "",
- customerSourceList: [],
- checkedCustomerSourceList: [],
- cesRoomLayoutList: [],
- checkedCesRoomLayoutList: [],
- roomBuildingFloorTree: [],
- roomStatusColorList: [],
- roomList: [],
- oldRoomList: [],
- roomStatusList: [],
- checkedRoomStatusList: [],
- scheduleBtnDis: false,
- checkInBtnDis: false,
- };
- },
- watch: {
- activeKey(key) {
- console.log("activeKey", key);
- },
- },
- computed: {
- lockDisabled() {
- return !this.roomList.some((t) =>
- t.rooms.some((c) => c.roomInfo.state === 88)
- );
- },
- offLockBtn() {
- return this.roomList.some((t) =>
- t.rooms.some(
- (c) => c.roomInfo.state === 88 && c.roomInfo.roomStatus === 6
- )
- );
- },
- wxCompleteBtn() {
- return this.roomList.some((t) =>
- t.rooms.some(
- (c) => c.roomInfo.state === 88 && c.roomInfo.roomStatus === 5
- )
- );
- },
- cleanDisabled() {
- return !this.roomList.some((t) =>
- t.rooms.some(
- (c) =>
- c.roomInfo.state === 88 &&
- (c.roomInfo.roomStatus === 2 || c.roomInfo.roomStatus === 4)
- )
- );
- },
- dirtyDisabled() {
- return !this.roomList.some((t) =>
- t.rooms.some(
- (c) =>
- c.roomInfo.state === 88 &&
- (c.roomInfo.roomStatus === 1 || c.roomInfo.roomStatus === 3)
- )
- );
- },
- },
- created() {
- // 禁用右键
- // document.oncontextmenu = new Function("event.returnValue=false");
- var _info = JSON.parse(localStorage.getItem("storeInfo"));
- // if (_info) {
- // this.model.hotelId = _info.id;
- // }
- getAction("/business/busDictItem/list", {
- hotelId: _info.id,
- dictId: "1639538915239743490",
- }).then((res) => {
- if (res.success) {
- var list = [];
- res.result.records.forEach((item) => {
- list.push({ label: item.itemText, value: item.id });
- });
- this.customerSourceList = list;
- }
- });
- getAction("/rooms/cesRoomLayout/list", {
- pageSize: 99999,
- pageNo: 1,
- }).then((res) => {
- if (res.success) {
- var list = [];
- res.result.records.forEach((item) => {
- list.push({ label: item.name, value: item.id });
- });
- this.cesRoomLayoutList = list;
- }
- });
- getAction("/rooms/cesRoomBuildingFloor/tree", {}).then((res) => {
- if (res.success) {
- this.roomBuildingFloorTree = res.result;
- }
- });
- getAction("/rooms/cesRooms/room-status-color", {}).then((res) => {
- if (res.success) {
- this.roomStatusColorList = res.result;
- var list = [];
- res.result.forEach((item) => {
- list.push({ label: item.title, value: item.value });
- });
- this.roomStatusList = list;
- }
- });
- this.loadData();
- },
- mounted() {
- // this.handleBillInfo();
- // this.handleCheckInAdd()
- // this.$refs.ModalScheduleRoom.addList([]);
- // this.$refs.ModalScheduleRoom.title = "预定登记";
- // this.$refs.ModalScheduleRoom.disableSubmit = false;
- // this.$refs.ModalScheduleTeamRoom.addList([]);
- // this.$refs.ModalScheduleTeamRoom.title = "团队预定登记";
- // this.$refs.ModalScheduleTeamRoom.disableSubmit = false;
- // this.$refs.ModalEditScheduleRoom.addList([]);
- // this.$refs.ModalEditScheduleRoom.title = "详单";
- // this.$refs.ModalEditScheduleRoom.disableSubmit = false;
- },
- methods: {
- moment,
- getCustomerSourceList(customerSource, first) {
- var find = this.customerSourceList.find((t) => t.value == customerSource);
- if (find) {
- return first ? find.label.substr(0, 1) : find.label;
- }
- return "";
- },
- checkInCount(rooms) {
- return rooms.filter((t) => t.livingData && t.livingData.livingOrder)
- .length;
- },
- vacantCount(rooms) {
- return rooms.filter((t) => !t.livingData || !t.livingData.livingOrder)
- .length;
- },
- tabsClick(e) {
- if (e == "1") {
- this.loadData();
- }
- },
- getRoomStatusColor(roomStatus) {
- var find = this.roomStatusColorList.find((t) => t.value == roomStatus);
- return find ? find.extend : "";
- },
- getRoomStatusName(roomStatus) {
- var find = this.roomStatusList.find((t) => t.value == roomStatus);
- return find ? find.label : "";
- },
- toPage() {
- this.$router.push({
- // path: "/room/scheduledetail",
- // query: { id: "YD20230331112026203" },
- name: "room-scheduledetail",
- params: { id: "YD20230331112026203" },
- });
- },
- toTeamPage() {
- this.$router.push({
- // path: "/room/scheduleteamdetail",
- // query: { id: "YD20230403170240075" },
- name: "room-scheduleteamdetail",
- params: { id: "YD20230403170240075" },
- });
- },
- addScheduleTeam() {
- this.$refs.ModalScheduleTeamRoom.addList([]);
- this.$refs.ModalScheduleTeamRoom.title = "团队预定登记";
- this.$refs.ModalScheduleTeamRoom.disableSubmit = false;
- },
- scheduleClick(e) {
- var selectRoom = [];
- this.roomList.forEach((t) => {
- t.rooms.forEach((c) => {
- if (c.roomInfo.state === 88) {
- c.roomInfo.marketPrice = c.layout.marketPrice;
- selectRoom.push(c.roomInfo);
- }
- });
- });
- this.$refs.ModalScheduleRoom.addList(selectRoom, e.key);
- this.$refs.ModalScheduleRoom.title =
- e.key == "1" ? "散客预定登记" : "团队预定登记";
- this.$refs.ModalScheduleRoom.disableSubmit = false;
- },
- handleMenuClick(e) {
- console.log("click", e);
- var selectRoom = [];
- this.roomList.forEach((t) => {
- t.rooms.forEach((c) => {
- if (c.roomInfo.state === 88) {
- c.roomInfo.marketPrice = c.layout.marketPrice;
- selectRoom.push(c.roomInfo);
- }
- });
- });
- this.$refs.ModalBillRoomForm.addList(selectRoom, e.key);
- this.$refs.ModalBillRoomForm.title =
- e.key == "1" ? "散客入住登记" : "团队入住登记";
- this.$refs.ModalBillRoomForm.disableSubmit = false;
- },
- roomItemClick(roomLive) {
- // 清除上一次的定时器
- if (this.timeId) {
- clearTimeout(this.timeId);
- }
- this.timeId = setTimeout(() => {
- if (!this.multipleRoom && roomLive.roomInfo.state !== 88) {
- this.roomList.forEach((item) => {
- item.rooms.forEach((c) => {
- if (c.roomInfo.state === 88) {
- c.roomInfo.state = 0;
- }
- });
- });
- }
- if (roomLive.roomInfo.state !== 88) {
- roomLive.roomInfo.state = 88;
- if (roomLive.livingData && roomLive.livingData.livingOrder) {
- this.checkInBtnDis = true;
- } else {
- this.checkInBtnDis = false;
- }
- if (
- (roomLive.livingData && roomLive.livingData.livingOrder) ||
- (roomLive.bookingData && roomLive.bookingData.bookingOrder)
- ) {
- this.scheduleBtnDis = true;
- } else {
- this.scheduleBtnDis = false;
- }
- } else {
- roomLive.roomInfo.state = 0;
- }
- if (this.multipleRoom) {
- this.checkInBtnDis = false;
- this.scheduleBtnDis = false;
- this.roomList.forEach((item) => {
- item.rooms.forEach((c) => {
- if (c.roomInfo.state === 88) {
- if (!this.checkInBtnDis) {
- if (c.livingData && c.livingData.livingOrder) {
- this.checkInBtnDis = true;
- } else {
- this.checkInBtnDis = false;
- }
- }
- if (!this.scheduleBtnDis) {
- if (
- (c.livingData && c.livingData.livingOrder) ||
- (c.bookingData && c.bookingData.bookingOrder)
- ) {
- this.scheduleBtnDis = true;
- } else {
- this.scheduleBtnDis = false;
- }
- }
- }
- });
- });
- }
- // 清除定时器
- clearTimeout(this.timeId);
- }, 200);
- },
- handleBillInfo(roomLive) {
- console.log("handleBillInfo", roomLive);
- if (this.timeId) {
- clearTimeout(this.timeId);
- }
- if (!roomLive.livingData || !roomLive.livingData.livingOrder) {
- if (!roomLive.bookingData || !roomLive.bookingData.bookingOrder) {
- this.handleCheckInAdd(roomLive);
- } else {
- this.$router.push({
- name: "room-scheduledetail",
- params: { id: roomLive.bookingData.bookingOrder.bookingOrdersNo },
- });
- }
- } else {
- this.$refs.ModalBillRoomInfo.add(
- roomLive.livingData.livingOrder.bookingOrderId,
- 1
- );
- this.$refs.ModalBillRoomInfo.title = "账单";
- this.$refs.ModalBillRoomInfo.disableSubmit = true;
- }
- roomLive.roomInfo.state = 0;
- },
- handleCheckInAdd(roomLive) {
- if (this.timeId) {
- clearTimeout(this.timeId);
- }
- roomLive.roomInfo.marketPrice = roomLive.layout.marketPrice;
- this.$refs.ModalBillRoomForm.addList([roomLive.roomInfo], 1);
- this.$refs.ModalBillRoomForm.title = "散客入住登记";
- this.$refs.ModalBillRoomForm.disableSubmit = false;
- },
- multipleRoomChange() {
- this.roomList.forEach((item) => {
- item.rooms.forEach((c) => {
- if (c.roomInfo.state == 88) {
- c.roomInfo.state = 0;
- }
- });
- });
- },
- onChange() {},
- onCheck(value, label, extra) {
- console.log("onCheck", value);
- console.log(
- "checkedroomBuildingFloorList",
- this.checkedroomBuildingFloorList
- );
- },
- checkChange(e) {
- console.log("e", e);
- console.log(
- "checkedroomBuildingFloorList",
- this.checkedroomBuildingFloorList
- );
- var list = this.oldRoomList;
- if (this.checkedCesRoomLayoutList.length > 0) {
- list = this.oldRoomList.reduce((acc, curr) => {
- const rooms = curr.rooms.filter((room) =>
- this.checkedCesRoomLayoutList.includes(room.layout.id)
- );
- acc.push({ ...curr, rooms });
- return acc;
- }, []);
- }
- if (this.checkedRoomStatusList.length > 0) {
- list = list.reduce((acc, curr) => {
- const rooms = curr.rooms.filter((room) =>
- this.checkedRoomStatusList.includes(
- room.roomInfo.roomStatus.toString()
- )
- );
- acc.push({ ...curr, rooms });
- return acc;
- }, []);
- }
- if (this.checkedCustomerSourceList.length > 0) {
- list = list.reduce((acc, curr) => {
- const rooms = curr.rooms.filter((room) =>
- room.livingData && room.livingData.livingOrder
- ? this.checkedCustomerSourceList.includes(
- room.livingData.livingOrder.customerSource
- )
- : room.bookingData && room.bookingData.bookingOrder
- ? this.checkedCustomerSourceList.includes(
- room.bookingData.bookingOrder.customerSource
- )
- : false
- );
- acc.push({ ...curr, rooms });
- return acc;
- }, []);
- }
- if (this.checkedroomBuildingFloorList.length > 0) {
- list = list.filter(
- (item) =>
- this.checkedroomBuildingFloorList.includes(item.buildingId) ||
- this.checkedroomBuildingFloorList.includes(item.id)
- );
- }
- if (this.keyWord) {
- //房号/姓名/手机号搜索
- list = list.reduce((acc, curr) => {
- const rooms = curr.rooms.filter(
- (room) =>
- room.roomInfo.name == this.keyWord ||
- (room.livingData && room.livingData.livingCustomers
- ? room.livingData.livingCustomers.customerName == this.keyWord
- : room.bookingData && room.bookingData.bookingCustomer
- ? room.bookingData.bookingCustomer.name == this.keyWord
- : false) ||
- (room.livingData && room.livingData.livingCustomers
- ? room.livingData.livingCustomers.phone == this.keyWord
- : room.bookingData && room.bookingData.bookingCustomer
- ? room.bookingData.bookingCustomer.phone == this.keyWord
- : false)
- );
- acc.push({ ...curr, rooms });
- return acc;
- }, []);
- }
- console.log("list2", list);
- this.roomList = list;
- },
- // roomStatusChange(e) {
- // console.log("e", e);
- // var list = this.oldRoomList;
- // if (this.checkedRoomStatusList.length > 0) {
- // list = this.oldRoomList.reduce((acc, curr) => {
- // const rooms = curr.rooms.filter((room) =>
- // this.checkedRoomStatusList.includes(room.roomInfo.roomStatus.toString())
- // );
- // acc.push({ ...curr, rooms });
- // return acc;
- // }, []);
- // }
- // console.log("list2", list);
- // this.roomList = list;
- // },
- collapseClick(row, value) {
- this.$set(row, "collapse", value);
- },
- handleAdd(e) {
- this.$refs.modalForm.add();
- this.$refs.modalForm.title = "维修";
- this.$refs.modalForm.disableSubmit = false;
- },
- modalWxFormOk() {
- this.loadData();
- },
- handleWx() {
- var selectRoom = [];
- this.roomList.forEach((t) => {
- t.rooms.forEach((c) => {
- if (c.roomInfo.state === 88) {
- selectRoom.push({ roomId: c.roomInfo.id, roomNo: c.roomInfo.name });
- }
- });
- });
- if (selectRoom.length === 0) {
- this.$message.warning("请先选择房间");
- return;
- }
- console.log("selectRoom", selectRoom);
- this.$refs.modalForm.add({ roomRepairList: selectRoom });
- this.$refs.modalForm.title = "维修";
- this.$refs.modalForm.disableSubmit = false;
- },
- handleLock(e) {
- var selectRoom = [];
- this.roomList.forEach((t) => {
- t.rooms.forEach((c) => {
- if (c.roomInfo.state === 88) {
- selectRoom.push({ roomId: c.roomInfo.id, roomNo: c.roomInfo.name });
- }
- });
- });
- if (selectRoom.length === 0) {
- this.$message.warning("请先选择房间");
- return;
- }
- console.log("selectRoom", selectRoom);
- this.$refs.ModalLockRoom.add({ roomLockList: selectRoom });
- this.$refs.ModalLockRoom.title = "锁房";
- this.$refs.ModalLockRoom.disableSubmit = false;
- },
- handleDirty() {
- var selectRoom = [];
- this.roomList.forEach((t) => {
- t.rooms.forEach((c) => {
- if (c.roomInfo.state === 88) {
- selectRoom.push(c.roomInfo.id);
- }
- });
- });
- if (selectRoom.length === 0) {
- this.$message.warning("请先选择房间");
- return;
- }
- var ids = selectRoom.join(",");
- postAction("/rooms/cesRooms/dirtyRoom?roomIds=" + ids, {}).then((res) => {
- if (res.success) {
- this.$message.success(res.message);
- this.loadData();
- }
- });
- },
- handleClean(e) {
- var selectRoom = [];
- this.roomList.forEach((t) => {
- t.rooms.forEach((c) => {
- if (c.roomInfo.state === 88) {
- selectRoom.push({ roomId: c.roomInfo.id, roomNo: c.roomInfo.name });
- }
- });
- });
- if (selectRoom.length === 0) {
- this.$message.warning("请先选择房间");
- return;
- }
- console.log("selectRoom", selectRoom);
- this.$refs.ModalCleanRoom.add({ roomCleanList: selectRoom });
- this.$refs.ModalCleanRoom.title = "清理房间";
- this.$refs.ModalCleanRoom.disableSubmit = false;
- },
- handleOffLock() {
- var selectRoom = [];
- this.roomList.forEach((t) => {
- t.rooms.forEach((c) => {
- if (c.roomInfo.state === 88) {
- selectRoom.push(c.roomInfo.id);
- }
- });
- });
- if (selectRoom.length === 0) {
- this.$message.warning("请先选择房间");
- return;
- }
- var ids = selectRoom.join(",");
- postAction("/fw/fwRoomLock/offLockRoom?roomIds=" + ids, {}).then(
- (res) => {
- if (res.success) {
- this.$message.success(res.message);
- this.loadData();
- }
- }
- );
- },
- handleCompleteRepair() {
- var selectRoom = [];
- this.roomList.forEach((t) => {
- t.rooms.forEach((c) => {
- if (c.roomInfo.state === 88) {
- selectRoom.push(c.roomInfo.id);
- }
- });
- });
- if (selectRoom.length === 0) {
- this.$message.warning("请先选择房间");
- return;
- }
- var ids = selectRoom.join(",");
- postAction("/fw/fwRoomRepair/completeRepairRoom?roomIds=" + ids, {}).then(
- (res) => {
- if (res.success) {
- this.$message.success(res.message);
- this.loadData();
- }
- }
- );
- },
- modalLockRoomFormOk() {
- this.loadData();
- },
- onMenuClick(e, row) {
- console.log("e", e);
- console.log("row", row);
- var that = this;
- if (e.key == "1") {
- if (row.bookingData && row.bookingData.bookingOrder) {
- this.$confirm({
- title: "提示",
- content: "此房间有预定是否预定转入住?",
- onOk: function () {
- that.$router.push({
- name: "room-scheduledetail",
- params: {
- id: row.bookingData.bookingOrder.bookingOrdersNo,
- },
- });
- },
- });
- } else {
- row.roomInfo.marketPrice = row.layout.marketPrice;
- this.$refs.ModalBillRoomForm.addList([row.roomInfo], 1);
- this.$refs.ModalBillRoomForm.title = "散客入住登记";
- this.$refs.ModalBillRoomForm.disableSubmit = false;
- }
- } else if (e.key == "2") {
- this.$refs.ModalScheduleRoom.addList([row.roomInfo], 1);
- this.$refs.ModalScheduleRoom.title = "散客预定登记";
- this.$refs.ModalScheduleRoom.disableSubmit = false;
- } else if (e.key == "3") {
- var selectRoom = [row.roomInfo.id];
- if (selectRoom.length === 0) {
- this.$message.warning("请先选择房间");
- return;
- }
- var ids = selectRoom.join(",");
- postAction("/rooms/cesRooms/dirtyRoom?roomIds=" + ids, {}).then(
- (res) => {
- if (res.success) {
- this.$message.success(res.message);
- this.loadData();
- }
- }
- );
- } else if (e.key == "31") {
- var selectRoom = [
- {
- roomId: row.roomInfo.id,
- roomNo: row.roomInfo.name,
- },
- ];
- if (selectRoom.length === 0) {
- this.$message.warning("请先选择房间");
- return;
- }
- console.log("selectRoom", selectRoom);
- this.$refs.ModalCleanRoom.add({ roomCleanList: selectRoom });
- this.$refs.ModalCleanRoom.title = "清理房间";
- this.$refs.ModalCleanRoom.disableSubmit = false;
- } else if (e.key == "4") {
- var selectRoom = [
- {
- roomId: row.roomInfo.id,
- roomNo: row.roomInfo.name,
- },
- ];
- if (selectRoom.length === 0) {
- this.$message.warning("请先选择房间");
- return;
- }
- console.log("selectRoom", selectRoom);
- this.$refs.modalForm.add({ roomRepairList: selectRoom });
- this.$refs.modalForm.title = "维修";
- this.$refs.modalForm.disableSubmit = false;
- } else if (e.key == "41") {
- var selectRoom = [row.roomInfo.id];
- if (selectRoom.length === 0) {
- this.$message.warning("请先选择房间");
- return;
- }
- var ids = selectRoom.join(",");
- postAction(
- "/fw/fwRoomRepair/completeRepairRoom?roomIds=" + ids,
- {}
- ).then((res) => {
- if (res.success) {
- this.$message.success(res.message);
- this.loadData();
- }
- });
- } else if (e.key == "51") {
- var selectRoom = [row.roomInfo.id];
- if (selectRoom.length === 0) {
- this.$message.warning("请先选择房间");
- return;
- }
- var ids = selectRoom.join(",");
- postAction("/fw/fwRoomLock/offLockRoom?roomIds=" + ids, {}).then(
- (res) => {
- if (res.success) {
- this.$message.success(res.message);
- this.loadData();
- }
- }
- );
- }
- },
- modalBillRoomFormOk(e) {
- this.loadData();
- console.log("e", e);
- this.$refs.ModalBillRoomInfo.add(e);
- this.$refs.ModalBillRoomInfo.title = "账单";
- this.$refs.ModalBillRoomInfo.disableSubmit = true;
- },
- modalFormOk(e) {
- console.log("e", e);
- this.loadData();
- this.$router.push({
- // path: "/room/scheduledetail",
- // query: { id: e },
- name: "room-scheduledetail",
- params: { id: e },
- });
- },
- modalTeamFormOk(e) {
- console.log("e", e);
- this.loadData();
- this.$router.push({
- // path: "/room/scheduledetail",
- // query: { id: e },
- name: "room-scheduleteamdetail",
- params: { id: e },
- });
- },
- loadData() {
- this.checkInBtnDis = false;
- this.scheduleBtnDis = false;
- getAction("/rooms/cesRooms/realtime-rooms", {}).then((res) => {
- if (res.success) {
- res.result.forEach((row) => {
- this.$set(row, "collapse", 1);
- });
- this.roomList = res.result;
- this.oldRoomList = JSON.parse(JSON.stringify(res.result));
- }
- });
- },
- },
- };
- </script>
- <style scoped>
- @import "~@assets/less/common.less";
- </style>
- <style scoped>
- .course-week {
- /* border: 1px solid #ddd; */
- /* padding: 1%; */
- box-sizing: border-box;
- display: flex;
- flex-direction: column;
- }
- .post-mark {
- position: relative;
- overflow: hidden;
- width: 100%;
- height: 100%;
- }
- .select-cell {
- position: absolute;
- width: 100%;
- height: 100%;
- left: 0;
- top: 0;
- z-index: 10;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- background: rgba(102, 102, 102, 0.5);
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- border-radius: 5px;
- display: flex;
- justify-content: center;
- align-items: center;
- }
- .week-top {
- display: flex;
- justify-content: space-between;
- align-items: center;
- width: 100%;
- height: 40px;
- padding: 0 1%;
- box-sizing: border-box;
- }
- .week-top .week-btn-wrap {
- width: 200px;
- display: flex;
- justify-content: space-around;
- color: #409eff;
- }
- .week-top .week-btn-wrap span {
- cursor: pointer;
- display: flex;
- justify-content: center;
- align-items: center;
- font-size: 15px;
- }
- .w-today-date {
- font-weight: bold;
- font-size: 16px;
- }
- .w-choose-status {
- display: flex;
- /* justify-content: flex-end;
- width: 200px; */
- }
- .w-choose-status > div {
- width: 100%;
- flex: 1;
- display: flex;
- padding: 0 2%;
- white-space: nowrap;
- line-height: 20px;
- box-sizing: border-box;
- }
- .w-choose-status > div .square {
- display: flex;
- width: 16px;
- height: 16px;
- border-radius: 4px;
- box-sizing: border-box;
- }
- .w-choose-status > div .title {
- display: flex;
- align-items: center;
- line-height: 16px;
- padding-left: 4px;
- font-size: 14px;
- box-sizing: border-box;
- }
- .week-table {
- display: flex;
- flex-direction: column;
- }
- .week-table .table-header {
- width: 100%;
- height: 80px;
- background: #eaedf2;
- display: flex;
- flex-direction: column;
- align-items: center;
- border-bottom: 1px solid #eaedf2;
- box-sizing: border-box;
- }
- .table-header .w-table-date,
- .table-week {
- width: 100%;
- height: 40px;
- text-align: left;
- display: flex;
- justify-content: center;
- align-items: center;
- }
- .table-header .w-table-date > span,
- .table-week > span {
- flex: 1;
- color: #000;
- height: 100%;
- font-size: 14px;
- display: flex;
- justify-content: center;
- align-items: center;
- font-weight: bold;
- }
- .w-table-date .w-day-item,
- .table-week .w-day-item {
- color: #000;
- font-size: 14px;
- display: flex;
- justify-content: center;
- align-items: center;
- }
- .week-table .w-time-period-list {
- width: 100%;
- }
- .w-time-period-list .w-time-period-row {
- width: 100%;
- min-height: 60px;
- }
- .w-time-period-col {
- width: 100%;
- min-height: 60px;
- display: flex;
- }
- .w-time-period-col .w-time-period {
- width: 12.5%;
- display: flex;
- justify-content: center;
- align-items: center;
- border-left: 1px solid #eaedf2;
- /* border-bottom: 1px solid #eaedf2; */
- box-sizing: border-box;
- }
- .w-time-period-col:last-child {
- border-bottom: 1px solid #eaedf2;
- }
- .meeting-room-center {
- transform: translate(-200%, 0%);
- width: 14px;
- font-size: 14px;
- word-wrap: break-word;
- position: absolute;
- }
- .w-time-period-col .w-row-day {
- width: 100%;
- display: flex;
- justify-content: center;
- }
- .w-row-day .w-things {
- flex: 1;
- display: flex;
- flex-direction: column;
- align-items: center;
- border-left: 1px solid #eaedf2;
- border-bottom: 1px solid #eaedf2;
- box-sizing: border-box;
- cursor: pointer;
- }
- .w-row-day .w-things:last-child {
- border-right: 1px solid #eaedf2;
- }
- .w-things .w-thing-item {
- display: flex;
- /* width: 80%; */
- height: 135px;
- font-size: 14px;
- flex-direction: column;
- justify-content: space-around;
- min-height: 50px;
- border-radius: 10px;
- margin: 2% 1%;
- padding: 1% 2%;
- cursor: pointer;
- color: #fff;
- background: #ff6200;
- box-sizing: border-box;
- transition: all 1s linear 0.5s;
- }
- .w-isCurDate {
- color: #ff2525 !important;
- }
- .w-noMore {
- min-height: 200px;
- padding: 2%;
- display: flex;
- justify-content: center;
- align-items: center;
- border: 1px solid rgba(156, 173, 173, 0.3);
- color: #9cadadb7;
- box-sizing: border-box;
- }
- .w_expand,
- .w_shrink {
- color: #0a98d5;
- cursor: pointer;
- width: 100%;
- padding: 2% 0;
- display: flex;
- justify-content: center;
- align-items: center;
- }
- </style>
- <style scoped>
- #components-grid-demo-playground [class~="ant-col"] {
- background: transparent;
- border: 0;
- }
- #components-grid-demo-playground .room-item {
- background: rgba(67, 207, 124, 1);
- height: 125px;
- /* line-height: 200px; */
- font-size: 13px;
- color: #f9f9f9;
- padding: 2px;
- border-radius: 5px;
- cursor: pointer;
- position: relative;
- }
- #components-grid-demo-playground pre {
- background: #f9f9f9;
- border-radius: 6px;
- font-size: 13px;
- padding: 8px 16px;
- }
- </style>
|