Elizabeth's proactive approach involves introducing urinal toilet attachment , an ingenious concept that optimizes space and functionality.

dialysisPrintOrder.vue 95KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171
  1. <template>
  2. <div class="main-contain">
  3. <div class="position">
  4. <bread-crumb :crumbs="crumbs"></bread-crumb>
  5. <template v-if="org_template_info.template_id == 1">
  6. <el-button
  7. :loading="loading"
  8. size="small"
  9. icon="el-icon-printer"
  10. @click="printThisPage"
  11. type="primary"
  12. >打印</el-button
  13. >
  14. </template>
  15. <template
  16. v-if="
  17. org_template_info.template_id == 2 ||
  18. org_template_info.template_id == 0
  19. "
  20. >
  21. <div>
  22. <el-button
  23. :loading="loading"
  24. size="small"
  25. icon="el-icon-printer"
  26. @click="printThisPage"
  27. type="primary"
  28. >打印全部</el-button
  29. >
  30. <el-button
  31. :loading="loading"
  32. size="small"
  33. icon="el-icon-printer"
  34. @click="printThisOnePage"
  35. type="primary"
  36. >打印纪录单</el-button
  37. >
  38. <el-button
  39. :loading="loading"
  40. size="small"
  41. icon="el-icon-printer"
  42. @click="printThisTwoPage"
  43. type="primary"
  44. >打印医嘱单</el-button
  45. >
  46. </div>
  47. </template>
  48. <template v-if="org_template_info.template_id == 3">
  49. <el-button
  50. :loading="loading"
  51. size="small"
  52. icon="el-icon-printer"
  53. @click="printThisPage"
  54. type="primary"
  55. >打印</el-button
  56. >
  57. </template>
  58. <template v-if="org_template_info.template_id == 4">
  59. <el-button
  60. :loading="loading"
  61. size="small"
  62. icon="el-icon-printer"
  63. @click="printThisPage"
  64. type="primary"
  65. >打印</el-button
  66. >
  67. </template>
  68. <template v-if="org_template_info.template_id == 5">
  69. <div>
  70. <el-button
  71. :loading="loading"
  72. size="small"
  73. icon="el-icon-printer"
  74. @click="printThisPage"
  75. type="primary"
  76. >打印全部</el-button
  77. >
  78. <el-button
  79. :loading="loading"
  80. size="small"
  81. icon="el-icon-printer"
  82. @click="printThisOnePage"
  83. type="primary"
  84. >打印纪录单</el-button
  85. >
  86. <el-button
  87. :loading="loading"
  88. size="small"
  89. icon="el-icon-printer"
  90. @click="printThisTwoPage"
  91. type="primary"
  92. >打印医嘱单</el-button
  93. >
  94. </div>
  95. </template>
  96. <template
  97. v-if="
  98. org_template_info.template_id == 6 ||
  99. org_template_info.template_id == 10 ||
  100. org_template_info.template_id == 11
  101. "
  102. >
  103. <el-button
  104. :loading="loading"
  105. size="small"
  106. icon="el-icon-printer"
  107. @click="printThisPage"
  108. type="primary"
  109. >打印</el-button
  110. >
  111. </template>
  112. <template v-if="org_template_info.template_id == 7">
  113. <el-button
  114. :loading="loading"
  115. size="small"
  116. icon="el-icon-printer"
  117. @click="printThisPage"
  118. type="primary"
  119. >打印</el-button
  120. >
  121. </template>
  122. <template v-if="org_template_info.template_id == 8">
  123. <el-button
  124. :loading="loading"
  125. size="small"
  126. icon="el-icon-printer"
  127. @click="printThisPage"
  128. type="primary"
  129. >打印</el-button
  130. >
  131. </template>
  132. <template v-if="org_template_info.template_id == 9">
  133. <el-button
  134. :loading="loading"
  135. size="small"
  136. icon="el-icon-printer"
  137. @click="printThisPage"
  138. type="primary"
  139. >打印</el-button
  140. >
  141. </template>
  142. <template v-if="org_template_info.template_id == 12">
  143. <el-button
  144. :loading="loading"
  145. size="small"
  146. icon="el-icon-printer"
  147. @click="printThisPage"
  148. type="primary"
  149. >打印</el-button
  150. >
  151. </template>
  152. <template v-if="org_template_info.template_id == 13">
  153. <el-button
  154. :loading="loading"
  155. size="small"
  156. icon="el-icon-printer"
  157. @click="printThisPage"
  158. type="primary"
  159. >打印</el-button
  160. >
  161. </template>
  162. <template
  163. v-if="
  164. org_template_info.template_id == 14 ||
  165. org_template_info.template_id == 0
  166. "
  167. >
  168. <div>
  169. <el-button
  170. :loading="loading"
  171. size="small"
  172. icon="el-icon-printer"
  173. @click="printThisPage"
  174. type="primary"
  175. >打印全部</el-button
  176. >
  177. <el-button
  178. :loading="loading"
  179. size="small"
  180. icon="el-icon-printer"
  181. @click="printThisOnePage"
  182. type="primary"
  183. >打印纪录单</el-button
  184. >
  185. <el-button
  186. :loading="loading"
  187. size="small"
  188. icon="el-icon-printer"
  189. @click="printThisTwoPage"
  190. type="primary"
  191. >打印医嘱单</el-button
  192. >
  193. </div>
  194. </template>
  195. <template v-if="org_template_info.template_id == 15">
  196. <el-button
  197. :loading="loading"
  198. size="small"
  199. icon="el-icon-printer"
  200. @click="printThisPage"
  201. type="primary"
  202. >打印</el-button
  203. >
  204. </template>
  205. <template v-if="org_template_info.template_id == 16">
  206. <el-button
  207. :loading="loading"
  208. size="small"
  209. icon="el-icon-printer"
  210. @click="printThisPage"
  211. type="primary"
  212. >打印</el-button
  213. >
  214. </template>
  215. <template v-if="org_template_info.template_id == 17">
  216. <el-button
  217. :loading="loading"
  218. size="small"
  219. icon="el-icon-printer"
  220. @click="printThisPage"
  221. type="primary"
  222. >打印</el-button
  223. >
  224. </template>
  225. <template v-if="org_template_info.template_id == 18">
  226. <el-button
  227. :loading="loading"
  228. size="small"
  229. icon="el-icon-printer"
  230. @click="printThisPage"
  231. type="primary"
  232. >打印</el-button
  233. >
  234. </template>
  235. <template v-if="org_template_info.template_id == 19">
  236. <el-button
  237. :loading="loading"
  238. size="small"
  239. icon="el-icon-printer"
  240. @click="printThisPage"
  241. type="primary"
  242. >打印</el-button
  243. >
  244. </template>
  245. <template v-if="org_template_info.template_id == 20">
  246. <el-button
  247. :loading="loading"
  248. size="small"
  249. icon="el-icon-printer"
  250. @click="printThisPage"
  251. type="primary"
  252. >打印</el-button
  253. >
  254. </template>
  255. <!-- <template v-if="org_template_info.template_id == 21">
  256. <el-button
  257. :loading="loading"
  258. size="small"
  259. icon="el-icon-printer"
  260. @click="printThisPage"
  261. type="primary"
  262. >打印</el-button
  263. >
  264. </template> -->
  265. <template
  266. v-if="
  267. org_template_info.template_id == 21 ||
  268. org_template_info.template_id == 0
  269. "
  270. >
  271. <div>
  272. <el-button
  273. :loading="loading"
  274. size="small"
  275. icon="el-icon-printer"
  276. @click="printThisPage"
  277. type="primary"
  278. >打印全部</el-button
  279. >
  280. <el-button
  281. :loading="loading"
  282. size="small"
  283. icon="el-icon-printer"
  284. @click="printThisOnePage"
  285. type="primary"
  286. >打印纪录单</el-button
  287. >
  288. <el-button
  289. :loading="loading"
  290. size="small"
  291. icon="el-icon-printer"
  292. @click="printThisTwoPage"
  293. type="primary"
  294. >打印医嘱单</el-button
  295. >
  296. </div>
  297. </template>
  298. <template v-if="org_template_info.template_id == 22">
  299. <div>
  300. <el-button
  301. :loading="loading"
  302. size="small"
  303. icon="el-icon-printer"
  304. @click="printThisPage"
  305. type="primary"
  306. >打印全部</el-button
  307. >
  308. <el-button
  309. :loading="loading"
  310. size="small"
  311. icon="el-icon-printer"
  312. @click="printThisOnePage"
  313. type="primary"
  314. >打印纪录单</el-button
  315. >
  316. <el-button
  317. :loading="loading"
  318. size="small"
  319. icon="el-icon-printer"
  320. @click="printThisTwoPage"
  321. type="primary"
  322. >打印医嘱单</el-button
  323. >
  324. </div>
  325. </template>
  326. <template v-if="org_template_info.template_id == 23">
  327. <el-button
  328. :loading="loading"
  329. size="small"
  330. icon="el-icon-printer"
  331. @click="printThisPage"
  332. type="primary"
  333. >打印</el-button
  334. >
  335. </template>
  336. <template v-if="org_template_info.template_id == 24">
  337. <el-button
  338. :loading="loading"
  339. size="small"
  340. icon="el-icon-printer"
  341. @click="printThisPage"
  342. type="primary"
  343. >打印</el-button
  344. >
  345. </template>
  346. <template v-if="org_template_info.template_id == 25">
  347. <el-button
  348. :loading="loading"
  349. size="small"
  350. icon="el-icon-printer"
  351. @click="printThisPage"
  352. type="primary"
  353. >打印</el-button
  354. >
  355. </template>
  356. <template v-if="org_template_info.template_id == 26">
  357. <el-button
  358. :loading="loading"
  359. size="small"
  360. icon="el-icon-printer"
  361. @click="printThisPage"
  362. type="primary"
  363. >打印</el-button
  364. >
  365. </template>
  366. <template
  367. v-if="
  368. org_template_info.template_id == 27 ||
  369. org_template_info.template_id == 0
  370. "
  371. >
  372. <div>
  373. <el-button
  374. :loading="loading"
  375. size="small"
  376. icon="el-icon-printer"
  377. @click="printThisPage"
  378. type="primary"
  379. >打印全部</el-button
  380. >
  381. <el-button
  382. :loading="loading"
  383. size="small"
  384. icon="el-icon-printer"
  385. @click="printThisOnePage"
  386. type="primary"
  387. >打印纪录单</el-button
  388. >
  389. <el-button
  390. :loading="loading"
  391. size="small"
  392. icon="el-icon-printer"
  393. @click="printThisTwoPage"
  394. type="primary"
  395. >打印医嘱单</el-button
  396. >
  397. </div>
  398. </template>
  399. <template v-if="org_template_info.template_id == 28">
  400. <el-button
  401. :loading="loading"
  402. size="small"
  403. icon="el-icon-printer"
  404. @click="printThisPage"
  405. type="primary"
  406. >打印</el-button
  407. >
  408. </template>
  409. <template v-if="org_template_info.template_id == 29">
  410. <el-button
  411. :loading="loading"
  412. size="small"
  413. icon="el-icon-printer"
  414. @click="printThisPage"
  415. type="primary"
  416. >打印</el-button
  417. >
  418. </template>
  419. <template v-if="org_template_info.template_id == 30">
  420. <el-button
  421. :loading="loading"
  422. size="small"
  423. icon="el-icon-printer"
  424. @click="printThisPage"
  425. type="primary"
  426. >打印</el-button
  427. >
  428. </template>
  429. <template v-if="org_template_info.template_id == 31">
  430. <el-button
  431. :loading="loading"
  432. size="small"
  433. icon="el-icon-printer"
  434. @click="printThisPage"
  435. type="primary"
  436. >打印</el-button
  437. >
  438. </template>
  439. </div>
  440. <div class="app-container" style="min-height:0;">
  441. <!--<div class="order-print-btn"-->
  442. <!--v-loading="loading"-->
  443. <!--element-loading-text="加载中"-->
  444. <!--element-loading-spinner="el-icon-loading"-->
  445. <!--element-loading-background="rgba(0, 0, 0, 0.8)"-->
  446. <!--style="width: 100%;">-->
  447. <!--</div>-->
  448. <!--<dialysis-print-order-two :patientInfo="patientInfo" :receiverTreatmentAccess="receiverTreatmentAccess" :predialysis="predialysis"></dialysis-print-order-two>-->
  449. <el-container class="newContainer">
  450. <div style="width:270px;margin-right:20px;">
  451. <div class="cell clearfix" style="margin-bottom:10px;">
  452. <el-date-picker v-model="selected_date" prefix-icon="el-icon-date" @change="handleScheduleDateChange" :editable="false" :clearable="false" style="width: 130px;margin-right:10px;" type="date" placeholder="选择日期时间" align="right" ></el-date-picker>
  453. <el-input size="small" style="width:80px;" @keyup.enter.native='searchAction' v-model.trim="search_input" class="filter-item"/>
  454. <el-button size="small" class="filter-item" type="primary" @click="searchAction">搜索</el-button>
  455. </div>
  456. <div class="cell clearfix" style="margin-bottom:10px;">
  457. <el-select v-model="patientStateVal" placeholder="全部患者状态" style="width:130px;margin-right:10px;" @change="handleStateChange">
  458. <el-option
  459. v-for="item in patient_state"
  460. :key="item.value"
  461. :label="item.label"
  462. :value="item.value">
  463. </el-option>
  464. </el-select>
  465. <el-select v-model="treatStateVal" placeholder="全部治疗状态" style="width:130px;margin-right:10px;" @change="handleTreatChange">
  466. <el-option
  467. v-for="item in treat_state"
  468. :key="item.value"
  469. :label="item.label"
  470. :value="item.value">
  471. </el-option>
  472. </el-select>
  473. </div>
  474. <div class="cell clearfix" style="margin-bottom:10px;">
  475. <el-select v-model="scheduleStateVal" placeholder="班次" style="width:130px;margin-right:10px;" @change="handletimeType">
  476. <el-option
  477. v-for="item in schedule_options"
  478. :key="item.value"
  479. :label="item.label"
  480. :value="item.value">
  481. </el-option>
  482. </el-select>
  483. <el-select v-model="zoneVal" placeholder="分区" style="width:130px;margin-right:10px;" @change="handleZoneChange">
  484. <el-option
  485. v-for="item in zone_options"
  486. :key="item.id"
  487. :label="item.text"
  488. :value="item.id">
  489. </el-option>
  490. </el-select>
  491. </div>
  492. <div style="padding-right:20px;">
  493. <el-table
  494. ref="tab"
  495. @row-click="changePatient"
  496. highlight-current-row
  497. :data="tableData"
  498. height="480"
  499. border
  500. style="width: 100%">
  501. <el-table-column
  502. prop="date"
  503. label="患者"
  504. >
  505. <template slot-scope="scope">
  506. {{ scope.row.patient.name }}
  507. </template>
  508. </el-table-column>
  509. <el-table-column
  510. prop="name"
  511. label="透析号"
  512. >
  513. <template slot-scope="scope">
  514. {{ scope.row.patient.dialysis_no }}
  515. </template>
  516. </el-table-column>
  517. </el-table>
  518. </div>
  519. </div>
  520. <div class='dialysisPage' style="height: calc(100vh - 178px);overflow-x:auto;::-webkit-scrollbar:height:15px">
  521. <DialysisPrintOrderOne
  522. v-bind:childResponse="childResponse"
  523. v-if="org_template_info.template_id == 1"
  524. >
  525. </DialysisPrintOrderOne>
  526. <DialysisPrintOrderTwo
  527. v-bind:childResponse="childResponse"
  528. v-if="
  529. org_template_info.template_id == 2 ||
  530. org_template_info.template_id == 0
  531. "
  532. ></DialysisPrintOrderTwo>
  533. <DialysisPrintOrderThree
  534. v-bind:childResponse="childResponse"
  535. v-if="org_template_info.template_id == 3"
  536. >
  537. </DialysisPrintOrderThree>
  538. <DialysisPrintOrderFour
  539. v-bind:childResponse="childResponse"
  540. v-if="org_template_info.template_id == 4"
  541. >
  542. </DialysisPrintOrderFour>
  543. <DialysisPrintOrderFive
  544. v-bind:childResponse="childResponse"
  545. v-if="org_template_info.template_id == 5"
  546. >
  547. </DialysisPrintOrderFive>
  548. <DialysisPrintOrderSix
  549. v-bind:childResponse="childResponse"
  550. v-if="org_template_info.template_id == 6"
  551. >
  552. </DialysisPrintOrderSix>
  553. <DialysisPrintOrderSeven
  554. v-bind:childResponse="childResponse"
  555. v-if="org_template_info.template_id == 7"
  556. >
  557. </DialysisPrintOrderSeven>
  558. <DialysisPrintOrderEight
  559. v-bind:childResponse="childResponse"
  560. v-if="org_template_info.template_id == 8"
  561. >
  562. </DialysisPrintOrderEight>
  563. <!--<DialysisPrintOrderTen></DialysisPrintOrderTen>-->
  564. <DialysisPrintOrderTen
  565. v-bind:childResponse="childResponse"
  566. v-if="org_template_info.template_id == 10"
  567. ></DialysisPrintOrderTen>
  568. <DialysisPrintOrderNine
  569. v-bind:childResponse="childResponse"
  570. v-if="org_template_info.template_id == 9"
  571. ></DialysisPrintOrderNine>
  572. <DialysisPrintOrderEleven
  573. v-bind:childResponse="childResponse"
  574. v-if="org_template_info.template_id == 11"
  575. ></DialysisPrintOrderEleven>
  576. <DialysisPrintOrderTwelve
  577. v-bind:childResponse="childResponse"
  578. v-if="org_template_info.template_id == 12"
  579. ></DialysisPrintOrderTwelve>
  580. <DialysisPrintOrderThirteen
  581. v-bind:childResponse="childResponse"
  582. v-if="org_template_info.template_id == 13"
  583. ></DialysisPrintOrderThirteen>
  584. <DialysisPrintOrderFourteen
  585. v-bind:childResponse="childResponse"
  586. v-if="org_template_info.template_id == 14"
  587. ></DialysisPrintOrderFourteen>
  588. <DialysisPrintOrderFifteen
  589. v-bind:childResponse="childResponse"
  590. v-if="org_template_info.template_id == 15"
  591. ></DialysisPrintOrderFifteen>
  592. <DialysisPrintOrderSixteen
  593. v-bind:childResponse="childResponse"
  594. v-if="org_template_info.template_id == 16"
  595. ></DialysisPrintOrderSixteen>
  596. <DialysisPrintOrderSeventeen
  597. v-bind:childResponse="childResponse"
  598. v-if="org_template_info.template_id == 17"
  599. ></DialysisPrintOrderSeventeen>
  600. <DialysisPrintOrderEighteen
  601. v-bind:childResponse="childResponse"
  602. v-if="org_template_info.template_id == 18"
  603. ></DialysisPrintOrderEighteen>
  604. <DialysisPrintOrderNineteen
  605. v-bind:childResponse="childResponse"
  606. v-if="org_template_info.template_id == 19"
  607. ></DialysisPrintOrderNineteen>
  608. <DialysisPrintOrderTwenty
  609. v-bind:childResponse="childResponse"
  610. v-if="org_template_info.template_id == 20"
  611. ></DialysisPrintOrderTwenty>
  612. <DialysisPrintOrderTwentyOne
  613. v-bind:childResponse="childResponse"
  614. v-if="org_template_info.template_id == 21"
  615. ></DialysisPrintOrderTwentyOne>
  616. <DialysisPrintOrderTwentyTwo
  617. v-bind:childResponse="childResponse"
  618. v-if="org_template_info.template_id == 22"
  619. ></DialysisPrintOrderTwentyTwo>
  620. <DialysisPrintOrderTwentyThree
  621. v-bind:childResponse="childResponse"
  622. v-if="org_template_info.template_id == 23"
  623. ></DialysisPrintOrderTwentyThree>
  624. <DialysisPrintOrderTwentyFour
  625. v-bind:childResponse="childResponse"
  626. v-if="org_template_info.template_id == 24"
  627. ></DialysisPrintOrderTwentyFour>
  628. <DialysisPrintOrderTwentyFive
  629. v-bind:childResponse="childResponse"
  630. v-if="org_template_info.template_id == 25"
  631. >
  632. </DialysisPrintOrderTwentyFive>
  633. <DialysisPrintOrderTwentySix
  634. v-bind:childResponse="childResponse"
  635. v-if="org_template_info.template_id == 26"
  636. >
  637. </DialysisPrintOrderTwentySix>
  638. <DialysisPrintOrderTwentySeven
  639. v-bind:childResponse="childResponse"
  640. v-if="org_template_info.template_id == 27"
  641. >
  642. </DialysisPrintOrderTwentySeven>
  643. <DialysisPrintOrderTwentyEight
  644. v-bind:childResponse="childResponse"
  645. v-if="org_template_info.template_id == 28"
  646. >
  647. </DialysisPrintOrderTwentyEight>
  648. <DialysisPrintOrderTwentyNine
  649. v-bind:childResponse="childResponse"
  650. v-if="org_template_info.template_id == 29"
  651. >
  652. </DialysisPrintOrderTwentyNine>
  653. <DialysisPrintOrderThirty
  654. v-bind:childResponse="childResponse"
  655. v-if="org_template_info.template_id == 30"
  656. >
  657. </DialysisPrintOrderThirty>
  658. <DialysisPrintOrderThirtyOne
  659. v-bind:childResponse="childResponse"
  660. v-if="org_template_info.template_id == 31"
  661. >
  662. </DialysisPrintOrderThirtyOne>
  663. </div>
  664. </el-container>
  665. </div>
  666. </div>
  667. </template>
  668. <script>
  669. import {
  670. getDialysisRecordInitData,
  671. getDialysisSchedules
  672. } from "@/api/dialysis_record";
  673. import { parseTime } from "@/utils";
  674. import { getDialysisRecord } from "@/api/dialysis";
  675. import { getDataConfig } from "@/utils/data";
  676. import { jsGetAge, uParseTime } from "@/utils/tools";
  677. import LabelBox from "./printItem/LabelBox";
  678. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  679. import DialysisPrintOrderOne from "./template/dialysisPrintOrderOne";
  680. import DialysisPrintOrderTwo from "./template/dialysisPrintOrderTwo";
  681. import DialysisPrintOrderThree from "./template/dialysisPrintOrderThree";
  682. import DialysisPrintOrderFour from "./template/DialysisPrintOrderFour";
  683. import DialysisPrintOrderFive from "./template/DialysisPrintOrderFive";
  684. import DialysisPrintOrderSix from "./template/DialysisPrintOrderSix";
  685. import DialysisPrintOrderSeven from "./template/DialysisPrintOrderSeven";
  686. import DialysisPrintOrderEight from "./template/DialysisPrintOrderEight";
  687. import DialysisPrintOrderNine from "./template/DialysisPrintOrderNine";
  688. import print from "print-js";
  689. import DialysisPrintOrderTen from "./template/DialysisPrintOrderTen";
  690. import DialysisPrintOrderEleven from "./template/DialysisPrintOrderEleven";
  691. import DialysisPrintOrderTwelve from "./template/DialysisPrintOrderTwelve";
  692. import DialysisPrintOrderThirteen from "./template/DialysisPrintOrderThirteen";
  693. import DialysisPrintOrderFourteen from "./template/DialysisPrintOrderFourteen";
  694. import DialysisPrintOrderFifteen from "./template/DialysisPrintOrderFifteen";
  695. import DialysisPrintOrderSixteen from "./template/DialysisPrintOrderSixteen";
  696. import DialysisPrintOrderSeventeen from "./template/DialysisPrintOrderSeventeen";
  697. import DialysisPrintOrderEighteen from "./template/DialysisPrintOrderEighteen";
  698. import DialysisPrintOrderNineteen from "./template/DialysisPrintOrderNineteen";
  699. import DialysisPrintOrderTwenty from "./template/DialysisPrintOrderTwenty";
  700. import DialysisPrintOrderTwentyOne from "./template/DialysisPrintOrderTwentyOne";
  701. import DialysisPrintOrderTwentyTwo from "./template/DialysisPrintOrderTwentyTwo";
  702. import DialysisPrintOrderTwentyThree from "./template/DialysisPrintOrderTwentyThree";
  703. import DialysisPrintOrderTwentyFour from "./template/DialysisPrintOrderTwentyFour";
  704. import DialysisPrintOrderTwentyFive from "./template/DialysisPrintOrderTwentyFive";
  705. import DialysisPrintOrderTwentySix from "./template/DialysisPrintOrderTwentySix";
  706. import DialysisPrintOrderTwentySeven from "./template/DialysisPrintOrderTwentySeven";
  707. import DialysisPrintOrderTwentyEight from "./template/DialysisPrintOrderTwentyEight";
  708. import DialysisPrintOrderTwentyNine from "./template/DialysisPrintOrderTwentyNine";
  709. import DialysisPrintOrderThirty from "./template/DialysisPrintOrderThirty";
  710. import DialysisPrintOrderThirtyOne from "./template/DialysisPrintOrderThirtyOne";
  711. export default {
  712. name: "dialysisPrintOrder",
  713. components: {
  714. DialysisPrintOrderThirtyOne,
  715. DialysisPrintOrderThirty,
  716. DialysisPrintOrderTwentyNine,
  717. DialysisPrintOrderTwentyEight,
  718. DialysisPrintOrderTwentySeven,
  719. DialysisPrintOrderTwentySix,
  720. DialysisPrintOrderTwentyFive,
  721. DialysisPrintOrderTwentyFour,
  722. DialysisPrintOrderTwentyThree,
  723. DialysisPrintOrderTwentyTwo,
  724. DialysisPrintOrderTwentyOne,
  725. DialysisPrintOrderTwenty,
  726. DialysisPrintOrderNineteen,
  727. DialysisPrintOrderEighteen,
  728. DialysisPrintOrderSeventeen,
  729. DialysisPrintOrderSixteen,
  730. DialysisPrintOrderFifteen,
  731. DialysisPrintOrderFourteen,
  732. DialysisPrintOrderThirteen,
  733. DialysisPrintOrderTwelve,
  734. DialysisPrintOrderEleven,
  735. DialysisPrintOrderTen,
  736. DialysisPrintOrderOne,
  737. DialysisPrintOrderTwo,
  738. DialysisPrintOrderThree,
  739. DialysisPrintOrderFour,
  740. DialysisPrintOrderFive,
  741. DialysisPrintOrderSix,
  742. DialysisPrintOrderSeven,
  743. DialysisPrintOrderEight,
  744. DialysisPrintOrderNine,
  745. LabelBox,
  746. BreadCrumb
  747. },
  748. data() {
  749. return {
  750. crumbs: [
  751. { path: false, name: "透析管理" },
  752. { path: false, name: "打印单" }
  753. ],
  754. childResponse: {},
  755. operators: [],
  756. adminUser: [],
  757. check: {},
  758. dialysisOrder: {
  759. DeviceNumber: []
  760. },
  761. operatorMaps: {},
  762. complications: [
  763. "低血压",
  764. "高血压",
  765. "心律失常",
  766. "头晕",
  767. "头痛",
  768. "呕吐",
  769. "抽搐",
  770. "出血",
  771. "心衰",
  772. "腹痛"
  773. ],
  774. jilurow: 0,
  775. advice_jilurow: 0,
  776. loading: false,
  777. orgname: "",
  778. patientInfo_gender_1: false,
  779. patientInfo_gender_2: false,
  780. patientInfo_source_2: false,
  781. patientInfo_source_1: false,
  782. modeOptions: {},
  783. replacementWays: [],
  784. perfusionApparatus: [],
  785. anticoagulantsConfit: {},
  786. bloodAccessParOpera: {},
  787. dialysateFormulationOptions: {},
  788. queryParams: {
  789. xtdate: "",
  790. xtno: ""
  791. },
  792. patientInfo: {
  793. birth: "",
  794. age: "",
  795. DialysisSchedule: {
  796. device_number: { number: "" },
  797. device_zone: { name: "" }
  798. },
  799. gender: 0
  800. },
  801. predialysis: {
  802. score: "",
  803. internal_fistula: "",
  804. internal_fistula_skin: "",
  805. catheter: "",
  806. blood_access_part_opera_name: ""
  807. },
  808. afterdialysis: {
  809. complications_index: ""
  810. },
  811. prescription: {
  812. dialysate_formulation_name: "",
  813. device: {}
  814. },
  815. advices: [],
  816. users: [],
  817. monitors: [],
  818. summary: {},
  819. receiverTreatmentAccess: {},
  820. org_template_info: {},
  821. doctor_advices: [],
  822. advice_groups: [],
  823. AlPanel: {
  824. id: 0,
  825. name: "",
  826. type: 1,
  827. shouji: 2,
  828. weichi: 2,
  829. zongliang: 2,
  830. gaimingcheng: -1,
  831. gaijiliang: -1,
  832. shouji_unit: "mg",
  833. weichi_unit: "mg/h",
  834. zongliang_unit: "mg",
  835. gaimingcheng_unit: "",
  836. gaijiliang_unit: ""
  837. },
  838. //
  839. tableData: [],
  840. selected_date: new Date(),
  841. // search_input 和 search_keyword,使输入关键字时不会经常刷新 filtedSchedules
  842. search_keyword: '', // 确定用于搜索的关键字
  843. search_input: '', // 输入中的关键字
  844. patient_state:[
  845. {value: 0,label: '全部'},
  846. {value: 1,label: '已签到'},
  847. {value: 2,label: '未签到'},
  848. {value: 3,label: '已上机'},
  849. {value: 4,label: '已下机'},
  850. ],
  851. patientStateVal: 0,
  852. treat_state:[
  853. {value: 0,label: '全部'},
  854. {value: 1,label: '待开处方'},
  855. {value: 2,label: '待开小结'},
  856. ],
  857. treatStateVal: 0,
  858. schedule_options:[
  859. {value: 0,label: '全部'},
  860. {value: 1,label: '上午'},
  861. {value: 2,label: '下午'},
  862. {value: 3,label: '晚上'},
  863. ],
  864. scheduleStateVal: 0,
  865. zone_options:[
  866. { id: 0, text: '全部' }
  867. ],
  868. zoneVal:0,
  869. };
  870. },
  871. methods: {
  872. getAdminUser(id) {
  873. if (id == 0) {
  874. return "";
  875. }
  876. if (id == undefined) {
  877. return "";
  878. }
  879. for (let i = 0; i < this.adminUser.length; i++) {
  880. if (this.adminUser[i].id == id) {
  881. return this.adminUser[i].name;
  882. }
  883. }
  884. },
  885. getTime(value, temp) {
  886. if (value == 0) {
  887. return "";
  888. }
  889. if (value != undefined) {
  890. return uParseTime(value, temp);
  891. }
  892. return "";
  893. },
  894. printThisPage() {
  895. var ptime = Math.round(new Date().getTime() / 1000);
  896. this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
  897. const style =
  898. '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
  899. const style2 =
  900. '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}.table-box1 {border: 1px solid #000;width: 100%;line-height: 30px;font-size: 14px;border-collapse: collapse;}.table-box1 tr {border-bottom: 1px solid #000;}';
  901. const style3 =
  902. '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:16px;border-color: #000;}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #000;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}.row {font-size: 16px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line {display: inline-block;border-bottom: 1px solid #000;text-align: center;white-space: nowrap; width: 50%;}';
  903. // const style3 =
  904. // '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 16px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 5px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 16px;padding: 5px 5px;line-height: 18px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:950px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top:1050px;left: 50%;}.print-yema5{position: absolute;top:1370px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}';
  905. //
  906. const style5 =
  907. '@media print {.dialysis-print-order {width: 960px; margin: 0 auto;}.dialysis-print-order .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.dialysis-print-order .order-title { margin: auto; font-weight: 600; text-align: center; font-size: 22px; padding: 10px 20px 0px 20px;}.dialysis-print-order .table-box { width: 100%; line-height: 18px; font-size: 14px;}.dialysis-print-order .print-table { width: 100%; text-align: center; border-collapse: collapse; line-height: 28px; font-size: 14px;}.dialysis-print-order .print-table-no { width: 100%; text-align: center; border-collapse: collapse; font-size: 14px;}.dialysis-print-order .under-line { border-bottom: 1px solid #999; width: 95%; text-align: center; margin-left: 2px;}.dialysis-print-order .title-box { text-align: center; font-size: 16px;}.dialysis-print-order .radio-lebel-box { font-weight: 400; cursor: pointer;}.dialysis-print-order .radio-no { opacity: 0; outline: none; position: absolute; margin: 0; width: 0; height: 0; z-index: -1;}.dialysis-print-order .radio-inner { white-space: nowrap; cursor: pointer; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle;}.dialysis-print-order .radio-fang { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 14px; background-color: #fff; z-index: 1; transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46), background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);}.dialysis-print-order .is-checked-radio::after { content: "√"; font-size: 15px;}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px;}.dialysis-print-order .print-table tr td { padding: 1px 1px; /*line-height: 25px;*/}.es-img { height: 25px;}.advice-name { text-align: left;}.advice-children { display: flex;}.title-box-pro { border: 0 #fff; line-height: 25px; height: 25px; text-align: left; padding-left: 10px !important;}.title-box-pro-tr { border: 0 #fff;}.text-align-left { text-align: left !important; padding-left: 10px !important; font-size: 14px !important; line-height: 25px;}.print-table-tr-new td {line-height: 20px !important;}.border-top-solid {border: solid 1px #000;}.print-template-two tr {line-height: 30px;}}';
  908. const style6 =
  909. '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:16px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:16px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:16px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
  910. if (this.org_template_info.template_id == 1) {
  911. printJS({
  912. printable: "dialysis-print-box",
  913. type: "html",
  914. style: style,
  915. scanStyles: false
  916. });
  917. } else if (
  918. this.org_template_info.template_id == 2 ||
  919. this.org_template_info.template_id == 0
  920. ) {
  921. printJS({
  922. printable: "dialysis-print-box-1",
  923. type: "html",
  924. style: style2,
  925. scanStyles: false
  926. });
  927. } else if (this.org_template_info.template_id == 3) {
  928. printJS({
  929. printable: "dialysis-print-box",
  930. type: "html",
  931. style: style,
  932. scanStyles: false
  933. });
  934. } else if (this.org_template_info.template_id == 4) {
  935. printJS({
  936. printable: "dialysis-print-box",
  937. type: "html",
  938. style: style,
  939. scanStyles: false
  940. });
  941. } else if (this.org_template_info.template_id == 5) {
  942. printJS({
  943. printable: "dialysis-print-box-1",
  944. type: "html",
  945. style: style2,
  946. scanStyles: false
  947. });
  948. } else if (
  949. this.org_template_info.template_id == 6 ||
  950. this.org_template_info.template_id == 10 ||
  951. this.org_template_info.template_id == 11
  952. ) {
  953. printJS({
  954. printable: "dialysis-print-box-1",
  955. type: "html",
  956. style: style2,
  957. scanStyles: false
  958. });
  959. } else if (this.org_template_info.template_id == 7) {
  960. printJS({
  961. printable: "dialysis-print-box",
  962. type: "html",
  963. style: style,
  964. scanStyles: false
  965. });
  966. } else if (this.org_template_info.template_id == 8) {
  967. printJS({
  968. printable: "dialysis-print-box",
  969. type: "html",
  970. style: style,
  971. scanStyles: false
  972. });
  973. } else if (this.org_template_info.template_id == 9 || this.org_template_info.template_id==25) {
  974. printJS({
  975. printable: "dialysis-print-box",
  976. type: "html",
  977. style: style5,
  978. scanStyles: false
  979. });
  980. } else if (this.org_template_info.template_id == 12) {
  981. printJS({
  982. printable: "dialysis-print-box",
  983. type: "html",
  984. style: style,
  985. scanStyles: false
  986. });
  987. } else if (this.org_template_info.template_id == 13) {
  988. printJS({
  989. printable: "dialysis-print-box-1",
  990. type: "html",
  991. style: style3,
  992. scanStyles: false
  993. });
  994. } else if (this.org_template_info.template_id == 14){
  995. printJS({
  996. printable: "dialysis-print-box",
  997. type: "html",
  998. style: style,
  999. scanStyles: false
  1000. });
  1001. } else if (this.org_template_info.template_id == 15){
  1002. printJS({
  1003. printable: "dialysis-print-box",
  1004. type: "html",
  1005. style: style,
  1006. scanStyles: false
  1007. });
  1008. } else if (this.org_template_info.template_id == 16){
  1009. printJS({
  1010. printable: "dialysis-print-box",
  1011. type: "html",
  1012. style: style,
  1013. scanStyles: false
  1014. });
  1015. } else if (this.org_template_info.template_id == 17) {
  1016. printJS({
  1017. printable: "dialysis-print-box",
  1018. type: "html",
  1019. style: style6,
  1020. scanStyles: false
  1021. });
  1022. } else if (this.org_template_info.template_id == 18) {
  1023. printJS({
  1024. printable: "dialysis-print-box",
  1025. type: "html",
  1026. style: style,
  1027. scanStyles: false
  1028. });
  1029. } else if (this.org_template_info.template_id == 19) {
  1030. printJS({
  1031. printable: "dialysis-print-box-1",
  1032. type: "html",
  1033. style: style2,
  1034. scanStyles: false
  1035. });
  1036. } else if (this.org_template_info.template_id == 20) {
  1037. printJS({
  1038. printable: "dialysis-print-box",
  1039. type: "html",
  1040. style: style,
  1041. scanStyles: false
  1042. });
  1043. } else if (this.org_template_info.template_id == 21) {
  1044. printJS({
  1045. printable: "dialysis-print-box",
  1046. type: "html",
  1047. style: style,
  1048. scanStyles: false
  1049. });
  1050. } else if (this.org_template_info.template_id == 22) {
  1051. printJS({
  1052. printable: "dialysis-print-box-1",
  1053. type: "html",
  1054. style: style2,
  1055. scanStyles: false
  1056. });
  1057. } else if (this.org_template_info.template_id == 23){
  1058. printJS({
  1059. printable: "dialysis-print-box",
  1060. type: "html",
  1061. style: style,
  1062. scanStyles: false
  1063. });
  1064. } else if (this.org_template_info.template_id == 24){
  1065. printJS({
  1066. printable: "dialysis-print-box",
  1067. type: "html",
  1068. style: style,
  1069. scanStyles: false
  1070. });
  1071. }else if (this.org_template_info.template_id == 25) {
  1072. printJS({
  1073. printable: "dialysis-print-box",
  1074. type: "html",
  1075. style: style5,
  1076. scanStyles: false
  1077. });
  1078. } else if (this.org_template_info.template_id == 26) {
  1079. printJS({
  1080. printable: "dialysis-print-box",
  1081. type: "html",
  1082. style: style,
  1083. scanStyles: false
  1084. });
  1085. } else if (this.org_template_info.template_id == 27) {
  1086. printJS({
  1087. printable: "dialysis-print-box",
  1088. type: "html",
  1089. style: style,
  1090. scanStyles: false
  1091. });
  1092. } else if (this.org_template_info.template_id == 28) {
  1093. printJS({
  1094. printable: "dialysis-print-box",
  1095. type: "html",
  1096. style: style5,
  1097. scanStyles: false
  1098. });
  1099. } else if (this.org_template_info.template_id == 29) {
  1100. printJS({
  1101. printable: "dialysis-print-box",
  1102. type: "html",
  1103. style: style,
  1104. scanStyles: false
  1105. });
  1106. } else if (this.org_template_info.template_id == 30) {
  1107. printJS({
  1108. printable: "dialysis-print-box",
  1109. type: "html",
  1110. style: style,
  1111. scanStyles: false
  1112. });
  1113. } else if (this.org_template_info.template_id == 31) {
  1114. printJS({
  1115. printable: "dialysis-print-box-1",
  1116. type: "html",
  1117. style: style3,
  1118. scanStyles: false
  1119. });
  1120. }
  1121. },
  1122. printThisOnePage() {
  1123. var ptime = Math.round(new Date().getTime() / 1000);
  1124. this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
  1125. const style =
  1126. '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
  1127. const style2 =
  1128. '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:200px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1370px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}';
  1129. if (this.org_template_info.template_id == 1) {
  1130. printJS({
  1131. printable: "dialysis-print-box",
  1132. type: "html",
  1133. style: style,
  1134. scanStyles: false
  1135. });
  1136. } else if (
  1137. this.org_template_info.template_id == 2 ||
  1138. this.org_template_info.template_id == 0 ||
  1139. this.org_template_info.template_id == 5 ||
  1140. this.org_template_info.template_id == 22
  1141. ) {
  1142. printJS({
  1143. printable: "dialysis-print-box-1-1",
  1144. type: "html",
  1145. style: style2,
  1146. scanStyles: false
  1147. });
  1148. } else if(this.org_template_info.template_id == 14){
  1149. printJS({
  1150. printable: "new-dialysis-1",
  1151. type: "html",
  1152. style: style,
  1153. scanStyles: false
  1154. });
  1155. } else if(this.org_template_info.template_id == 21){
  1156. printJS({
  1157. printable: "new-dialysis-1",
  1158. type: "html",
  1159. style: style,
  1160. scanStyles: false
  1161. });
  1162. } else if(this.org_template_info.template_id == 27){
  1163. printJS({
  1164. printable: "new-dialysis-1",
  1165. type: "html",
  1166. style: style,
  1167. scanStyles: false
  1168. });
  1169. }
  1170. },
  1171. printThisTwoPage() {
  1172. var ptime = Math.round(new Date().getTime() / 1000);
  1173. this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
  1174. const style =
  1175. '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
  1176. const style2 =
  1177. '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1370px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}';
  1178. if (this.org_template_info.template_id == 1) {
  1179. printJS({
  1180. printable: "dialysis-print-box",
  1181. type: "html",
  1182. style: style,
  1183. scanStyles: false
  1184. });
  1185. } else if (
  1186. this.org_template_info.template_id == 2 ||
  1187. this.org_template_info.template_id == 0 ||
  1188. this.org_template_info.template_id == 5 ||
  1189. this.org_template_info.template_id == 22
  1190. ) {
  1191. printJS({
  1192. printable: "dialysis-print-box-1-2",
  1193. type: "html",
  1194. style: style2,
  1195. scanStyles: false
  1196. });
  1197. }else if(this.org_template_info.template_id == 14){
  1198. printJS({
  1199. printable: "new-dialysis-2",
  1200. type: "html",
  1201. style: style,
  1202. scanStyles: false
  1203. });
  1204. } else if(this.org_template_info.template_id == 21){
  1205. printJS({
  1206. printable: "new-dialysis-2",
  1207. type: "html",
  1208. style: style,
  1209. scanStyles: false
  1210. });
  1211. } else if(this.org_template_info.template_id == 27){
  1212. printJS({
  1213. printable: "new-dialysis-2",
  1214. type: "html",
  1215. style: style,
  1216. scanStyles: false
  1217. });
  1218. }
  1219. },
  1220. getNumber() {
  1221. if (this.dialysisOrder != null) {
  1222. return (
  1223. this.patientInfo.DialysisSchedule.device_zone.name +
  1224. this.dialysisOrder.DeviceNumber.number
  1225. );
  1226. } else {
  1227. return (
  1228. this.patientInfo.DialysisSchedule.device_zone.name +
  1229. this.patientInfo.DialysisSchedule.device_number.number
  1230. );
  1231. }
  1232. },
  1233. getXuserName(id) {
  1234. if (id <= 0) {
  1235. return "";
  1236. }
  1237. var name = "";
  1238. if (this.users == null || typeof this.users.length === "undefined") {
  1239. return name;
  1240. }
  1241. var leng = this.users.length;
  1242. if (leng == 0) {
  1243. return name;
  1244. }
  1245. for (let index = 0; index < leng; index++) {
  1246. if (this.users[index].id == id) {
  1247. name = this.users[index].name;
  1248. break;
  1249. }
  1250. }
  1251. return name;
  1252. },
  1253. setAdminUserES(id) {
  1254. console.log(id);
  1255. if (id == 0) {
  1256. return "";
  1257. }
  1258. if (id in this.operatorMaps) {
  1259. return this.operatorMaps[id].url;
  1260. } else {
  1261. return "";
  1262. }
  1263. },
  1264. modeName(mode_id) {
  1265. return typeof this.modeOptions[mode_id] !== "undefined" &&
  1266. typeof this.modeOptions[mode_id].name !== "undefined"
  1267. ? this.modeOptions[mode_id].name
  1268. : "";
  1269. },
  1270. getDialysisRecord() {
  1271. this.loading = true;
  1272. getDialysisRecord(this.queryParams).then(response => {
  1273. if (response.data.state == 1) {
  1274. this.childResponse = response;
  1275. this.org_template_info = response.data.data.org_template_info;
  1276. this.loading = false;
  1277. // this.adminUser = response.data.data.users
  1278. // this.users = response.data.data.users
  1279. // this.patientInfo = response.data.data.patientInfo
  1280. // this.patientInfo.birth = uParseTime(this.patientInfo.birthday, '{y}-{m}-{d}')
  1281. // // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
  1282. // if (response.data.data.patientInfo.first_dialysis_date != 0) {
  1283. // this.patientInfo.first_dialysis_date = uParseTime(response.data.data.patientInfo.first_dialysis_date, '{y}-{m}-{d}')
  1284. // } else {
  1285. // this.patientInfo.first_dialysis_date = ''
  1286. // }
  1287. // this.check = response.data.data.check
  1288. // this.predialysis = response.data.data.PredialysisEvaluation
  1289. // this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(this.predialysis.blood_access_part_opera_id)
  1290. // this.afterdialysis = response.data.data.AssessmentAfterDislysis
  1291. // this.operators = response.data.data.operators
  1292. // this.dialysisOrder = response.data.data.dialysisOrder === null ? null : response.data.data.dialysisOrder
  1293. // if (this.operators.length > 0) {
  1294. // var operatorsLen = this.operators.length
  1295. // for (var index = 0; index < operatorsLen; index++) {
  1296. // this.$set(this.operatorMaps, this.operators[index].creator, this.operators[index])
  1297. // }
  1298. // }
  1299. // this.afterdialysis.txqnx = -1
  1300. // if (this.afterdialysis.cruor.indexOf('0度') > -1) {
  1301. // this.afterdialysis.txqnx = 0
  1302. // }
  1303. // if (this.afterdialysis.cruor.indexOf('Ⅰ度') > -1) {
  1304. // this.afterdialysis.txqnx = 1
  1305. // }
  1306. // if (this.afterdialysis.cruor.indexOf('Ⅱ度') > -1) {
  1307. // this.afterdialysis.txqnx = 2
  1308. // }
  1309. // if (this.afterdialysis.cruor.indexOf('Ⅲ度') > -1) {
  1310. // this.afterdialysis.txqnx = 3
  1311. // }
  1312. // this.afterdialysis.complications = this.afterdialysis.complication.split(',')
  1313. // this.afterdialysis.complications_other = []
  1314. // this.afterdialysis.complications_index = []
  1315. // var acllen = this.afterdialysis.complications.length
  1316. // for (let index = 0; index < acllen; index++) {
  1317. // if (this.complications.indexOf(this.afterdialysis.complications[index]) >= 0) {
  1318. // this.afterdialysis.complications_index.push(this.afterdialysis.complications[index])
  1319. // } else if (this.complications.indexOf(this.afterdialysis.complications[index]) < 0 && this.afterdialysis.complications_other.indexOf(this.afterdialysis.complications[index]) < 0) {
  1320. // this.afterdialysis.complications_other.push(this.afterdialysis.complications[index])
  1321. // }
  1322. // }
  1323. // this.afterdialysis.complications_other = this.afterdialysis.complications_other.join(',')
  1324. // this.prescription = response.data.data.dialysisPrescription
  1325. // this.receiverTreatmentAccess = response.data.data.receiverTreatmentAccess
  1326. // this.prescription.mode = this.modeName(this.prescription.mode_id)
  1327. // var rwLen = this.replacementWays.length
  1328. // this.prescription.replacement = ''
  1329. // for (let index = 0; index < rwLen; index++) {
  1330. // if (this.replacementWays[index].id == this.prescription.replacement_way) {
  1331. // this.prescription.replacement = this.replacementWays[index].name
  1332. // break
  1333. // }
  1334. // }
  1335. // this.prescription.dialysate_formulation_name = this.dialysateFormulationName(this.prescription.dialysate_formulation)
  1336. // var paLen = this.perfusionApparatus.length
  1337. // this.prescription.perfusion_apparatus_name = ''
  1338. // for (let index = 0; index < paLen; index++) {
  1339. // if (this.perfusionApparatus[index].id == this.prescription.perfusion_apparatus) {
  1340. // this.prescription.perfusion_apparatus_name = this.perfusionApparatus[index].name
  1341. // break
  1342. // }
  1343. // }
  1344. // var acLen = this.anticoagulantsConfit.length
  1345. // var thisALID = this.prescription.anticoagulant
  1346. // this.prescription.anticoagulant_name = ''
  1347. // if (typeof (this.anticoagulantsConfit[thisALID]) !== 'undefined' && this.anticoagulantsConfit[thisALID] != null) {
  1348. // this.prescription.anticoagulant_name = this.anticoagulantsConfit[thisALID].name
  1349. // this.AlPanel = this.anticoagulantsConfit[thisALID]
  1350. // }
  1351. // this.advices = response.data.data.advices
  1352. // this.monitors = response.data.data.monitors
  1353. // this.summary = response.data.data.summary
  1354. // this.org_template_info = response.data.data.org_template_info
  1355. // if (this.monitors.length < 8) {
  1356. // var nl = 8 - this.monitors.length
  1357. // for (let index = 0; index < nl; index++) {
  1358. // this.monitors.push([])
  1359. // }
  1360. // }
  1361. // this.jilurow = this.monitors.length + 1
  1362. // this.advice_jilurow = this.advices.length + 1
  1363. // var childMap = {}
  1364. // for (const index in this.advices) {
  1365. // if (this.advices[index].parent_id == 0) {
  1366. // continue
  1367. // }
  1368. // if (!(this.advices[index].parent_id in childMap)) {
  1369. // childMap[this.advices[index].parent_id] = []
  1370. // }
  1371. // childMap[this.advices[index].parent_id].push(this.advices[index])
  1372. // }
  1373. // var advices = []
  1374. // for (const index in this.advices) {
  1375. // if (this.advices[index].parent_id > 0) {
  1376. // continue
  1377. // }
  1378. // var item = this.advices[index]
  1379. // if (item.id in childMap) {
  1380. // item.children = childMap[item.id]
  1381. // } else {
  1382. // item.children = []
  1383. // }
  1384. // advices.push(item)
  1385. // }
  1386. // var leftAdvice = []
  1387. // var rightAdvice = []
  1388. // var adlen = advices.length
  1389. // var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
  1390. // for (var i = 0; i < halfLen; i++) {
  1391. // leftAdvice.push(advices[i])
  1392. // rightAdvice.push(advices[i + halfLen])
  1393. // }
  1394. // if (halfLen < 5) {
  1395. // var nl = 5 - leftAdvice.length
  1396. // for (let index = 0; index < nl; index++) {
  1397. // leftAdvice.push([])
  1398. // }
  1399. // var nl = 5 - rightAdvice.length
  1400. // for (let index = 0; index < nl; index++) {
  1401. // rightAdvice.push([])
  1402. // }
  1403. // }
  1404. // this.advices = []
  1405. // for (var i = 0; i < halfLen; i++) {
  1406. // var item = []
  1407. // item.push(leftAdvice[i])
  1408. // item.push(rightAdvice[i])
  1409. // this.advices.push(item)
  1410. // }
  1411. // this.loading = false
  1412. // this.doctor_advices = response.data.data.advices == null ? [] : response.data.data.advices
  1413. // for (let index = 0; index < this.doctor_advices.length; index++) {
  1414. // this.doctor_advices[index]['isShow'] = 2
  1415. // }
  1416. // if (this.doctor_advices.length > 0) {
  1417. // var group = this.newAdviceGroupObject()
  1418. // var initGroupBlock = function(group, advice) {
  1419. // group.group_no = advice.groupno
  1420. // }
  1421. // for (let index = this.doctor_advices.length - 1; index >= 0; index--) {
  1422. // var new_advice_index = 0
  1423. // if ('children' in this.doctor_advices[index] && this.doctor_advices[index].children.length > 0) {
  1424. // new_advice_index = index + this.doctor_advices[index].children.length + 1
  1425. // var doctor_advice = {
  1426. // delivery_way: this.doctor_advices[index].delivery_way,
  1427. // execution_frequency: this.doctor_advices[index].execution_frequency,
  1428. // groupno: this.doctor_advices[index].groupno,
  1429. // id: this.doctor_advices[index].id,
  1430. // parent_id: this.doctor_advices[index].parent_id,
  1431. // children: this.doctor_advices[index].children,
  1432. // remark: this.doctor_advices[index].remark,
  1433. // execution_staff: this.doctor_advices[index].execution_staff,
  1434. // checker: this.doctor_advices[index].checker,
  1435. // advice_doctor: this.doctor_advices[index].advice_doctor,
  1436. // }
  1437. // doctor_advice['isShow'] = 1
  1438. // this.doctor_advices.splice(new_advice_index, 0, doctor_advice)
  1439. // // this.doctor_advices.push(doctor_advice)
  1440. // }
  1441. // }
  1442. // for (let index = 0; index < this.doctor_advices.length; index++) {
  1443. // const advice = this.doctor_advices[index]
  1444. // if (advice.groupno == 0) {
  1445. // // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
  1446. // if (advice.parent_id > 0) {
  1447. // if (this.advice_groups.length > 0) {
  1448. // var parent_group = this.advice_groups[
  1449. // this.advice_groups.length - 1
  1450. // ]
  1451. // if (parent_group.advices.length > 0) {
  1452. // if (parent_group.advices[0].id == advice.parent_id) {
  1453. // parent_group.advices.push(advice)
  1454. // }
  1455. // }
  1456. // }
  1457. // continue
  1458. // } else {
  1459. // if (group.group_no > 0) {
  1460. // this.advice_groups.push(group)
  1461. // group = this.newAdviceGroupObject()
  1462. // }
  1463. // initGroupBlock(group, advice)
  1464. // group.advices.push(advice)
  1465. // this.advice_groups.push(group)
  1466. // group = this.newAdviceGroupObject()
  1467. // continue
  1468. // }
  1469. // }
  1470. // if (group.group_no > 0 && group.group_no != advice.groupno) {
  1471. // this.advice_groups.push(group)
  1472. // group = this.newAdviceGroupObject()
  1473. // }
  1474. // if (group.group_no == 0) {
  1475. // initGroupBlock(group, advice)
  1476. // }
  1477. // if (group.group_no == advice.groupno) {
  1478. // group.advices.push(advice)
  1479. // }
  1480. // }
  1481. // if (group.group_no > 0) {
  1482. // // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
  1483. // this.advice_groups.push(group)
  1484. // }
  1485. // }
  1486. // console.log(this.advice_groups)
  1487. } else {
  1488. this.loading = false;
  1489. this.$message.error("请求数据失败");
  1490. return false;
  1491. }
  1492. });
  1493. },
  1494. bloodAccessParOperaName(id) {
  1495. if (id in this.bloodAccessParOpera) {
  1496. return this.bloodAccessParOpera[id].name;
  1497. }
  1498. return "";
  1499. },
  1500. dialysateFormulationName(id) {
  1501. if (id in this.dialysateFormulationOptions) {
  1502. return this.dialysateFormulationOptions[id].name;
  1503. }
  1504. return "";
  1505. },
  1506. getAge: function(val) {
  1507. if (
  1508. this.org_template_info.template_id == 2 ||
  1509. this.org_template_info.template_id == 0
  1510. ) {
  1511. if (val.age == 0) {
  1512. return jsGetAge(val.birth, "-");
  1513. } else {
  1514. return val.age;
  1515. }
  1516. } else {
  1517. return jsGetAge(val.birth, "-");
  1518. }
  1519. },
  1520. newAdviceGroupObject: function() {
  1521. return Object.assign(
  1522. {},
  1523. {
  1524. group_no: 0,
  1525. // advice_doctor: 0,
  1526. // start_time: 0,
  1527. advices: []
  1528. // exec_staff: 0,
  1529. // exec_time: 0,
  1530. // checker: 0,
  1531. }
  1532. );
  1533. },
  1534. //日期
  1535. handleScheduleDateChange: function(index) {
  1536. this.treatStateVal = 0
  1537. this.patientStateVal = 0
  1538. this.zoneVal = 0
  1539. this.scheduleStateVal = 0
  1540. this.search_keyword = this.search_input = ''
  1541. // this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
  1542. // zone: this.zone_selected,
  1543. // schedule_type: this.schedule_type_selected,
  1544. // schedule_date: this.selected_date,
  1545. // })
  1546. this.selected_date = index
  1547. this.$store.dispatch('SetSelectedDate', { selected_date: index })
  1548. this.requestDialysisSchedules()
  1549. },
  1550. //初始化数据
  1551. getInitData: function() {
  1552. getDialysisRecordInitData().then(rs => {
  1553. var resp = rs.data
  1554. if (resp.state == 1) {
  1555. var zones = resp.data.zones
  1556. var schedules = resp.data.schedules
  1557. var zone_options = [{ id: 0, text: '全部' }]
  1558. for (let z_i = 0; z_i < zones.length; z_i++) {
  1559. const zone = zones[z_i]
  1560. zone_options.push({ id: zone.id, text: zone.name })
  1561. }
  1562. this.zone_options = zone_options
  1563. // this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
  1564. this.arr = this.processedDialysisSchedules(schedules, this.zone_options)
  1565. this.requestDialysisSchedules()
  1566. // this.getData()
  1567. } else {
  1568. this.$message.error(resp.msg)
  1569. }
  1570. })
  1571. },
  1572. // 班次
  1573. handletimeType: function(index) {
  1574. this.scheduleStateVal = index
  1575. this.$store.dispatch('SetScheduleTypeSelected', { schedule_type_selected: index })
  1576. this.search_keyword = this.search_input = ''
  1577. this.getData()
  1578. },
  1579. //分区
  1580. handleZoneChange: function(index) {
  1581. this.zoneVal = index
  1582. this.$store.dispatch('SetZoneSelected', { zone_selected: index })
  1583. this.search_keyword = this.search_input = ''
  1584. this.getData()
  1585. },
  1586. //患者状态
  1587. handleStateChange: function(index) {
  1588. this.patientStateVal = index
  1589. this.$store.dispatch('SetPatientStateSelected', { patient_state_selected: index })
  1590. this.search_keyword = this.search_input = ''
  1591. this.getData()
  1592. },
  1593. handleTreatChange: function(index) {
  1594. this.treatStateVal = index
  1595. this.$store.dispatch('SetTreatStateSelected', { treat_state_selected: index })
  1596. this.search_keyword = this.search_input = ''
  1597. this.getData()
  1598. },
  1599. processedDialysisSchedules: function(schedules, zone_options) {
  1600. var zoneMap = {}
  1601. var scheduleMap = {}
  1602. for (let z_i = 0; z_i < zone_options.length; z_i++) {
  1603. const zone = zone_options[z_i]
  1604. if (zone.id == 0) {
  1605. continue
  1606. }
  1607. scheduleMap[zone.id] = []
  1608. }
  1609. for (let index = 0; index < schedules.length; index++) {
  1610. const schedule = schedules[index]
  1611. scheduleMap[schedule.device_number.zone.id].push(schedule)
  1612. }
  1613. var zone_schedules = []
  1614. for (let index = 0; index < zone_options.length; index++) {
  1615. const zone = zone_options[index]
  1616. if (zone.id == 0) {
  1617. continue
  1618. }
  1619. var schedules = scheduleMap[zone.id]
  1620. zone_schedules.push({ zone_id: zone.id, zone_name: zone.text, schedules: schedules })
  1621. }
  1622. return zone_schedules
  1623. },
  1624. searchAction: function() {
  1625. this.search_keyword = this.search_input
  1626. this.scheduleStateVal = 0
  1627. this.zoneVal = 0
  1628. this.treatStateVal = 0
  1629. this.patientStateVal = 0
  1630. if(this.search_input != ''){
  1631. let arr = []
  1632. this.filtedSchedules.map(item => {
  1633. arr.push(...item.schedules)
  1634. })
  1635. this.tableData = arr
  1636. }else{
  1637. this.getData()
  1638. }
  1639. },
  1640. requestDialysisSchedules: function() {
  1641. var ymd = parseTime(this.selected_date, '{y}-{m}-{d}')
  1642. getDialysisSchedules(ymd).then(rs => {
  1643. var resp = rs.data
  1644. if (resp.state == 1) {
  1645. var schedules = resp.data.schedules
  1646. this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
  1647. let newArr = []
  1648. this.zone_schedules.map(item => {
  1649. newArr.push(...item.schedules)
  1650. })
  1651. this.tableData = newArr
  1652. this.getData()
  1653. } else {
  1654. this.$message.error(resp.msg)
  1655. }
  1656. })
  1657. },
  1658. changePatient(schedual){
  1659. console.log(schedual)
  1660. var xtdate = parseTime(schedual.schedule_date, '{y}-{m}-{d}')
  1661. this.$router.push(
  1662. '/dialysis/print?xtdate=' + xtdate + '&xtno=' + schedual.patient.dialysis_no
  1663. )
  1664. // this.patient_id = schedual.patient_id;
  1665. // this.date = schedual.schedule_date;
  1666. // // this.getScheduleDetail();
  1667. // // this.getLongAdvice();
  1668. // var patient_id = schedual.patient_id;
  1669. // var date = schedual.schedule_date;
  1670. // this.$router.push({
  1671. // path: "/dialysis/details",
  1672. // query: {
  1673. // patient_id: patient_id,
  1674. // date: date,
  1675. // patient_name: schedual.patient.name
  1676. // }
  1677. // });
  1678. },
  1679. getData(){
  1680. let patientArr = []
  1681. patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
  1682. console.log('patientArr',patientArr)
  1683. let arr1 = []
  1684. if(this.patientStateVal == 0){
  1685. arr1 = patientArr
  1686. console.log(arr1)
  1687. }else if(this.patientStateVal == 1){
  1688. let arr = []
  1689. arr = patientArr
  1690. for (let i = 0; i <arr.length; i++) {
  1691. for (let j = 0; j < arr[i].schedules.length; j++) {
  1692. if (arr[i].schedules.length > 0 && (arr[i].schedules[j].assessment_before_dislysis == null || (arr[i].schedules[j].assessment_before_dislysis.weight_before == '' && arr[i].schedules[j].assessment_before_dislysis.diastolic_blood_pressure == '' && arr[i].schedules[j].assessment_before_dislysis.systolic_blood_pressure == ''))) {
  1693. // 删除元素后改变i的值
  1694. arr[i].schedules.splice(j--, 1);
  1695. }
  1696. }
  1697. }
  1698. console.log("执行1",arr)
  1699. arr1 = arr
  1700. }else if(this.patientStateVal == 2){
  1701. let arr = []
  1702. arr = patientArr
  1703. for (let i = 0; i < arr.length; i++) {
  1704. for (let j = 0; j < arr[i].schedules.length; j++) {
  1705. if (arr[i].schedules.length > 0 && (arr[i].schedules[j].assessment_before_dislysis != null && (arr[i].schedules[j].assessment_before_dislysis.weight_before != 0 || arr[i].schedules[j].assessment_before_dislysis.diastolic_blood_pressure != 0 || arr[i].schedules[j].assessment_before_dislysis.systolic_blood_pressure != 0))) {
  1706. // 删除元素后改变i的值
  1707. console.log('几次')
  1708. arr[i].schedules.splice(j--, 1);
  1709. }
  1710. }
  1711. }
  1712. console.log("执行2",arr)
  1713. arr1 = arr
  1714. }else if(this.patientStateVal == 3){
  1715. let arr = []
  1716. arr = patientArr
  1717. for (let i = 0; i <arr.length; i++) {
  1718. for (let j = 0; j < arr[i].schedules.length; j++) {
  1719. if (arr[i].schedules.length > 0 && (arr[i].schedules[j].dialysis_order == null || (arr[i].schedules[j].dialysis_order != null && arr[i].schedules[j].dialysis_order.stage != 1))) {
  1720. // 删除元素后改变i的值
  1721. arr[i].schedules.splice(j--, 1);
  1722. }
  1723. }
  1724. }
  1725. console.log("执行1",arr)
  1726. arr1 = arr
  1727. }else if(this.patientStateVal == 4){
  1728. let arr = []
  1729. arr = patientArr
  1730. for (let i = 0; i < arr.length; i++) {
  1731. for (let j = 0; j < arr[i].schedules.length; j++) {
  1732. if (arr[i].schedules.length > 0 && (arr[i].schedules[j].dialysis_order == null || (arr[i].schedules[j].dialysis_order != null && arr[i].schedules[j].dialysis_order.stage != 2))) {
  1733. // 删除元素后改变i的值
  1734. arr[i].schedules.splice(j--, 1);
  1735. }
  1736. }
  1737. }
  1738. console.log("执行2",arr)
  1739. arr1 = arr
  1740. }
  1741. let arr2 = []
  1742. if(this.treatStateVal == 0){
  1743. arr2 = JSON.parse(JSON.stringify(arr1))
  1744. }else if(this.treatStateVal == 1){
  1745. let arr = []
  1746. arr = JSON.parse(JSON.stringify(arr1))
  1747. for (let i = 0; i < arr.length; i++) {
  1748. for (let j = 0; j < arr[i].schedules.length; j++) {
  1749. if (arr[i].schedules.length > 0 && (arr[i].schedules[j].prescription != null || arr[i].schedules[j].prescription != null ? arr[i].schedules[j].prescription.creater != 0 : false)) {
  1750. // 删除元素后改变i的值
  1751. arr[i].schedules.splice(j--, 1);
  1752. }
  1753. }
  1754. }
  1755. arr2 = arr
  1756. }else if(this.treatStateVal == 2){
  1757. let arr = []
  1758. arr = JSON.parse(JSON.stringify(arr1))
  1759. for (let i = 0; i < arr.length; i++) {
  1760. for (let j = 0; j < arr[i].schedules.length; j++) {
  1761. if (arr[i].schedules.length > 0 && arr[i].schedules[j].treatment_summary != null && arr[i].schedules[j].treatment_summary.dialysis_summary != '') {
  1762. // 删除元素后改变i的值
  1763. arr[i].schedules.splice(j--, 1);
  1764. }
  1765. }
  1766. }
  1767. arr2 = arr
  1768. }
  1769. let arr3 = []
  1770. if(this.scheduleStateVal == 0){
  1771. arr3 = JSON.parse(JSON.stringify(arr2))
  1772. }else{
  1773. let arr = []
  1774. arr = JSON.parse(JSON.stringify(arr2))
  1775. for (let i = 0; i < arr.length; i++) {
  1776. for (let j = 0; j < arr[i].schedules.length; j++) {
  1777. if (this.scheduleStateVal != arr[i].schedules[j].schedule_type) {
  1778. // 删除元素后改变i的值
  1779. arr[i].schedules.splice(j--, 1);
  1780. }
  1781. }
  1782. }
  1783. arr3 = arr
  1784. console.log("上午",arr)
  1785. }
  1786. let arr4 = []
  1787. if(this.zoneVal == 0){
  1788. arr4 = JSON.parse(JSON.stringify(arr3))
  1789. }else{
  1790. let arr = []
  1791. arr = JSON.parse(JSON.stringify(arr3))
  1792. for (let i = 0; i < arr.length; i++) {
  1793. if (this.zoneVal != arr[i].zone_id) {
  1794. // 删除元素后改变i的值
  1795. arr.splice(i--, 1);
  1796. }
  1797. }
  1798. arr4 = arr
  1799. }
  1800. let newArr = []
  1801. arr4.map(item => {
  1802. newArr.push(...item.schedules)
  1803. })
  1804. this.tableData = newArr
  1805. console.log('table',this.tableData)
  1806. },
  1807. },
  1808. watch: {
  1809. "patientInfo.gender": function() {
  1810. if (this.patientInfo.gender == 1) {
  1811. this.patientInfo_gender_1 = true;
  1812. this.patientInfo_gender_2 = false;
  1813. } else if (this.patientInfo.gender == 2) {
  1814. this.patientInfo_gender_2 = true;
  1815. this.patientInfo_gender_1 = false;
  1816. } else {
  1817. this.patientInfo_gender_2 = false;
  1818. this.patientInfo_gender_1 = false;
  1819. }
  1820. },
  1821. "patientInfo.source": function() {
  1822. if (this.patientInfo.source == 1) {
  1823. this.patientInfo_source_1 = true;
  1824. this.patientInfo_source_2 = false;
  1825. } else if (this.patientInfo.source == 2) {
  1826. this.patientInfo_source_2 = true;
  1827. this.patientInfo_source_1 = false;
  1828. } else {
  1829. this.patientInfo_source_2 = false;
  1830. this.patientInfo_source_1 = false;
  1831. }
  1832. }
  1833. },
  1834. created() {
  1835. var schedule_type_selected = this.$store.getters.schedule_type_selected
  1836. var zone_selected = this.$store.getters.zone_selected
  1837. var patient_state_selected = this.$store.getters.patient_state_selected
  1838. var treat_state_selected = this.$store.getters.treat_state_selected
  1839. var selected_date = this.$store.getters.selected_date
  1840. if (schedule_type_selected) {
  1841. this.scheduleStateVal = schedule_type_selected.schedule_type_selected
  1842. }
  1843. if (zone_selected) {
  1844. this.zoneVal = zone_selected.zone_selected
  1845. }
  1846. if (patient_state_selected) {
  1847. this.patientStateVal = patient_state_selected.patient_state_selected
  1848. }
  1849. if (treat_state_selected) {
  1850. this.treatStateVal = treat_state_selected.treat_state_selected
  1851. }
  1852. if (selected_date.selected_date) {
  1853. this.selected_date = selected_date.selected_date
  1854. }
  1855. this.getInitData();
  1856. var xtuser = this.$store.getters.xt_user;
  1857. this.orgname = xtuser.org.org_name;
  1858. // this.orgname = "遂溪方济医院";
  1859. this.modeOptions = this.$store.getters.treatment_mode;
  1860. this.replacementWays = this.$store.getters.replacement_ways;
  1861. this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
  1862. this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
  1863. // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
  1864. var bloodAccessParOpera = getDataConfig(
  1865. "hemodialysis",
  1866. "vascular_access_desc"
  1867. );
  1868. for (var key in bloodAccessParOpera) {
  1869. this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
  1870. bloodAccessParOpera[key];
  1871. }
  1872. var dialysateFormulationOptions = getDataConfig(
  1873. "hemodialysis",
  1874. "dialysate_formulation"
  1875. );
  1876. for (var key in dialysateFormulationOptions) {
  1877. this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
  1878. dialysateFormulationOptions[key];
  1879. }
  1880. const xtdate = this.$route.query && this.$route.query.xtdate;
  1881. const xtno = this.$route.query && this.$route.query.xtno;
  1882. if (
  1883. typeof xtdate === "string" &&
  1884. xtdate.length > 0 &&
  1885. typeof xtno === "string" &&
  1886. xtno.length > 0
  1887. ) {
  1888. this.queryParams.xtdate = xtdate;
  1889. this.queryParams.xtno = xtno;
  1890. this.getDialysisRecord();
  1891. } else {
  1892. this.$message.error("参数不齐");
  1893. return false;
  1894. }
  1895. },
  1896. computed:{
  1897. filtedSchedules: function() {
  1898. var search_keyword = this.search_keyword
  1899. if (search_keyword.length > 0) {
  1900. var schedules = []
  1901. for (let o_i = 0; o_i < this.zone_schedules.length; o_i++) {
  1902. const scheduleInfo = this.zone_schedules[o_i]
  1903. var originSchedules = scheduleInfo.schedules
  1904. if (originSchedules.length == 0) {
  1905. continue
  1906. }
  1907. var filtedSchedules = []
  1908. for (let s_i = 0; s_i < originSchedules.length; s_i++) {
  1909. const schedule = originSchedules[s_i]
  1910. if (schedule.patient.name.indexOf(search_keyword) != -1) {
  1911. filtedSchedules.push(schedule)
  1912. // break
  1913. }
  1914. }
  1915. if (filtedSchedules.length > 0) {
  1916. schedules.push({ zone_id: scheduleInfo.zone_id, zone_name: scheduleInfo.zone_name, schedules: filtedSchedules })
  1917. }
  1918. }
  1919. return schedules
  1920. }
  1921. }
  1922. },
  1923. };
  1924. </script>
  1925. <style>
  1926. .dialysis-print-order {
  1927. width: 960px;
  1928. margin: 0 auto;
  1929. }
  1930. .dialysis-print-order .order-yy-name {
  1931. margin: auto;
  1932. text-align: center;
  1933. font-size: 20px;
  1934. letter-spacing: 5px;
  1935. }
  1936. .dialysis-print-order .order-title {
  1937. margin: auto;
  1938. font-weight: 600;
  1939. text-align: center;
  1940. font-size: 22px;
  1941. padding: 10px;
  1942. }
  1943. .dialysis-print-order .table-box {
  1944. width: 100%;
  1945. line-height: 23px;
  1946. font-size: 14px;
  1947. }
  1948. .dialysis-print-order .print-table {
  1949. width: 100%;
  1950. text-align: center;
  1951. border-collapse: collapse;
  1952. line-height: 40px;
  1953. font-size: 14px;
  1954. border-color: #000;
  1955. }
  1956. .dialysis-print-order .print-table-no {
  1957. width: 100%;
  1958. text-align: center;
  1959. border-collapse: collapse;
  1960. font-size: 14px;
  1961. }
  1962. .dialysis-print-order .under-line {
  1963. border-bottom: 1px solid #999;
  1964. width: 95%;
  1965. text-align: center;
  1966. margin-left: 2px;
  1967. }
  1968. .dialysis-print-order .title-box {
  1969. text-align: center;
  1970. font-size: 16px;
  1971. }
  1972. .dialysis-print-order .radio-lebel-box {
  1973. font-weight: 400;
  1974. cursor: pointer;
  1975. }
  1976. .dialysis-print-order .radio-no {
  1977. opacity: 0;
  1978. outline: none;
  1979. position: absolute;
  1980. margin: 0;
  1981. width: 0;
  1982. height: 0;
  1983. z-index: -1;
  1984. }
  1985. .dialysis-print-order .radio-inner {
  1986. white-space: nowrap;
  1987. cursor: pointer;
  1988. outline: none;
  1989. display: inline-block;
  1990. line-height: 1;
  1991. position: relative;
  1992. vertical-align: middle;
  1993. }
  1994. .dialysis-print-order .radio-fang {
  1995. display: inline-block;
  1996. position: relative;
  1997. border: 1px solid #000;
  1998. box-sizing: border-box;
  1999. width: 14px;
  2000. height: 14px;
  2001. background-color: #fff;
  2002. z-index: 1;
  2003. transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
  2004. background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
  2005. }
  2006. .dialysis-print-order .is-checked-radio::after {
  2007. content: "√";
  2008. font-size: 15px;
  2009. }
  2010. .dialysis-print-order .print-table-no tr td {
  2011. padding: 8px 5px;
  2012. line-height: 25px;
  2013. }
  2014. .dialysis-print-order .print-table tr td {
  2015. padding: 1px 1px;
  2016. /*line-height: 25px;*/
  2017. }
  2018. .es-img {
  2019. height: 30px;
  2020. }
  2021. .advice-name {
  2022. text-align: left;
  2023. }
  2024. .advice-children {
  2025. display: flex;
  2026. }
  2027. .title-box-pro {
  2028. border: 0 #fff;
  2029. line-height: 25px;
  2030. height: 25px;
  2031. text-align: left;
  2032. padding-left: 10px !important;
  2033. }
  2034. .title-box-pro-tr {
  2035. border: 0 #fff;
  2036. }
  2037. .text-align-left {
  2038. text-align: left !important;
  2039. padding-left: 10px !important;
  2040. font-size: 14px !important;
  2041. line-height: 25px;
  2042. }
  2043. .print-table-tr-new td {
  2044. line-height: 20px !important;
  2045. }
  2046. .border-top-solid {
  2047. border: solid 1px #000;
  2048. }
  2049. .print-template-two tr {
  2050. line-height: 30px;
  2051. }
  2052. .table-box1 {
  2053. border: 1px solid #000;
  2054. width: 100%;
  2055. line-height: 30px;
  2056. font-size: 14px;
  2057. border-collapse: collapse;
  2058. }
  2059. .table-box1 tr {
  2060. border-bottom: 1px solid #000;
  2061. }
  2062. </style>
  2063. <style lang="scss">
  2064. .newContainer{
  2065. .dialysisPage::-webkit-scrollbar {
  2066. height: 15px;
  2067. }
  2068. .el-date-editor{
  2069. .el-input__inner{
  2070. padding-right:0px;
  2071. }
  2072. }
  2073. .el-table td, .el-table th{
  2074. text-align: center;
  2075. }
  2076. }
  2077. .newContainer::-webkit-scrollbar{
  2078. height: 15px !important;
  2079. }
  2080. </style>