AppIndex.vue 64 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222
  1. <template>
  2. <div class="app-index">
  3. <div class="specimen-view">
  4. <!-- 头部 -->
  5. <div class="specimen-header">
  6. <div class="specimen-logo">
  7. <img
  8. src="./../assets/images/login_logo.png"
  9. class="pharmacy-logo__img"
  10. alt=""
  11. />
  12. <h1 class="pharmacy-logo__name">大势医院输送保障管理平台</h1>
  13. </div>
  14. <div class="specimen-menu">
  15. <div
  16. class="specimen-menu-box"
  17. :class="{ active: currentNavIndex == item.id }"
  18. v-for="item in navInfo"
  19. :key="item.id"
  20. @click="navClick(item.id)"
  21. >
  22. {{ item.name }}
  23. </div>
  24. </div>
  25. <div class="totalNum" v-if="currentNavIndex == 1">
  26. 今日产生标本<span>{{ totalNum }}</span
  27. >只
  28. </div>
  29. <div class="totalNum parent" v-if="currentNavIndex == 5">
  30. <div>
  31. 今日请领药品总数:<span>{{ totalDrugNum.sum }}</span>
  32. </div>
  33. <div>
  34. 今日待配送药品总数:<span>{{ totalDrugNum.dpssum }}</span>
  35. </div>
  36. </div>
  37. <div class="totalNum parent" v-if="currentNavIndex == 4">
  38. <div>
  39. <div>
  40. 今日重点关注患者人数:<span>{{ totalParentNum.parentNum }}</span>
  41. </div>
  42. <div>
  43. 今日待检查数:<span>{{ totalParentNum.speNum }}</span>
  44. </div>
  45. </div>
  46. <div>
  47. <div>
  48. 今日转科总数:<span>{{ totalParentNum.zyNum }}</span>
  49. </div>
  50. <div>
  51. 今日检查总数:<span>{{ totalParentNum.gdjczsNum }}</span>
  52. </div>
  53. </div>
  54. </div>
  55. <div class="totalNum currentNavIndex3" v-if="currentNavIndex == 2">
  56. <select v-model="groupId2" @change="selectGroup()">
  57. <option value="0">所有分组</option>
  58. <option :value="item.id" v-for="item in groups2" :key="item.id">
  59. {{ item.groupName }}
  60. </option>
  61. </select>
  62. </div>
  63. <div class="totalNum currentNavIndex3" v-if="currentNavIndex == 3">
  64. <select v-model="groupId3" @change="selectGroup()">
  65. <option value="0">所有人</option>
  66. <option :value="item.id" v-for="item in groups3" :key="item.id">
  67. {{ item.groupName }}
  68. </option>
  69. </select>
  70. <input type="text" v-model="parameter" placeholder="请输入搜索内容" />
  71. <button @click="search()">搜索</button>
  72. <button @click="resetCache()">重置缓存</button>
  73. </div>
  74. </div>
  75. <!-- 主体 -->
  76. <div
  77. class="main"
  78. style="position: relative"
  79. v-show="
  80. (!loading1 && !loading5 && currentNavIndex == 1) ||
  81. (!loading2 && !loading5 && !loading10 && currentNavIndex == 2) ||
  82. (!loading4 && !loading5 && !loading10 && currentNavIndex == 3) ||
  83. (!loading5 && !loading6 && currentNavIndex == 4) ||
  84. (!loading5 && !loading9 && currentNavIndex == 5)
  85. "
  86. >
  87. <!-- 科室标本视图 -->
  88. <div
  89. class="main-box"
  90. v-show="
  91. currentNavIndex == 1 && swiperList.length && !loading1 && !loading5
  92. "
  93. :class="{ marquee_top: animate }"
  94. :style="{
  95. transform: 'translateX(' + 100 * n + 'vw)',
  96. width: 100 * swiperList.length + 'vw',
  97. }"
  98. >
  99. <div
  100. class="main-box-item-wrap"
  101. v-for="(swiper, i) in swiperList"
  102. :key="i"
  103. >
  104. <div
  105. class="main-box-item main-box-item-w4--ks"
  106. v-for="item in swiper"
  107. :key="item.deptId"
  108. @click="detail(item)"
  109. >
  110. <div class="main-box-item-header">
  111. <h2>{{ item.deptName }}</h2>
  112. <strong>{{ item.num }}</strong>
  113. <strong v-if="item.userName"
  114. >{{ item.userName
  115. }}<span v-if="item.phone" class="ksbb_phone"
  116. >({{ item.phone }})</span
  117. >
  118. </strong>
  119. </div>
  120. <div class="main-box-item-content">
  121. <div
  122. class="main-box-item-contentBox"
  123. :class="[item.urgent > 0 ? 'red' : 'green']"
  124. >
  125. <h3>{{ item.urgent }}</h3>
  126. <p>急标</p>
  127. </div>
  128. <div class="main-box-item-contentBox green">
  129. <h3>{{ item.noUrgent }}</h3>
  130. <p>普标</p>
  131. </div>
  132. </div>
  133. </div>
  134. </div>
  135. </div>
  136. <div
  137. class="cot_img"
  138. v-show="
  139. currentNavIndex == 1 &&
  140. swiperList.length == 0 &&
  141. !loading1 &&
  142. !loading5
  143. "
  144. >
  145. <span>暂无数据</span>
  146. </div>
  147. <!-- 人员信息 -->
  148. <div
  149. class="main-box message_cot"
  150. v-show="currentNavIndex == 2 && !loading2 && !loading5 && !loading10"
  151. >
  152. <!-- --------------------------------start----------------------------- -->
  153. <div
  154. class="cot_all_wrap"
  155. v-show="currentNavIndex == 2 && workerMessage.length"
  156. :class="{ marquee_top: animate }"
  157. :style="{
  158. transform:
  159. 'translateX(calc(' + 100 * n + 'vw - ' + 32 * n + 'px))',
  160. width:
  161. 'calc(' +
  162. 100 * workerMessage.length +
  163. 'vw - ' +
  164. 32 * workerMessage.length +
  165. 'px)',
  166. }"
  167. >
  168. <div class="cot_all" v-for="(worke, i) in workerMessage" :key="i">
  169. <div class="cot sevenCol" v-for="data in worke" :key="data.id">
  170. <div class="first">
  171. <div class="first_first">
  172. <span>{{ data.name }}</span>
  173. <span v-if="data.phone" class="first_firstPhone"
  174. >({{ data.phone }})</span
  175. >
  176. </div>
  177. <span>累计{{ data.totalCount }}单</span>
  178. <span
  179. class="times imptime"
  180. v-if="
  181. data.freetime === '今日还未接单' || data.freetime === null
  182. "
  183. >{{ data.freetime }}</span
  184. >
  185. <span
  186. class="times imptime imptime-green"
  187. v-if="
  188. data.freetime !== '今日还未接单' && data.freetime !== null
  189. "
  190. >{{ "空闲时间" + data.freetime }}</span
  191. >
  192. </div>
  193. <div class="second">
  194. <span v-if="data.workingFlag">{{ data.gdType }}</span>
  195. <span
  196. :class="{ fr: true, colorRed: data.timeOut == true }"
  197. v-if="data.workingFlag"
  198. >{{ data.gdState }}</span
  199. >
  200. </div>
  201. </div>
  202. </div>
  203. </div>
  204. </div>
  205. <div
  206. class="cot_img"
  207. v-show="
  208. currentNavIndex == 2 &&
  209. workerMessage.length == 0 &&
  210. !loading2 &&
  211. !loading5 &&
  212. !loading10
  213. "
  214. >
  215. <span>暂无数据</span>
  216. </div>
  217. <!-- 人员上班下班状态 -->
  218. <div
  219. class="main-box message_cot message_on"
  220. v-show="currentNavIndex == 3 && !loading4 && !loading5 && !loading10"
  221. >
  222. <!-- --------------------------------start----------------------------- -->
  223. <div
  224. class="cot_all_wrap"
  225. v-show="currentNavIndex == 3 && onlines.length"
  226. :class="{ marquee_top: animate }"
  227. :style="{
  228. transform:
  229. 'translateX(calc(' + 100 * n + 'vw - ' + 32 * n + 'px))',
  230. width:
  231. 'calc(' +
  232. 100 * onlines.length +
  233. 'vw - ' +
  234. 32 * onlines.length +
  235. 'px)',
  236. }"
  237. >
  238. <div class="cot_all" v-for="(online, i) in onlines" :key="i">
  239. <div class="cot sevenCol" v-for="data in online" :key="data.id">
  240. <div class="header_on">
  241. <span style="font-weight: bold">
  242. {{data.name}}<span v-if="data.phone">({{ data.phone }})</span>
  243. </span>
  244. <span :style="{ color: data.online ? 'green' : 'red' }"
  245. ><button
  246. v-if="data.online"
  247. class="goWork"
  248. @click="showModelC(data)"
  249. >
  250. 下班</button
  251. >{{ data.online ? "已上班" : "已下班" }}</span
  252. >
  253. </div>
  254. <div
  255. class="headerItem_on"
  256. :title="data.dataList.length ? data.dataList[0][1] : '-'"
  257. >
  258. {{
  259. (data.dataList.length ? data.dataList[0][1] : "-") | length6
  260. }}
  261. <span v-if="data.online">{{ data.time }}</span>
  262. </div>
  263. <div class="headerItem_on_two" :title="data.depts || '-'">
  264. {{ data.depts || "-" }}
  265. </div>
  266. </div>
  267. </div>
  268. </div>
  269. </div>
  270. <div
  271. class="cot_img"
  272. v-show="
  273. currentNavIndex == 3 &&
  274. onlines.length == 0 &&
  275. !loading4 &&
  276. !loading5 &&
  277. !loading10
  278. "
  279. >
  280. <span>暂无数据</span>
  281. </div>
  282. <!-- 病房患者视图 -->
  283. <div
  284. class="main-box"
  285. v-show="
  286. currentNavIndex == 4 && parentList.length && !loading5 && !loading6
  287. "
  288. :class="{ marquee_top: animate }"
  289. :style="{
  290. transform: 'translateX(' + 100 * n + 'vw)',
  291. width: 100 * parentList.length + 'vw',
  292. }"
  293. >
  294. <div
  295. class="main-box-item-wrap"
  296. v-for="(swiper, i) in parentList"
  297. :key="i"
  298. >
  299. <div
  300. class="main-box-item main-box-item-w4"
  301. v-for="item in swiper"
  302. :key="item.id"
  303. @click="detailSpe(item)"
  304. >
  305. <div class="main-box-item-header pp">
  306. <h2 :title="item.name">{{ item.name }}</h2>
  307. <div>{{ item.gdjczs }}</div>
  308. <strong
  309. >{{ item.userName ? item.userName : ""
  310. }}<span>{{ item.phone ? item.phone : "" }}</span></strong
  311. >
  312. </div>
  313. <div class="main-box-item-content">
  314. <div
  315. class="main-box-item-contentBox green"
  316. @click.stop="detailParent(item)"
  317. >
  318. <h3>{{ item.patientnum }}</h3>
  319. <p>重点关注患者人数</p>
  320. </div>
  321. <div class="main-box-item-contentBox green">
  322. <h3>{{ item.jczs }}</h3>
  323. <p>待检查数</p>
  324. </div>
  325. <div class="main-box-item-contentBox green">
  326. <h3>{{ item.gdnum }}</h3>
  327. <p>转科总数</p>
  328. </div>
  329. </div>
  330. </div>
  331. </div>
  332. </div>
  333. <div
  334. class="cot_img"
  335. v-show="
  336. currentNavIndex == 4 &&
  337. parentList.length == 0 &&
  338. !loading5 &&
  339. !loading6
  340. "
  341. >
  342. <span>暂无数据</span>
  343. </div>
  344. <!-- 药房药品请领单 -->
  345. <div
  346. class="main-box"
  347. v-show="
  348. currentNavIndex == 5 && drugList.length && !loading5 && !loading9
  349. "
  350. :class="{ marquee_top: animate }"
  351. :style="{
  352. transform: 'translateX(' + 100 * n + 'vw)',
  353. width: 100 * drugList.length + 'vw',
  354. }"
  355. >
  356. <div
  357. class="main-box-item-wrap"
  358. v-for="(swiper, i) in drugList"
  359. :key="i"
  360. >
  361. <div class="main-box-item" v-for="item in swiper" :key="item.id">
  362. <div class="main-box-item-header">
  363. <h2>{{ item.name }}</h2>
  364. <strong>{{ item.num }}</strong>
  365. </div>
  366. <div class="main-box-item-content">
  367. <div class="main-box-item-contentBox green" style="width: 100%">
  368. <h3>{{ item.dpssum }}</h3>
  369. <p>待配送</p>
  370. </div>
  371. </div>
  372. </div>
  373. </div>
  374. </div>
  375. <div
  376. class="cot_img"
  377. v-show="
  378. currentNavIndex == 5 &&
  379. drugList.length == 0 &&
  380. !loading5 &&
  381. !loading9
  382. "
  383. >
  384. <span>暂无数据</span>
  385. </div>
  386. <!-- --------------------------------end----------------------------- -->
  387. </div>
  388. <div
  389. class="main loading"
  390. v-show="
  391. ((loading1 || loading5) && currentNavIndex == 1) ||
  392. ((loading2 || loading5 || loading10) && currentNavIndex == 2) ||
  393. ((loading4 || loading5 || loading10) && currentNavIndex == 3) ||
  394. ((loading5 || loading6) && currentNavIndex == 4) ||
  395. ((loading5 || loading9) && currentNavIndex == 5)
  396. "
  397. >
  398. <img src="./../assets/images/loading.gif" alt="" />
  399. <p>正在加载中</p>
  400. </div>
  401. <!-- 底部 -->
  402. <div
  403. class="footer"
  404. v-show="currentNavIndex == 1 && !loading5 && !loading1"
  405. >
  406. <div
  407. class="dot"
  408. v-for="(item, i) in swiperList"
  409. :key="i"
  410. :class="{ active: currentSwiperIndex == i }"
  411. @click="dotClick(i)"
  412. ></div>
  413. </div>
  414. <div
  415. class="footer"
  416. v-show="currentNavIndex == 2 && !loading5 && !loading2 && !loading10"
  417. >
  418. <div
  419. class="dot"
  420. v-for="(item, i) in workerMessage"
  421. :key="i"
  422. :class="{ active: currentSwiperIndex == i }"
  423. @click="dotClick(i)"
  424. ></div>
  425. </div>
  426. <div
  427. class="footer"
  428. v-show="currentNavIndex == 3 && !loading5 && !loading4 && !loading10"
  429. >
  430. <div
  431. class="dot"
  432. v-for="(item, i) in onlines"
  433. :key="i"
  434. :class="{ active: currentSwiperIndex == i }"
  435. @click="dotClick(i)"
  436. ></div>
  437. </div>
  438. <div
  439. class="footer"
  440. v-show="currentNavIndex == 4 && !loading5 && !loading6"
  441. >
  442. <div
  443. class="dot"
  444. v-for="(item, i) in parentList"
  445. :key="i"
  446. :class="{ active: currentSwiperIndex == i }"
  447. @click="dotClick(i)"
  448. ></div>
  449. </div>
  450. <div
  451. class="footer"
  452. v-show="currentNavIndex == 5 && !loading5 && !loading9"
  453. >
  454. <div
  455. class="dot"
  456. v-for="(item, i) in drugList"
  457. :key="i"
  458. :class="{ active: currentSwiperIndex == i }"
  459. @click="dotClick(i)"
  460. ></div>
  461. </div>
  462. <!-- 标本科室视图弹层 -->
  463. <div v-if="detailModel" :class="{ detailModel }">
  464. <div class="box">
  465. <h2 class="title">
  466. <div class="operateTitle">
  467. 标本详情
  468. <div class="operate checkbox">
  469. <label>
  470. <input type="checkbox" value="332" v-model="speState" /><span
  471. >未收取</span
  472. >
  473. </label>
  474. <label>
  475. <input type="checkbox" value="333" v-model="speState" /><span
  476. >已收取</span
  477. >
  478. </label>
  479. </div>
  480. </div>
  481. </h2>
  482. <div class="table">
  483. <div class="table-content">
  484. <table>
  485. <thead>
  486. <tr>
  487. <th>序号</th>
  488. <th>标本类型</th>
  489. <th>标本编码</th>
  490. <th>患者姓名</th>
  491. <th>床号</th>
  492. <th>采集时间</th>
  493. <th>目标科室</th>
  494. <th>收取人</th>
  495. </tr>
  496. </thead>
  497. <tbody>
  498. <vueCustomScrollbar
  499. style="height: 100%"
  500. v-if="detailList.length && !loading3"
  501. >
  502. <tr
  503. v-for="(detail, i) in detailList"
  504. :key="detail.id"
  505. :style="{ background: i % 2 === 1 ? '#fff' : '#f9fafb' }"
  506. >
  507. <td>{{ i + 1 }}</td>
  508. <td>{{ detail.stype ? detail.stype.name : "-" }}</td>
  509. <td>{{ detail.scode || "-" }}</td>
  510. <td>{{ detail.patientName || "-" }}</td>
  511. <td>{{ detail.bedNum || "-" }}</td>
  512. <td>
  513. {{ detail.printDate || "-" }}
  514. </td>
  515. <td>
  516. {{ detail.checkDept ? detail.checkDept.dept : "-" }}
  517. <div
  518. v-if="detail.urgent != 0"
  519. :class="{
  520. ji: detail.urgent == 1,
  521. }"
  522. ></div>
  523. </td>
  524. <td>{{ detail.receiver || "-" }}</td>
  525. </tr>
  526. </vueCustomScrollbar>
  527. <div
  528. style="font-size: 18px"
  529. v-if="!detailList.length && !loading3"
  530. class="noData"
  531. >
  532. 暂无数据
  533. </div>
  534. <div class="loading" v-if="loading3">
  535. <img src="./../assets/images/loading.gif" alt="" />
  536. <p>正在加载中</p>
  537. </div>
  538. </tbody>
  539. </table>
  540. </div>
  541. </div>
  542. <div class="btns">
  543. <div class="btn" @click="hideModel()">知道了</div>
  544. </div>
  545. <i class="icon_transport transport-guanbi" @click="hideModel()"></i>
  546. </div>
  547. </div>
  548. <!-- 病房患者视图弹层-重点关注患者详情 -->
  549. <div v-if="detailParentModel" :class="{ detailModel: detailParentModel }">
  550. <div class="box" style="width: 660px">
  551. <h2 class="title">重点关注患者详情</h2>
  552. <div class="table" style="width: 620px">
  553. <div class="table-content" style="width: 556px">
  554. <table>
  555. <thead>
  556. <tr>
  557. <th>序号</th>
  558. <th>患者姓名</th>
  559. <th>患者编码</th>
  560. <th>床号</th>
  561. </tr>
  562. </thead>
  563. <tbody>
  564. <vueCustomScrollbar
  565. style="height: 100%"
  566. v-if="detailParentList.length && !loading7"
  567. >
  568. <tr
  569. v-for="(detail, i) in detailParentList"
  570. :key="detail.id"
  571. :style="{ background: i % 2 === 1 ? '#fff' : '#f9fafb' }"
  572. >
  573. <td>{{ i + 1 }}</td>
  574. <td>{{ detail.patientName || "-" }}</td>
  575. <td>
  576. {{ detail.patientCode || "-" }}
  577. </td>
  578. <td>
  579. {{ detail.bedNum || "-" }}
  580. </td>
  581. </tr>
  582. </vueCustomScrollbar>
  583. <div
  584. style="font-size: 18px"
  585. v-if="!detailParentList.length && !loading7"
  586. class="noData"
  587. >
  588. 暂无数据
  589. </div>
  590. <div class="loading" v-if="loading7">
  591. <img src="./../assets/images/loading.gif" alt="" />
  592. <p>正在加载中</p>
  593. </div>
  594. </tbody>
  595. </table>
  596. </div>
  597. </div>
  598. <div class="btns">
  599. <div class="btn" @click="hideParentModel()">知道了</div>
  600. </div>
  601. <i
  602. class="icon_transport transport-guanbi"
  603. @click="hideParentModel()"
  604. ></i>
  605. </div>
  606. </div>
  607. <!-- 病房患者视图弹层-患者检查详情 -->
  608. <div
  609. v-if="detailSpeModel"
  610. :class="{ detailModel: detailSpeModel }"
  611. class="detailModelParent"
  612. >
  613. <div class="box" style="width: 1274px">
  614. <h2 class="title">
  615. <div class="operateTitle">
  616. 患者检查详情
  617. <div class="operate radio">
  618. <label>
  619. <span>所有检查</span
  620. ><input
  621. type="radio"
  622. value="666"
  623. v-model="inspectState"
  624. /><i></i>
  625. </label>
  626. <label>
  627. <span>待检查</span
  628. ><input
  629. type="radio"
  630. value="307"
  631. v-model="inspectState"
  632. /><i></i>
  633. </label>
  634. </div>
  635. </div>
  636. </h2>
  637. <div class="table" style="width: 1234px">
  638. <div class="table-content" style="width: 1170px">
  639. <table>
  640. <thead>
  641. <tr>
  642. <th>序号</th>
  643. <th style="width: 150px !important">患者姓名(床号)</th>
  644. <th>检查项目</th>
  645. <th>预约时间</th>
  646. <th>叫号信息</th>
  647. <th>检查科室</th>
  648. <th style="width: 70px !important">是否建单</th>
  649. <th style="width: 70px !important">是否送达</th>
  650. <th>送达时间</th>
  651. <th style="width: 70px !important">检查状态</th>
  652. <th>陪检人</th>
  653. </tr>
  654. </thead>
  655. <tbody>
  656. <vueCustomScrollbar
  657. style="height: 100%"
  658. v-if="detailSpeList.length && !loading8"
  659. >
  660. <tr
  661. v-for="(detail, i) in detailSpeList"
  662. :key="detail.id"
  663. :style="{ background: i % 2 === 1 ? '#fff' : '#f9fafb' }"
  664. >
  665. <td>{{ i + 1 }}</td>
  666. <td
  667. style="width: 150px !important"
  668. :style="{
  669. color: detail.focusPatient == 1 ? 'red' : '',
  670. }"
  671. >
  672. {{ detail.patientName || "-" }}
  673. <span v-if="detail.bedNum">({{ detail.bedNum }})</span>
  674. </td>
  675. <td>{{ detail.inspectName || "-" }}</td>
  676. <td>{{ detail.yyTime || "-" }}</td>
  677. <td>{{ detail.reservationNumber || "-" }}</td>
  678. <td>
  679. {{ detail.execDept ? detail.execDept.dept : "-" }}
  680. </td>
  681. <td style="width: 70px !important">
  682. {{ detail.gdId ? "是" : "否" }}
  683. </td>
  684. <td style="width: 70px !important">
  685. {{ detail.arriveTime ? "是" : "否" }}
  686. </td>
  687. <td>{{ detail.arriveTime || "-" }}</td>
  688. <td style="width: 70px !important">
  689. {{
  690. detail.inspectState ? detail.inspectState.name : "-"
  691. }}
  692. </td>
  693. <td>{{ detail.workerName }}</td>
  694. </tr>
  695. </vueCustomScrollbar>
  696. <div
  697. style="font-size: 18px"
  698. v-if="!detailSpeList.length && !loading8"
  699. class="noData"
  700. >
  701. 暂无数据
  702. </div>
  703. <div class="loading" v-if="loading8">
  704. <img src="./../assets/images/loading.gif" alt="" />
  705. <p>正在加载中</p>
  706. </div>
  707. </tbody>
  708. </table>
  709. </div>
  710. </div>
  711. <div class="btns">
  712. <div class="btn" @click="hideSpeModel()">知道了</div>
  713. </div>
  714. <i
  715. class="icon_transport transport-guanbi"
  716. @click="hideSpeModel()"
  717. ></i>
  718. </div>
  719. </div>
  720. </div>
  721. <!-- 模态框 -->
  722. <showModel
  723. :model="model"
  724. @ok="ok()"
  725. @know="know()"
  726. @cancel="cancel()"
  727. :operate="modelData"
  728. :content="modelContent"
  729. :icon="icon"
  730. :loading="loading"
  731. ></showModel>
  732. </div>
  733. </template>
  734. <script>
  735. import { AES, mode, pad, enc } from "crypto-js";
  736. import vueCustomScrollbar from "vue-custom-scrollbar";
  737. import { get, post } from "./../http/http";
  738. import showModel from "./../components/showModel";
  739. export default {
  740. name: "AppIndex",
  741. components: {
  742. vueCustomScrollbar,
  743. showModel,
  744. },
  745. filters: {
  746. length6: function(value) {
  747. return value.slice(0, 6);
  748. },
  749. },
  750. data() {
  751. return {
  752. loading1: false, //科室标本视图列表加载
  753. loading2: false, //人员信息列表加载
  754. loading3: false,
  755. loading4: false, //人员上下班状态列表加载
  756. loading5: false, //当前工作分配方案获取加载
  757. loading6: false, //病房患者列表加载
  758. loading7: false,
  759. loading8: false,
  760. loading9: false, //获取药房药品请领单列表加载
  761. loading10: false, //获取所有分组加载
  762. detailModel: false, //详情弹层(标本科室视图)
  763. detailParentModel: false, //详情弹层(病房患者视图-患者)
  764. detailSpeModel: false, //详情弹层(病房患者视图-检查)
  765. userData: null, //当前登录人信息
  766. timer: null, //无限(请求接口1)
  767. timer1: null, //无限滚动(1)
  768. timer2: null, //无限(请求接口2)
  769. timer3: null, //无限滚动(2)
  770. timer4: null, //无限(请求接口3)
  771. timer44: null, //无限滚动(3)
  772. timer5: null, //无限(请求接口4)
  773. timer55: null, //无限滚动(4)
  774. timer6: null, //无限(请求接口5)
  775. timer66: null, //无限滚动(5)
  776. animate: false,
  777. n: 0,
  778. // 所有分组-人员信息
  779. groups2: [],
  780. // 所有人-人员上下班状态
  781. groups3: [],
  782. //导航信息
  783. navInfo: [],
  784. //当前导航选中
  785. currentNavIndex: 1,
  786. //轮播信息
  787. swiperList: [],
  788. //药房药品请领单信息
  789. drugList: [],
  790. //病房患者列表
  791. parentList: [],
  792. //当前轮播选中
  793. currentSwiperIndex: 0,
  794. //人员信息
  795. workerMessage: [],
  796. //详情列表(标本科室视图)
  797. detailList: [],
  798. //详情列表(病房患者列表-患者)
  799. detailParentList: [],
  800. //详情列表(病房患者列表-检查)
  801. detailSpeList: [],
  802. // 上下班信息列表
  803. onlines: [],
  804. // 今日产生标本多少只
  805. totalNum: 0,
  806. totalDrugNum: {
  807. sum: 0, //今日请领药品总数
  808. dpssum: 0, //今日待配送药品总数
  809. },
  810. totalParentNum: {
  811. parentNum: 0, //今日重点关注患者人数
  812. speNum: 0, //今日检查数
  813. zyNum: 0, //今日转科总数
  814. gdjczsNum: 0, //今日检查总数
  815. },
  816. // 模态框显示
  817. model: false,
  818. // 模态框按钮数据
  819. modelData: {},
  820. // 模态框按钮数据
  821. modelContent: "",
  822. // 模态框图标
  823. icon: "",
  824. // 模态框loading
  825. loading: false,
  826. // 当前选中的数据
  827. coopData: {},
  828. // 搜索的文本
  829. parameter: "",
  830. // 搜索的分组-人员信息
  831. groupId2: 0,
  832. // 搜索的分组-人员上下班
  833. groupId3: 0,
  834. // 1是综合排班,2是自选排班
  835. workType: 0,
  836. //科室标本的标本详情 332是未收取 333是已收取
  837. speState: [],
  838. //科室标本,当前选中的科室
  839. currentSpecimenDept: null,
  840. //病房患者的标本详情 307是待检查
  841. inspectState: "",
  842. //病房患者,当前选中的科室
  843. currentInspectDept: null,
  844. };
  845. },
  846. watch: {
  847. //科室标本的标本详情,已收取,未收取
  848. speState() {
  849. this.getDetailBySpecimen(this.currentSpecimenDept);
  850. },
  851. //病房患者的检查详情
  852. inspectState() {
  853. this.getDetailByInspect(this.currentInspectDept);
  854. },
  855. },
  856. methods: {
  857. // 搜索分组
  858. selectGroup() {
  859. this.navClick(this.currentNavIndex);
  860. },
  861. // 搜索
  862. search() {
  863. this.loading4 = true;
  864. this.navClick(3);
  865. },
  866. // 重置缓存
  867. resetCache() {
  868. this.model = true;
  869. this.loading = true;
  870. get("/ser/refreshTaskType")
  871. .then((res) => {
  872. this.loading = false;
  873. if (res.state == 200) {
  874. this.model = true;
  875. this.icon = "success";
  876. this.modelContent = "重置缓存成功!";
  877. this.modelData = {
  878. know: "知道了",
  879. };
  880. } else {
  881. this.model = true;
  882. this.icon = "error";
  883. this.modelContent = "重置缓存失败!";
  884. this.modelData = {
  885. know: "知道了",
  886. };
  887. }
  888. })
  889. .catch(() => {
  890. this.loading = false;
  891. this.model = true;
  892. this.icon = "error";
  893. this.modelContent = "重置缓存失败!";
  894. this.modelData = {
  895. know: "知道了",
  896. };
  897. });
  898. },
  899. // 下班
  900. showModelC(coopData) {
  901. this.model = true;
  902. this.icon = "warn";
  903. this.modelContent = `您确定要让【${coopData.name}】下班吗?`;
  904. this.modelData = {
  905. ok: "确定",
  906. cancel: "取消",
  907. };
  908. this.coopData = coopData;
  909. },
  910. cancel() {
  911. this.model = false;
  912. },
  913. know() {
  914. this.model = false;
  915. this.navClick(3);
  916. },
  917. normalWork() {
  918. get("/auth/onOrOffLinePc/off/" + this.coopData.id).then((result2) => {
  919. if (result2.status == 200) {
  920. post("/auth/sendOffline", { userid: this.coopData.id }).then(
  921. (res) => {
  922. if (res.status == 200) {
  923. this.model = true;
  924. this.icon = "success";
  925. this.modelContent = "下班成功!";
  926. this.modelData = {
  927. know: "知道了",
  928. };
  929. }
  930. }
  931. );
  932. } else {
  933. this.model = true;
  934. this.icon = "error";
  935. this.modelContent = result2.msg;
  936. this.modelData = {
  937. know: "知道了",
  938. };
  939. }
  940. });
  941. },
  942. // 确认
  943. ok() {
  944. this.model = false;
  945. if (this.coopData.dataList.length) {
  946. if (this.workType == 2 && this.coopData.dataList[0][2] == 3) {
  947. //综合排班,并且是科室绑定人员
  948. post("/auth/customOfflinePc", { userId: this.coopData.id }).then(
  949. (result1) => {
  950. if (result1.status == 200) {
  951. this.normalWork();
  952. }
  953. }
  954. );
  955. }
  956. } else {
  957. this.normalWork();
  958. }
  959. },
  960. //aes解密
  961. encryptByDeAES(data) {
  962. let Key = "dsadmin";
  963. let tmpDeAES = AES.decrypt(data, Key, {
  964. mode: mode.CBC,
  965. padding: pad.Pkcs7,
  966. });
  967. return tmpDeAES.toString(enc.Utf8);
  968. },
  969. // 点击详情(标本科室视图)
  970. detail(item) {
  971. console.log(item);
  972. clearTimeout(this.timer);
  973. clearTimeout(this.timer1);
  974. this.speState = ["333", "332"];
  975. this.currentSpecimenDept = item;
  976. this.detailModel = true;
  977. },
  978. // 获取标本详情(标本科室视图)
  979. getDetailBySpecimen(item) {
  980. let postData = {
  981. hosIds: this.$route.params.hosIds,
  982. deptId: item.deptId,
  983. urgent: -1,
  984. };
  985. if (this.speState.length > 0) {
  986. postData.speState = this.speState.toString();
  987. } else if (this.speState.length === 0) {
  988. this.detailList = [];
  989. return;
  990. }
  991. this.loading3 = true;
  992. post("/nurse/getListSpecimenDetails", postData).then((result) => {
  993. this.loading3 = false;
  994. if (result.status == 200) {
  995. this.detailList = result.data || [];
  996. }
  997. });
  998. },
  999. hideModel() {
  1000. this.detailModel = false;
  1001. this.polling();
  1002. this.scrollInfinite();
  1003. },
  1004. // 点击详情(病房患者视图->重点关注患者人数)
  1005. detailParent(item) {
  1006. console.log(item);
  1007. clearTimeout(this.timer5);
  1008. clearTimeout(this.timer55);
  1009. this.detailParentModel = true;
  1010. let postData = {
  1011. hosIds: this.$route.params.hosIds,
  1012. deptid: item.id,
  1013. };
  1014. this.loading7 = true;
  1015. post("/nurse/getViewData/getPatient", postData).then((result) => {
  1016. this.loading7 = false;
  1017. this.detailParentList = result.patients || [];
  1018. });
  1019. },
  1020. hideParentModel() {
  1021. this.detailParentModel = false;
  1022. this.polling();
  1023. this.scrollInfinite();
  1024. },
  1025. // 点击详情(病房患者视图->患者检查详情)
  1026. detailSpe(item) {
  1027. console.log(item);
  1028. clearTimeout(this.timer5);
  1029. clearTimeout(this.timer55);
  1030. this.currentInspectDept = item;
  1031. this.detailSpeModel = true;
  1032. this.getDetailByInspect(this.currentInspectDept);
  1033. if (this.inspectState !== "666") {
  1034. this.inspectState = "666";
  1035. }
  1036. },
  1037. // 获取检查详情(病房患者视图)
  1038. getDetailByInspect(item) {
  1039. let postData = {
  1040. hosIds: this.$route.params.hosIds,
  1041. deptId: item.id,
  1042. };
  1043. if (this.inspectState) {
  1044. if (this.inspectState === "307") {
  1045. postData.inspectState = this.inspectState;
  1046. }
  1047. } else {
  1048. this.detailSpeList = [];
  1049. return;
  1050. }
  1051. this.loading8 = true;
  1052. post("/nurse/getViewData/getInspect", postData).then((result) => {
  1053. this.loading8 = false;
  1054. this.detailSpeList = result.inspects || [];
  1055. });
  1056. },
  1057. hideSpeModel() {
  1058. this.detailSpeModel = false;
  1059. this.polling();
  1060. this.scrollInfinite();
  1061. },
  1062. // 导航菜单点击
  1063. navClick(id) {
  1064. this.currentNavIndex = id;
  1065. this.n = 0;
  1066. this.currentSwiperIndex = 0;
  1067. this.animate = false;
  1068. //id:1科室标本视图,id:2人员信息
  1069. if (id == 1) {
  1070. clearTimeout(this.timer2);
  1071. clearTimeout(this.timer3);
  1072. clearTimeout(this.timer4);
  1073. clearTimeout(this.timer44);
  1074. clearTimeout(this.timer5);
  1075. clearTimeout(this.timer55);
  1076. clearTimeout(this.timer6);
  1077. clearTimeout(this.timer66);
  1078. this.dotClick(0);
  1079. this.polling();
  1080. this.getListSpecimenWorkOrderMsg();
  1081. } else if (id == 2) {
  1082. clearTimeout(this.timer);
  1083. clearTimeout(this.timer1);
  1084. clearTimeout(this.timer4);
  1085. clearTimeout(this.timer44);
  1086. clearTimeout(this.timer5);
  1087. clearTimeout(this.timer55);
  1088. clearTimeout(this.timer6);
  1089. clearTimeout(this.timer66);
  1090. this.dotClick(0);
  1091. this.polling();
  1092. this.getWorkerMessage();
  1093. } else if (id == 3) {
  1094. clearTimeout(this.timer);
  1095. clearTimeout(this.timer1);
  1096. clearTimeout(this.timer2);
  1097. clearTimeout(this.timer3);
  1098. clearTimeout(this.timer5);
  1099. clearTimeout(this.timer55);
  1100. clearTimeout(this.timer6);
  1101. clearTimeout(this.timer66);
  1102. this.dotClick(0);
  1103. this.polling();
  1104. this.getOnlines();
  1105. } else if (id == 4) {
  1106. clearTimeout(this.timer);
  1107. clearTimeout(this.timer1);
  1108. clearTimeout(this.timer2);
  1109. clearTimeout(this.timer3);
  1110. clearTimeout(this.timer4);
  1111. clearTimeout(this.timer44);
  1112. clearTimeout(this.timer6);
  1113. clearTimeout(this.timer66);
  1114. this.dotClick(0);
  1115. this.polling();
  1116. this.getListParent();
  1117. } else if (id == 5) {
  1118. clearTimeout(this.timer);
  1119. clearTimeout(this.timer1);
  1120. clearTimeout(this.timer2);
  1121. clearTimeout(this.timer3);
  1122. clearTimeout(this.timer4);
  1123. clearTimeout(this.timer44);
  1124. clearTimeout(this.timer5);
  1125. clearTimeout(this.timer55);
  1126. this.dotClick(0);
  1127. this.polling();
  1128. this.getListDrug();
  1129. }
  1130. },
  1131. //提示点点击
  1132. dotClick(i) {
  1133. clearTimeout(this.timer1);
  1134. clearTimeout(this.timer3);
  1135. clearTimeout(this.timer44);
  1136. clearTimeout(this.timer55);
  1137. clearTimeout(this.timer66);
  1138. this.currentSwiperIndex = i - 1;
  1139. this.n = -i + 1;
  1140. this.showMarquee();
  1141. this.scrollInfinite();
  1142. },
  1143. // 无限滚动
  1144. scrollInfinite() {
  1145. if (this.currentNavIndex == 1) {
  1146. clearTimeout(this.timer1);
  1147. this.timer1 = setTimeout(() => {
  1148. this.showMarquee();
  1149. this.scrollInfinite();
  1150. }, 20000);
  1151. } else if (this.currentNavIndex == 2) {
  1152. clearTimeout(this.timer3);
  1153. this.timer3 = setTimeout(() => {
  1154. this.showMarquee();
  1155. this.scrollInfinite();
  1156. }, 20000);
  1157. } else if (this.currentNavIndex == 3) {
  1158. clearTimeout(this.timer44);
  1159. this.timer44 = setTimeout(() => {
  1160. this.showMarquee();
  1161. this.scrollInfinite();
  1162. }, 20000);
  1163. } else if (this.currentNavIndex == 4) {
  1164. clearTimeout(this.timer55);
  1165. this.timer55 = setTimeout(() => {
  1166. this.showMarquee();
  1167. this.scrollInfinite();
  1168. }, 20000);
  1169. } else if (this.currentNavIndex == 5) {
  1170. clearTimeout(this.timer66);
  1171. this.timer66 = setTimeout(() => {
  1172. this.showMarquee();
  1173. this.scrollInfinite();
  1174. }, 20000);
  1175. }
  1176. },
  1177. // 处理数组方法
  1178. showMarquee() {
  1179. this.animate = true;
  1180. this.n--;
  1181. this.currentSwiperIndex++;
  1182. if (this.n === -this.swiperList.length && this.currentNavIndex == 1) {
  1183. this.animate = true;
  1184. this.n = 0;
  1185. this.currentSwiperIndex = 0;
  1186. }
  1187. if (this.n === -this.workerMessage.length && this.currentNavIndex == 2) {
  1188. this.animate = true;
  1189. this.n = 0;
  1190. this.currentSwiperIndex = 0;
  1191. }
  1192. if (this.n === -this.onlines.length && this.currentNavIndex == 3) {
  1193. this.animate = true;
  1194. this.n = 0;
  1195. this.currentSwiperIndex = 0;
  1196. }
  1197. if (this.n === -this.parentList.length && this.currentNavIndex == 4) {
  1198. this.animate = true;
  1199. this.n = 0;
  1200. this.currentSwiperIndex = 0;
  1201. }
  1202. if (this.n === -this.drugList.length && this.currentNavIndex == 5) {
  1203. this.animate = true;
  1204. this.n = 0;
  1205. this.currentSwiperIndex = 0;
  1206. }
  1207. },
  1208. //切割数组,固定个数
  1209. reSetData(dataList, num) {
  1210. let arr = [];
  1211. let len = dataList.length;
  1212. for (let i = 0; i < len; i += num) {
  1213. arr.push(dataList.slice(i, i + num));
  1214. }
  1215. return arr;
  1216. },
  1217. // 获取科室标本列表
  1218. getListSpecimenWorkOrderMsg(flag = true) {
  1219. if (this.userData.length === 0) {
  1220. //非法访问
  1221. return;
  1222. }
  1223. let postData = {
  1224. hosIds: this.$route.params.hosIds,
  1225. };
  1226. this.loading1 = flag;
  1227. console.log(this.loading1, this.loading5, this.currentNavIndex);
  1228. post("/nurse/getListSpecimenWorkOrderMsg", postData).then((result) => {
  1229. console.log(result);
  1230. this.loading1 = false;
  1231. if (result.status == 200) {
  1232. this.totalNum = result.data.num;
  1233. this.swiperList = this.reSetData(result.data.tempList, 16);
  1234. console.log(this.swiperList);
  1235. this.scrollInfinite();
  1236. if (!this.loading1 && !this.loading5) {
  1237. this.polling();
  1238. }
  1239. }
  1240. });
  1241. },
  1242. // 获取药房药品请领单列表
  1243. getListDrug(flag = true) {
  1244. if (this.userData.length === 0) {
  1245. //非法访问
  1246. return;
  1247. }
  1248. let postData = {
  1249. hosIds: this.$route.params.hosIds,
  1250. };
  1251. this.loading9 = flag;
  1252. post("/nurse/getViewData/drugs", postData).then((result) => {
  1253. console.log(result);
  1254. this.loading9 = false;
  1255. if (result.status == 200) {
  1256. this.totalDrugNum = {
  1257. sum: result.sum,
  1258. dpssum: result.dpssum,
  1259. };
  1260. this.drugList = this.reSetData(result.data, 20);
  1261. console.log(this.drugList);
  1262. this.scrollInfinite();
  1263. if (!this.loading5 && !this.loading9) {
  1264. this.polling();
  1265. }
  1266. }
  1267. });
  1268. },
  1269. // 获取病房患者列表
  1270. getListParent(flag = true) {
  1271. if (this.userData.length === 0) {
  1272. //非法访问
  1273. return;
  1274. }
  1275. let postData = {
  1276. hosIds: this.$route.params.hosIds,
  1277. };
  1278. this.loading6 = flag;
  1279. post("/nurse/getViewData/patient", postData).then((result) => {
  1280. console.log(result);
  1281. this.loading6 = false;
  1282. if (result.status == 200) {
  1283. this.totalParentNum = {
  1284. parentNum: result.patientnum, //今日重点关注患者人数
  1285. speNum: result.jczs, //今日待检查数
  1286. zyNum: result.gdnum, //今日转科总数
  1287. gdjczsNum: result.gdjczs, //今日检查总数
  1288. };
  1289. this.parentList = this.reSetData(result.data, 16);
  1290. this.scrollInfinite();
  1291. if (!this.loading5 && !this.loading6) {
  1292. this.polling();
  1293. }
  1294. }
  1295. });
  1296. },
  1297. // 轮询请求
  1298. polling() {
  1299. if (this.currentNavIndex == 1) {
  1300. clearTimeout(this.timer);
  1301. this.timer = setTimeout(() => {
  1302. this.getListSpecimenWorkOrderMsg(false);
  1303. }, 30000);
  1304. } else if (this.currentNavIndex == 2) {
  1305. clearTimeout(this.timer2);
  1306. this.timer2 = setTimeout(() => {
  1307. this.getWorkerMessage(false);
  1308. }, 30000);
  1309. } else if (this.currentNavIndex == 3) {
  1310. clearTimeout(this.timer4);
  1311. this.timer4 = setTimeout(() => {
  1312. this.getOnlines(false);
  1313. }, 30000);
  1314. } else if (this.currentNavIndex == 4) {
  1315. clearTimeout(this.timer5);
  1316. this.timer5 = setTimeout(() => {
  1317. this.getListParent(false);
  1318. }, 30000);
  1319. } else if (this.currentNavIndex == 5) {
  1320. clearTimeout(this.timer6);
  1321. this.timer6 = setTimeout(() => {
  1322. this.getListDrug(false);
  1323. }, 30000);
  1324. }
  1325. },
  1326. //获取人员信息
  1327. getWorkerMessage(flag = true) {
  1328. let groups = [];
  1329. if (this.userData.length === 0) {
  1330. //非法访问
  1331. return;
  1332. }
  1333. let postData1 = {
  1334. idx: 0,
  1335. sum: 999,
  1336. group2: { hospitals: this.$route.params.hosIds },
  1337. };
  1338. this.loading2 = flag;
  1339. post("/data/fetchDataList/group2", postData1).then((result1) => {
  1340. if (result1.status == 200) {
  1341. this.groups2 = result1.list;
  1342. if (this.groupId2 != 0) {
  1343. groups = [this.groupId2];
  1344. } else {
  1345. this.groups2.forEach((e) => {
  1346. groups.push(e.id);
  1347. });
  1348. }
  1349. let postData = {
  1350. groups,
  1351. idx: 0,
  1352. sum: 9999,
  1353. };
  1354. post("/ser/getWorkInfo", postData).then((result) => {
  1355. this.loading2 = false;
  1356. if (result.status == 200) {
  1357. this.workerMessage = this.reSetData(result.data, 56);
  1358. this.scrollInfinite();
  1359. if (!this.loading2 && !this.loading5 && !this.loading10) {
  1360. this.polling();
  1361. }
  1362. }
  1363. });
  1364. }
  1365. });
  1366. },
  1367. //获取人员上班下班状态
  1368. getOnlines(flag = true) {
  1369. if (this.userData.length === 0) {
  1370. //非法访问
  1371. return;
  1372. }
  1373. this.getGroups();
  1374. let postData = {
  1375. hosIds: this.$route.params.hosIds,
  1376. parameter: this.parameter,
  1377. };
  1378. if (this.groupId3 != 0) {
  1379. postData.groupId = this.groupId3;
  1380. }
  1381. this.loading4 = flag;
  1382. post("/nurse/getUserOnlineStatusMsg", postData).then((result) => {
  1383. this.loading4 = false;
  1384. if (result.status == 200) {
  1385. result.data.forEach((item) => {
  1386. if (item.dataList.length) {
  1387. item.depts = item.dataList.map((v) => v[0]).join(",");
  1388. }
  1389. });
  1390. this.onlines = this.reSetData(result.data, 24);
  1391. this.scrollInfinite();
  1392. if (!this.loading4 && !this.loading5 && !this.loading10) {
  1393. this.polling();
  1394. }
  1395. }
  1396. });
  1397. },
  1398. // 获取所有分组
  1399. getGroups(flag = true) {
  1400. let postData = {
  1401. idx: 0,
  1402. sum: 999,
  1403. group2: { hospitals: this.$route.params.hosIds + "" },
  1404. };
  1405. this.loading10 = flag;
  1406. post("/data/fetchDataList/group2", postData).then((result) => {
  1407. if (result.status == 200) {
  1408. this.loading10 = false;
  1409. this.groups3 = result.list;
  1410. }
  1411. });
  1412. },
  1413. // 获取当前工作方案
  1414. getWorkType() {
  1415. let postData = {
  1416. idx: 0,
  1417. workScheme: {
  1418. status: 1,
  1419. hosId: this.$route.params.hosIds,
  1420. },
  1421. sum: 1,
  1422. };
  1423. post("/simple/data/fetchDataList/workScheme", postData).then((result) => {
  1424. this.loading5 = false;
  1425. if (result.status == 200) {
  1426. this.workType = result.list[0].workType; //1是综合排班,2是自选排班
  1427. if (this.workType == 2) {
  1428. this.navInfo = [
  1429. { id: 1, name: "科室标本" },
  1430. { id: 4, name: "病房患者" },
  1431. { id: 5, name: "药房药品请领单" },
  1432. { id: 2, name: "人员信息" },
  1433. { id: 3, name: "人员上班下班状态" },
  1434. ];
  1435. } else {
  1436. this.navInfo = [
  1437. { id: 1, name: "科室标本" },
  1438. { id: 4, name: "病房患者" },
  1439. { id: 5, name: "药房药品请领单" },
  1440. { id: 2, name: "人员信息" },
  1441. ];
  1442. }
  1443. this.loading1 = false;
  1444. this.getListSpecimenWorkOrderMsg();
  1445. }
  1446. });
  1447. },
  1448. // 登录
  1449. login() {
  1450. this.loading1 = true;
  1451. // this.loading2 = true;
  1452. // this.loading4 = true;
  1453. // this.loading5 = true;
  1454. // this.loading6 = true;
  1455. // this.loading9 = true;
  1456. // this.loading10 = true;
  1457. let postData = {
  1458. username: this.encryptByDeAES(
  1459. decodeURIComponent(this.$route.params.username)
  1460. ),
  1461. password: this.encryptByDeAES(
  1462. decodeURIComponent(this.$route.params.password)
  1463. ),
  1464. };
  1465. post("/auth/login", postData).then((result) => {
  1466. if (result.status == 200) {
  1467. this.userData = result.user;
  1468. this.getWorkType();
  1469. } else {
  1470. this.userData = [];
  1471. }
  1472. });
  1473. },
  1474. },
  1475. created() {
  1476. this.login();
  1477. },
  1478. beforeDestroy() {
  1479. clearTimeout(this.timer);
  1480. clearTimeout(this.timer1);
  1481. clearTimeout(this.timer2);
  1482. clearTimeout(this.timer3);
  1483. clearTimeout(this.timer4);
  1484. clearTimeout(this.timer44);
  1485. clearTimeout(this.timer5);
  1486. clearTimeout(this.timer55);
  1487. clearTimeout(this.timer6);
  1488. clearTimeout(this.timer66);
  1489. },
  1490. };
  1491. </script>
  1492. <style lang="less" scoped>
  1493. .cot_img {
  1494. height: 100%;
  1495. width: 100%;
  1496. position: absolute;
  1497. left: 0;
  1498. top: 0;
  1499. background: #f9fafb;
  1500. display: flex;
  1501. justify-content: center;
  1502. align-items: center;
  1503. span {
  1504. color: #49b856;
  1505. font-size: 24px;
  1506. font-weight: bold;
  1507. }
  1508. }
  1509. .noData {
  1510. height: 100%;
  1511. display: flex;
  1512. justify-content: center;
  1513. align-items: center;
  1514. font-weight: bold;
  1515. }
  1516. .loading {
  1517. height: 100%;
  1518. display: flex;
  1519. justify-content: center;
  1520. align-items: center;
  1521. flex-direction: column;
  1522. }
  1523. .detailModel {
  1524. display: flex;
  1525. justify-content: center;
  1526. align-items: center;
  1527. &.detailModelParent {
  1528. table {
  1529. td,
  1530. th {
  1531. width: 150px !important;
  1532. &:first-of-type {
  1533. width: 60px !important;
  1534. }
  1535. }
  1536. }
  1537. }
  1538. .box {
  1539. width: 1167px;
  1540. height: 580px;
  1541. border-radius: 8px;
  1542. background-color: #fff;
  1543. display: flex;
  1544. flex-direction: column;
  1545. align-items: center;
  1546. position: relative;
  1547. .transport-guanbi {
  1548. position: absolute;
  1549. right: 16px;
  1550. top: 16px;
  1551. font-size: 20px;
  1552. color: #8e9d9e;
  1553. cursor: pointer;
  1554. }
  1555. .title {
  1556. height: 50px;
  1557. line-height: 50px;
  1558. text-align: center;
  1559. font-size: 18px;
  1560. color: #333;
  1561. font-weight: bold;
  1562. .operateTitle {
  1563. position: relative;
  1564. .operate {
  1565. font-weight: normal;
  1566. font-size: 14px;
  1567. width: 200px;
  1568. position: absolute;
  1569. top: 0;
  1570. left: 100%;
  1571. &.checkbox {
  1572. label {
  1573. cursor: pointer;
  1574. margin-left: 8px;
  1575. display: inline-flex;
  1576. align-items: center;
  1577. span {
  1578. margin-left: 4px;
  1579. }
  1580. // 多选框
  1581. input[type="checkbox"] {
  1582. cursor: pointer;
  1583. position: relative;
  1584. width: 15px;
  1585. height: 15px;
  1586. font-size: 15px;
  1587. }
  1588. input[type="checkbox"]:checked::after {
  1589. position: absolute;
  1590. overflow: hidden;
  1591. background-color: #49b856;
  1592. border: 1px solid #767676;
  1593. color: #fff;
  1594. width: 15px;
  1595. height: 15px;
  1596. border-radius: 4px;
  1597. line-height: 0.8;
  1598. display: inline-block;
  1599. content: "\e618;";
  1600. font-size: 15px;
  1601. font-family: "icon_transport" !important;
  1602. font-style: normal;
  1603. -webkit-font-smoothing: antialiased;
  1604. -moz-osx-font-smoothing: grayscale;
  1605. }
  1606. }
  1607. }
  1608. &.radio {
  1609. label {
  1610. cursor: pointer;
  1611. margin-left: 8px;
  1612. display: inline-flex;
  1613. align-items: center;
  1614. position: relative;
  1615. font-weight: 400;
  1616. color: #767676;
  1617. padding-left: 16px;
  1618. span {
  1619. margin-left: 4px;
  1620. }
  1621. input[type="radio"] {
  1622. position: absolute;
  1623. left: -9999px;
  1624. }
  1625. input[type="radio"] + i {
  1626. display: block;
  1627. position: absolute;
  1628. left: 0;
  1629. width: 14px;
  1630. height: 14px;
  1631. outline: 0;
  1632. border: 1px solid #0c4757;
  1633. background: transparent;
  1634. border-radius: 50%;
  1635. transition: border-color 0.3s;
  1636. -webkit-transition: border-color 0.3s;
  1637. }
  1638. input[type="radio"]:checked + i {
  1639. border-color: #49b856;
  1640. }
  1641. input[type="radio"] + i:after {
  1642. position: absolute;
  1643. content: "";
  1644. top: 50%;
  1645. left: 50%;
  1646. width: 8px;
  1647. height: 8px;
  1648. border-radius: 50%;
  1649. background-color: #49b856;
  1650. transform: translate(-50%, -50%);
  1651. opacity: 0;
  1652. transition: opacity 0.1s;
  1653. -webkit-transition: opacity 0.1s;
  1654. }
  1655. input[type="radio"]:checked + i:after {
  1656. opacity: 1;
  1657. }
  1658. }
  1659. }
  1660. }
  1661. }
  1662. }
  1663. .table {
  1664. width: 1127px;
  1665. height: 474px;
  1666. background-color: #f9fafb;
  1667. border: 1px solid #e5e9ed;
  1668. border-radius: 8px;
  1669. display: flex;
  1670. justify-content: center;
  1671. align-items: center;
  1672. .table-content {
  1673. width: 1063px;
  1674. height: 420px;
  1675. background-color: #fff;
  1676. border-radius: 8px;
  1677. border: 1px solid #e5e9ed;
  1678. table {
  1679. width: 100%;
  1680. font-size: 14px;
  1681. color: #333;
  1682. th,
  1683. td {
  1684. text-align: center !important;
  1685. width: 167px;
  1686. height: 100%;
  1687. &:first-of-type {
  1688. width: 59px;
  1689. }
  1690. }
  1691. thead {
  1692. display: block;
  1693. width: 100%;
  1694. height: 40px;
  1695. line-height: 40px;
  1696. background-image: linear-gradient(90deg, #39b199 0%, #74c271 100%);
  1697. tr {
  1698. height: 40px;
  1699. color: #fff;
  1700. }
  1701. }
  1702. tbody {
  1703. display: block;
  1704. width: 100%;
  1705. height: 380px;
  1706. overflow-x: hidden;
  1707. overflow-y: auto;
  1708. tr {
  1709. height: 34px;
  1710. line-height: 34px;
  1711. td:last-child {
  1712. position: relative;
  1713. }
  1714. td {
  1715. .ji {
  1716. position: absolute;
  1717. right: 0;
  1718. top: -3px;
  1719. width: 41px;
  1720. height: 42px;
  1721. background: url(./../assets/images/icon_ji.png) no-repeat 3px
  1722. 0;
  1723. }
  1724. }
  1725. }
  1726. }
  1727. }
  1728. }
  1729. }
  1730. .btns {
  1731. flex: 1;
  1732. display: flex;
  1733. justify-content: center;
  1734. align-items: center;
  1735. .btn {
  1736. width: 120px;
  1737. height: 34px;
  1738. line-height: 34px;
  1739. text-align: center;
  1740. background-color: #f9fafb;
  1741. border: 1px solid #dde1e5;
  1742. border-radius: 4px;
  1743. font-size: 14px;
  1744. color: #49b856;
  1745. cursor: pointer;
  1746. }
  1747. }
  1748. }
  1749. }
  1750. .detailModel {
  1751. position: fixed;
  1752. left: 0;
  1753. top: 0;
  1754. width: 100%;
  1755. height: 100%;
  1756. background-color: rgba(0, 0, 0, 0.5);
  1757. }
  1758. .marquee_top {
  1759. transition: all 0.3s;
  1760. }
  1761. .specimen-view {
  1762. position: absolute;
  1763. width: 100%;
  1764. height: 100%;
  1765. display: flex;
  1766. flex-direction: column;
  1767. .specimen-header {
  1768. height: 88px;
  1769. display: flex;
  1770. .specimen-logo {
  1771. width: 221px;
  1772. background-color: #0f2e3b;
  1773. display: flex;
  1774. justify-content: center;
  1775. align-items: center;
  1776. .pharmacy-logo__img {
  1777. width: 32px;
  1778. }
  1779. .pharmacy-logo__name {
  1780. font-size: 14px;
  1781. color: #fff;
  1782. margin-bottom: 0;
  1783. }
  1784. }
  1785. .specimen-menu {
  1786. flex: 1;
  1787. display: flex;
  1788. align-items: center;
  1789. .specimen-menu-box {
  1790. padding: 0 8px;
  1791. height: 40px;
  1792. border-radius: 20px;
  1793. line-height: 40px;
  1794. text-align: center;
  1795. color: #333333;
  1796. font-size: 16px;
  1797. margin-left: 16px;
  1798. cursor: pointer;
  1799. &.active {
  1800. background-color: #49b856;
  1801. font-size: 20px;
  1802. color: #f0f6ed;
  1803. }
  1804. }
  1805. }
  1806. .totalNum {
  1807. display: flex;
  1808. justify-content: center;
  1809. align-items: center;
  1810. margin-right: 24px;
  1811. &.parent {
  1812. width: 340px;
  1813. display: flex;
  1814. flex-direction: row;
  1815. align-items: center;
  1816. justify-content: space-between;
  1817. div {
  1818. margin: 4px 0;
  1819. span {
  1820. font-size: 18px;
  1821. }
  1822. }
  1823. }
  1824. &.currentNavIndex3 {
  1825. select {
  1826. box-sizing: border-box;
  1827. margin: 0;
  1828. padding: 4px 11px;
  1829. font-variant: tabular-nums;
  1830. list-style: none;
  1831. font-feature-settings: "tnum";
  1832. position: relative;
  1833. display: inline-block;
  1834. color: rgba(0, 0, 0, 0.65);
  1835. font-size: 14px;
  1836. line-height: 1.5;
  1837. background-color: #fff;
  1838. background-image: none;
  1839. border: 1px solid #d9d9d9;
  1840. border-radius: 4px;
  1841. transition: all 0.3s;
  1842. width: 130px;
  1843. height: 36px;
  1844. outline: none;
  1845. margin-right: 16px;
  1846. }
  1847. input {
  1848. box-sizing: border-box;
  1849. margin: 0;
  1850. padding: 4px 11px;
  1851. font-variant: tabular-nums;
  1852. list-style: none;
  1853. font-feature-settings: "tnum";
  1854. position: relative;
  1855. display: inline-block;
  1856. color: rgba(0, 0, 0, 0.65);
  1857. font-size: 14px;
  1858. line-height: 1.5;
  1859. background-color: #fff;
  1860. background-image: none;
  1861. border: 1px solid #d9d9d9;
  1862. border-radius: 4px;
  1863. transition: all 0.3s;
  1864. width: 130px;
  1865. height: 36px;
  1866. outline: none;
  1867. }
  1868. button {
  1869. margin-left: 16px;
  1870. color: #3bb197;
  1871. background: #fff;
  1872. height: 34px;
  1873. line-height: 34px;
  1874. padding: 0 0 26px;
  1875. min-width: 80px;
  1876. font-size: 14px;
  1877. border: 1px solid #49b856;
  1878. border-radius: 4px;
  1879. outline: none;
  1880. cursor: pointer;
  1881. }
  1882. }
  1883. span {
  1884. font-weight: bold;
  1885. color: red;
  1886. }
  1887. }
  1888. }
  1889. .main {
  1890. height: calc(100vh - 160px);
  1891. flex: 1;
  1892. background-color: #f9fafb;
  1893. overflow: hidden;
  1894. .main-box {
  1895. width: 100%;
  1896. height: 100%;
  1897. .main-box-item-wrap {
  1898. float: left;
  1899. width: 100vw;
  1900. height: calc(100vh - 160px);
  1901. display: flex;
  1902. flex-wrap: wrap;
  1903. padding: 8px;
  1904. .main-box-item {
  1905. width: calc((100vw - 96px) / 5);
  1906. height: calc((100vh - 240px) / 4);
  1907. margin: 8px;
  1908. background-color: #fff;
  1909. border: 1px solid #e5e9ed;
  1910. border-radius: 4px;
  1911. cursor: pointer;
  1912. &.main-box-item-w4 {
  1913. width: calc((100vw - 80px) / 4);
  1914. .main-box-item-content {
  1915. justify-content: space-evenly;
  1916. .main-box-item-contentBox {
  1917. width: auto;
  1918. }
  1919. }
  1920. }
  1921. &.main-box-item-w4--ks {
  1922. width: calc((100vw - 80px) / 4);
  1923. .main-box-item-content {
  1924. justify-content: space-evenly;
  1925. }
  1926. }
  1927. &:hover {
  1928. background-color: #f0f6ed;
  1929. }
  1930. .main-box-item-header {
  1931. height: calc(100% * 0.4);
  1932. border-bottom: 1px solid #e5e9ed;
  1933. display: flex;
  1934. justify-content: space-between;
  1935. align-items: center;
  1936. &.pp {
  1937. h2 {
  1938. flex: 2;
  1939. }
  1940. div {
  1941. flex: 1;
  1942. font-size: 16px;
  1943. font-weight: bold;
  1944. text-align: center;
  1945. }
  1946. strong {
  1947. flex: 1;
  1948. text-align: center;
  1949. }
  1950. }
  1951. h2 {
  1952. height: 18px;
  1953. font-size: 16px;
  1954. font-weight: bold;
  1955. color: #000;
  1956. margin-left: 8px;
  1957. flex: 1;
  1958. white-space: nowrap;
  1959. overflow: hidden;
  1960. text-overflow: ellipsis;
  1961. }
  1962. strong {
  1963. font-size: 18px;
  1964. color: #666;
  1965. margin-right: 8px;
  1966. }
  1967. .ksbb_phone {
  1968. font-size: 14px;
  1969. }
  1970. }
  1971. .main-box-item-content {
  1972. height: calc(100% * 0.6);
  1973. display: flex;
  1974. .main-box-item-contentBox {
  1975. width: 50%;
  1976. height: 100%;
  1977. display: flex;
  1978. flex-direction: column;
  1979. justify-content: center;
  1980. align-items: center;
  1981. h3 {
  1982. font-size: 22px;
  1983. font-weight: bold;
  1984. }
  1985. p {
  1986. font-size: 14px;
  1987. color: #666;
  1988. margin-top: 8px;
  1989. }
  1990. &.red {
  1991. position: relative;
  1992. h3 {
  1993. color: #ff3b53;
  1994. }
  1995. &:after {
  1996. content: "";
  1997. position: absolute;
  1998. top: 50%;
  1999. right: -1px;
  2000. width: 2px;
  2001. height: calc(100% * 0.625);
  2002. background-color: #dde1e5;
  2003. transform: translateY(-50%);
  2004. }
  2005. }
  2006. &.green {
  2007. h3 {
  2008. color: #49b856;
  2009. }
  2010. }
  2011. }
  2012. }
  2013. }
  2014. }
  2015. }
  2016. }
  2017. .footer {
  2018. height: 72px;
  2019. display: flex;
  2020. justify-content: center;
  2021. align-items: center;
  2022. background-color: #f9fafb;
  2023. .dot {
  2024. width: 16px;
  2025. height: 16px;
  2026. border-radius: 50%;
  2027. background-color: #e5e9ed;
  2028. margin-left: 24px;
  2029. cursor: pointer;
  2030. &.active {
  2031. background-color: #49b856;
  2032. }
  2033. &:first-of-type {
  2034. margin-left: 0;
  2035. }
  2036. }
  2037. }
  2038. // 人员信息
  2039. .message_cot {
  2040. margin: 16px;
  2041. margin-bottom: 0;
  2042. width: calc(100vw - 32px) !important;
  2043. height: 100%;
  2044. overflow: hidden;
  2045. position: relative;
  2046. &.message_on {
  2047. .cot {
  2048. &.sevenCol {
  2049. width: 16.6666666%;
  2050. height: 25%;
  2051. font-size: 14px;
  2052. display: flex;
  2053. flex-direction: column;
  2054. justify-content: space-evenly;
  2055. .header_on {
  2056. display: flex;
  2057. height: 26px;
  2058. justify-content: space-between;
  2059. align-items: center;
  2060. .goWork {
  2061. outline: none;
  2062. width: 50px;
  2063. height: 26px;
  2064. line-height: 26px;
  2065. text-align: center;
  2066. background-color: #f9fafb;
  2067. border: 1px solid #dde1e5;
  2068. border-radius: 4px;
  2069. font-size: 14px;
  2070. color: #49b856;
  2071. cursor: pointer;
  2072. margin-right: 8px;
  2073. }
  2074. }
  2075. .headerItem_on {
  2076. white-space: nowrap;
  2077. text-overflow: ellipsis;
  2078. overflow: hidden;
  2079. height: 22px;
  2080. line-height: 22px;
  2081. color: #333;
  2082. }
  2083. .headerItem_on_two {
  2084. word-break: break-all;
  2085. text-overflow: ellipsis;
  2086. display: -webkit-box; /** 对象作为伸缩盒子模型显示 **/
  2087. -webkit-box-orient: vertical; /** 设置或检索伸缩盒对象的子元素的排列方式 **/
  2088. -webkit-line-clamp: 2; /** 显示的行数 **/
  2089. overflow: hidden; /** 隐藏超出的内容 **/
  2090. height: 44px;
  2091. line-height: 22px;
  2092. color: #333;
  2093. }
  2094. }
  2095. }
  2096. }
  2097. }
  2098. .message_cot .cot_all_wrap {
  2099. overflow: hidden;
  2100. height: 100%;
  2101. }
  2102. .message_cot .cot_all {
  2103. width: calc(100vw - 32px);
  2104. height: calc(100% - 16px);
  2105. float: left;
  2106. border-top: 1px rgb(225, 229, 232) solid;
  2107. }
  2108. .message_cot .cot {
  2109. height: 70px;
  2110. border-right: 1px rgb(225, 229, 232) solid;
  2111. border-bottom: 1px rgb(225, 229, 232) solid;
  2112. font-size: 12px;
  2113. overflow: hidden;
  2114. padding: 10px 30px;
  2115. background-color: white;
  2116. float: left;
  2117. &:nth-of-type(7n + 1) {
  2118. border-left: 1px rgb(225, 229, 232) solid;
  2119. }
  2120. &.col-6 {
  2121. height: 35px;
  2122. line-height: 35px;
  2123. padding: 0 30px;
  2124. }
  2125. &.sevenCol {
  2126. width: 14.285%;
  2127. height: 12.5%;
  2128. font-size: 12px;
  2129. padding: 12px 8px;
  2130. display: flex;
  2131. flex-direction: column;
  2132. justify-content: center;
  2133. }
  2134. }
  2135. .message_cot .cot .first {
  2136. display: flex;
  2137. justify-content: space-between;
  2138. align-items: center;
  2139. .first_first {
  2140. display: flex;
  2141. flex-direction: column;
  2142. align-items: center;
  2143. .first_firstPhone {
  2144. font-size: 12px;
  2145. }
  2146. }
  2147. }
  2148. .message_cot .cot .first span {
  2149. display: inline-block;
  2150. font-size: 14px;
  2151. }
  2152. .message_cot .cot .first .times {
  2153. float: right;
  2154. &.imptime-green {
  2155. color: #49b856;
  2156. }
  2157. }
  2158. .message_cot .cot .first .overtime {
  2159. color: red;
  2160. }
  2161. .message_cot .cot .first .freetime {
  2162. color: #49b856;
  2163. }
  2164. .message_cot .cot .second {
  2165. margin-top: 8px;
  2166. width: 100%;
  2167. height: 20px;
  2168. }
  2169. .message_cot .cot .second span {
  2170. font-size: 13px;
  2171. }
  2172. .message_cot .cot .second span:nth-child(1) {
  2173. float: left;
  2174. color: #666666;
  2175. }
  2176. .message_cot .cot .second span:nth-child(2) {
  2177. float: right;
  2178. color: #333333;
  2179. &.colorRed {
  2180. color: red;
  2181. }
  2182. }
  2183. .message_cot .cot .second span:nth-child(3) {
  2184. float: right;
  2185. }
  2186. .message_cot .cot .third {
  2187. margin-top: 15px;
  2188. }
  2189. .message_cot .cot .third i {
  2190. color: #49b856;
  2191. }
  2192. .message_cot .cot .third span {
  2193. font-size: 13px;
  2194. }
  2195. }
  2196. </style>