fangtailive.vue 70 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126
  1. <template>
  2. <a-card :bordered="false">
  3. <a-tabs v-model="activeKey" type="card" @change="tabsClick">
  4. <a-tab-pane key="1" tab="实时房态"> </a-tab-pane>
  5. <a-tab-pane key="2" tab="日历房态"> </a-tab-pane>
  6. <a-tab-pane key="3" tab="客单"> </a-tab-pane>
  7. <a-tab-pane key="4" tab="远期房态"> </a-tab-pane>
  8. <a-tab-pane key="5" tab="物品租借"> </a-tab-pane>
  9. <a-tab-pane key="6" tab="客人留言"> </a-tab-pane>
  10. <a-tab-pane key="7" tab="客人物品管理"> </a-tab-pane>
  11. <a-tab-pane key="8" tab="房务查房"> </a-tab-pane>
  12. </a-tabs>
  13. <div
  14. v-if="activeKey === '1'"
  15. style="display: flex; height: calc(100vh - 240px)"
  16. >
  17. <div style="width: 80%" class="course-week">
  18. <div style="display: flex; flex-direction: column">
  19. <div style="display: flex; gap: 5px; flex-flow: wrap">
  20. <a-dropdown :disabled="scheduleBtnDis">
  21. <a-menu slot="overlay" @click="scheduleClick">
  22. <a-menu-item key="1"> 散客预定 </a-menu-item>
  23. <a-menu-item key="2"> 团队预定</a-menu-item>
  24. </a-menu>
  25. <a-button type="danger"> 预定 <a-icon type="down" /> </a-button>
  26. </a-dropdown>
  27. <a-dropdown :disabled="checkInBtnDis">
  28. <a-menu slot="overlay" @click="handleMenuClick">
  29. <a-menu-item key="1"> 散客入住 </a-menu-item>
  30. <a-menu-item key="2"> 团队入住</a-menu-item>
  31. </a-menu>
  32. <a-button type="danger">
  33. 入住 <a-icon type="down" />
  34. </a-button> </a-dropdown
  35. ><a-button
  36. style="margin-bottom: 10px"
  37. @click="handleClean"
  38. :disabled="cleanDisabled"
  39. type="danger"
  40. >置干净</a-button
  41. ><a-button
  42. style="margin-bottom: 10px"
  43. @click="handleDirty"
  44. type="danger"
  45. :disabled="dirtyDisabled"
  46. >置脏</a-button
  47. >
  48. <a-button
  49. v-if="wxCompleteBtn"
  50. style="margin-bottom: 10px"
  51. @click="handleCompleteRepair"
  52. type="danger"
  53. >完成维修</a-button
  54. >
  55. <a-button
  56. v-else
  57. style="margin-bottom: 10px"
  58. @click="handleWx"
  59. :disabled="lockDisabled"
  60. type="danger"
  61. >置维修</a-button
  62. >
  63. <a-button
  64. v-if="offLockBtn"
  65. style="margin-bottom: 10px"
  66. @click="handleOffLock"
  67. type="danger"
  68. >解锁</a-button
  69. ><a-button
  70. v-else
  71. style="margin-bottom: 10px"
  72. @click="handleLock"
  73. :disabled="lockDisabled"
  74. type="danger"
  75. >锁房</a-button
  76. >
  77. <a-button
  78. :disabled="joinDisabled"
  79. style="margin-bottom: 10px"
  80. @click="addUnion"
  81. type="danger"
  82. >联房</a-button
  83. ><a-button
  84. style="margin-bottom: 10px"
  85. @click="handleBatchCard"
  86. type="danger"
  87. >批量制卡</a-button
  88. >
  89. <a-button style="margin-bottom: 10px" @click="posOrderClick"
  90. ><a-icon type="exception" />非在住消费pos</a-button
  91. >
  92. <!-- <a-button style="margin-bottom: 10px" @click="toPage" type="danger"
  93. >查询散客详单</a-button
  94. >
  95. <a-button
  96. style="margin-bottom: 10px"
  97. @click="toTeamPage"
  98. type="danger"
  99. >查询团队详单</a-button
  100. > -->
  101. </div>
  102. <div class="week-top">
  103. <div class="w-choose-status">
  104. <div v-for="sta in roomStatusColorList">
  105. <span class="square" :style="{ background: sta.extend }"></span>
  106. <span class="title">{{ sta.title }}</span>
  107. </div>
  108. </div>
  109. <div class="w-choose-status">
  110. 批量操作<a-switch
  111. v-model="multipleRoom"
  112. @change="multipleRoomChange"
  113. />
  114. </div>
  115. </div>
  116. </div>
  117. <div class="week-table" style="overflow: hidden auto">
  118. <div id="components-grid-demo-playground" class="w-time-period-list">
  119. <div
  120. v-for="(period, cIndex) in roomList"
  121. :key="`period${cIndex}`"
  122. style="padding: 5px"
  123. >
  124. <p>
  125. <span style="color: rgba(0, 186, 173, 1); font-weight: 600">
  126. {{ period.buildingName }}{{ period.name }}
  127. </span>
  128. <a-divider type="vertical" />
  129. <span style="padding-right: 5px"
  130. >{{ period.rooms.length }}间:在住{{
  131. checkInCount(period.rooms)
  132. }}间/空置{{ vacantCount(period.rooms) }}间</span
  133. >
  134. <a-icon
  135. type="right"
  136. v-if="period.collapse == 0"
  137. @click="collapseClick(period, 1)"
  138. />
  139. <a-icon type="down" v-else @click="collapseClick(period, 0)" />
  140. </p>
  141. <a-row :gutter="[5, 5]" v-show="period.collapse == 1">
  142. <a-col
  143. v-for="(roomLive, roomLiveIndex) in period.rooms"
  144. :key="`period${cIndex}roomLive${roomLiveIndex}`"
  145. :span="3"
  146. @click.stop="roomItemClick(roomLive)"
  147. @dblclick.stop="handleBillInfo(roomLive)"
  148. >
  149. <!-- <div class="post-mark"></div> -->
  150. <div
  151. class="room-item"
  152. :style="{
  153. background:
  154. roomStatusColorList && roomStatusColorList.length > 0
  155. ? getRoomStatusColor(roomLive.roomInfo.roomStatus)
  156. : '',
  157. }"
  158. >
  159. <div
  160. class="select-cell"
  161. v-if="roomLive.roomInfo.state == 88"
  162. >
  163. <a-icon
  164. type="check-circle"
  165. theme="twoTone"
  166. two-tone-color="#52c41a"
  167. style="font-size: 40px"
  168. />
  169. </div>
  170. <a-popover
  171. placement="rightTop"
  172. :mouseLeaveDelay="0"
  173. overlayClassName="popoverWidth"
  174. >
  175. <template
  176. slot="content"
  177. v-if="
  178. roomLive.livingData && roomLive.livingData.livingOrder
  179. "
  180. >
  181. <p>
  182. 入住:{{ roomLive.livingData.livingOrder.arrivalTime }}
  183. </p>
  184. <p>
  185. 预离:{{ roomLive.livingData.livingOrder.dueOutTime }}
  186. </p>
  187. <p>
  188. 已住:{{
  189. roomLive.livingData.livingOrder.liveDayCount
  190. }}晚 已付:{{
  191. roomLive.livingData.livingOrder.shouKuan
  192. }}元
  193. </p>
  194. <!-- <p>来源:{{ roomLive.detail.mobile }} 消费:300元</p> -->
  195. <p>
  196. 房价:{{
  197. roomLive.livingData.price &&
  198. roomLive.livingData.price.length > 0
  199. ? roomLive.livingData.price[0].price
  200. : 0
  201. }}/晚 余额:{{
  202. roomLive.livingData.livingOrder.shouKuan -
  203. roomLive.livingData.livingOrder.xiaoFei
  204. }}
  205. <!-- {{ roomLive.detail.balance }} -->
  206. </p>
  207. <p>
  208. 来源:{{
  209. getCustomerSourceList(
  210. roomLive.livingData.livingOrder.customerSource
  211. )
  212. }}
  213. </p>
  214. <p>注:{{ roomLive.livingData.livingOrder.remark }}</p>
  215. </template>
  216. <template
  217. slot="title"
  218. v-if="
  219. roomLive.livingData && roomLive.livingData.livingOrder
  220. "
  221. >
  222. <p>
  223. 客人姓名:{{
  224. roomLive.livingData.livingCustomers
  225. ? roomLive.livingData.livingCustomers.customerName
  226. : ""
  227. }}
  228. 性别:{{
  229. roomLive.livingData.livingCustomers
  230. ? roomLive.livingData.livingCustomers.gender == 1
  231. ? "男"
  232. : "女"
  233. : ""
  234. }}
  235. </p>
  236. <p>
  237. 手机号:{{
  238. roomLive.livingData.livingCustomers
  239. ? roomLive.livingData.livingCustomers.phone
  240. : ""
  241. }}
  242. </p>
  243. <!-- <p>同住人:{{ roomLive.detail.mobile }} 性别:女</p> -->
  244. </template>
  245. <template
  246. slot="content"
  247. v-if="
  248. !roomLive.livingData ||
  249. !roomLive.livingData.livingOrder
  250. "
  251. >
  252. <p>
  253. 房态:{{
  254. getRoomStatusName(roomLive.roomInfo.roomStatus)
  255. }}
  256. </p>
  257. <p
  258. v-if="
  259. roomLive.bookingData &&
  260. roomLive.bookingData.bookingCustomer
  261. "
  262. >
  263. 预定人:{{
  264. roomLive.bookingData.bookingCustomer.name
  265. }}
  266. </p>
  267. <p
  268. v-if="
  269. roomLive.bookingData &&
  270. roomLive.bookingData.bookingCustomer
  271. "
  272. >
  273. 手机:{{ roomLive.bookingData.bookingCustomer.phone }}
  274. </p>
  275. <p
  276. v-if="
  277. roomLive.bookingData &&
  278. roomLive.bookingData.bookingOrder
  279. "
  280. >
  281. 预抵日:{{
  282. roomLive.bookingData.bookingOrder.arrivalTime
  283. }}
  284. </p>
  285. <!-- <p>
  286. 备注:{{ roomLive.livingData.livingOrder.remark }}
  287. </p> -->
  288. <template
  289. v-if="
  290. roomLive.roomInfo.roomStatus === 5 &&
  291. roomLive.repairInfo
  292. "
  293. >
  294. <p>维修时间:{{ roomLive.repairInfo.startDate }}</p>
  295. <p>结束时间:{{ roomLive.repairInfo.endDate }}</p>
  296. <p>维修原因:{{ roomLive.repairInfo.remark }}</p>
  297. </template>
  298. <template
  299. v-if="
  300. roomLive.roomInfo.roomStatus === 6 &&
  301. roomLive.lockInfo
  302. "
  303. >
  304. <p>锁房时间:{{ roomLive.lockInfo.createTime }}</p>
  305. <p>锁房原因:{{ roomLive.lockInfo.remark }}</p>
  306. </template>
  307. </template>
  308. <template
  309. slot="title"
  310. v-if="
  311. !roomLive.livingData ||
  312. !roomLive.livingData.livingOrder
  313. "
  314. >
  315. <span>{{ roomLive.layout.name }}</span
  316. ><span>¥{{ roomLive.layout.marketPrice }}/晚</span>
  317. </template>
  318. <a-dropdown :trigger="['contextmenu']">
  319. <div style="height: 100%">
  320. <div
  321. style="
  322. text-overflow: ellipsis;
  323. white-space: nowrap;
  324. overflow: hidden;
  325. "
  326. >
  327. <span
  328. style="
  329. font-size: 20px;
  330. font-weight: 600;
  331. margin-right: 2px;
  332. "
  333. >{{ roomLive.roomInfo.name }}</span
  334. >
  335. {{ roomLive.layout.name }}
  336. </div>
  337. <template
  338. v-if="
  339. roomLive.livingData &&
  340. roomLive.livingData.livingOrder
  341. "
  342. >
  343. <!-- <div>
  344. <span style="margin-right: 5px">{{
  345. roomLive.detail.occupant
  346. }}</span
  347. ><a-tag
  348. :style="{
  349. color:
  350. sourceType[roomLive.detail.source || 1]
  351. .color,
  352. }"
  353. >携</a-tag
  354. >
  355. </div> -->
  356. <div>
  357. <span>
  358. {{
  359. roomLive.livingData.livingCustomers
  360. ? roomLive.livingData.livingCustomers
  361. .customerName
  362. : ""
  363. }}
  364. <a-tag
  365. color="pink"
  366. v-if="
  367. roomLive.livingData.livingOrder
  368. .vipCustomerId
  369. "
  370. >
  371. vip
  372. </a-tag>
  373. </span>
  374. </div>
  375. <div>
  376. <span
  377. >{{
  378. roomLive.livingData.livingOrder.liveDayCount
  379. }}天/{{
  380. roomLive.livingData.livingOrder.arrivalTime.substr(
  381. 5,
  382. 5
  383. )
  384. }}</span
  385. >
  386. </div>
  387. <div
  388. style="
  389. text-overflow: ellipsis;
  390. white-space: nowrap;
  391. overflow: hidden;
  392. "
  393. >
  394. <!-- <span
  395. >¥{{ roomLive.detail.amout }}/付{{
  396. roomLive.detail.payAmount
  397. }}/余{{ roomLive.detail.balance }}</span
  398. > -->
  399. <span
  400. >¥{{
  401. roomLive.livingData.price &&
  402. roomLive.livingData.price.length > 0
  403. ? roomLive.livingData.price[0].price
  404. : 0
  405. }}/付{{
  406. roomLive.livingData &&
  407. roomLive.livingData.livingOrder
  408. ? roomLive.livingData.livingOrder.shouKuan
  409. : 0
  410. }}/余{{
  411. roomLive.livingData &&
  412. roomLive.livingData.livingOrder
  413. ? roomLive.livingData.livingOrder.shouKuan -
  414. roomLive.livingData.livingOrder.xiaoFei
  415. : 0
  416. }}</span
  417. >
  418. </div>
  419. <a-tag
  420. color="blue"
  421. v-if="
  422. roomLive.livingData &&
  423. roomLive.livingData.livingOrder &&
  424. roomLive.livingData.livingOrder.shouKuan -
  425. roomLive.livingData.livingOrder.xiaoFei <
  426. 0
  427. "
  428. >欠</a-tag
  429. >
  430. <a-tag
  431. color="blue"
  432. v-if="
  433. roomLive.livingData &&
  434. roomLive.livingData.livingOrder &&
  435. roomLive.livingData.livingOrder.livingType == 2
  436. "
  437. >钟</a-tag
  438. >
  439. <a-tag
  440. color="blue"
  441. v-if="
  442. roomLive.livingData &&
  443. roomLive.livingData.livingOrder &&
  444. roomLive.livingData.livingOrder.isTeam
  445. "
  446. >团</a-tag
  447. ><a-tag
  448. color="blue"
  449. v-if="
  450. roomLive.livingData &&
  451. roomLive.livingData.livingOrder &&
  452. roomLive.livingData.livingOrder.dueOutTime ==
  453. currentDate
  454. "
  455. >离</a-tag
  456. >
  457. <a-tag color="blue">{{
  458. getCustomerSourceList(
  459. roomLive.livingData.livingOrder.customerSource,
  460. true
  461. )
  462. }}</a-tag>
  463. </template>
  464. <template v-else>
  465. <div>
  466. <span
  467. >¥{{ roomLive.layout.marketPrice }}/晚</span
  468. >
  469. </div>
  470. <div>
  471. <span
  472. v-if="
  473. roomLive.bookingData &&
  474. roomLive.bookingData.bookingOrder &&
  475. roomLive.bookingData.bookingCustomer
  476. "
  477. >
  478. {{ roomLive.bookingData.bookingCustomer.name }}
  479. </span>
  480. </div>
  481. <div>
  482. <span
  483. v-if="
  484. roomLive.bookingData &&
  485. roomLive.bookingData.bookingOrder
  486. "
  487. >
  488. {{
  489. roomLive.bookingData.bookingOrder.dayCount
  490. }}天/{{
  491. roomLive.bookingData.bookingOrder.arrivalTime.substr(
  492. 5,
  493. 5
  494. )
  495. }}
  496. </span>
  497. </div>
  498. <!-- <div
  499. style="
  500. margin-top: 22px;
  501. text-overflow: ellipsis;
  502. white-space: nowrap;
  503. overflow: hidden;
  504. "
  505. >
  506. <span
  507. >注:{{
  508. roomLive.livingData.livingOrder.remark
  509. }}</span
  510. >
  511. </div> -->
  512. <a-tag
  513. v-if="
  514. roomLive.bookingData &&
  515. roomLive.bookingData.bookingOrder
  516. "
  517. >订</a-tag
  518. >
  519. </template>
  520. </div>
  521. <a-menu
  522. slot="overlay"
  523. style="width: 126px"
  524. @click="(e) => onMenuClick(e, roomLive)"
  525. >
  526. <template
  527. v-if="
  528. roomLive.roomInfo.roomStatus === 3 ||
  529. roomLive.roomInfo.roomStatus === 4
  530. "
  531. >
  532. <a-menu-item key="6"> 详单 </a-menu-item>
  533. <a-menu-item key="7"> 账单 </a-menu-item>
  534. </template>
  535. <a-menu-item
  536. key="1"
  537. v-if="
  538. (!roomLive.livingData ||
  539. !roomLive.livingData.livingOrder) &&
  540. roomLive.roomInfo.roomStatus !== 6 &&
  541. roomLive.roomInfo.roomStatus !== 5
  542. "
  543. >
  544. 入住
  545. </a-menu-item>
  546. <a-menu-item
  547. key="2"
  548. v-if="
  549. (!roomLive.livingData ||
  550. !roomLive.livingData.livingOrder) &&
  551. roomLive.roomInfo.roomStatus !== 6 &&
  552. roomLive.roomInfo.roomStatus !== 5
  553. "
  554. >
  555. 预定</a-menu-item
  556. >
  557. <a-menu-item
  558. key="31"
  559. v-if="roomLive.roomInfo.roomStatus === 2"
  560. >
  561. 置干净
  562. </a-menu-item>
  563. <a-menu-item
  564. key="3"
  565. v-else-if="
  566. roomLive.roomInfo.roomStatus !== 6 &&
  567. roomLive.roomInfo.roomStatus !== 5
  568. "
  569. >
  570. 置脏
  571. </a-menu-item>
  572. <template
  573. v-if="
  574. roomLive.roomInfo.roomStatus !== 3 &&
  575. roomLive.roomInfo.roomStatus !== 4
  576. "
  577. >
  578. <a-menu-item
  579. key="41"
  580. v-if="roomLive.roomInfo.roomStatus === 5"
  581. >
  582. 完成维修
  583. </a-menu-item>
  584. <a-menu-item
  585. key="4"
  586. v-else-if="roomLive.roomInfo.roomStatus !== 6"
  587. >
  588. 置维修
  589. </a-menu-item>
  590. <a-menu-item
  591. key="51"
  592. v-if="roomLive.roomInfo.roomStatus === 6"
  593. >
  594. 解锁
  595. </a-menu-item>
  596. <a-menu-item
  597. key="5"
  598. v-else-if="roomLive.roomInfo.roomStatus !== 5"
  599. >
  600. 锁房
  601. </a-menu-item>
  602. </template>
  603. <template
  604. v-if="
  605. roomLive.roomInfo.roomStatus === 3 ||
  606. roomLive.roomInfo.roomStatus === 4
  607. "
  608. >
  609. <a-menu-item key="8"> 查房 </a-menu-item>
  610. <a-menu-item key="9"> 入账 </a-menu-item>
  611. <a-menu-item key="10"> 续住/提前 </a-menu-item>
  612. <a-menu-item key="11"> 制房卡 </a-menu-item>
  613. <a-menu-item key="12"> 注销房卡 </a-menu-item>
  614. <a-menu-item key="13"> 换房 </a-menu-item>
  615. <a-menu-item key="14"> 合并联房 </a-menu-item>
  616. <a-menu-item key="15"> 添加同住 </a-menu-item>
  617. <a-menu-item key="16"> 结账退房 </a-menu-item>
  618. <a-menu-item key="17"> 撤销入住 </a-menu-item>
  619. </template>
  620. <a-menu-item key="18"> 日志 </a-menu-item>
  621. </a-menu>
  622. </a-dropdown>
  623. </a-popover>
  624. </div>
  625. </a-col>
  626. </a-row>
  627. </div>
  628. </div>
  629. </div>
  630. </div>
  631. <div style="width: 1%"></div>
  632. <div style="width: 19%; overflow: hidden auto">
  633. <div style="display:flex;justify-content: space-between;align-items:center;">
  634. <a-input-search
  635. style="width: 80%;"
  636. placeholder="房间号/姓名/手机号/身份证号"
  637. enter-button="搜索"
  638. v-model="keyWord"
  639. type="danger"
  640. @search="checkChange"
  641. />
  642. <a-button @click="readCard = true">读卡</a-button>
  643. </div>
  644. <p style="font-size: 16px; font-weight: 600; color: rgb(0, 186, 173);margin-top: 6px;">
  645. 按楼层
  646. </p>
  647. <a-tree-select
  648. style="width: 100%"
  649. v-model="checkedroomBuildingFloorList"
  650. :tree-data="roomBuildingFloorTree"
  651. tree-checkable
  652. :show-checked-strategy="SHOW_PARENT"
  653. :replaceFields="{
  654. children: 'children',
  655. title: 'name',
  656. key: 'id',
  657. value: 'id',
  658. }"
  659. @change="checkChange"
  660. />
  661. <p
  662. style="
  663. font-size: 16px;
  664. font-weight: 600;
  665. color: rgb(0, 186, 173);
  666. margin-top: 10px;
  667. "
  668. >
  669. 按房态
  670. </p>
  671. <a-checkbox-group
  672. v-model="checkedRoomStatusList"
  673. :options="roomStatusList"
  674. @change="checkChange"
  675. >
  676. </a-checkbox-group>
  677. <p
  678. style="
  679. font-size: 16px;
  680. font-weight: 600;
  681. color: rgb(0, 186, 173);
  682. margin-top: 10px;
  683. "
  684. >
  685. 按来源
  686. </p>
  687. <a-checkbox-group
  688. v-model="checkedCustomerSourceList"
  689. :options="customerSourceList"
  690. @change="checkChange"
  691. >
  692. </a-checkbox-group>
  693. <p
  694. style="
  695. font-size: 16px;
  696. font-weight: 600;
  697. color: rgb(0, 186, 173);
  698. margin-top: 10px;
  699. "
  700. >
  701. 按房型
  702. </p>
  703. <a-checkbox-group
  704. v-model="checkedCesRoomLayoutList"
  705. :options="cesRoomLayoutList"
  706. @change="checkChange"
  707. >
  708. </a-checkbox-group>
  709. <p style="font-size: 16px; font-weight: 600; color: rgb(0, 186, 173);margin-top: 10px;">
  710. 房间信息
  711. </p>
  712. <a-checkbox-group
  713. v-model="checkedCesRoomLayoutList"
  714. :options="['欠费', '无押金', '续住', '换房', '租借', '不足']"
  715. @change="checkChange"
  716. >
  717. </a-checkbox-group>
  718. <p style="font-size: 16px; font-weight: 600; color: rgb(0, 186, 173);margin-top: 10px;">
  719. 对客服务
  720. </p>
  721. <a-checkbox-group
  722. v-model="checkedCesRoomLayoutList"
  723. :options="['生日', '叫醒', '免打扰', '免查询']"
  724. @change="checkChange"
  725. >
  726. </a-checkbox-group>
  727. </div>
  728. </div>
  729. <template v-else-if="activeKey === '2'">
  730. <calendarfangtai> </calendarfangtai>
  731. </template>
  732. <template v-else-if="activeKey === '3'">
  733. <guestorders></guestorders>
  734. </template>
  735. <template v-else-if="activeKey === '4'">
  736. <forwardfangtai></forwardfangtai>
  737. </template>
  738. <template v-else-if="activeKey === '5'">
  739. <leasegoods></leasegoods>
  740. </template>
  741. <template v-else-if="activeKey === '6'">
  742. <membermessage></membermessage>
  743. </template>
  744. <template v-else-if="activeKey === '7'">
  745. <membergoodsmanage></membergoodsmanage>
  746. </template>
  747. <template v-else-if="activeKey === '8'">
  748. <fangwuLookRoom />
  749. </template>
  750. <upkeep-room-modal ref="modalForm" @ok="modalWxFormOk"></upkeep-room-modal>
  751. <bill-room-info-modal
  752. ref="ModalBillRoomInfo"
  753. @ok="modalLockRoomFormOk"
  754. ></bill-room-info-modal>
  755. <bill-room-form-modal
  756. ref="ModalBillRoomForm"
  757. @ok="modalBillRoomFormOk"
  758. ></bill-room-form-modal>
  759. <schedule-room-modal
  760. ref="ModalScheduleRoom"
  761. @ok="modalFormOk"
  762. ></schedule-room-modal>
  763. <schedule-team-room-modal
  764. ref="ModalScheduleTeamRoom"
  765. @ok="modalTeamFormOk"
  766. ></schedule-team-room-modal>
  767. <edit-schedule-room-modal
  768. ref="ModalEditScheduleRoom"
  769. @ok="modalFormOk"
  770. ></edit-schedule-room-modal>
  771. <lock-room-modal
  772. ref="ModalLockRoom"
  773. @ok="modalLockRoomFormOk"
  774. ></lock-room-modal>
  775. <clean-room-modal
  776. ref="ModalCleanRoom"
  777. @ok="modalLockRoomFormOk"
  778. ></clean-room-modal>
  779. <posOrderModal ref="posOrderModal" />
  780. <batchCardModal ref="batchCheckInModal" @ok="modalBatchhFormOk" />
  781. <liveBatchCardModal ref="liveBatchCardModal" @ok="liveBatchCardOk" />
  782. <batchCardModalCopy ref="batchCardModalCopy" />
  783. <!-- 右键菜单 -->
  784. <look-room-modalVue ref="lookRoomModalVue" @ok="modalLockRoomFormOk" />
  785. <continued-modalVue ref="continuedModalVue" @ok="modalLockRoomFormOk" />
  786. <select-check-in-room-order-modal
  787. ref="modalSelectCheckInRoomOrder"
  788. @ok="modalLockRoomFormOk"
  789. ></select-check-in-room-order-modal>
  790. <customer-modal
  791. ref="modalCustomerForm"
  792. @ok="modalLockRoomFormOk"
  793. ></customer-modal>
  794. <exchange-houses-modalVue
  795. ref="exchangeHousesModalVue"
  796. @ok="modalLockRoomFormOk"
  797. />
  798. <!-- 读卡弹窗 -->
  799. <a-modal :visible="readCard" :title="'快速查询'" @cancel="readCard = false" @ok="readCard = false">
  800. <a-row>
  801. <a-col :span="6">
  802. <a-button @click="()=>{ this.$message.error('接口程序未打开,请打开接口程序') }">
  803. 刷卡查询
  804. </a-button>
  805. </a-col>
  806. <a-col :span="6">
  807. <a-button disabled>注销房卡</a-button>
  808. </a-col>
  809. </a-row>
  810. <a-row style="margin-top:20px;">
  811. <a-col :span="6">
  812. <a-input :placeholder="'房间号'"></a-input>
  813. </a-col>
  814. </a-row>
  815. <a-row style="margin-top:20px;">
  816. <a-col :span="8">
  817. <a-input :placeholder="'入住日期'"></a-input>
  818. </a-col>
  819. <a-col :span="8" style="margin-left:10px;">
  820. <a-input :placeholder="'预离日期'"></a-input>
  821. </a-col>
  822. </a-row>
  823. </a-modal>
  824. </a-card>
  825. </template>
  826. <script>
  827. import "@/assets/less/TableExpand.less";
  828. // import { mixinDevice } from "@/utils/mixin";
  829. // import { JeecgListMixin } from "@/mixins/JeecgListMixin";
  830. import { httpAction, getAction, postAction } from "@/api/manage";
  831. import UpkeepRoomModal from "./modules/upkeep/UpkeepRoomModal.vue";
  832. import BillRoomInfoModal from "./modules/checkIn/BillRoomInfoModal.vue";
  833. import BillRoomFormModal from "./modules/checkIn/BillRoomFormModal.vue";
  834. import ScheduleRoomModal from "./modules/schedule/ScheduleRoomModal.vue";
  835. import ScheduleTeamRoomModal from "./modules/scheduleTeam/ScheduleRoomModal.vue";
  836. import EditScheduleRoomModal from "./modules/schedule/EditScheduleRoomModal.vue";
  837. import LockRoomModal from "./modules/lock/LockRoomModal.vue";
  838. import CleanRoomModal from "./modules/clean/CleanRoomModal.vue";
  839. import calendarfangtai from "./calendarfangtai";
  840. import forwardfangtai from "./forwardfangtai";
  841. import guestorders from "./guestorders";
  842. import leasegoods from "./leasegoods";
  843. import membermessage from "./membermessage";
  844. import membergoodsmanage from "./membergoodsmanage";
  845. import fangwuLookRoom from "./fangwuLookRoom.vue";
  846. import posOrderModal from "./posOrderModal.vue";
  847. import liveBatchCardModal from "./modules/checkIn/liveBatchCardModal.vue";
  848. import batchCardModalCopy from './modules/checkIn/batchCardModalCopy.vue'
  849. import batchCardModal from "./modules/checkIn/batchCardModal.vue";
  850. import lookRoomModalVue from "./modules/fangtaiModal/lookRoomModal/lookRoomModal.vue";
  851. import continuedModalVue from "./modules/fangtaiModal/continuedModal/continuedModal.vue";
  852. import SelectCheckInRoomOrderModal from "./modules/checkIn/SelectCheckInRoomOrderModal.vue";
  853. import CustomerModal from "./modules/checkIn/CustomerModal.vue";
  854. import exchangeHousesModalVue from "./modules/fangtaiModal/exchangeHouses/exchangeHousesModal.vue";
  855. import { TreeSelect } from "ant-design-vue";
  856. import moment from "moment";
  857. const SHOW_PARENT = TreeSelect.SHOW_PARENT;
  858. export default {
  859. name: "BusMeetingRoomList",
  860. // mixins: [JeecgListMixin, mixinDevice],
  861. components: {
  862. UpkeepRoomModal,
  863. BillRoomInfoModal,
  864. BillRoomFormModal,
  865. ScheduleRoomModal,
  866. ScheduleTeamRoomModal,
  867. EditScheduleRoomModal,
  868. calendarfangtai,
  869. guestorders,
  870. forwardfangtai,
  871. fangwuLookRoom,
  872. leasegoods,
  873. membermessage,
  874. membergoodsmanage,
  875. LockRoomModal,
  876. CleanRoomModal,
  877. lookRoomModalVue,
  878. continuedModalVue,
  879. SelectCheckInRoomOrderModal,
  880. CustomerModal,
  881. exchangeHousesModalVue,
  882. posOrderModal,
  883. batchCardModal,
  884. liveBatchCardModal,
  885. batchCardModalCopy
  886. },
  887. data() {
  888. return {
  889. readCard:false,
  890. YDorder: null,
  891. currentDate: moment(new Date()).format("YYYY-MM-DD"),
  892. activeKey: "1",
  893. timeId: null,
  894. multipleRoom: false,
  895. keyWord: "",
  896. checkedroomBuildingFloorList: [],
  897. SHOW_PARENT,
  898. cardStatus: {
  899. 0: {
  900. title: "空净",
  901. color: "rgba(67, 207, 124, 1)",
  902. },
  903. 1: {
  904. title: "在住",
  905. color: "#00a0e9",
  906. },
  907. 2: {
  908. title: "今日预离",
  909. color: "rgba(10, 122, 114, 1)",
  910. },
  911. 3: {
  912. title: "欠费",
  913. color: "rgba(172, 51, 193, 1)",
  914. },
  915. 4: {
  916. title: "锁房/脏房",
  917. color: "rgba(128, 128, 128, 1)",
  918. },
  919. },
  920. sourceType: {
  921. 0: {
  922. title: "美团",
  923. color: "rgba(67, 207, 124, 1)",
  924. },
  925. 1: {
  926. title: "携程",
  927. color: "#00a0e9",
  928. },
  929. 2: {
  930. title: "飞猪",
  931. color: "rgba(10, 122, 114, 1)",
  932. },
  933. 3: {
  934. title: "去哪儿",
  935. color: "rgba(172, 51, 193, 1)",
  936. },
  937. 4: {
  938. title: "同程艺龙",
  939. color: "rgba(128, 128, 128, 1)",
  940. },
  941. 5: {
  942. title: "微信订房",
  943. color: "rgba(128, 128, 128, 1)",
  944. },
  945. },
  946. startDate: "",
  947. endDate: "",
  948. customerSourceList: [],
  949. checkedCustomerSourceList: [],
  950. cesRoomLayoutList: [],
  951. checkedCesRoomLayoutList: [],
  952. roomBuildingFloorTree: [],
  953. roomStatusColorList: [],
  954. roomList: [],
  955. oldRoomList: [],
  956. roomStatusList: [],
  957. checkedRoomStatusList: [],
  958. scheduleBtnDis: false,
  959. checkInBtnDis: false,
  960. kzfLiving: false,
  961. roomCard: false,
  962. roomClear: false,
  963. };
  964. },
  965. watch: {
  966. activeKey(key) {
  967. console.log("activeKey", key);
  968. },
  969. },
  970. computed: {
  971. joinDisabled() {
  972. return !this.roomList.some((t) => {
  973. return (
  974. t.rooms.filter((c) => c.roomInfo.state === 88).length == 1 &&
  975. t.rooms.filter(
  976. (c) =>
  977. c.roomInfo.state === 88 &&
  978. (c.roomInfo.roomStatus === 3 || c.roomInfo.roomStatus === 4)
  979. ).length == 1
  980. );
  981. });
  982. },
  983. lockDisabled() {
  984. return !this.roomList.some((t) =>
  985. t.rooms.some(
  986. (c) =>
  987. c.roomInfo.state === 88 &&
  988. c.roomInfo.roomStatus !== 6 &&
  989. c.roomInfo.roomStatus !== 5 &&
  990. c.roomInfo.roomStatus !== 3 &&
  991. c.roomInfo.roomStatus !== 4
  992. )
  993. );
  994. },
  995. offLockBtn() {
  996. return this.roomList.some((t) =>
  997. t.rooms.some(
  998. (c) => c.roomInfo.state === 88 && c.roomInfo.roomStatus === 6
  999. )
  1000. );
  1001. },
  1002. wxCompleteBtn() {
  1003. return this.roomList.some((t) =>
  1004. t.rooms.some(
  1005. (c) => c.roomInfo.state === 88 && c.roomInfo.roomStatus === 5
  1006. )
  1007. );
  1008. },
  1009. cleanDisabled() {
  1010. return !this.roomList.some((t) =>
  1011. t.rooms.some(
  1012. (c) =>
  1013. c.roomInfo.state === 88 &&
  1014. (c.roomInfo.roomStatus === 2 || c.roomInfo.roomStatus === 4)
  1015. )
  1016. );
  1017. },
  1018. dirtyDisabled() {
  1019. return !this.roomList.some((t) =>
  1020. t.rooms.some(
  1021. (c) =>
  1022. c.roomInfo.state === 88 &&
  1023. (c.roomInfo.roomStatus === 1 || c.roomInfo.roomStatus === 3)
  1024. )
  1025. );
  1026. },
  1027. },
  1028. created() {
  1029. // 禁用右键
  1030. // document.oncontextmenu = new Function("event.returnValue=false");
  1031. var _info = JSON.parse(localStorage.getItem("storeInfo"));
  1032. // if (_info) {
  1033. // this.model.hotelId = _info.id;
  1034. // }
  1035. getAction("/business/busDictItem/list", {
  1036. hotelId: _info.id,
  1037. dictId: "1639538915239743490",
  1038. }).then((res) => {
  1039. if (res.success) {
  1040. var list = [];
  1041. res.result.records.forEach((item) => {
  1042. list.push({ label: item.itemText, value: item.id });
  1043. });
  1044. this.customerSourceList = list;
  1045. }
  1046. });
  1047. getAction("/rooms/cesRoomLayout/list", {
  1048. pageSize: 99999,
  1049. pageNo: 1,
  1050. }).then((res) => {
  1051. if (res.success) {
  1052. var list = [];
  1053. res.result.records.forEach((item) => {
  1054. list.push({ label: item.name, value: item.id });
  1055. });
  1056. this.cesRoomLayoutList = list;
  1057. }
  1058. });
  1059. getAction("/rooms/cesRoomBuildingFloor/tree", {}).then((res) => {
  1060. if (res.success) {
  1061. this.roomBuildingFloorTree = res.result;
  1062. }
  1063. });
  1064. getAction("/rooms/cesRooms/room-status-color", {}).then((res) => {
  1065. if (res.success) {
  1066. this.roomStatusColorList = res.result;
  1067. var list = [];
  1068. res.result.forEach((item) => {
  1069. list.push({ label: item.title, value: item.value });
  1070. });
  1071. this.roomStatusList = list;
  1072. }
  1073. });
  1074. this.loadData();
  1075. },
  1076. mounted() {
  1077. // this.handleBillInfo();
  1078. // this.handleCheckInAdd()
  1079. // this.$refs.ModalScheduleRoom.addList([]);
  1080. // this.$refs.ModalScheduleRoom.title = "预定登记";
  1081. // this.$refs.ModalScheduleRoom.disableSubmit = false;
  1082. // this.$refs.ModalScheduleTeamRoom.addList([]);
  1083. // this.$refs.ModalScheduleTeamRoom.title = "团队预定登记";
  1084. // this.$refs.ModalScheduleTeamRoom.disableSubmit = false;
  1085. // this.$refs.ModalEditScheduleRoom.addList([]);
  1086. // this.$refs.ModalEditScheduleRoom.title = "详单";
  1087. // this.$refs.ModalEditScheduleRoom.disableSubmit = false;
  1088. },
  1089. methods: {
  1090. handleBatchCard() {
  1091. this.$refs.liveBatchCardModal.visible = true;
  1092. },
  1093. liveBatchCardOk(e){
  1094. console.log(e);
  1095. this.$refs.batchCardModalCopy.edit(e)
  1096. },
  1097. addUnion() {
  1098. var selectRoom = [];
  1099. this.roomList.forEach((t) => {
  1100. t.rooms.forEach((c) => {
  1101. if (c.roomInfo.state === 88) {
  1102. selectRoom.push({
  1103. roomId: c.roomInfo.id,
  1104. livingOrderId: c.livingData.livingOrder.id,
  1105. });
  1106. }
  1107. });
  1108. });
  1109. if (selectRoom.length === 0) {
  1110. this.$message.warning("请先选择房间");
  1111. return;
  1112. }
  1113. this.$refs.modalSelectCheckInRoomOrder.add();
  1114. this.$refs.modalSelectCheckInRoomOrder.title = "请选择需要关联的订单";
  1115. this.$refs.modalSelectCheckInRoomOrder.disableSubmit = false;
  1116. this.$refs.modalSelectCheckInRoomOrder.livingOrderId =
  1117. selectRoom[0].livingOrderId;
  1118. this.$refs.modalSelectCheckInRoomOrder.livingRoomId =
  1119. selectRoom[0].roomId;
  1120. },
  1121. moment,
  1122. posOrderClick() {
  1123. this.$refs.posOrderModal.visible = true;
  1124. },
  1125. getCustomerSourceList(customerSource, first) {
  1126. var find = this.customerSourceList.find((t) => t.value == customerSource);
  1127. if (find) {
  1128. return first ? find.label.substr(0, 1) : find.label;
  1129. }
  1130. return "";
  1131. },
  1132. checkInCount(rooms) {
  1133. return rooms.filter((t) => t.livingData && t.livingData.livingOrder)
  1134. .length;
  1135. },
  1136. vacantCount(rooms) {
  1137. return rooms.filter((t) => !t.livingData || !t.livingData.livingOrder)
  1138. .length;
  1139. },
  1140. tabsClick(e) {
  1141. if (e == "1") {
  1142. this.loadData();
  1143. }
  1144. },
  1145. getRoomStatusColor(roomStatus) {
  1146. var find = this.roomStatusColorList.find((t) => t.value == roomStatus);
  1147. return find ? find.extend : "";
  1148. },
  1149. getRoomStatusName(roomStatus) {
  1150. var find = this.roomStatusList.find((t) => t.value == roomStatus);
  1151. return find ? find.label : "";
  1152. },
  1153. toPage() {
  1154. this.$router.push({
  1155. // path: "/room/scheduledetail",
  1156. // query: { id: "YD20230331112026203" },
  1157. name: "room-scheduledetail",
  1158. params: { id: "YD20230331112026203" },
  1159. });
  1160. },
  1161. toTeamPage() {
  1162. this.$router.push({
  1163. // path: "/room/scheduleteamdetail",
  1164. // query: { id: "YD20230403170240075" },
  1165. name: "room-scheduleteamdetail",
  1166. params: { id: "YD20230403170240075" },
  1167. });
  1168. },
  1169. addScheduleTeam() {
  1170. this.$refs.ModalScheduleTeamRoom.addList([]);
  1171. this.$refs.ModalScheduleTeamRoom.title = "团队预定登记";
  1172. this.$refs.ModalScheduleTeamRoom.disableSubmit = false;
  1173. },
  1174. scheduleClick(e) {
  1175. var selectRoom = [];
  1176. this.roomList.forEach((t) => {
  1177. t.rooms.forEach((c) => {
  1178. if (c.roomInfo.state === 88) {
  1179. c.roomInfo.marketPrice = c.layout.marketPrice;
  1180. selectRoom.push(c.roomInfo);
  1181. }
  1182. });
  1183. });
  1184. this.$refs.ModalScheduleRoom.addList(selectRoom, e.key);
  1185. this.$refs.ModalScheduleRoom.title =
  1186. e.key == "1" ? "散客预定登记" : "团队预定登记";
  1187. this.$refs.ModalScheduleRoom.disableSubmit = false;
  1188. },
  1189. handleMenuClick(e) {
  1190. console.log("click", e);
  1191. var selectRoom = [];
  1192. try {
  1193. this.roomList.forEach((t) => {
  1194. t.rooms.forEach((c) => {
  1195. if (c.roomInfo.state === 88) {
  1196. if (!this.kzfLiving && c.roomInfo.roomStatus === 2) {
  1197. throw new Error("空脏房不允许入住");
  1198. }
  1199. c.roomInfo.marketPrice = c.layout.marketPrice;
  1200. selectRoom.push(c.roomInfo);
  1201. }
  1202. });
  1203. });
  1204. } catch (e) {
  1205. this.$message.warning(e.message);
  1206. return;
  1207. }
  1208. this.$refs.ModalBillRoomForm.addList(selectRoom, e.key);
  1209. this.$refs.ModalBillRoomForm.title =
  1210. e.key == "1" ? "散客入住登记" : "团队入住登记";
  1211. this.$refs.ModalBillRoomForm.disableSubmit = false;
  1212. },
  1213. roomItemClick(roomLive) {
  1214. // 清除上一次的定时器
  1215. if (this.timeId) {
  1216. clearTimeout(this.timeId);
  1217. }
  1218. this.timeId = setTimeout(() => {
  1219. if (!this.multipleRoom && roomLive.roomInfo.state !== 88) {
  1220. this.roomList.forEach((item) => {
  1221. item.rooms.forEach((c) => {
  1222. if (c.roomInfo.state === 88) {
  1223. c.roomInfo.state = 0;
  1224. }
  1225. });
  1226. });
  1227. }
  1228. if (roomLive.roomInfo.state !== 88) {
  1229. roomLive.roomInfo.state = 88;
  1230. if (
  1231. (roomLive.livingData && roomLive.livingData.livingOrder) ||
  1232. roomLive.roomInfo.roomStatus === 6 ||
  1233. roomLive.roomInfo.roomStatus === 5
  1234. ) {
  1235. this.checkInBtnDis = true;
  1236. } else {
  1237. this.checkInBtnDis = false;
  1238. }
  1239. if (
  1240. (roomLive.livingData && roomLive.livingData.livingOrder) ||
  1241. (roomLive.bookingData && roomLive.bookingData.bookingOrder) ||
  1242. roomLive.roomInfo.roomStatus === 6 ||
  1243. roomLive.roomInfo.roomStatus === 5
  1244. ) {
  1245. this.scheduleBtnDis = true;
  1246. } else {
  1247. this.scheduleBtnDis = false;
  1248. }
  1249. } else {
  1250. roomLive.roomInfo.state = 0;
  1251. }
  1252. if (this.multipleRoom) {
  1253. this.checkInBtnDis = false;
  1254. this.scheduleBtnDis = false;
  1255. this.checkInBtnDis = this.roomList.some((t) =>
  1256. t.rooms.some(
  1257. (c) =>
  1258. c.roomInfo.state === 88 &&
  1259. ((c.livingData && c.livingData.livingOrder) ||
  1260. c.roomInfo.roomStatus === 6 ||
  1261. c.roomInfo.roomStatus === 5)
  1262. )
  1263. );
  1264. this.scheduleBtnDis = this.roomList.some((t) =>
  1265. t.rooms.some(
  1266. (c) =>
  1267. c.roomInfo.state === 88 &&
  1268. ((c.livingData && c.livingData.livingOrder) ||
  1269. (c.bookingData && c.bookingData.bookingOrder) ||
  1270. c.roomInfo.roomStatus === 6 ||
  1271. c.roomInfo.roomStatus === 5)
  1272. )
  1273. );
  1274. }
  1275. // 清除定时器
  1276. clearTimeout(this.timeId);
  1277. }, 200);
  1278. },
  1279. handleBillInfo(roomLive) {
  1280. console.log("handleBillInfo", roomLive);
  1281. if (this.timeId) {
  1282. clearTimeout(this.timeId);
  1283. }
  1284. if (!roomLive.livingData || !roomLive.livingData.livingOrder) {
  1285. if (!roomLive.bookingData || !roomLive.bookingData.bookingOrder) {
  1286. this.handleCheckInAdd(roomLive);
  1287. } else {
  1288. this.$router.push({
  1289. name: "room-scheduledetail",
  1290. params: { id: roomLive.bookingData.bookingOrder.bookingOrdersNo },
  1291. });
  1292. }
  1293. } else {
  1294. this.$refs.ModalBillRoomInfo.add(
  1295. roomLive.livingData.livingOrder.bookingOrderId,
  1296. 1,
  1297. roomLive.roomInfo.id
  1298. );
  1299. this.$refs.ModalBillRoomInfo.title = "账单";
  1300. this.$refs.ModalBillRoomInfo.disableSubmit = true;
  1301. }
  1302. roomLive.roomInfo.state = 0;
  1303. },
  1304. handleCheckInAdd(roomLive) {
  1305. if (this.timeId) {
  1306. clearTimeout(this.timeId);
  1307. }
  1308. if (!this.kzfLiving && roomLive.roomInfo.roomStatus === 2) {
  1309. this.$message.warning("空脏房不允许入住");
  1310. return;
  1311. } else if (roomLive.roomInfo.roomStatus === 5) {
  1312. this.$message.warning("维修房不允许入住");
  1313. return;
  1314. } else if (roomLive.roomInfo.roomStatus === 6) {
  1315. this.$message.warning("锁房不允许入住");
  1316. return;
  1317. }
  1318. roomLive.roomInfo.marketPrice = roomLive.layout.marketPrice;
  1319. this.$refs.ModalBillRoomForm.addList([roomLive.roomInfo], 1);
  1320. this.$refs.ModalBillRoomForm.title = "散客入住登记";
  1321. this.$refs.ModalBillRoomForm.disableSubmit = false;
  1322. },
  1323. multipleRoomChange() {
  1324. this.roomList.forEach((item) => {
  1325. item.rooms.forEach((c) => {
  1326. if (c.roomInfo.state == 88) {
  1327. c.roomInfo.state = 0;
  1328. }
  1329. });
  1330. });
  1331. },
  1332. onChange() {},
  1333. onCheck(value, label, extra) {
  1334. console.log("onCheck", value);
  1335. console.log(
  1336. "checkedroomBuildingFloorList",
  1337. this.checkedroomBuildingFloorList
  1338. );
  1339. },
  1340. checkChange(e) {
  1341. console.log("e", e);
  1342. console.log(
  1343. "checkedroomBuildingFloorList",
  1344. this.checkedroomBuildingFloorList
  1345. );
  1346. var list = this.oldRoomList;
  1347. if (this.checkedCesRoomLayoutList.length > 0) {
  1348. list = this.oldRoomList.reduce((acc, curr) => {
  1349. const rooms = curr.rooms.filter((room) =>
  1350. this.checkedCesRoomLayoutList.includes(room.layout.id)
  1351. );
  1352. acc.push({ ...curr, rooms });
  1353. return acc;
  1354. }, []);
  1355. }
  1356. if (this.checkedRoomStatusList.length > 0) {
  1357. list = list.reduce((acc, curr) => {
  1358. const rooms = curr.rooms.filter((room) =>
  1359. this.checkedRoomStatusList.includes(
  1360. room.roomInfo.roomStatus.toString()
  1361. )
  1362. );
  1363. acc.push({ ...curr, rooms });
  1364. return acc;
  1365. }, []);
  1366. }
  1367. if (this.checkedCustomerSourceList.length > 0) {
  1368. list = list.reduce((acc, curr) => {
  1369. const rooms = curr.rooms.filter((room) =>
  1370. room.livingData && room.livingData.livingOrder
  1371. ? this.checkedCustomerSourceList.includes(
  1372. room.livingData.livingOrder.customerSource
  1373. )
  1374. : room.bookingData && room.bookingData.bookingOrder
  1375. ? this.checkedCustomerSourceList.includes(
  1376. room.bookingData.bookingOrder.customerSource
  1377. )
  1378. : false
  1379. );
  1380. acc.push({ ...curr, rooms });
  1381. return acc;
  1382. }, []);
  1383. }
  1384. if (this.checkedroomBuildingFloorList.length > 0) {
  1385. list = list.filter(
  1386. (item) =>
  1387. this.checkedroomBuildingFloorList.includes(item.buildingId) ||
  1388. this.checkedroomBuildingFloorList.includes(item.id)
  1389. );
  1390. }
  1391. if (this.keyWord) {
  1392. //房号/姓名/手机号搜索
  1393. list = list.reduce((acc, curr) => {
  1394. const rooms = curr.rooms.filter(
  1395. (room) =>
  1396. room.roomInfo.name == this.keyWord ||
  1397. (room.livingData && room.livingData.livingCustomers
  1398. ? room.livingData.livingCustomers.customerName == this.keyWord
  1399. : room.bookingData && room.bookingData.bookingCustomer
  1400. ? room.bookingData.bookingCustomer.name == this.keyWord
  1401. : false) ||
  1402. (room.livingData && room.livingData.livingCustomers
  1403. ? room.livingData.livingCustomers.phone == this.keyWord
  1404. : room.bookingData && room.bookingData.bookingCustomer
  1405. ? room.bookingData.bookingCustomer.phone == this.keyWord
  1406. : false)
  1407. );
  1408. acc.push({ ...curr, rooms });
  1409. return acc;
  1410. }, []);
  1411. }
  1412. console.log("list2", list);
  1413. this.roomList = list;
  1414. },
  1415. // roomStatusChange(e) {
  1416. // console.log("e", e);
  1417. // var list = this.oldRoomList;
  1418. // if (this.checkedRoomStatusList.length > 0) {
  1419. // list = this.oldRoomList.reduce((acc, curr) => {
  1420. // const rooms = curr.rooms.filter((room) =>
  1421. // this.checkedRoomStatusList.includes(room.roomInfo.roomStatus.toString())
  1422. // );
  1423. // acc.push({ ...curr, rooms });
  1424. // return acc;
  1425. // }, []);
  1426. // }
  1427. // console.log("list2", list);
  1428. // this.roomList = list;
  1429. // },
  1430. collapseClick(row, value) {
  1431. this.$set(row, "collapse", value);
  1432. },
  1433. handleAdd(e) {
  1434. this.$refs.modalForm.add();
  1435. this.$refs.modalForm.title = "维修";
  1436. this.$refs.modalForm.disableSubmit = false;
  1437. },
  1438. modalWxFormOk() {
  1439. this.loadData();
  1440. },
  1441. handleWx() {
  1442. var selectRoom = [];
  1443. this.roomList.forEach((t) => {
  1444. t.rooms.forEach((c) => {
  1445. if (c.roomInfo.state === 88) {
  1446. selectRoom.push({ roomId: c.roomInfo.id, roomNo: c.roomInfo.name });
  1447. }
  1448. });
  1449. });
  1450. if (selectRoom.length === 0) {
  1451. this.$message.warning("请先选择房间");
  1452. return;
  1453. }
  1454. console.log("selectRoom", selectRoom);
  1455. this.$refs.modalForm.add({ roomRepairList: selectRoom });
  1456. this.$refs.modalForm.title = "维修";
  1457. this.$refs.modalForm.disableSubmit = false;
  1458. },
  1459. handleLock(e) {
  1460. var selectRoom = [];
  1461. this.roomList.forEach((t) => {
  1462. t.rooms.forEach((c) => {
  1463. if (c.roomInfo.state === 88) {
  1464. selectRoom.push({ roomId: c.roomInfo.id, roomNo: c.roomInfo.name });
  1465. }
  1466. });
  1467. });
  1468. if (selectRoom.length === 0) {
  1469. this.$message.warning("请先选择房间");
  1470. return;
  1471. }
  1472. console.log("selectRoom", selectRoom);
  1473. this.$refs.ModalLockRoom.add({ roomLockList: selectRoom });
  1474. this.$refs.ModalLockRoom.title = "锁房";
  1475. this.$refs.ModalLockRoom.disableSubmit = false;
  1476. },
  1477. handleDirty() {
  1478. var selectRoom = [];
  1479. this.roomList.forEach((t) => {
  1480. t.rooms.forEach((c) => {
  1481. if (c.roomInfo.state === 88) {
  1482. selectRoom.push(c.roomInfo.id);
  1483. }
  1484. });
  1485. });
  1486. if (selectRoom.length === 0) {
  1487. this.$message.warning("请先选择房间");
  1488. return;
  1489. }
  1490. var ids = selectRoom.join(",");
  1491. postAction("/rooms/cesRooms/dirtyRoom?roomIds=" + ids, {}).then((res) => {
  1492. if (res.success) {
  1493. this.$message.success(res.message);
  1494. this.loadData();
  1495. }
  1496. });
  1497. },
  1498. handleClean(e) {
  1499. var selectRoom = [];
  1500. this.roomList.forEach((t) => {
  1501. t.rooms.forEach((c) => {
  1502. if (c.roomInfo.state === 88) {
  1503. selectRoom.push({ roomId: c.roomInfo.id, roomNo: c.roomInfo.name });
  1504. }
  1505. });
  1506. });
  1507. if (selectRoom.length === 0) {
  1508. this.$message.warning("请先选择房间");
  1509. return;
  1510. }
  1511. console.log("selectRoom", selectRoom);
  1512. if (this.roomClear) {
  1513. this.$refs.ModalCleanRoom.add({ roomCleanList: selectRoom });
  1514. this.$refs.ModalCleanRoom.title = "清理房间";
  1515. this.$refs.ModalCleanRoom.disableSubmit = false;
  1516. } else {
  1517. var obj = { roomCleanList: selectRoom };
  1518. var _info = JSON.parse(localStorage.getItem("storeInfo"));
  1519. if (_info) {
  1520. obj.hotelId = _info.id;
  1521. }
  1522. postAction("/fw/fwRoomClean/add", obj).then((res) => {
  1523. if (res.success) {
  1524. this.$message.success(res.message);
  1525. this.loadData();
  1526. }
  1527. });
  1528. }
  1529. },
  1530. handleOffLock() {
  1531. var selectRoom = [];
  1532. this.roomList.forEach((t) => {
  1533. t.rooms.forEach((c) => {
  1534. if (c.roomInfo.state === 88) {
  1535. selectRoom.push(c.roomInfo.id);
  1536. }
  1537. });
  1538. });
  1539. if (selectRoom.length === 0) {
  1540. this.$message.warning("请先选择房间");
  1541. return;
  1542. }
  1543. var ids = selectRoom.join(",");
  1544. postAction("/fw/fwRoomLock/offLockRoom?roomIds=" + ids, {}).then(
  1545. (res) => {
  1546. if (res.success) {
  1547. this.$message.success(res.message);
  1548. this.loadData();
  1549. }
  1550. }
  1551. );
  1552. },
  1553. handleCompleteRepair() {
  1554. var selectRoom = [];
  1555. this.roomList.forEach((t) => {
  1556. t.rooms.forEach((c) => {
  1557. if (c.roomInfo.state === 88) {
  1558. selectRoom.push(c.roomInfo.id);
  1559. }
  1560. });
  1561. });
  1562. if (selectRoom.length === 0) {
  1563. this.$message.warning("请先选择房间");
  1564. return;
  1565. }
  1566. var ids = selectRoom.join(",");
  1567. postAction("/fw/fwRoomRepair/completeRepairRoom?roomIds=" + ids, {}).then(
  1568. (res) => {
  1569. if (res.success) {
  1570. this.$message.success(res.message);
  1571. this.loadData();
  1572. }
  1573. }
  1574. );
  1575. },
  1576. modalLockRoomFormOk() {
  1577. this.loadData();
  1578. },
  1579. onMenuClick(e, row) {
  1580. console.log("e", e);
  1581. console.log("row", row);
  1582. var that = this;
  1583. if (e.key == "1") {
  1584. if (row.bookingData && row.bookingData.bookingOrder) {
  1585. this.$confirm({
  1586. title: "提示",
  1587. content: "此房间有预定是否预定转入住?",
  1588. onOk: function () {
  1589. that.$router.push({
  1590. name: "room-scheduledetail",
  1591. params: {
  1592. id: row.bookingData.bookingOrder.bookingOrdersNo,
  1593. },
  1594. });
  1595. },
  1596. });
  1597. } else {
  1598. if (!this.kzfLiving && row.roomInfo.roomStatus === 2) {
  1599. this.$message.warning("空脏房不允许入住");
  1600. return;
  1601. }
  1602. row.roomInfo.marketPrice = row.layout.marketPrice;
  1603. this.$refs.ModalBillRoomForm.addList([row.roomInfo], 1);
  1604. this.$refs.ModalBillRoomForm.title = "散客入住登记";
  1605. this.$refs.ModalBillRoomForm.disableSubmit = false;
  1606. }
  1607. } else if (e.key == "2") {
  1608. this.$refs.ModalScheduleRoom.addList([row.roomInfo], 1);
  1609. this.$refs.ModalScheduleRoom.title = "散客预定登记";
  1610. this.$refs.ModalScheduleRoom.disableSubmit = false;
  1611. } else if (e.key == "3") {
  1612. var selectRoom = [row.roomInfo.id];
  1613. if (selectRoom.length === 0) {
  1614. this.$message.warning("请先选择房间");
  1615. return;
  1616. }
  1617. var ids = selectRoom.join(",");
  1618. postAction("/rooms/cesRooms/dirtyRoom?roomIds=" + ids, {}).then(
  1619. (res) => {
  1620. if (res.success) {
  1621. this.$message.success(res.message);
  1622. this.loadData();
  1623. }
  1624. }
  1625. );
  1626. } else if (e.key == "31") {
  1627. var selectRoom = [
  1628. {
  1629. roomId: row.roomInfo.id,
  1630. roomNo: row.roomInfo.name,
  1631. },
  1632. ];
  1633. if (selectRoom.length === 0) {
  1634. this.$message.warning("请先选择房间");
  1635. return;
  1636. }
  1637. console.log("selectRoom", selectRoom);
  1638. if (this.roomClear) {
  1639. this.$refs.ModalCleanRoom.add({ roomCleanList: selectRoom });
  1640. this.$refs.ModalCleanRoom.title = "清理房间";
  1641. this.$refs.ModalCleanRoom.disableSubmit = false;
  1642. } else {
  1643. var obj = { roomCleanList: selectRoom };
  1644. var _info = JSON.parse(localStorage.getItem("storeInfo"));
  1645. if (_info) {
  1646. obj.hotelId = _info.id;
  1647. }
  1648. postAction("/fw/fwRoomClean/add", obj).then((res) => {
  1649. if (res.success) {
  1650. this.$message.success(res.message);
  1651. this.loadData();
  1652. }
  1653. });
  1654. }
  1655. } else if (e.key == "4") {
  1656. var selectRoom = [
  1657. {
  1658. roomId: row.roomInfo.id,
  1659. roomNo: row.roomInfo.name,
  1660. },
  1661. ];
  1662. if (selectRoom.length === 0) {
  1663. this.$message.warning("请先选择房间");
  1664. return;
  1665. }
  1666. console.log("selectRoom", selectRoom);
  1667. this.$refs.modalForm.add({ roomRepairList: selectRoom });
  1668. this.$refs.modalForm.title = "维修";
  1669. this.$refs.modalForm.disableSubmit = false;
  1670. } else if (e.key == "41") {
  1671. var selectRoom = [row.roomInfo.id];
  1672. if (selectRoom.length === 0) {
  1673. this.$message.warning("请先选择房间");
  1674. return;
  1675. }
  1676. var ids = selectRoom.join(",");
  1677. postAction(
  1678. "/fw/fwRoomRepair/completeRepairRoom?roomIds=" + ids,
  1679. {}
  1680. ).then((res) => {
  1681. if (res.success) {
  1682. this.$message.success(res.message);
  1683. this.loadData();
  1684. }
  1685. });
  1686. } else if (e.key == "51") {
  1687. var selectRoom = [row.roomInfo.id];
  1688. if (selectRoom.length === 0) {
  1689. this.$message.warning("请先选择房间");
  1690. return;
  1691. }
  1692. var ids = selectRoom.join(",");
  1693. postAction("/fw/fwRoomLock/offLockRoom?roomIds=" + ids, {}).then(
  1694. (res) => {
  1695. if (res.success) {
  1696. this.$message.success(res.message);
  1697. this.loadData();
  1698. }
  1699. }
  1700. );
  1701. } else if (e.key == 6 || e.key == 7) {
  1702. this.handleBillInfo(row);
  1703. return;
  1704. } else if (e.key == 11 || e.key == 12) {
  1705. this.$message.error("接口程序未打开,请打开接口程序");
  1706. return;
  1707. } else if (e.key == 15) {
  1708. this.$refs.modalCustomerForm.add(
  1709. row.livingData.livingOrder.id,
  1710. row.roomInfo.id
  1711. );
  1712. this.$refs.modalCustomerForm.title = "添加同住人";
  1713. this.$refs.modalCustomerForm.disableSubmit = false;
  1714. return;
  1715. } else if (e.key == 18) {
  1716. this.$message.error("暂未实现");
  1717. return;
  1718. } else if (e.key == 8) {
  1719. this.$refs.lookRoomModalVue.edit(row);
  1720. console.log(this.$refs.lookRoomModalVue);
  1721. this.$refs.lookRoomModalVue.title = "查房";
  1722. this.$refs.lookRoomModalVue.disableSubmit = true;
  1723. return;
  1724. } else if (e.key == 9) {
  1725. this.handleBillInfo(row);
  1726. return;
  1727. } else if (e.key == 10) {
  1728. this.$refs.continuedModalVue.edit(row);
  1729. this.$refs.continuedModalVue.title = "续住";
  1730. this.$refs.continuedModalVue.disableSubmit = false;
  1731. return;
  1732. } else if (e.key == 14) {
  1733. this.$refs.modalSelectCheckInRoomOrder.add();
  1734. this.$refs.modalSelectCheckInRoomOrder.title = "请选择需要关联的订单";
  1735. this.$refs.modalSelectCheckInRoomOrder.disableSubmit = false;
  1736. this.$refs.modalSelectCheckInRoomOrder.livingOrderId =
  1737. row.livingData.livingOrder.id;
  1738. this.$refs.modalSelectCheckInRoomOrder.livingRoomId = row.roomInfo.id;
  1739. return;
  1740. } else if (e.key == 13) {
  1741. this.$refs.exchangeHousesModalVue.edit(row);
  1742. this.$refs.exchangeHousesModalVue.title = "换房";
  1743. this.$refs.exchangeHousesModalVue.disableSubmit = false;
  1744. } else if (e.key == 16) {
  1745. this.handleBillInfo(row);
  1746. return;
  1747. }
  1748. },
  1749. modalBillRoomFormOk(e) {
  1750. this.loadData();
  1751. console.log("e", e);
  1752. this.YDorder = e.order;
  1753. if (this.roomCard) {
  1754. this.$refs.batchCheckInModal.visible = true;
  1755. this.$refs.batchCheckInModal.edit(e.model);
  1756. } else {
  1757. this.$refs.ModalBillRoomInfo.add(e.order);
  1758. this.$refs.ModalBillRoomInfo.title = "账单";
  1759. this.$refs.ModalBillRoomInfo.disableSubmit = true;
  1760. }
  1761. },
  1762. modalBatchhFormOk() {
  1763. this.$refs.ModalBillRoomInfo.add(this.YDorder);
  1764. this.$refs.ModalBillRoomInfo.title = "账单";
  1765. this.$refs.ModalBillRoomInfo.disableSubmit = true;
  1766. },
  1767. modalFormOk(e) {
  1768. console.log("e", e);
  1769. this.loadData();
  1770. this.$router.push({
  1771. // path: "/room/scheduledetail",
  1772. // query: { id: e },
  1773. name: "room-scheduledetail",
  1774. params: { id: e },
  1775. });
  1776. },
  1777. modalTeamFormOk(e) {
  1778. console.log("e", e);
  1779. this.loadData();
  1780. this.$router.push({
  1781. // path: "/room/scheduledetail",
  1782. // query: { id: e },
  1783. name: "room-scheduleteamdetail",
  1784. params: { id: e },
  1785. });
  1786. },
  1787. loadData() {
  1788. this.checkInBtnDis = false;
  1789. this.scheduleBtnDis = false;
  1790. getAction("/rooms/cesRooms/realtime-rooms", {}).then((res) => {
  1791. if (res.success) {
  1792. res.result.forEach((row) => {
  1793. this.$set(row, "collapse", 1);
  1794. });
  1795. this.roomList = res.result;
  1796. this.oldRoomList = JSON.parse(JSON.stringify(res.result));
  1797. }
  1798. });
  1799. getAction("/business/busOtherEmptyDirtyRoom/queryByHotelId", {}).then(
  1800. (res) => {
  1801. if (res.success) {
  1802. this.kzfLiving = res.result.status === 1;
  1803. }
  1804. }
  1805. );
  1806. getAction("/business/busOtherRoomCard/queryByHotelId", {}).then((res) => {
  1807. if (res.success) {
  1808. this.roomCard = res.result.status === 1;
  1809. }
  1810. });
  1811. getAction("/business/busClear/queryByHotelId", {}).then((res) => {
  1812. if (res.success) {
  1813. this.roomClear = res.result.status === 1;
  1814. }
  1815. });
  1816. },
  1817. },
  1818. };
  1819. </script>
  1820. <style scoped>
  1821. @import "~@assets/less/common.less";
  1822. </style>
  1823. <style scoped>
  1824. .course-week {
  1825. /* border: 1px solid #ddd; */
  1826. /* padding: 1%; */
  1827. box-sizing: border-box;
  1828. display: flex;
  1829. flex-direction: column;
  1830. }
  1831. .post-mark {
  1832. position: relative;
  1833. overflow: hidden;
  1834. width: 100%;
  1835. height: 100%;
  1836. }
  1837. .select-cell {
  1838. position: absolute;
  1839. width: 100%;
  1840. height: 100%;
  1841. left: 0;
  1842. top: 0;
  1843. z-index: 10;
  1844. -webkit-box-sizing: border-box;
  1845. box-sizing: border-box;
  1846. background: rgba(102, 102, 102, 0.5);
  1847. -webkit-user-select: none;
  1848. -moz-user-select: none;
  1849. -ms-user-select: none;
  1850. user-select: none;
  1851. border-radius: 5px;
  1852. display: flex;
  1853. justify-content: center;
  1854. align-items: center;
  1855. }
  1856. .week-top {
  1857. display: flex;
  1858. justify-content: space-between;
  1859. align-items: center;
  1860. width: 100%;
  1861. height: 40px;
  1862. padding: 0 1%;
  1863. box-sizing: border-box;
  1864. }
  1865. .week-top .week-btn-wrap {
  1866. width: 200px;
  1867. display: flex;
  1868. justify-content: space-around;
  1869. color: #409eff;
  1870. }
  1871. .week-top .week-btn-wrap span {
  1872. cursor: pointer;
  1873. display: flex;
  1874. justify-content: center;
  1875. align-items: center;
  1876. font-size: 15px;
  1877. }
  1878. .w-today-date {
  1879. font-weight: bold;
  1880. font-size: 16px;
  1881. }
  1882. .w-choose-status {
  1883. display: flex;
  1884. /* justify-content: flex-end;
  1885. width: 200px; */
  1886. }
  1887. .w-choose-status > div {
  1888. width: 100%;
  1889. flex: 1;
  1890. display: flex;
  1891. padding: 0 2%;
  1892. white-space: nowrap;
  1893. line-height: 20px;
  1894. box-sizing: border-box;
  1895. }
  1896. .w-choose-status > div .square {
  1897. display: flex;
  1898. width: 16px;
  1899. height: 16px;
  1900. border-radius: 4px;
  1901. box-sizing: border-box;
  1902. }
  1903. .w-choose-status > div .title {
  1904. display: flex;
  1905. align-items: center;
  1906. line-height: 16px;
  1907. padding-left: 4px;
  1908. font-size: 14px;
  1909. box-sizing: border-box;
  1910. }
  1911. .week-table {
  1912. display: flex;
  1913. flex-direction: column;
  1914. }
  1915. .week-table .table-header {
  1916. width: 100%;
  1917. height: 80px;
  1918. background: #eaedf2;
  1919. display: flex;
  1920. flex-direction: column;
  1921. align-items: center;
  1922. border-bottom: 1px solid #eaedf2;
  1923. box-sizing: border-box;
  1924. }
  1925. .table-header .w-table-date,
  1926. .table-week {
  1927. width: 100%;
  1928. height: 40px;
  1929. text-align: left;
  1930. display: flex;
  1931. justify-content: center;
  1932. align-items: center;
  1933. }
  1934. .table-header .w-table-date > span,
  1935. .table-week > span {
  1936. flex: 1;
  1937. color: #000;
  1938. height: 100%;
  1939. font-size: 14px;
  1940. display: flex;
  1941. justify-content: center;
  1942. align-items: center;
  1943. font-weight: bold;
  1944. }
  1945. .w-table-date .w-day-item,
  1946. .table-week .w-day-item {
  1947. color: #000;
  1948. font-size: 14px;
  1949. display: flex;
  1950. justify-content: center;
  1951. align-items: center;
  1952. }
  1953. .week-table .w-time-period-list {
  1954. width: 100%;
  1955. }
  1956. .w-time-period-list .w-time-period-row {
  1957. width: 100%;
  1958. min-height: 60px;
  1959. }
  1960. .w-time-period-col {
  1961. width: 100%;
  1962. min-height: 60px;
  1963. display: flex;
  1964. }
  1965. .w-time-period-col .w-time-period {
  1966. width: 12.5%;
  1967. display: flex;
  1968. justify-content: center;
  1969. align-items: center;
  1970. border-left: 1px solid #eaedf2;
  1971. /* border-bottom: 1px solid #eaedf2; */
  1972. box-sizing: border-box;
  1973. }
  1974. .w-time-period-col:last-child {
  1975. border-bottom: 1px solid #eaedf2;
  1976. }
  1977. .meeting-room-center {
  1978. transform: translate(-200%, 0%);
  1979. width: 14px;
  1980. font-size: 14px;
  1981. word-wrap: break-word;
  1982. position: absolute;
  1983. }
  1984. .w-time-period-col .w-row-day {
  1985. width: 100%;
  1986. display: flex;
  1987. justify-content: center;
  1988. }
  1989. .w-row-day .w-things {
  1990. flex: 1;
  1991. display: flex;
  1992. flex-direction: column;
  1993. align-items: center;
  1994. border-left: 1px solid #eaedf2;
  1995. border-bottom: 1px solid #eaedf2;
  1996. box-sizing: border-box;
  1997. cursor: pointer;
  1998. }
  1999. .w-row-day .w-things:last-child {
  2000. border-right: 1px solid #eaedf2;
  2001. }
  2002. .w-things .w-thing-item {
  2003. display: flex;
  2004. /* width: 80%; */
  2005. height: 135px;
  2006. font-size: 14px;
  2007. flex-direction: column;
  2008. justify-content: space-around;
  2009. min-height: 50px;
  2010. border-radius: 10px;
  2011. margin: 2% 1%;
  2012. padding: 1% 2%;
  2013. cursor: pointer;
  2014. color: #fff;
  2015. background: #ff6200;
  2016. box-sizing: border-box;
  2017. transition: all 1s linear 0.5s;
  2018. }
  2019. .w-isCurDate {
  2020. color: #ff2525 !important;
  2021. }
  2022. .w-noMore {
  2023. min-height: 200px;
  2024. padding: 2%;
  2025. display: flex;
  2026. justify-content: center;
  2027. align-items: center;
  2028. border: 1px solid rgba(156, 173, 173, 0.3);
  2029. color: #9cadadb7;
  2030. box-sizing: border-box;
  2031. }
  2032. .w_expand,
  2033. .w_shrink {
  2034. color: #0a98d5;
  2035. cursor: pointer;
  2036. width: 100%;
  2037. padding: 2% 0;
  2038. display: flex;
  2039. justify-content: center;
  2040. align-items: center;
  2041. }
  2042. </style>
  2043. <style scoped>
  2044. #components-grid-demo-playground [class~="ant-col"] {
  2045. background: transparent;
  2046. border: 0;
  2047. }
  2048. #components-grid-demo-playground .room-item {
  2049. background: rgba(67, 207, 124, 1);
  2050. height: 125px;
  2051. /* line-height: 200px; */
  2052. font-size: 13px;
  2053. color: #f9f9f9;
  2054. padding: 2px;
  2055. border-radius: 5px;
  2056. cursor: pointer;
  2057. position: relative;
  2058. }
  2059. #components-grid-demo-playground pre {
  2060. background: #f9f9f9;
  2061. border-radius: 6px;
  2062. font-size: 13px;
  2063. padding: 8px 16px;
  2064. }
  2065. </style>
  2066. <style>
  2067. .popoverWidth {
  2068. width: 220px !important;
  2069. }
  2070. </style>