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

dialysisPrintOrder.vue 84KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829
  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. </div>
  266. <div class="app-container" style="min-height:0;">
  267. <!--<div class="order-print-btn"-->
  268. <!--v-loading="loading"-->
  269. <!--element-loading-text="加载中"-->
  270. <!--element-loading-spinner="el-icon-loading"-->
  271. <!--element-loading-background="rgba(0, 0, 0, 0.8)"-->
  272. <!--style="width: 100%;">-->
  273. <!--</div>-->
  274. <!--<dialysis-print-order-two :patientInfo="patientInfo" :receiverTreatmentAccess="receiverTreatmentAccess" :predialysis="predialysis"></dialysis-print-order-two>-->
  275. <el-container class="newContainer">
  276. <div style="width:270px;margin-right:20px;">
  277. <div class="cell clearfix" style="margin-bottom:10px;">
  278. <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>
  279. <el-input size="small" style="width:80px;" @keyup.enter.native='searchAction' v-model.trim="search_input" class="filter-item"/>
  280. <el-button size="small" class="filter-item" type="primary" @click="searchAction">搜索</el-button>
  281. </div>
  282. <div class="cell clearfix" style="margin-bottom:10px;">
  283. <el-select v-model="patientStateVal" placeholder="全部患者状态" style="width:130px;margin-right:10px;" @change="handleStateChange">
  284. <el-option
  285. v-for="item in patient_state"
  286. :key="item.value"
  287. :label="item.label"
  288. :value="item.value">
  289. </el-option>
  290. </el-select>
  291. <el-select v-model="treatStateVal" placeholder="全部治疗状态" style="width:130px;margin-right:10px;" @change="handleTreatChange">
  292. <el-option
  293. v-for="item in treat_state"
  294. :key="item.value"
  295. :label="item.label"
  296. :value="item.value">
  297. </el-option>
  298. </el-select>
  299. </div>
  300. <div class="cell clearfix" style="margin-bottom:10px;">
  301. <el-select v-model="scheduleStateVal" placeholder="班次" style="width:130px;margin-right:10px;" @change="handletimeType">
  302. <el-option
  303. v-for="item in schedule_options"
  304. :key="item.value"
  305. :label="item.label"
  306. :value="item.value">
  307. </el-option>
  308. </el-select>
  309. <el-select v-model="zoneVal" placeholder="分区" style="width:130px;margin-right:10px;" @change="handleZoneChange">
  310. <el-option
  311. v-for="item in zone_options"
  312. :key="item.id"
  313. :label="item.text"
  314. :value="item.id">
  315. </el-option>
  316. </el-select>
  317. </div>
  318. <div style="padding-right:20px;">
  319. <el-table
  320. ref="tab"
  321. @row-click="changePatient"
  322. highlight-current-row
  323. :data="tableData"
  324. height="480"
  325. border
  326. style="width: 100%">
  327. <el-table-column
  328. prop="date"
  329. label="患者"
  330. >
  331. <template slot-scope="scope">
  332. {{ scope.row.patient.name }}
  333. </template>
  334. </el-table-column>
  335. <el-table-column
  336. prop="name"
  337. label="透析号"
  338. >
  339. <template slot-scope="scope">
  340. {{ scope.row.patient.dialysis_no }}
  341. </template>
  342. </el-table-column>
  343. </el-table>
  344. </div>
  345. </div>
  346. <div class='dialysisPage' style="height: calc(100vh - 178px);overflow-x:auto;::-webkit-scrollbar:height:15px">
  347. <DialysisPrintOrderOne
  348. v-bind:childResponse="childResponse"
  349. v-if="org_template_info.template_id == 1"
  350. >
  351. </DialysisPrintOrderOne>
  352. <DialysisPrintOrderTwo
  353. v-bind:childResponse="childResponse"
  354. v-if="
  355. org_template_info.template_id == 2 ||
  356. org_template_info.template_id == 0
  357. "
  358. ></DialysisPrintOrderTwo>
  359. <DialysisPrintOrderThree
  360. v-bind:childResponse="childResponse"
  361. v-if="org_template_info.template_id == 3"
  362. >
  363. </DialysisPrintOrderThree>
  364. <DialysisPrintOrderFour
  365. v-bind:childResponse="childResponse"
  366. v-if="org_template_info.template_id == 4"
  367. >
  368. </DialysisPrintOrderFour>
  369. <DialysisPrintOrderFive
  370. v-bind:childResponse="childResponse"
  371. v-if="org_template_info.template_id == 5"
  372. >
  373. </DialysisPrintOrderFive>
  374. <DialysisPrintOrderSix
  375. v-bind:childResponse="childResponse"
  376. v-if="org_template_info.template_id == 6"
  377. >
  378. </DialysisPrintOrderSix>
  379. <DialysisPrintOrderSeven
  380. v-bind:childResponse="childResponse"
  381. v-if="org_template_info.template_id == 7"
  382. >
  383. </DialysisPrintOrderSeven>
  384. <DialysisPrintOrderEight
  385. v-bind:childResponse="childResponse"
  386. v-if="org_template_info.template_id == 8"
  387. >
  388. </DialysisPrintOrderEight>
  389. <!--<DialysisPrintOrderTen></DialysisPrintOrderTen>-->
  390. <DialysisPrintOrderTen
  391. v-bind:childResponse="childResponse"
  392. v-if="org_template_info.template_id == 10"
  393. ></DialysisPrintOrderTen>
  394. <DialysisPrintOrderNine
  395. v-bind:childResponse="childResponse"
  396. v-if="org_template_info.template_id == 9"
  397. ></DialysisPrintOrderNine>
  398. <DialysisPrintOrderEleven
  399. v-bind:childResponse="childResponse"
  400. v-if="org_template_info.template_id == 11"
  401. ></DialysisPrintOrderEleven>
  402. <DialysisPrintOrderTwelve
  403. v-bind:childResponse="childResponse"
  404. v-if="org_template_info.template_id == 12"
  405. ></DialysisPrintOrderTwelve>
  406. <DialysisPrintOrderThirteen
  407. v-bind:childResponse="childResponse"
  408. v-if="org_template_info.template_id == 13"
  409. ></DialysisPrintOrderThirteen>
  410. <DialysisPrintOrderFourteen
  411. v-bind:childResponse="childResponse"
  412. v-if="org_template_info.template_id == 14"
  413. ></DialysisPrintOrderFourteen>
  414. <DialysisPrintOrderFifteen
  415. v-bind:childResponse="childResponse"
  416. v-if="org_template_info.template_id == 15"
  417. ></DialysisPrintOrderFifteen>
  418. <DialysisPrintOrderSixteen
  419. v-bind:childResponse="childResponse"
  420. v-if="org_template_info.template_id == 16"
  421. ></DialysisPrintOrderSixteen>
  422. <DialysisPrintOrderSeventeen
  423. v-bind:childResponse="childResponse"
  424. v-if="org_template_info.template_id == 17"
  425. ></DialysisPrintOrderSeventeen>
  426. <DialysisPrintOrderEighteen
  427. v-bind:childResponse="childResponse"
  428. v-if="org_template_info.template_id == 18"
  429. ></DialysisPrintOrderEighteen>
  430. <DialysisPrintOrderNineteen
  431. v-bind:childResponse="childResponse"
  432. v-if="org_template_info.template_id == 19"
  433. ></DialysisPrintOrderNineteen>
  434. <DialysisPrintOrderTwenty
  435. v-bind:childResponse="childResponse"
  436. v-if="org_template_info.template_id == 20"
  437. ></DialysisPrintOrderTwenty>
  438. <DialysisPrintOrderTwentyOne
  439. v-bind:childResponse="childResponse"
  440. v-if="org_template_info.template_id == 21"
  441. ></DialysisPrintOrderTwentyOne>
  442. </div>
  443. </el-container>
  444. </div>
  445. </div>
  446. </template>
  447. <script>
  448. import {
  449. getDialysisRecordInitData,
  450. getDialysisSchedules
  451. } from "@/api/dialysis_record";
  452. import { parseTime } from "@/utils";
  453. import { getDialysisRecord } from "@/api/dialysis";
  454. import { getDataConfig } from "@/utils/data";
  455. import { jsGetAge, uParseTime } from "@/utils/tools";
  456. import LabelBox from "./printItem/LabelBox";
  457. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  458. import DialysisPrintOrderOne from "./template/dialysisPrintOrderOne";
  459. import DialysisPrintOrderTwo from "./template/dialysisPrintOrderTwo";
  460. import DialysisPrintOrderThree from "./template/dialysisPrintOrderThree";
  461. import DialysisPrintOrderFour from "./template/DialysisPrintOrderFour";
  462. import DialysisPrintOrderFive from "./template/DialysisPrintOrderFive";
  463. import DialysisPrintOrderSix from "./template/DialysisPrintOrderSix";
  464. import DialysisPrintOrderSeven from "./template/DialysisPrintOrderSeven";
  465. import DialysisPrintOrderEight from "./template/DialysisPrintOrderEight";
  466. import DialysisPrintOrderNine from "./template/DialysisPrintOrderNine";
  467. import print from "print-js";
  468. import DialysisPrintOrderTen from "./template/DialysisPrintOrderTen";
  469. import DialysisPrintOrderEleven from "./template/DialysisPrintOrderEleven";
  470. import DialysisPrintOrderTwelve from "./template/DialysisPrintOrderTwelve";
  471. import DialysisPrintOrderThirteen from "./template/DialysisPrintOrderThirteen";
  472. import DialysisPrintOrderFourteen from "./template/DialysisPrintOrderFourteen";
  473. import DialysisPrintOrderFifteen from "./template/DialysisPrintOrderFifteen";
  474. import DialysisPrintOrderSixteen from "./template/DialysisPrintOrderSixteen";
  475. import DialysisPrintOrderSeventeen from "./template/DialysisPrintOrderSeventeen";
  476. import DialysisPrintOrderEighteen from "./template/DialysisPrintOrderEighteen";
  477. import DialysisPrintOrderNineteen from "./template/DialysisPrintOrderNineteen";
  478. import DialysisPrintOrderTwenty from "./template/DialysisPrintOrderTwenty";
  479. import DialysisPrintOrderTwentyOne from "./template/DialysisPrintOrderTwentyOne";
  480. export default {
  481. name: "dialysisPrintOrder",
  482. components: {
  483. DialysisPrintOrderTwentyOne,
  484. DialysisPrintOrderTwenty,
  485. DialysisPrintOrderNineteen,
  486. DialysisPrintOrderEighteen,
  487. DialysisPrintOrderSeventeen,
  488. DialysisPrintOrderSixteen,
  489. DialysisPrintOrderFifteen,
  490. DialysisPrintOrderFourteen,
  491. DialysisPrintOrderThirteen,
  492. DialysisPrintOrderTwelve,
  493. DialysisPrintOrderEleven,
  494. DialysisPrintOrderTen,
  495. DialysisPrintOrderOne,
  496. DialysisPrintOrderTwo,
  497. DialysisPrintOrderThree,
  498. DialysisPrintOrderFour,
  499. DialysisPrintOrderFive,
  500. DialysisPrintOrderSix,
  501. DialysisPrintOrderSeven,
  502. DialysisPrintOrderEight,
  503. DialysisPrintOrderNine,
  504. LabelBox,
  505. BreadCrumb
  506. },
  507. data() {
  508. return {
  509. crumbs: [
  510. { path: false, name: "透析管理" },
  511. { path: false, name: "打印单" }
  512. ],
  513. childResponse: {},
  514. operators: [],
  515. adminUser: [],
  516. check: {},
  517. dialysisOrder: {
  518. DeviceNumber: []
  519. },
  520. operatorMaps: {},
  521. complications: [
  522. "低血压",
  523. "高血压",
  524. "心律失常",
  525. "头晕",
  526. "头痛",
  527. "呕吐",
  528. "抽搐",
  529. "出血",
  530. "心衰",
  531. "腹痛"
  532. ],
  533. jilurow: 0,
  534. advice_jilurow: 0,
  535. loading: false,
  536. orgname: "",
  537. patientInfo_gender_1: false,
  538. patientInfo_gender_2: false,
  539. patientInfo_source_2: false,
  540. patientInfo_source_1: false,
  541. modeOptions: {},
  542. replacementWays: [],
  543. perfusionApparatus: [],
  544. anticoagulantsConfit: {},
  545. bloodAccessParOpera: {},
  546. dialysateFormulationOptions: {},
  547. queryParams: {
  548. xtdate: "",
  549. xtno: ""
  550. },
  551. patientInfo: {
  552. birth: "",
  553. age: "",
  554. DialysisSchedule: {
  555. device_number: { number: "" },
  556. device_zone: { name: "" }
  557. },
  558. gender: 0
  559. },
  560. predialysis: {
  561. score: "",
  562. internal_fistula: "",
  563. internal_fistula_skin: "",
  564. catheter: "",
  565. blood_access_part_opera_name: ""
  566. },
  567. afterdialysis: {
  568. complications_index: ""
  569. },
  570. prescription: {
  571. dialysate_formulation_name: "",
  572. device: {}
  573. },
  574. advices: [],
  575. users: [],
  576. monitors: [],
  577. summary: {},
  578. receiverTreatmentAccess: {},
  579. org_template_info: {},
  580. doctor_advices: [],
  581. advice_groups: [],
  582. AlPanel: {
  583. id: 0,
  584. name: "",
  585. type: 1,
  586. shouji: 2,
  587. weichi: 2,
  588. zongliang: 2,
  589. gaimingcheng: -1,
  590. gaijiliang: -1,
  591. shouji_unit: "mg",
  592. weichi_unit: "mg/h",
  593. zongliang_unit: "mg",
  594. gaimingcheng_unit: "",
  595. gaijiliang_unit: ""
  596. },
  597. //
  598. tableData: [],
  599. selected_date: new Date(),
  600. // search_input 和 search_keyword,使输入关键字时不会经常刷新 filtedSchedules
  601. search_keyword: '', // 确定用于搜索的关键字
  602. search_input: '', // 输入中的关键字
  603. patient_state:[
  604. {value: 0,label: '全部'},
  605. {value: 1,label: '已签到'},
  606. {value: 2,label: '未签到'},
  607. {value: 3,label: '已上机'},
  608. {value: 4,label: '已下机'},
  609. ],
  610. patientStateVal: 0,
  611. treat_state:[
  612. {value: 0,label: '全部'},
  613. {value: 1,label: '待开处方'},
  614. {value: 2,label: '待开小结'},
  615. ],
  616. treatStateVal: 0,
  617. schedule_options:[
  618. {value: 0,label: '全部'},
  619. {value: 1,label: '上午'},
  620. {value: 2,label: '下午'},
  621. {value: 3,label: '晚上'},
  622. ],
  623. scheduleStateVal: 0,
  624. zone_options:[
  625. { id: 0, text: '全部' }
  626. ],
  627. zoneVal:0,
  628. };
  629. },
  630. methods: {
  631. getAdminUser(id) {
  632. if (id == 0) {
  633. return "";
  634. }
  635. if (id == undefined) {
  636. return "";
  637. }
  638. for (let i = 0; i < this.adminUser.length; i++) {
  639. if (this.adminUser[i].id == id) {
  640. return this.adminUser[i].name;
  641. }
  642. }
  643. },
  644. getTime(value, temp) {
  645. if (value == 0) {
  646. return "";
  647. }
  648. if (value != undefined) {
  649. return uParseTime(value, temp);
  650. }
  651. return "";
  652. },
  653. printThisPage() {
  654. var ptime = Math.round(new Date().getTime() / 1000);
  655. this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
  656. const style =
  657. '@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;}';
  658. const style2 =
  659. '@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;}';
  660. const style3 =
  661. '@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}.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;}.row {font-size: 16px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}';
  662. // const style3 =
  663. // '@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;}';
  664. //
  665. const style5 =
  666. '@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;}}';
  667. const style6 =
  668. '@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;}';
  669. if (this.org_template_info.template_id == 1) {
  670. printJS({
  671. printable: "dialysis-print-box",
  672. type: "html",
  673. style: style,
  674. scanStyles: false
  675. });
  676. } else if (
  677. this.org_template_info.template_id == 2 ||
  678. this.org_template_info.template_id == 0
  679. ) {
  680. printJS({
  681. printable: "dialysis-print-box-1",
  682. type: "html",
  683. style: style2,
  684. scanStyles: false
  685. });
  686. } else if (this.org_template_info.template_id == 3) {
  687. printJS({
  688. printable: "dialysis-print-box",
  689. type: "html",
  690. style: style,
  691. scanStyles: false
  692. });
  693. } else if (this.org_template_info.template_id == 4) {
  694. printJS({
  695. printable: "dialysis-print-box",
  696. type: "html",
  697. style: style,
  698. scanStyles: false
  699. });
  700. } else if (this.org_template_info.template_id == 5) {
  701. printJS({
  702. printable: "dialysis-print-box-1",
  703. type: "html",
  704. style: style2,
  705. scanStyles: false
  706. });
  707. } else if (
  708. this.org_template_info.template_id == 6 ||
  709. this.org_template_info.template_id == 10 ||
  710. this.org_template_info.template_id == 11
  711. ) {
  712. printJS({
  713. printable: "dialysis-print-box-1",
  714. type: "html",
  715. style: style2,
  716. scanStyles: false
  717. });
  718. } else if (this.org_template_info.template_id == 7) {
  719. printJS({
  720. printable: "dialysis-print-box",
  721. type: "html",
  722. style: style,
  723. scanStyles: false
  724. });
  725. } else if (this.org_template_info.template_id == 8) {
  726. printJS({
  727. printable: "dialysis-print-box",
  728. type: "html",
  729. style: style,
  730. scanStyles: false
  731. });
  732. } else if (this.org_template_info.template_id == 9) {
  733. printJS({
  734. printable: "dialysis-print-box",
  735. type: "html",
  736. style: style5,
  737. scanStyles: false
  738. });
  739. } else if (this.org_template_info.template_id == 12) {
  740. printJS({
  741. printable: "dialysis-print-box",
  742. type: "html",
  743. style: style,
  744. scanStyles: false
  745. });
  746. } else if (this.org_template_info.template_id == 13) {
  747. printJS({
  748. printable: "dialysis-print-box-1",
  749. type: "html",
  750. style: style3,
  751. scanStyles: false
  752. });
  753. } else if (this.org_template_info.template_id == 14){
  754. printJS({
  755. printable: "dialysis-print-box",
  756. type: "html",
  757. style: style,
  758. scanStyles: false
  759. });
  760. } else if (this.org_template_info.template_id == 15){
  761. printJS({
  762. printable: "dialysis-print-box",
  763. type: "html",
  764. style: style,
  765. scanStyles: false
  766. });
  767. } else if (this.org_template_info.template_id == 16){
  768. printJS({
  769. printable: "dialysis-print-box",
  770. type: "html",
  771. style: style,
  772. scanStyles: false
  773. });
  774. } else if (this.org_template_info.template_id == 17) {
  775. printJS({
  776. printable: "dialysis-print-box",
  777. type: "html",
  778. style: style6,
  779. scanStyles: false
  780. });
  781. } else if (this.org_template_info.template_id == 18) {
  782. printJS({
  783. printable: "dialysis-print-box",
  784. type: "html",
  785. style: style,
  786. scanStyles: false
  787. });
  788. } else if (this.org_template_info.template_id == 19) {
  789. printJS({
  790. printable: "dialysis-print-box-1",
  791. type: "html",
  792. style: style2,
  793. scanStyles: false
  794. });
  795. } else if (this.org_template_info.template_id == 20) {
  796. printJS({
  797. printable: "dialysis-print-box",
  798. type: "html",
  799. style: style,
  800. scanStyles: false
  801. });
  802. } else if (this.org_template_info.template_id == 21) {
  803. printJS({
  804. printable: "dialysis-print-box",
  805. type: "html",
  806. style: style,
  807. scanStyles: false
  808. });
  809. }
  810. },
  811. printThisOnePage() {
  812. var ptime = Math.round(new Date().getTime() / 1000);
  813. this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
  814. const style =
  815. '@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;}';
  816. const style2 =
  817. '@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;}';
  818. if (this.org_template_info.template_id == 1) {
  819. printJS({
  820. printable: "dialysis-print-box",
  821. type: "html",
  822. style: style,
  823. scanStyles: false
  824. });
  825. } else if (
  826. this.org_template_info.template_id == 2 ||
  827. this.org_template_info.template_id == 0 ||
  828. this.org_template_info.template_id == 5
  829. ) {
  830. printJS({
  831. printable: "dialysis-print-box-1-1",
  832. type: "html",
  833. style: style2,
  834. scanStyles: false
  835. });
  836. } else if(this.org_template_info.template_id == 14){
  837. printJS({
  838. printable: "new-dialysis-1",
  839. type: "html",
  840. style: style,
  841. scanStyles: false
  842. });
  843. }
  844. },
  845. printThisTwoPage() {
  846. var ptime = Math.round(new Date().getTime() / 1000);
  847. this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
  848. const style =
  849. '@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;}';
  850. const style2 =
  851. '@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;}';
  852. if (this.org_template_info.template_id == 1) {
  853. printJS({
  854. printable: "dialysis-print-box",
  855. type: "html",
  856. style: style,
  857. scanStyles: false
  858. });
  859. } else if (
  860. this.org_template_info.template_id == 2 ||
  861. this.org_template_info.template_id == 0 ||
  862. this.org_template_info.template_id == 5
  863. ) {
  864. printJS({
  865. printable: "dialysis-print-box-1-2",
  866. type: "html",
  867. style: style2,
  868. scanStyles: false
  869. });
  870. }else if(this.org_template_info.template_id == 14){
  871. printJS({
  872. printable: "new-dialysis-2",
  873. type: "html",
  874. style: style,
  875. scanStyles: false
  876. });
  877. }
  878. },
  879. getNumber() {
  880. if (this.dialysisOrder != null) {
  881. return (
  882. this.patientInfo.DialysisSchedule.device_zone.name +
  883. this.dialysisOrder.DeviceNumber.number
  884. );
  885. } else {
  886. return (
  887. this.patientInfo.DialysisSchedule.device_zone.name +
  888. this.patientInfo.DialysisSchedule.device_number.number
  889. );
  890. }
  891. },
  892. getXuserName(id) {
  893. if (id <= 0) {
  894. return "";
  895. }
  896. var name = "";
  897. if (this.users == null || typeof this.users.length === "undefined") {
  898. return name;
  899. }
  900. var leng = this.users.length;
  901. if (leng == 0) {
  902. return name;
  903. }
  904. for (let index = 0; index < leng; index++) {
  905. if (this.users[index].id == id) {
  906. name = this.users[index].name;
  907. break;
  908. }
  909. }
  910. return name;
  911. },
  912. setAdminUserES(id) {
  913. console.log(id);
  914. if (id == 0) {
  915. return "";
  916. }
  917. if (id in this.operatorMaps) {
  918. return this.operatorMaps[id].url;
  919. } else {
  920. return "";
  921. }
  922. },
  923. modeName(mode_id) {
  924. return typeof this.modeOptions[mode_id] !== "undefined" &&
  925. typeof this.modeOptions[mode_id].name !== "undefined"
  926. ? this.modeOptions[mode_id].name
  927. : "";
  928. },
  929. getDialysisRecord() {
  930. this.loading = true;
  931. getDialysisRecord(this.queryParams).then(response => {
  932. if (response.data.state == 1) {
  933. this.childResponse = response;
  934. this.org_template_info = response.data.data.org_template_info;
  935. this.loading = false;
  936. // this.adminUser = response.data.data.users
  937. // this.users = response.data.data.users
  938. // this.patientInfo = response.data.data.patientInfo
  939. // this.patientInfo.birth = uParseTime(this.patientInfo.birthday, '{y}-{m}-{d}')
  940. // // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
  941. // if (response.data.data.patientInfo.first_dialysis_date != 0) {
  942. // this.patientInfo.first_dialysis_date = uParseTime(response.data.data.patientInfo.first_dialysis_date, '{y}-{m}-{d}')
  943. // } else {
  944. // this.patientInfo.first_dialysis_date = ''
  945. // }
  946. // this.check = response.data.data.check
  947. // this.predialysis = response.data.data.PredialysisEvaluation
  948. // this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(this.predialysis.blood_access_part_opera_id)
  949. // this.afterdialysis = response.data.data.AssessmentAfterDislysis
  950. // this.operators = response.data.data.operators
  951. // this.dialysisOrder = response.data.data.dialysisOrder === null ? null : response.data.data.dialysisOrder
  952. // if (this.operators.length > 0) {
  953. // var operatorsLen = this.operators.length
  954. // for (var index = 0; index < operatorsLen; index++) {
  955. // this.$set(this.operatorMaps, this.operators[index].creator, this.operators[index])
  956. // }
  957. // }
  958. // this.afterdialysis.txqnx = -1
  959. // if (this.afterdialysis.cruor.indexOf('0度') > -1) {
  960. // this.afterdialysis.txqnx = 0
  961. // }
  962. // if (this.afterdialysis.cruor.indexOf('Ⅰ度') > -1) {
  963. // this.afterdialysis.txqnx = 1
  964. // }
  965. // if (this.afterdialysis.cruor.indexOf('Ⅱ度') > -1) {
  966. // this.afterdialysis.txqnx = 2
  967. // }
  968. // if (this.afterdialysis.cruor.indexOf('Ⅲ度') > -1) {
  969. // this.afterdialysis.txqnx = 3
  970. // }
  971. // this.afterdialysis.complications = this.afterdialysis.complication.split(',')
  972. // this.afterdialysis.complications_other = []
  973. // this.afterdialysis.complications_index = []
  974. // var acllen = this.afterdialysis.complications.length
  975. // for (let index = 0; index < acllen; index++) {
  976. // if (this.complications.indexOf(this.afterdialysis.complications[index]) >= 0) {
  977. // this.afterdialysis.complications_index.push(this.afterdialysis.complications[index])
  978. // } else if (this.complications.indexOf(this.afterdialysis.complications[index]) < 0 && this.afterdialysis.complications_other.indexOf(this.afterdialysis.complications[index]) < 0) {
  979. // this.afterdialysis.complications_other.push(this.afterdialysis.complications[index])
  980. // }
  981. // }
  982. // this.afterdialysis.complications_other = this.afterdialysis.complications_other.join(',')
  983. // this.prescription = response.data.data.dialysisPrescription
  984. // this.receiverTreatmentAccess = response.data.data.receiverTreatmentAccess
  985. // this.prescription.mode = this.modeName(this.prescription.mode_id)
  986. // var rwLen = this.replacementWays.length
  987. // this.prescription.replacement = ''
  988. // for (let index = 0; index < rwLen; index++) {
  989. // if (this.replacementWays[index].id == this.prescription.replacement_way) {
  990. // this.prescription.replacement = this.replacementWays[index].name
  991. // break
  992. // }
  993. // }
  994. // this.prescription.dialysate_formulation_name = this.dialysateFormulationName(this.prescription.dialysate_formulation)
  995. // var paLen = this.perfusionApparatus.length
  996. // this.prescription.perfusion_apparatus_name = ''
  997. // for (let index = 0; index < paLen; index++) {
  998. // if (this.perfusionApparatus[index].id == this.prescription.perfusion_apparatus) {
  999. // this.prescription.perfusion_apparatus_name = this.perfusionApparatus[index].name
  1000. // break
  1001. // }
  1002. // }
  1003. // var acLen = this.anticoagulantsConfit.length
  1004. // var thisALID = this.prescription.anticoagulant
  1005. // this.prescription.anticoagulant_name = ''
  1006. // if (typeof (this.anticoagulantsConfit[thisALID]) !== 'undefined' && this.anticoagulantsConfit[thisALID] != null) {
  1007. // this.prescription.anticoagulant_name = this.anticoagulantsConfit[thisALID].name
  1008. // this.AlPanel = this.anticoagulantsConfit[thisALID]
  1009. // }
  1010. // this.advices = response.data.data.advices
  1011. // this.monitors = response.data.data.monitors
  1012. // this.summary = response.data.data.summary
  1013. // this.org_template_info = response.data.data.org_template_info
  1014. // if (this.monitors.length < 8) {
  1015. // var nl = 8 - this.monitors.length
  1016. // for (let index = 0; index < nl; index++) {
  1017. // this.monitors.push([])
  1018. // }
  1019. // }
  1020. // this.jilurow = this.monitors.length + 1
  1021. // this.advice_jilurow = this.advices.length + 1
  1022. // var childMap = {}
  1023. // for (const index in this.advices) {
  1024. // if (this.advices[index].parent_id == 0) {
  1025. // continue
  1026. // }
  1027. // if (!(this.advices[index].parent_id in childMap)) {
  1028. // childMap[this.advices[index].parent_id] = []
  1029. // }
  1030. // childMap[this.advices[index].parent_id].push(this.advices[index])
  1031. // }
  1032. // var advices = []
  1033. // for (const index in this.advices) {
  1034. // if (this.advices[index].parent_id > 0) {
  1035. // continue
  1036. // }
  1037. // var item = this.advices[index]
  1038. // if (item.id in childMap) {
  1039. // item.children = childMap[item.id]
  1040. // } else {
  1041. // item.children = []
  1042. // }
  1043. // advices.push(item)
  1044. // }
  1045. // var leftAdvice = []
  1046. // var rightAdvice = []
  1047. // var adlen = advices.length
  1048. // var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
  1049. // for (var i = 0; i < halfLen; i++) {
  1050. // leftAdvice.push(advices[i])
  1051. // rightAdvice.push(advices[i + halfLen])
  1052. // }
  1053. // if (halfLen < 5) {
  1054. // var nl = 5 - leftAdvice.length
  1055. // for (let index = 0; index < nl; index++) {
  1056. // leftAdvice.push([])
  1057. // }
  1058. // var nl = 5 - rightAdvice.length
  1059. // for (let index = 0; index < nl; index++) {
  1060. // rightAdvice.push([])
  1061. // }
  1062. // }
  1063. // this.advices = []
  1064. // for (var i = 0; i < halfLen; i++) {
  1065. // var item = []
  1066. // item.push(leftAdvice[i])
  1067. // item.push(rightAdvice[i])
  1068. // this.advices.push(item)
  1069. // }
  1070. // this.loading = false
  1071. // this.doctor_advices = response.data.data.advices == null ? [] : response.data.data.advices
  1072. // for (let index = 0; index < this.doctor_advices.length; index++) {
  1073. // this.doctor_advices[index]['isShow'] = 2
  1074. // }
  1075. // if (this.doctor_advices.length > 0) {
  1076. // var group = this.newAdviceGroupObject()
  1077. // var initGroupBlock = function(group, advice) {
  1078. // group.group_no = advice.groupno
  1079. // }
  1080. // for (let index = this.doctor_advices.length - 1; index >= 0; index--) {
  1081. // var new_advice_index = 0
  1082. // if ('children' in this.doctor_advices[index] && this.doctor_advices[index].children.length > 0) {
  1083. // new_advice_index = index + this.doctor_advices[index].children.length + 1
  1084. // var doctor_advice = {
  1085. // delivery_way: this.doctor_advices[index].delivery_way,
  1086. // execution_frequency: this.doctor_advices[index].execution_frequency,
  1087. // groupno: this.doctor_advices[index].groupno,
  1088. // id: this.doctor_advices[index].id,
  1089. // parent_id: this.doctor_advices[index].parent_id,
  1090. // children: this.doctor_advices[index].children,
  1091. // remark: this.doctor_advices[index].remark,
  1092. // execution_staff: this.doctor_advices[index].execution_staff,
  1093. // checker: this.doctor_advices[index].checker,
  1094. // advice_doctor: this.doctor_advices[index].advice_doctor,
  1095. // }
  1096. // doctor_advice['isShow'] = 1
  1097. // this.doctor_advices.splice(new_advice_index, 0, doctor_advice)
  1098. // // this.doctor_advices.push(doctor_advice)
  1099. // }
  1100. // }
  1101. // for (let index = 0; index < this.doctor_advices.length; index++) {
  1102. // const advice = this.doctor_advices[index]
  1103. // if (advice.groupno == 0) {
  1104. // // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
  1105. // if (advice.parent_id > 0) {
  1106. // if (this.advice_groups.length > 0) {
  1107. // var parent_group = this.advice_groups[
  1108. // this.advice_groups.length - 1
  1109. // ]
  1110. // if (parent_group.advices.length > 0) {
  1111. // if (parent_group.advices[0].id == advice.parent_id) {
  1112. // parent_group.advices.push(advice)
  1113. // }
  1114. // }
  1115. // }
  1116. // continue
  1117. // } else {
  1118. // if (group.group_no > 0) {
  1119. // this.advice_groups.push(group)
  1120. // group = this.newAdviceGroupObject()
  1121. // }
  1122. // initGroupBlock(group, advice)
  1123. // group.advices.push(advice)
  1124. // this.advice_groups.push(group)
  1125. // group = this.newAdviceGroupObject()
  1126. // continue
  1127. // }
  1128. // }
  1129. // if (group.group_no > 0 && group.group_no != advice.groupno) {
  1130. // this.advice_groups.push(group)
  1131. // group = this.newAdviceGroupObject()
  1132. // }
  1133. // if (group.group_no == 0) {
  1134. // initGroupBlock(group, advice)
  1135. // }
  1136. // if (group.group_no == advice.groupno) {
  1137. // group.advices.push(advice)
  1138. // }
  1139. // }
  1140. // if (group.group_no > 0) {
  1141. // // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
  1142. // this.advice_groups.push(group)
  1143. // }
  1144. // }
  1145. // console.log(this.advice_groups)
  1146. } else {
  1147. this.loading = false;
  1148. this.$message.error("请求数据失败");
  1149. return false;
  1150. }
  1151. });
  1152. },
  1153. bloodAccessParOperaName(id) {
  1154. if (id in this.bloodAccessParOpera) {
  1155. return this.bloodAccessParOpera[id].name;
  1156. }
  1157. return "";
  1158. },
  1159. dialysateFormulationName(id) {
  1160. if (id in this.dialysateFormulationOptions) {
  1161. return this.dialysateFormulationOptions[id].name;
  1162. }
  1163. return "";
  1164. },
  1165. getAge: function(val) {
  1166. if (
  1167. this.org_template_info.template_id == 2 ||
  1168. this.org_template_info.template_id == 0
  1169. ) {
  1170. if (val.age == 0) {
  1171. return jsGetAge(val.birth, "-");
  1172. } else {
  1173. return val.age;
  1174. }
  1175. } else {
  1176. return jsGetAge(val.birth, "-");
  1177. }
  1178. },
  1179. newAdviceGroupObject: function() {
  1180. return Object.assign(
  1181. {},
  1182. {
  1183. group_no: 0,
  1184. // advice_doctor: 0,
  1185. // start_time: 0,
  1186. advices: []
  1187. // exec_staff: 0,
  1188. // exec_time: 0,
  1189. // checker: 0,
  1190. }
  1191. );
  1192. },
  1193. //日期
  1194. handleScheduleDateChange: function(index) {
  1195. this.treatStateVal = 0
  1196. this.patientStateVal = 0
  1197. this.zoneVal = 0
  1198. this.scheduleStateVal = 0
  1199. this.search_keyword = this.search_input = ''
  1200. // this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
  1201. // zone: this.zone_selected,
  1202. // schedule_type: this.schedule_type_selected,
  1203. // schedule_date: this.selected_date,
  1204. // })
  1205. this.selected_date = index
  1206. this.$store.dispatch('SetSelectedDate', { selected_date: index })
  1207. this.requestDialysisSchedules()
  1208. },
  1209. //初始化数据
  1210. getInitData: function() {
  1211. getDialysisRecordInitData().then(rs => {
  1212. var resp = rs.data
  1213. if (resp.state == 1) {
  1214. var zones = resp.data.zones
  1215. var schedules = resp.data.schedules
  1216. var zone_options = [{ id: 0, text: '全部' }]
  1217. for (let z_i = 0; z_i < zones.length; z_i++) {
  1218. const zone = zones[z_i]
  1219. zone_options.push({ id: zone.id, text: zone.name })
  1220. }
  1221. this.zone_options = zone_options
  1222. // this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
  1223. this.arr = this.processedDialysisSchedules(schedules, this.zone_options)
  1224. this.requestDialysisSchedules()
  1225. // this.getData()
  1226. } else {
  1227. this.$message.error(resp.msg)
  1228. }
  1229. })
  1230. },
  1231. // 班次
  1232. handletimeType: function(index) {
  1233. this.scheduleStateVal = index
  1234. this.$store.dispatch('SetScheduleTypeSelected', { schedule_type_selected: index })
  1235. this.search_keyword = this.search_input = ''
  1236. this.getData()
  1237. },
  1238. //分区
  1239. handleZoneChange: function(index) {
  1240. this.zoneVal = index
  1241. this.$store.dispatch('SetZoneSelected', { zone_selected: index })
  1242. this.search_keyword = this.search_input = ''
  1243. this.getData()
  1244. },
  1245. //患者状态
  1246. handleStateChange: function(index) {
  1247. this.patientStateVal = index
  1248. this.$store.dispatch('SetPatientStateSelected', { patient_state_selected: index })
  1249. this.search_keyword = this.search_input = ''
  1250. this.getData()
  1251. },
  1252. handleTreatChange: function(index) {
  1253. this.treatStateVal = index
  1254. this.$store.dispatch('SetTreatStateSelected', { treat_state_selected: index })
  1255. this.search_keyword = this.search_input = ''
  1256. this.getData()
  1257. },
  1258. processedDialysisSchedules: function(schedules, zone_options) {
  1259. var zoneMap = {}
  1260. var scheduleMap = {}
  1261. for (let z_i = 0; z_i < zone_options.length; z_i++) {
  1262. const zone = zone_options[z_i]
  1263. if (zone.id == 0) {
  1264. continue
  1265. }
  1266. scheduleMap[zone.id] = []
  1267. }
  1268. for (let index = 0; index < schedules.length; index++) {
  1269. const schedule = schedules[index]
  1270. scheduleMap[schedule.device_number.zone.id].push(schedule)
  1271. }
  1272. var zone_schedules = []
  1273. for (let index = 0; index < zone_options.length; index++) {
  1274. const zone = zone_options[index]
  1275. if (zone.id == 0) {
  1276. continue
  1277. }
  1278. var schedules = scheduleMap[zone.id]
  1279. zone_schedules.push({ zone_id: zone.id, zone_name: zone.text, schedules: schedules })
  1280. }
  1281. return zone_schedules
  1282. },
  1283. searchAction: function() {
  1284. this.search_keyword = this.search_input
  1285. this.scheduleStateVal = 0
  1286. this.zoneVal = 0
  1287. this.treatStateVal = 0
  1288. this.patientStateVal = 0
  1289. if(this.search_input != ''){
  1290. let arr = []
  1291. this.filtedSchedules.map(item => {
  1292. arr.push(...item.schedules)
  1293. })
  1294. this.tableData = arr
  1295. }else{
  1296. this.getData()
  1297. }
  1298. },
  1299. requestDialysisSchedules: function() {
  1300. var ymd = parseTime(this.selected_date, '{y}-{m}-{d}')
  1301. getDialysisSchedules(ymd).then(rs => {
  1302. var resp = rs.data
  1303. if (resp.state == 1) {
  1304. var schedules = resp.data.schedules
  1305. this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
  1306. let newArr = []
  1307. this.zone_schedules.map(item => {
  1308. newArr.push(...item.schedules)
  1309. })
  1310. this.tableData = newArr
  1311. this.getData()
  1312. } else {
  1313. this.$message.error(resp.msg)
  1314. }
  1315. })
  1316. },
  1317. changePatient(schedual){
  1318. console.log(schedual)
  1319. var xtdate = parseTime(schedual.schedule_date, '{y}-{m}-{d}')
  1320. this.$router.push(
  1321. '/dialysis/print?xtdate=' + xtdate + '&xtno=' + schedual.patient.dialysis_no
  1322. )
  1323. // this.patient_id = schedual.patient_id;
  1324. // this.date = schedual.schedule_date;
  1325. // // this.getScheduleDetail();
  1326. // // this.getLongAdvice();
  1327. // var patient_id = schedual.patient_id;
  1328. // var date = schedual.schedule_date;
  1329. // this.$router.push({
  1330. // path: "/dialysis/details",
  1331. // query: {
  1332. // patient_id: patient_id,
  1333. // date: date,
  1334. // patient_name: schedual.patient.name
  1335. // }
  1336. // });
  1337. },
  1338. getData(){
  1339. let patientArr = []
  1340. patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
  1341. console.log('patientArr',patientArr)
  1342. let arr1 = []
  1343. if(this.patientStateVal == 0){
  1344. arr1 = patientArr
  1345. console.log(arr1)
  1346. }else if(this.patientStateVal == 1){
  1347. let arr = []
  1348. arr = patientArr
  1349. for (let i = 0; i <arr.length; i++) {
  1350. for (let j = 0; j < arr[i].schedules.length; j++) {
  1351. 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 == ''))) {
  1352. // 删除元素后改变i的值
  1353. arr[i].schedules.splice(j--, 1);
  1354. }
  1355. }
  1356. }
  1357. console.log("执行1",arr)
  1358. arr1 = arr
  1359. }else if(this.patientStateVal == 2){
  1360. let arr = []
  1361. arr = patientArr
  1362. for (let i = 0; i < arr.length; i++) {
  1363. for (let j = 0; j < arr[i].schedules.length; j++) {
  1364. 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))) {
  1365. // 删除元素后改变i的值
  1366. console.log('几次')
  1367. arr[i].schedules.splice(j--, 1);
  1368. }
  1369. }
  1370. }
  1371. console.log("执行2",arr)
  1372. arr1 = arr
  1373. }else if(this.patientStateVal == 3){
  1374. let arr = []
  1375. arr = patientArr
  1376. for (let i = 0; i <arr.length; i++) {
  1377. for (let j = 0; j < arr[i].schedules.length; j++) {
  1378. 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))) {
  1379. // 删除元素后改变i的值
  1380. arr[i].schedules.splice(j--, 1);
  1381. }
  1382. }
  1383. }
  1384. console.log("执行1",arr)
  1385. arr1 = arr
  1386. }else if(this.patientStateVal == 4){
  1387. let arr = []
  1388. arr = patientArr
  1389. for (let i = 0; i < arr.length; i++) {
  1390. for (let j = 0; j < arr[i].schedules.length; j++) {
  1391. 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))) {
  1392. // 删除元素后改变i的值
  1393. arr[i].schedules.splice(j--, 1);
  1394. }
  1395. }
  1396. }
  1397. console.log("执行2",arr)
  1398. arr1 = arr
  1399. }
  1400. let arr2 = []
  1401. if(this.treatStateVal == 0){
  1402. arr2 = JSON.parse(JSON.stringify(arr1))
  1403. }else if(this.treatStateVal == 1){
  1404. let arr = []
  1405. arr = JSON.parse(JSON.stringify(arr1))
  1406. for (let i = 0; i < arr.length; i++) {
  1407. for (let j = 0; j < arr[i].schedules.length; j++) {
  1408. 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)) {
  1409. // 删除元素后改变i的值
  1410. arr[i].schedules.splice(j--, 1);
  1411. }
  1412. }
  1413. }
  1414. arr2 = arr
  1415. }else if(this.treatStateVal == 2){
  1416. let arr = []
  1417. arr = JSON.parse(JSON.stringify(arr1))
  1418. for (let i = 0; i < arr.length; i++) {
  1419. for (let j = 0; j < arr[i].schedules.length; j++) {
  1420. if (arr[i].schedules.length > 0 && arr[i].schedules[j].treatment_summary != null && arr[i].schedules[j].treatment_summary.dialysis_summary != '') {
  1421. // 删除元素后改变i的值
  1422. arr[i].schedules.splice(j--, 1);
  1423. }
  1424. }
  1425. }
  1426. arr2 = arr
  1427. }
  1428. let arr3 = []
  1429. if(this.scheduleStateVal == 0){
  1430. arr3 = JSON.parse(JSON.stringify(arr2))
  1431. }else{
  1432. let arr = []
  1433. arr = JSON.parse(JSON.stringify(arr2))
  1434. for (let i = 0; i < arr.length; i++) {
  1435. for (let j = 0; j < arr[i].schedules.length; j++) {
  1436. if (this.scheduleStateVal != arr[i].schedules[j].schedule_type) {
  1437. // 删除元素后改变i的值
  1438. arr[i].schedules.splice(j--, 1);
  1439. }
  1440. }
  1441. }
  1442. arr3 = arr
  1443. console.log("上午",arr)
  1444. }
  1445. let arr4 = []
  1446. if(this.zoneVal == 0){
  1447. arr4 = JSON.parse(JSON.stringify(arr3))
  1448. }else{
  1449. let arr = []
  1450. arr = JSON.parse(JSON.stringify(arr3))
  1451. for (let i = 0; i < arr.length; i++) {
  1452. if (this.zoneVal != arr[i].zone_id) {
  1453. // 删除元素后改变i的值
  1454. arr.splice(i--, 1);
  1455. }
  1456. }
  1457. arr4 = arr
  1458. }
  1459. let newArr = []
  1460. arr4.map(item => {
  1461. newArr.push(...item.schedules)
  1462. })
  1463. this.tableData = newArr
  1464. console.log('table',this.tableData)
  1465. },
  1466. },
  1467. watch: {
  1468. "patientInfo.gender": function() {
  1469. if (this.patientInfo.gender == 1) {
  1470. this.patientInfo_gender_1 = true;
  1471. this.patientInfo_gender_2 = false;
  1472. } else if (this.patientInfo.gender == 2) {
  1473. this.patientInfo_gender_2 = true;
  1474. this.patientInfo_gender_1 = false;
  1475. } else {
  1476. this.patientInfo_gender_2 = false;
  1477. this.patientInfo_gender_1 = false;
  1478. }
  1479. },
  1480. "patientInfo.source": function() {
  1481. if (this.patientInfo.source == 1) {
  1482. this.patientInfo_source_1 = true;
  1483. this.patientInfo_source_2 = false;
  1484. } else if (this.patientInfo.source == 2) {
  1485. this.patientInfo_source_2 = true;
  1486. this.patientInfo_source_1 = false;
  1487. } else {
  1488. this.patientInfo_source_2 = false;
  1489. this.patientInfo_source_1 = false;
  1490. }
  1491. }
  1492. },
  1493. created() {
  1494. var schedule_type_selected = this.$store.getters.schedule_type_selected
  1495. var zone_selected = this.$store.getters.zone_selected
  1496. var patient_state_selected = this.$store.getters.patient_state_selected
  1497. var treat_state_selected = this.$store.getters.treat_state_selected
  1498. var selected_date = this.$store.getters.selected_date
  1499. if (schedule_type_selected) {
  1500. this.scheduleStateVal = schedule_type_selected.schedule_type_selected
  1501. }
  1502. if (zone_selected) {
  1503. this.zoneVal = zone_selected.zone_selected
  1504. }
  1505. if (patient_state_selected) {
  1506. this.patientStateVal = patient_state_selected.patient_state_selected
  1507. }
  1508. if (treat_state_selected) {
  1509. this.treatStateVal = treat_state_selected.treat_state_selected
  1510. }
  1511. if (selected_date.selected_date) {
  1512. this.selected_date = selected_date.selected_date
  1513. }
  1514. this.getInitData();
  1515. var xtuser = this.$store.getters.xt_user;
  1516. this.orgname = xtuser.org.org_name;
  1517. // this.orgname = "遂溪方济医院";
  1518. this.modeOptions = this.$store.getters.treatment_mode;
  1519. this.replacementWays = this.$store.getters.replacement_ways;
  1520. this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
  1521. this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
  1522. // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
  1523. var bloodAccessParOpera = getDataConfig(
  1524. "hemodialysis",
  1525. "vascular_access_desc"
  1526. );
  1527. for (var key in bloodAccessParOpera) {
  1528. this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
  1529. bloodAccessParOpera[key];
  1530. }
  1531. var dialysateFormulationOptions = getDataConfig(
  1532. "hemodialysis",
  1533. "dialysate_formulation"
  1534. );
  1535. for (var key in dialysateFormulationOptions) {
  1536. this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
  1537. dialysateFormulationOptions[key];
  1538. }
  1539. const xtdate = this.$route.query && this.$route.query.xtdate;
  1540. const xtno = this.$route.query && this.$route.query.xtno;
  1541. if (
  1542. typeof xtdate === "string" &&
  1543. xtdate.length > 0 &&
  1544. typeof xtno === "string" &&
  1545. xtno.length > 0
  1546. ) {
  1547. this.queryParams.xtdate = xtdate;
  1548. this.queryParams.xtno = xtno;
  1549. this.getDialysisRecord();
  1550. } else {
  1551. this.$message.error("参数不齐");
  1552. return false;
  1553. }
  1554. },
  1555. computed:{
  1556. filtedSchedules: function() {
  1557. var search_keyword = this.search_keyword
  1558. if (search_keyword.length > 0) {
  1559. var schedules = []
  1560. for (let o_i = 0; o_i < this.zone_schedules.length; o_i++) {
  1561. const scheduleInfo = this.zone_schedules[o_i]
  1562. var originSchedules = scheduleInfo.schedules
  1563. if (originSchedules.length == 0) {
  1564. continue
  1565. }
  1566. var filtedSchedules = []
  1567. for (let s_i = 0; s_i < originSchedules.length; s_i++) {
  1568. const schedule = originSchedules[s_i]
  1569. if (schedule.patient.name.indexOf(search_keyword) != -1) {
  1570. filtedSchedules.push(schedule)
  1571. // break
  1572. }
  1573. }
  1574. if (filtedSchedules.length > 0) {
  1575. schedules.push({ zone_id: scheduleInfo.zone_id, zone_name: scheduleInfo.zone_name, schedules: filtedSchedules })
  1576. }
  1577. }
  1578. return schedules
  1579. }
  1580. }
  1581. },
  1582. };
  1583. </script>
  1584. <style>
  1585. .dialysis-print-order {
  1586. width: 960px;
  1587. margin: 0 auto;
  1588. }
  1589. .dialysis-print-order .order-yy-name {
  1590. margin: auto;
  1591. text-align: center;
  1592. font-size: 20px;
  1593. letter-spacing: 5px;
  1594. }
  1595. .dialysis-print-order .order-title {
  1596. margin: auto;
  1597. font-weight: 600;
  1598. text-align: center;
  1599. font-size: 22px;
  1600. padding: 10px;
  1601. }
  1602. .dialysis-print-order .table-box {
  1603. width: 100%;
  1604. line-height: 23px;
  1605. font-size: 14px;
  1606. }
  1607. .dialysis-print-order .print-table {
  1608. width: 100%;
  1609. text-align: center;
  1610. border-collapse: collapse;
  1611. line-height: 40px;
  1612. font-size: 14px;
  1613. }
  1614. .dialysis-print-order .print-table-no {
  1615. width: 100%;
  1616. text-align: center;
  1617. border-collapse: collapse;
  1618. font-size: 14px;
  1619. }
  1620. .dialysis-print-order .under-line {
  1621. border-bottom: 1px solid #999;
  1622. width: 95%;
  1623. text-align: center;
  1624. margin-left: 2px;
  1625. }
  1626. .dialysis-print-order .title-box {
  1627. text-align: center;
  1628. font-size: 16px;
  1629. }
  1630. .dialysis-print-order .radio-lebel-box {
  1631. font-weight: 400;
  1632. cursor: pointer;
  1633. }
  1634. .dialysis-print-order .radio-no {
  1635. opacity: 0;
  1636. outline: none;
  1637. position: absolute;
  1638. margin: 0;
  1639. width: 0;
  1640. height: 0;
  1641. z-index: -1;
  1642. }
  1643. .dialysis-print-order .radio-inner {
  1644. white-space: nowrap;
  1645. cursor: pointer;
  1646. outline: none;
  1647. display: inline-block;
  1648. line-height: 1;
  1649. position: relative;
  1650. vertical-align: middle;
  1651. }
  1652. .dialysis-print-order .radio-fang {
  1653. display: inline-block;
  1654. position: relative;
  1655. border: 1px solid #000;
  1656. box-sizing: border-box;
  1657. width: 14px;
  1658. height: 14px;
  1659. background-color: #fff;
  1660. z-index: 1;
  1661. transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
  1662. background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
  1663. }
  1664. .dialysis-print-order .is-checked-radio::after {
  1665. content: "√";
  1666. font-size: 15px;
  1667. }
  1668. .dialysis-print-order .print-table-no tr td {
  1669. padding: 8px 5px;
  1670. line-height: 25px;
  1671. }
  1672. .dialysis-print-order .print-table tr td {
  1673. padding: 1px 1px;
  1674. /*line-height: 25px;*/
  1675. }
  1676. .es-img {
  1677. height: 30px;
  1678. }
  1679. .advice-name {
  1680. text-align: left;
  1681. }
  1682. .advice-children {
  1683. display: flex;
  1684. }
  1685. .title-box-pro {
  1686. border: 0 #fff;
  1687. line-height: 25px;
  1688. height: 25px;
  1689. text-align: left;
  1690. padding-left: 10px !important;
  1691. }
  1692. .title-box-pro-tr {
  1693. border: 0 #fff;
  1694. }
  1695. .text-align-left {
  1696. text-align: left !important;
  1697. padding-left: 10px !important;
  1698. font-size: 14px !important;
  1699. line-height: 25px;
  1700. }
  1701. .print-table-tr-new td {
  1702. line-height: 20px !important;
  1703. }
  1704. .border-top-solid {
  1705. border: solid 1px #000;
  1706. }
  1707. .print-template-two tr {
  1708. line-height: 30px;
  1709. }
  1710. .table-box1 {
  1711. border: 1px solid #000;
  1712. width: 100%;
  1713. line-height: 30px;
  1714. font-size: 14px;
  1715. border-collapse: collapse;
  1716. }
  1717. .table-box1 tr {
  1718. border-bottom: 1px solid #000;
  1719. }
  1720. </style>
  1721. <style lang="scss">
  1722. .newContainer{
  1723. .dialysisPage::-webkit-scrollbar {
  1724. height: 15px;
  1725. }
  1726. .el-date-editor{
  1727. .el-input__inner{
  1728. padding-right:0px;
  1729. }
  1730. }
  1731. .el-table td, .el-table th{
  1732. text-align: center;
  1733. }
  1734. }
  1735. .newContainer::-webkit-scrollbar{
  1736. height: 15px !important;
  1737. }
  1738. </style>