dialysisPrintOrder.vue 117KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562
  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. <template v-if="org_template_info.template_id == 32">
  440. <el-button
  441. :loading="loading"
  442. size="small"
  443. icon="el-icon-printer"
  444. @click="printThisPage"
  445. type="primary"
  446. >打印</el-button
  447. >
  448. </template>
  449. <template v-if="org_template_info.template_id == 33">
  450. <div>
  451. <el-button
  452. :loading="loading"
  453. size="small"
  454. icon="el-icon-printer"
  455. @click="printThisPage"
  456. type="primary"
  457. >打印全部</el-button
  458. >
  459. <el-button
  460. :loading="loading"
  461. size="small"
  462. icon="el-icon-printer"
  463. @click="printThisOnePage"
  464. type="primary"
  465. >打印纪录单</el-button
  466. >
  467. <el-button
  468. :loading="loading"
  469. size="small"
  470. icon="el-icon-printer"
  471. @click="printThisTwoPage"
  472. type="primary"
  473. >打印医嘱单</el-button
  474. >
  475. </div>
  476. </template>
  477. <template v-if="org_template_info.template_id == 34">
  478. <el-button
  479. :loading="loading"
  480. size="small"
  481. icon="el-icon-printer"
  482. @click="printThisPage"
  483. type="primary"
  484. >打印</el-button
  485. >
  486. </template>
  487. <template v-if="org_template_info.template_id == 35">
  488. <el-button
  489. :loading="loading"
  490. size="small"
  491. icon="el-icon-printer"
  492. @click="printThisPage"
  493. type="primary"
  494. >打印</el-button
  495. >
  496. </template>
  497. <template v-if="org_template_info.template_id == 36">
  498. <div>
  499. <el-button
  500. :loading="loading"
  501. size="small"
  502. icon="el-icon-printer"
  503. @click="printThisPage"
  504. type="primary"
  505. >打印全部</el-button
  506. >
  507. <el-button
  508. :loading="loading"
  509. size="small"
  510. icon="el-icon-printer"
  511. @click="printThisOnePage"
  512. type="primary"
  513. >打印记录单</el-button
  514. >
  515. <el-button
  516. :loading="loading"
  517. size="small"
  518. icon="el-icon-printer"
  519. @click="printThisTwoPage"
  520. type="primary"
  521. >打印医嘱单</el-button
  522. >
  523. </div>
  524. </template>
  525. <template v-if="org_template_info.template_id == 37">
  526. <el-button
  527. :loading="loading"
  528. size="small"
  529. icon="el-icon-printer"
  530. @click="printThisPage"
  531. type="primary"
  532. >打印</el-button
  533. >
  534. </template>
  535. <template v-if="org_template_info.template_id == 38">
  536. <el-button
  537. :loading="loading"
  538. size="small"
  539. icon="el-icon-printer"
  540. @click="printThisPage"
  541. type="primary"
  542. >打印</el-button
  543. >
  544. </template>
  545. <template v-if="org_template_info.template_id == 39">
  546. <el-button
  547. :loading="loading"
  548. size="small"
  549. icon="el-icon-printer"
  550. @click="printThisPage"
  551. type="primary"
  552. >打印</el-button
  553. >
  554. </template>
  555. <template v-if="org_template_info.template_id == 40">
  556. <el-button
  557. :loading="loading"
  558. size="small"
  559. icon="el-icon-printer"
  560. @click="printThisPage"
  561. type="primary"
  562. >打印</el-button
  563. >
  564. </template>
  565. <template v-if="org_template_info.template_id == 41">
  566. <el-button
  567. :loading="loading"
  568. size="small"
  569. icon="el-icon-printer"
  570. @click="printThisPage"
  571. type="primary"
  572. >打印</el-button
  573. >
  574. </template>
  575. <template v-if="org_template_info.template_id == 42">
  576. <el-button
  577. :loading="loading"
  578. size="small"
  579. icon="el-icon-printer"
  580. @click="printThisPage"
  581. type="primary"
  582. >打印</el-button
  583. >
  584. </template>
  585. <template v-if="org_template_info.template_id == 43">
  586. <el-button
  587. :loading="loading"
  588. size="small"
  589. icon="el-icon-printer"
  590. @click="printThisPage"
  591. type="primary"
  592. >打印</el-button
  593. >
  594. </template>
  595. <template v-if="org_template_info.template_id == 44">
  596. <el-button
  597. :loading="loading"
  598. size="small"
  599. icon="el-icon-printer"
  600. @click="printThisPage"
  601. type="primary"
  602. >打印</el-button
  603. >
  604. </template>
  605. <template v-if="org_template_info.template_id == 45">
  606. <el-button
  607. :loading="loading"
  608. size="small"
  609. icon="el-icon-printer"
  610. @click="printThisPage"
  611. type="primary"
  612. >打印</el-button
  613. >
  614. </template>
  615. </div>
  616. <div class="app-container" style="min-height:0;">
  617. <!--<div class="order-print-btn"-->
  618. <!--v-loading="loading"-->
  619. <!--element-loading-text="加载中"-->
  620. <!--element-loading-spinner="el-icon-loading"-->
  621. <!--element-loading-background="rgba(0, 0, 0, 0.8)"-->
  622. <!--style="width: 100%;">-->
  623. <!--</div>-->
  624. <!--<dialysis-print-order-two :patientInfo="patientInfo" :receiverTreatmentAccess="receiverTreatmentAccess" :predialysis="predialysis"></dialysis-print-order-two>-->
  625. <el-container class="newContainer">
  626. <div style="width:270px;margin-right:20px;">
  627. <div class="cell clearfix" style="margin-bottom:10px;">
  628. <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>
  629. <el-input size="small" style="width:80px;" @keyup.enter.native='searchAction' v-model.trim="search_input" class="filter-item"/>
  630. <el-button size="small" class="filter-item" type="primary" @click="searchAction">搜索</el-button>
  631. </div>
  632. <div class="cell clearfix" style="margin-bottom:10px;">
  633. <el-select v-model="patientStateVal" placeholder="全部患者状态" style="width:130px;margin-right:10px;" @change="handleStateChange">
  634. <el-option
  635. v-for="item in patient_state"
  636. :key="item.value"
  637. :label="item.label"
  638. :value="item.value">
  639. </el-option>
  640. </el-select>
  641. <el-select v-model="treatStateVal" placeholder="全部治疗状态" style="width:130px;margin-right:10px;" @change="handleTreatChange">
  642. <el-option
  643. v-for="item in treat_state"
  644. :key="item.value"
  645. :label="item.label"
  646. :value="item.value">
  647. </el-option>
  648. </el-select>
  649. </div>
  650. <div class="cell clearfix" style="margin-bottom:10px;">
  651. <el-select v-model="scheduleStateVal" placeholder="班次" style="width:130px;margin-right:10px;" @change="handletimeType">
  652. <el-option
  653. v-for="item in schedule_options"
  654. :key="item.value"
  655. :label="item.label"
  656. :value="item.value">
  657. </el-option>
  658. </el-select>
  659. <el-select v-model="zoneVal" placeholder="分区" style="width:130px;margin-right:10px;" @change="handleZoneChange">
  660. <el-option
  661. v-for="item in zone_options"
  662. :key="item.id"
  663. :label="item.text"
  664. :value="item.id">
  665. </el-option>
  666. </el-select>
  667. </div>
  668. <div style="padding-right:20px;">
  669. <el-table
  670. ref="tab"
  671. @row-click="changePatient"
  672. highlight-current-row
  673. :data="tableData"
  674. height="480"
  675. border
  676. style="width: 100%">
  677. <el-table-column
  678. prop="date"
  679. label="患者"
  680. >
  681. <template slot-scope="scope">
  682. {{ scope.row.patient.name }}
  683. </template>
  684. </el-table-column>
  685. <el-table-column
  686. prop="name"
  687. label="透析号"
  688. >
  689. <template slot-scope="scope">
  690. {{ scope.row.patient.dialysis_no }}
  691. </template>
  692. </el-table-column>
  693. </el-table>
  694. </div>
  695. </div>
  696. <div class='dialysisPage' style="height: calc(100vh - 178px);overflow-x:auto;::-webkit-scrollbar:height:15px">
  697. <DialysisPrintOrderOne
  698. v-bind:childResponse="childResponse"
  699. v-if="org_template_info.template_id == 1"
  700. >
  701. </DialysisPrintOrderOne>
  702. <DialysisPrintOrderTwo
  703. v-bind:childResponse="childResponse"
  704. v-if="
  705. org_template_info.template_id == 2 ||
  706. org_template_info.template_id == 0
  707. "
  708. ></DialysisPrintOrderTwo>
  709. <DialysisPrintOrderThree
  710. v-bind:childResponse="childResponse"
  711. v-if="org_template_info.template_id == 3"
  712. >
  713. </DialysisPrintOrderThree>
  714. <DialysisPrintOrderFour
  715. v-bind:childResponse="childResponse"
  716. v-if="org_template_info.template_id == 4"
  717. >
  718. </DialysisPrintOrderFour>
  719. <DialysisPrintOrderFive
  720. v-bind:childResponse="childResponse"
  721. v-if="org_template_info.template_id == 5"
  722. >
  723. </DialysisPrintOrderFive>
  724. <DialysisPrintOrderFortySix
  725. v-bind:childResponse="childResponse"
  726. v-if="org_template_info.template_id == 6"
  727. >
  728. </DialysisPrintOrderFortySix>
  729. <DialysisPrintOrderSeven
  730. v-bind:childResponse="childResponse"
  731. v-if="org_template_info.template_id == 7"
  732. >
  733. </DialysisPrintOrderSeven>
  734. <DialysisPrintOrderEight
  735. v-bind:childResponse="childResponse"
  736. v-if="org_template_info.template_id == 8"
  737. >
  738. </DialysisPrintOrderEight>
  739. <!--<DialysisPrintOrderTen></DialysisPrintOrderTen>-->
  740. <DialysisPrintOrderTen
  741. v-bind:childResponse="childResponse"
  742. v-if="org_template_info.template_id == 10"
  743. ></DialysisPrintOrderTen>
  744. <DialysisPrintOrderNine
  745. v-bind:childResponse="childResponse"
  746. v-if="org_template_info.template_id == 9"
  747. ></DialysisPrintOrderNine>
  748. <DialysisPrintOrderEleven
  749. v-bind:childResponse="childResponse"
  750. v-if="org_template_info.template_id == 11"
  751. ></DialysisPrintOrderEleven>
  752. <DialysisPrintOrderTwelve
  753. v-bind:childResponse="childResponse"
  754. v-if="org_template_info.template_id == 12"
  755. ></DialysisPrintOrderTwelve>
  756. <DialysisPrintOrderThirteen
  757. v-bind:childResponse="childResponse"
  758. v-if="org_template_info.template_id == 13"
  759. ></DialysisPrintOrderThirteen>
  760. <DialysisPrintOrderFourteen
  761. v-bind:childResponse="childResponse"
  762. v-if="org_template_info.template_id == 14"
  763. ></DialysisPrintOrderFourteen>
  764. <DialysisPrintOrderFifteen
  765. v-bind:childResponse="childResponse"
  766. v-if="org_template_info.template_id == 15"
  767. ></DialysisPrintOrderFifteen>
  768. <DialysisPrintOrderSixteen
  769. v-bind:childResponse="childResponse"
  770. v-if="org_template_info.template_id == 16"
  771. ></DialysisPrintOrderSixteen>
  772. <DialysisPrintOrderSeventeen
  773. v-bind:childResponse="childResponse"
  774. v-if="org_template_info.template_id == 17"
  775. ></DialysisPrintOrderSeventeen>
  776. <DialysisPrintOrderEighteen
  777. v-bind:childResponse="childResponse"
  778. v-if="org_template_info.template_id == 18"
  779. ></DialysisPrintOrderEighteen>
  780. <DialysisPrintOrderNineteen
  781. v-bind:childResponse="childResponse"
  782. v-if="org_template_info.template_id == 19"
  783. ></DialysisPrintOrderNineteen>
  784. <DialysisPrintOrderTwenty
  785. v-bind:childResponse="childResponse"
  786. v-if="org_template_info.template_id == 20"
  787. ></DialysisPrintOrderTwenty>
  788. <DialysisPrintOrderTwentyOne
  789. v-bind:childResponse="childResponse"
  790. v-if="org_template_info.template_id == 21"
  791. ></DialysisPrintOrderTwentyOne>
  792. <DialysisPrintOrderTwentyTwo
  793. v-bind:childResponse="childResponse"
  794. v-if="org_template_info.template_id == 22"
  795. ></DialysisPrintOrderTwentyTwo>
  796. <DialysisPrintOrderTwentyThree
  797. v-bind:childResponse="childResponse"
  798. v-if="org_template_info.template_id == 23"
  799. ></DialysisPrintOrderTwentyThree>
  800. <DialysisPrintOrderTwentyFour
  801. v-bind:childResponse="childResponse"
  802. v-if="org_template_info.template_id == 24"
  803. ></DialysisPrintOrderTwentyFour>
  804. <DialysisPrintOrderTwentyFive
  805. v-bind:childResponse="childResponse"
  806. v-if="org_template_info.template_id == 25"
  807. >
  808. </DialysisPrintOrderTwentyFive>
  809. <DialysisPrintOrderTwentySix
  810. v-bind:childResponse="childResponse"
  811. v-if="org_template_info.template_id == 26"
  812. >
  813. </DialysisPrintOrderTwentySix>
  814. <DialysisPrintOrderTwentySeven
  815. v-bind:childResponse="childResponse"
  816. v-if="org_template_info.template_id == 27"
  817. >
  818. </DialysisPrintOrderTwentySeven>
  819. <DialysisPrintOrderTwentyEight
  820. v-bind:childResponse="childResponse"
  821. v-if="org_template_info.template_id == 28"
  822. >
  823. </DialysisPrintOrderTwentyEight>
  824. <DialysisPrintOrderTwentyNine
  825. v-bind:childResponse="childResponse"
  826. v-if="org_template_info.template_id == 29"
  827. >
  828. </DialysisPrintOrderTwentyNine>
  829. <DialysisPrintOrderThirty
  830. v-bind:childResponse="childResponse"
  831. v-if="org_template_info.template_id == 30"
  832. >
  833. </DialysisPrintOrderThirty>
  834. <DialysisPrintOrderThirtyOne
  835. v-bind:childResponse="childResponse"
  836. v-if="org_template_info.template_id == 31"
  837. >
  838. </DialysisPrintOrderThirtyOne>
  839. <DialysisPrintOrderThirtyTwo
  840. v-bind:childResponse="childResponse"
  841. v-if="org_template_info.template_id == 32"
  842. >
  843. </DialysisPrintOrderThirtyTwo>
  844. <DialysisPrintOrderThirtyThree
  845. v-bind:childResponse="childResponse"
  846. v-if="org_template_info.template_id == 33"
  847. >
  848. </DialysisPrintOrderThirtyThree>
  849. <DialysisPrintOrderThirtyFour
  850. v-bind:childResponse="childResponse"
  851. v-if="org_template_info.template_id == 34"
  852. >
  853. </DialysisPrintOrderThirtyFour>
  854. <DialysisPrintOrderThirtyFive
  855. v-bind:childResponse="childResponse"
  856. v-if="org_template_info.template_id == 35"
  857. >
  858. </DialysisPrintOrderThirtyFive>
  859. <DialysisPrintOrderThirtySix
  860. v-bind:childResponse="childResponse"
  861. v-if="org_template_info.template_id == 36"
  862. >
  863. </DialysisPrintOrderThirtySix>
  864. <DialysisPrintOrderThirtySeven
  865. v-bind:childResponse="childResponse"
  866. v-if="org_template_info.template_id == 37"
  867. >
  868. </DialysisPrintOrderThirtySeven>
  869. <DialysisPrintOrderThirtyEight
  870. v-bind:childResponse="childResponse"
  871. v-if="org_template_info.template_id == 38"
  872. >
  873. </DialysisPrintOrderThirtyEight>
  874. <DialysisPrintOrderThirtyNine
  875. v-bind:childResponse="childResponse"
  876. v-if="org_template_info.template_id == 39"
  877. >
  878. </DialysisPrintOrderThirtyNine>
  879. <DialysisPrintOrderForty
  880. v-bind:childResponse="childResponse"
  881. v-if="org_template_info.template_id == 40"
  882. >
  883. </DialysisPrintOrderForty>
  884. <DialysisPrintOrderFortyOne
  885. v-bind:childResponse="childResponse"
  886. v-if="org_template_info.template_id == 41"
  887. >
  888. </DialysisPrintOrderFortyOne>
  889. <DialysisPrintOrderFortyTwo
  890. v-bind:childResponse="childResponse"
  891. v-if="org_template_info.template_id == 42"
  892. >
  893. </DialysisPrintOrderFortyTwo>
  894. <DialysisPrintOrderFortyThree
  895. v-bind:childResponse="childResponse"
  896. v-if="org_template_info.template_id == 43"
  897. >
  898. </DialysisPrintOrderFortyThree>
  899. <DialysisPrintOrderFortyFour
  900. v-bind:childResponse="childResponse"
  901. v-if="org_template_info.template_id == 44"
  902. >
  903. </DialysisPrintOrderFortyFour>
  904. <DialysisPrintOrderFortyFive
  905. v-bind:childResponse="childResponse"
  906. v-if="org_template_info.template_id == 45"
  907. >
  908. </DialysisPrintOrderFortyFive>
  909. </div>
  910. </el-container>
  911. </div>
  912. </div>
  913. </template>
  914. <script>
  915. import {
  916. getDialysisRecordInitData,
  917. getDialysisSchedules
  918. } from "@/api/dialysis_record";
  919. import { parseTime } from "@/utils";
  920. import { getDialysisRecord } from "@/api/dialysis";
  921. import { getDataConfig } from "@/utils/data";
  922. import { jsGetAge, uParseTime } from "@/utils/tools";
  923. import LabelBox from "./printItem/LabelBox";
  924. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  925. import DialysisPrintOrderOne from "./template/dialysisPrintOrderOne";
  926. import DialysisPrintOrderTwo from "./template/dialysisPrintOrderTwo";
  927. import DialysisPrintOrderThree from "./template/dialysisPrintOrderThree";
  928. import DialysisPrintOrderFour from "./template/DialysisPrintOrderFour";
  929. import DialysisPrintOrderFive from "./template/DialysisPrintOrderFive";
  930. import DialysisPrintOrderSix from "./template/DialysisPrintOrderSix";
  931. import DialysisPrintOrderSeven from "./template/DialysisPrintOrderSeven";
  932. import DialysisPrintOrderEight from "./template/DialysisPrintOrderEight";
  933. import DialysisPrintOrderNine from "./template/DialysisPrintOrderNine";
  934. import print from "print-js";
  935. import DialysisPrintOrderTen from "./template/DialysisPrintOrderTen";
  936. import DialysisPrintOrderEleven from "./template/DialysisPrintOrderEleven";
  937. import DialysisPrintOrderTwelve from "./template/DialysisPrintOrderTwelve";
  938. import DialysisPrintOrderThirteen from "./template/DialysisPrintOrderThirteen";
  939. import DialysisPrintOrderFourteen from "./template/DialysisPrintOrderFourteen";
  940. import DialysisPrintOrderFifteen from "./template/DialysisPrintOrderFifteen";
  941. import DialysisPrintOrderSixteen from "./template/DialysisPrintOrderSixteen";
  942. import DialysisPrintOrderSeventeen from "./template/DialysisPrintOrderSeventeen";
  943. import DialysisPrintOrderEighteen from "./template/DialysisPrintOrderEighteen";
  944. import DialysisPrintOrderNineteen from "./template/DialysisPrintOrderNineteen";
  945. import DialysisPrintOrderTwenty from "./template/DialysisPrintOrderTwenty";
  946. import DialysisPrintOrderTwentyOne from "./template/DialysisPrintOrderTwentyOne";
  947. import DialysisPrintOrderTwentyTwo from "./template/DialysisPrintOrderTwentyTwo";
  948. import DialysisPrintOrderTwentyThree from "./template/DialysisPrintOrderTwentyThree";
  949. import DialysisPrintOrderTwentyFour from "./template/DialysisPrintOrderTwentyFour";
  950. import DialysisPrintOrderTwentyFive from "./template/DialysisPrintOrderTwentyFive";
  951. import DialysisPrintOrderTwentySix from "./template/DialysisPrintOrderTwentySix";
  952. import DialysisPrintOrderTwentySeven from "./template/DialysisPrintOrderTwentySeven";
  953. import DialysisPrintOrderTwentyEight from "./template/DialysisPrintOrderTwentyEight";
  954. import DialysisPrintOrderTwentyNine from "./template/DialysisPrintOrderTwentyNine";
  955. import DialysisPrintOrderThirty from "./template/DialysisPrintOrderThirty";
  956. import DialysisPrintOrderThirtyOne from "./template/DialysisPrintOrderThirtyOne";
  957. import DialysisPrintOrderThirtyTwo from "./template/DialysisPrintOrderThirtyTwo";
  958. import DialysisPrintOrderThirtyThree from "./template/DialysisPrintOrderThirtyThree";
  959. import DialysisPrintOrderThirtyFour from "./template/DialysisPrintOrderThirtyFour";
  960. import DialysisPrintOrderThirtyFive from "./template/DialysisPrintOrderThirtyFive";
  961. import DialysisPrintOrderThirtySix from "./template/DialysisPrintOrderThirtySix";
  962. import DialysisPrintOrderThirtySeven from "./template/DialysisPrintOrderThirtySeven";
  963. import DialysisPrintOrderThirtyEight from "./template/DialysisPrintOrderThirtyEight";
  964. import DialysisPrintOrderThirtyNine from "./template/DialysisPrintOrderThirtyNine";
  965. import DialysisPrintOrderForty from "./template/DialysisPrintOrderForty";
  966. import DialysisPrintOrderFortyOne from "./template/DialysisPrintOrderFortyOne";
  967. import DialysisPrintOrderFortyTwo from "./template/DialysisPrintOrderFortyTwo";
  968. import DialysisPrintOrderFortyThree from "./template/DialysisPrintOrderFortyThree";
  969. import DialysisPrintOrderFortyFour from "./template/DialysisPrintOrderFortyFour";
  970. import DialysisPrintOrderFortyFive from "./template/DialysisPrintOrderFortyFive";
  971. import DialysisPrintOrderFortySix from "./template/DialysisPrintOrderFortySix"
  972. export default {
  973. name: "dialysisPrintOrder",
  974. components: {
  975. DialysisPrintOrderFortySix,
  976. DialysisPrintOrderFortyFive,
  977. DialysisPrintOrderFortyFour,
  978. DialysisPrintOrderFortyThree,
  979. DialysisPrintOrderFortyTwo,
  980. DialysisPrintOrderFortyOne,
  981. DialysisPrintOrderForty,
  982. DialysisPrintOrderThirtyNine,
  983. DialysisPrintOrderThirtyEight,
  984. DialysisPrintOrderThirtySeven,
  985. DialysisPrintOrderThirtySix,
  986. DialysisPrintOrderThirtyFive,
  987. DialysisPrintOrderThirtyFour,
  988. DialysisPrintOrderThirtyThree,
  989. DialysisPrintOrderThirtyTwo,
  990. DialysisPrintOrderThirtyOne,
  991. DialysisPrintOrderThirty,
  992. DialysisPrintOrderTwentyNine,
  993. DialysisPrintOrderTwentyEight,
  994. DialysisPrintOrderTwentySeven,
  995. DialysisPrintOrderTwentySix,
  996. DialysisPrintOrderTwentyFive,
  997. DialysisPrintOrderTwentyFour,
  998. DialysisPrintOrderTwentyThree,
  999. DialysisPrintOrderTwentyTwo,
  1000. DialysisPrintOrderTwentyOne,
  1001. DialysisPrintOrderTwenty,
  1002. DialysisPrintOrderNineteen,
  1003. DialysisPrintOrderEighteen,
  1004. DialysisPrintOrderSeventeen,
  1005. DialysisPrintOrderSixteen,
  1006. DialysisPrintOrderFifteen,
  1007. DialysisPrintOrderFourteen,
  1008. DialysisPrintOrderThirteen,
  1009. DialysisPrintOrderTwelve,
  1010. DialysisPrintOrderEleven,
  1011. DialysisPrintOrderTen,
  1012. DialysisPrintOrderOne,
  1013. DialysisPrintOrderTwo,
  1014. DialysisPrintOrderThree,
  1015. DialysisPrintOrderFour,
  1016. DialysisPrintOrderFive,
  1017. DialysisPrintOrderSix,
  1018. DialysisPrintOrderSeven,
  1019. DialysisPrintOrderEight,
  1020. DialysisPrintOrderNine,
  1021. LabelBox,
  1022. BreadCrumb
  1023. },
  1024. data() {
  1025. return {
  1026. crumbs: [
  1027. { path: false, name: "透析管理" },
  1028. { path: false, name: "打印单" }
  1029. ],
  1030. childResponse: {},
  1031. operators: [],
  1032. adminUser: [],
  1033. check: {},
  1034. dialysisOrder: {
  1035. DeviceNumber: []
  1036. },
  1037. operatorMaps: {},
  1038. complications: [
  1039. "低血压",
  1040. "高血压",
  1041. "心律失常",
  1042. "头晕",
  1043. "头痛",
  1044. "呕吐",
  1045. "抽搐",
  1046. "出血",
  1047. "心衰",
  1048. "腹痛"
  1049. ],
  1050. jilurow: 0,
  1051. advice_jilurow: 0,
  1052. loading: false,
  1053. orgname: "",
  1054. patientInfo_gender_1: false,
  1055. patientInfo_gender_2: false,
  1056. patientInfo_source_2: false,
  1057. patientInfo_source_1: false,
  1058. modeOptions: {},
  1059. replacementWays: [],
  1060. perfusionApparatus: [],
  1061. anticoagulantsConfit: {},
  1062. bloodAccessParOpera: {},
  1063. dialysateFormulationOptions: {},
  1064. queryParams: {
  1065. xtdate: "",
  1066. xtno: ""
  1067. },
  1068. patientInfo: {
  1069. birth: "",
  1070. age: "",
  1071. DialysisSchedule: {
  1072. device_number: { number: "" },
  1073. device_zone: { name: "" }
  1074. },
  1075. gender: 0
  1076. },
  1077. predialysis: {
  1078. score: "",
  1079. internal_fistula: "",
  1080. internal_fistula_skin: "",
  1081. catheter: "",
  1082. blood_access_part_opera_name: ""
  1083. },
  1084. afterdialysis: {
  1085. complications_index: ""
  1086. },
  1087. prescription: {
  1088. dialysate_formulation_name: "",
  1089. device: {}
  1090. },
  1091. advices: [],
  1092. users: [],
  1093. monitors: [],
  1094. summary: {},
  1095. receiverTreatmentAccess: {},
  1096. org_template_info: {},
  1097. doctor_advices: [],
  1098. advice_groups: [],
  1099. AlPanel: {
  1100. id: 0,
  1101. name: "",
  1102. type: 1,
  1103. shouji: 2,
  1104. weichi: 2,
  1105. zongliang: 2,
  1106. gaimingcheng: -1,
  1107. gaijiliang: -1,
  1108. shouji_unit: "mg",
  1109. weichi_unit: "mg/h",
  1110. zongliang_unit: "mg",
  1111. gaimingcheng_unit: "",
  1112. gaijiliang_unit: ""
  1113. },
  1114. //
  1115. tableData: [],
  1116. selected_date: new Date(),
  1117. // search_input 和 search_keyword,使输入关键字时不会经常刷新 filtedSchedules
  1118. search_keyword: '', // 确定用于搜索的关键字
  1119. search_input: '', // 输入中的关键字
  1120. patient_state:[
  1121. {value: 0,label: '全部'},
  1122. {value: 1,label: '已签到'},
  1123. {value: 2,label: '未签到'},
  1124. {value: 3,label: '已上机'},
  1125. {value: 4,label: '已下机'},
  1126. ],
  1127. patientStateVal: 0,
  1128. treat_state:[
  1129. {value: 0,label: '全部'},
  1130. {value: 1,label: '待开处方'},
  1131. {value: 2,label: '待开小结'},
  1132. ],
  1133. treatStateVal: 0,
  1134. schedule_options:[
  1135. {value: 0,label: '全部'},
  1136. {value: 1,label: '上午'},
  1137. {value: 2,label: '下午'},
  1138. {value: 3,label: '晚上'},
  1139. ],
  1140. scheduleStateVal: 0,
  1141. zone_options:[
  1142. { id: 0, text: '全部' }
  1143. ],
  1144. zoneVal:0,
  1145. };
  1146. },
  1147. methods: {
  1148. getAdminUser(id) {
  1149. if (id == 0) {
  1150. return "";
  1151. }
  1152. if (id == undefined) {
  1153. return "";
  1154. }
  1155. for (let i = 0; i < this.adminUser.length; i++) {
  1156. if (this.adminUser[i].id == id) {
  1157. return this.adminUser[i].name;
  1158. }
  1159. }
  1160. },
  1161. getTime(value, temp) {
  1162. if (value == 0) {
  1163. return "";
  1164. }
  1165. if (value != undefined) {
  1166. return uParseTime(value, temp);
  1167. }
  1168. return "";
  1169. },
  1170. printThisPage() {
  1171. var ptime = Math.round(new Date().getTime() / 1000);
  1172. this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
  1173. const style =
  1174. '@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;}';
  1175. const style2 =
  1176. '@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;} .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}';
  1177. const style3 =
  1178. '@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%;}';
  1179. // const style3 =
  1180. // '@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;}';
  1181. //
  1182. const style5 =
  1183. '@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;}}';
  1184. const style6 =
  1185. '@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;}';
  1186. const style7 =
  1187. '@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: 18px;}.dialysis-print-order .print-table { width: 100%; text-align: center; border-collapse: collapse; line-height: 28px; font-size: 18px;}.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: 18px; height: 18px; 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: 19px;}.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;}}';
  1188. const style8 =
  1189. '@media print {.dialysis-print-order{width:960px;margin:0 auto;font-size:10px;}.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:10px}.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;}.widthLength25{width: 25%;}.lineHeight{line-height: 20px;display: flex;justify-content: space-between;}';
  1190. const style9 =
  1191. '@media print {#dialysis-print-box-1{margin:0 auto;}.dialysis-print-order{width:920px;margin:0 10px;font-size:10px;}.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: 940px;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;}@page {margin-top:5px;}.table-box1 tr {border-bottom: 1px solid #000;}';
  1192. const style10 =
  1193. '@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:40px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:40px;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;line-height:35px} .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;}@page {margin-left:30px;margin-right:40px;}';
  1194. if (this.org_template_info.template_id == 1) {
  1195. printJS({
  1196. printable: "dialysis-print-box",
  1197. type: "html",
  1198. style: style,
  1199. scanStyles: false
  1200. });
  1201. } else if (
  1202. this.org_template_info.template_id == 2 ||
  1203. this.org_template_info.template_id == 0
  1204. ) {
  1205. printJS({
  1206. printable: "dialysis-print-box-1",
  1207. type: "html",
  1208. style: style2,
  1209. scanStyles: false
  1210. });
  1211. } else if (this.org_template_info.template_id == 3) {
  1212. printJS({
  1213. printable: "dialysis-print-box",
  1214. type: "html",
  1215. style: style,
  1216. scanStyles: false
  1217. });
  1218. } else if (this.org_template_info.template_id == 4) {
  1219. printJS({
  1220. printable: "dialysis-print-box",
  1221. type: "html",
  1222. style: style,
  1223. scanStyles: false
  1224. });
  1225. } else if (this.org_template_info.template_id == 5) {
  1226. printJS({
  1227. printable: "dialysis-print-box-1",
  1228. type: "html",
  1229. style: style2,
  1230. scanStyles: false
  1231. });
  1232. } else if (
  1233. this.org_template_info.template_id == 6 ||
  1234. this.org_template_info.template_id == 10 ||
  1235. this.org_template_info.template_id == 11
  1236. ) {
  1237. printJS({
  1238. printable: "dialysis-print-box-1",
  1239. type: "html",
  1240. style: style2,
  1241. scanStyles: false
  1242. });
  1243. } else if (this.org_template_info.template_id == 7) {
  1244. printJS({
  1245. printable: "dialysis-print-box",
  1246. type: "html",
  1247. style: style,
  1248. scanStyles: false
  1249. });
  1250. } else if (this.org_template_info.template_id == 8) {
  1251. printJS({
  1252. printable: "dialysis-print-box",
  1253. type: "html",
  1254. style: style,
  1255. scanStyles: false
  1256. });
  1257. } else if (this.org_template_info.template_id == 9 || this.org_template_info.template_id==25) {
  1258. printJS({
  1259. printable: "dialysis-print-box",
  1260. type: "html",
  1261. style: style5,
  1262. scanStyles: false
  1263. });
  1264. } else if (this.org_template_info.template_id == 12) {
  1265. printJS({
  1266. printable: "dialysis-print-box",
  1267. type: "html",
  1268. style: style,
  1269. scanStyles: false
  1270. });
  1271. } else if (this.org_template_info.template_id == 13) {
  1272. printJS({
  1273. printable: "dialysis-print-box-1",
  1274. type: "html",
  1275. style: style3,
  1276. scanStyles: false
  1277. });
  1278. } else if (this.org_template_info.template_id == 14){
  1279. printJS({
  1280. printable: "dialysis-print-box",
  1281. type: "html",
  1282. style: style,
  1283. scanStyles: false
  1284. });
  1285. } else if (this.org_template_info.template_id == 15){
  1286. printJS({
  1287. printable: "dialysis-print-box",
  1288. type: "html",
  1289. style: style,
  1290. scanStyles: false
  1291. });
  1292. } else if (this.org_template_info.template_id == 16){
  1293. printJS({
  1294. printable: "dialysis-print-box",
  1295. type: "html",
  1296. style: style,
  1297. scanStyles: false
  1298. });
  1299. } else if (this.org_template_info.template_id == 17) {
  1300. printJS({
  1301. printable: "dialysis-print-box",
  1302. type: "html",
  1303. style: style6,
  1304. scanStyles: false
  1305. });
  1306. } else if (this.org_template_info.template_id == 18) {
  1307. printJS({
  1308. printable: "dialysis-print-box",
  1309. type: "html",
  1310. style: style,
  1311. scanStyles: false
  1312. });
  1313. } else if (this.org_template_info.template_id == 19) {
  1314. printJS({
  1315. printable: "dialysis-print-box-1",
  1316. type: "html",
  1317. style: style2,
  1318. scanStyles: false
  1319. });
  1320. } else if (this.org_template_info.template_id == 20) {
  1321. printJS({
  1322. printable: "dialysis-print-box",
  1323. type: "html",
  1324. style: style,
  1325. scanStyles: false
  1326. });
  1327. } else if (this.org_template_info.template_id == 21) {
  1328. printJS({
  1329. printable: "dialysis-print-box",
  1330. type: "html",
  1331. style: style,
  1332. scanStyles: false
  1333. });
  1334. } else if (this.org_template_info.template_id == 22) {
  1335. printJS({
  1336. printable: "dialysis-print-box-1",
  1337. type: "html",
  1338. style: style2,
  1339. scanStyles: false
  1340. });
  1341. } else if (this.org_template_info.template_id == 23){
  1342. printJS({
  1343. printable: "dialysis-print-box",
  1344. type: "html",
  1345. style: style,
  1346. scanStyles: false
  1347. });
  1348. } else if (this.org_template_info.template_id == 24){
  1349. printJS({
  1350. printable: "dialysis-print-box",
  1351. type: "html",
  1352. style: style,
  1353. scanStyles: false
  1354. });
  1355. } else if (this.org_template_info.template_id == 26) {
  1356. printJS({
  1357. printable: "dialysis-print-box",
  1358. type: "html",
  1359. style: style,
  1360. scanStyles: false
  1361. });
  1362. } else if (this.org_template_info.template_id == 27) {
  1363. printJS({
  1364. printable: "dialysis-print-box",
  1365. type: "html",
  1366. style: style,
  1367. scanStyles: false
  1368. });
  1369. } else if (this.org_template_info.template_id == 28) {
  1370. printJS({
  1371. printable: "dialysis-print-box",
  1372. type: "html",
  1373. style: style7,
  1374. scanStyles: false
  1375. });
  1376. } else if (this.org_template_info.template_id == 29) {
  1377. printJS({
  1378. printable: "dialysis-print-box",
  1379. type: "html",
  1380. style: style,
  1381. scanStyles: false
  1382. });
  1383. } else if (this.org_template_info.template_id == 30) {
  1384. printJS({
  1385. printable: "dialysis-print-box",
  1386. type: "html",
  1387. style: style,
  1388. scanStyles: false
  1389. });
  1390. } else if (this.org_template_info.template_id == 31) {
  1391. printJS({
  1392. printable: "dialysis-print-box-1",
  1393. type: "html",
  1394. style: style3,
  1395. scanStyles: false
  1396. });
  1397. } else if (this.org_template_info.template_id == 32) {
  1398. printJS({
  1399. printable: "dialysis-print-box",
  1400. type: "html",
  1401. style: style5,
  1402. scanStyles: false
  1403. });
  1404. } else if (this.org_template_info.template_id == 33) {
  1405. printJS({
  1406. printable: "dialysis-print-box-1",
  1407. type: "html",
  1408. style: style2,
  1409. scanStyles: false
  1410. });
  1411. } else if (this.org_template_info.template_id == 34) {
  1412. printJS({
  1413. printable: "dialysis-print-box-1",
  1414. type: "html",
  1415. style: style2,
  1416. scanStyles: false
  1417. });
  1418. } else if (this.org_template_info.template_id == 35) {
  1419. printJS({
  1420. printable: "dialysis-print-box",
  1421. type: "html",
  1422. style: style,
  1423. scanStyles: false
  1424. });
  1425. } else if (this.org_template_info.template_id == 36) {
  1426. printJS({
  1427. printable: "dialysis-print-box-1",
  1428. type: "html",
  1429. style: style,
  1430. scanStyles: false
  1431. });
  1432. } else if (this.org_template_info.template_id == 37) {
  1433. printJS({
  1434. printable: "dialysis-print-box",
  1435. type: "html",
  1436. style: style,
  1437. scanStyles: false
  1438. });
  1439. } else if (this.org_template_info.template_id == 38) {
  1440. printJS({
  1441. printable: "dialysis-print-box",
  1442. type: "html",
  1443. style: style8,
  1444. scanStyles: false
  1445. });
  1446. } else if (this.org_template_info.template_id == 39) {
  1447. printJS({
  1448. printable: "dialysis-print-box",
  1449. type: "html",
  1450. style: style3,
  1451. scanStyles: false
  1452. });
  1453. } else if (this.org_template_info.template_id == 40) {
  1454. printJS({
  1455. printable: "dialysis-print-box",
  1456. type: "html",
  1457. style: style5,
  1458. scanStyles: false
  1459. });
  1460. } else if (this.org_template_info.template_id == 41){
  1461. printJS({
  1462. printable: "dialysis-print-box-1",
  1463. type: "html",
  1464. style: style9,
  1465. scanStyles: false
  1466. });
  1467. } else if (this.org_template_info.template_id == 42) {
  1468. printJS({
  1469. printable: "dialysis-print-box",
  1470. type: "html",
  1471. style: style10,
  1472. scanStyles: false
  1473. });
  1474. } else if (this.org_template_info.template_id == 43) {
  1475. printJS({
  1476. printable: "dialysis-print-box-1",
  1477. type: "html",
  1478. style: style2,
  1479. scanStyles: false
  1480. });
  1481. } else if (this.org_template_info.template_id == 44){
  1482. printJS({
  1483. printable: "dialysis-print-box-1",
  1484. type: "html",
  1485. style: style9,
  1486. scanStyles: false
  1487. });
  1488. } else if (this.org_template_info.template_id == 45) {
  1489. printJS({
  1490. printable: "dialysis-print-box",
  1491. type: "html",
  1492. style: style,
  1493. scanStyles: false
  1494. });
  1495. }
  1496. },
  1497. printThisOnePage() {
  1498. var ptime = Math.round(new Date().getTime() / 1000);
  1499. this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
  1500. const style =
  1501. '@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;}';
  1502. const style2 =
  1503. '@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;}';
  1504. if (this.org_template_info.template_id == 1) {
  1505. printJS({
  1506. printable: "dialysis-print-box",
  1507. type: "html",
  1508. style: style,
  1509. scanStyles: false
  1510. });
  1511. } else if (
  1512. this.org_template_info.template_id == 2 ||
  1513. this.org_template_info.template_id == 0 ||
  1514. this.org_template_info.template_id == 5 ||
  1515. this.org_template_info.template_id == 22 ||
  1516. this.org_template_info.template_id == 33
  1517. ) {
  1518. printJS({
  1519. printable: "dialysis-print-box-1-1",
  1520. type: "html",
  1521. style: style2,
  1522. scanStyles: false
  1523. });
  1524. } else if(this.org_template_info.template_id == 14){
  1525. printJS({
  1526. printable: "new-dialysis-1",
  1527. type: "html",
  1528. style: style,
  1529. scanStyles: false
  1530. });
  1531. } else if(this.org_template_info.template_id == 21){
  1532. printJS({
  1533. printable: "new-dialysis-1",
  1534. type: "html",
  1535. style: style,
  1536. scanStyles: false
  1537. });
  1538. } else if(this.org_template_info.template_id == 27){
  1539. printJS({
  1540. printable: "new-dialysis-1",
  1541. type: "html",
  1542. style: style,
  1543. scanStyles: false
  1544. });
  1545. } else if(this.org_template_info.template_id == 36){
  1546. printJS({
  1547. printable: "dialysis-print-box-1-1",
  1548. type: "html",
  1549. style: style,
  1550. scanStyles: false
  1551. });
  1552. }
  1553. },
  1554. printThisTwoPage() {
  1555. var ptime = Math.round(new Date().getTime() / 1000);
  1556. this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
  1557. const style =
  1558. '@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;}';
  1559. const style2 =
  1560. '@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;}';
  1561. if (this.org_template_info.template_id == 1) {
  1562. printJS({
  1563. printable: "dialysis-print-box",
  1564. type: "html",
  1565. style: style,
  1566. scanStyles: false
  1567. });
  1568. } else if (
  1569. this.org_template_info.template_id == 2 ||
  1570. this.org_template_info.template_id == 0 ||
  1571. this.org_template_info.template_id == 5 ||
  1572. this.org_template_info.template_id == 22 ||
  1573. this.org_template_info.template_id == 33
  1574. ) {
  1575. printJS({
  1576. printable: "dialysis-print-box-1-2",
  1577. type: "html",
  1578. style: style2,
  1579. scanStyles: false
  1580. });
  1581. }else if(this.org_template_info.template_id == 14){
  1582. printJS({
  1583. printable: "new-dialysis-2",
  1584. type: "html",
  1585. style: style,
  1586. scanStyles: false
  1587. });
  1588. } else if(this.org_template_info.template_id == 21){
  1589. printJS({
  1590. printable: "new-dialysis-2",
  1591. type: "html",
  1592. style: style,
  1593. scanStyles: false
  1594. });
  1595. } else if(this.org_template_info.template_id == 27){
  1596. printJS({
  1597. printable: "new-dialysis-2",
  1598. type: "html",
  1599. style: style,
  1600. scanStyles: false
  1601. });
  1602. } else if(this.org_template_info.template_id == 36){
  1603. printJS({
  1604. printable: "dialysis-print-box-1-2",
  1605. type: "html",
  1606. style: style,
  1607. scanStyles: false
  1608. });
  1609. }
  1610. },
  1611. getNumber() {
  1612. if (this.dialysisOrder != null) {
  1613. return (
  1614. this.patientInfo.DialysisSchedule.device_zone.name +
  1615. this.dialysisOrder.DeviceNumber.number
  1616. );
  1617. } else {
  1618. return (
  1619. this.patientInfo.DialysisSchedule.device_zone.name +
  1620. this.patientInfo.DialysisSchedule.device_number.number
  1621. );
  1622. }
  1623. },
  1624. getXuserName(id) {
  1625. if (id <= 0) {
  1626. return "";
  1627. }
  1628. var name = "";
  1629. if (this.users == null || typeof this.users.length === "undefined") {
  1630. return name;
  1631. }
  1632. var leng = this.users.length;
  1633. if (leng == 0) {
  1634. return name;
  1635. }
  1636. for (let index = 0; index < leng; index++) {
  1637. if (this.users[index].id == id) {
  1638. name = this.users[index].name;
  1639. break;
  1640. }
  1641. }
  1642. return name;
  1643. },
  1644. setAdminUserES(id) {
  1645. console.log(id);
  1646. if (id == 0) {
  1647. return "";
  1648. }
  1649. if (id in this.operatorMaps) {
  1650. return this.operatorMaps[id].url;
  1651. } else {
  1652. return "";
  1653. }
  1654. },
  1655. modeName(mode_id) {
  1656. return typeof this.modeOptions[mode_id] !== "undefined" &&
  1657. typeof this.modeOptions[mode_id].name !== "undefined"
  1658. ? this.modeOptions[mode_id].name
  1659. : "";
  1660. },
  1661. getDialysisRecord() {
  1662. this.loading = true;
  1663. getDialysisRecord(this.queryParams).then(response => {
  1664. if (response.data.state == 1) {
  1665. this.childResponse = response;
  1666. this.org_template_info = response.data.data.org_template_info;
  1667. this.loading = false;
  1668. // this.adminUser = response.data.data.users
  1669. // this.users = response.data.data.users
  1670. // this.patientInfo = response.data.data.patientInfo
  1671. // this.patientInfo.birth = uParseTime(this.patientInfo.birthday, '{y}-{m}-{d}')
  1672. // // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
  1673. // if (response.data.data.patientInfo.first_dialysis_date != 0) {
  1674. // this.patientInfo.first_dialysis_date = uParseTime(response.data.data.patientInfo.first_dialysis_date, '{y}-{m}-{d}')
  1675. // } else {
  1676. // this.patientInfo.first_dialysis_date = ''
  1677. // }
  1678. // this.check = response.data.data.check
  1679. // this.predialysis = response.data.data.PredialysisEvaluation
  1680. // this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(this.predialysis.blood_access_part_opera_id)
  1681. // this.afterdialysis = response.data.data.AssessmentAfterDislysis
  1682. // this.operators = response.data.data.operators
  1683. // this.dialysisOrder = response.data.data.dialysisOrder === null ? null : response.data.data.dialysisOrder
  1684. // if (this.operators.length > 0) {
  1685. // var operatorsLen = this.operators.length
  1686. // for (var index = 0; index < operatorsLen; index++) {
  1687. // this.$set(this.operatorMaps, this.operators[index].creator, this.operators[index])
  1688. // }
  1689. // }
  1690. // this.afterdialysis.txqnx = -1
  1691. // if (this.afterdialysis.cruor.indexOf('0度') > -1) {
  1692. // this.afterdialysis.txqnx = 0
  1693. // }
  1694. // if (this.afterdialysis.cruor.indexOf('Ⅰ度') > -1) {
  1695. // this.afterdialysis.txqnx = 1
  1696. // }
  1697. // if (this.afterdialysis.cruor.indexOf('Ⅱ度') > -1) {
  1698. // this.afterdialysis.txqnx = 2
  1699. // }
  1700. // if (this.afterdialysis.cruor.indexOf('Ⅲ度') > -1) {
  1701. // this.afterdialysis.txqnx = 3
  1702. // }
  1703. // this.afterdialysis.complications = this.afterdialysis.complication.split(',')
  1704. // this.afterdialysis.complications_other = []
  1705. // this.afterdialysis.complications_index = []
  1706. // var acllen = this.afterdialysis.complications.length
  1707. // for (let index = 0; index < acllen; index++) {
  1708. // if (this.complications.indexOf(this.afterdialysis.complications[index]) >= 0) {
  1709. // this.afterdialysis.complications_index.push(this.afterdialysis.complications[index])
  1710. // } else if (this.complications.indexOf(this.afterdialysis.complications[index]) < 0 && this.afterdialysis.complications_other.indexOf(this.afterdialysis.complications[index]) < 0) {
  1711. // this.afterdialysis.complications_other.push(this.afterdialysis.complications[index])
  1712. // }
  1713. // }
  1714. // this.afterdialysis.complications_other = this.afterdialysis.complications_other.join(',')
  1715. // this.prescription = response.data.data.dialysisPrescription
  1716. // this.receiverTreatmentAccess = response.data.data.receiverTreatmentAccess
  1717. // this.prescription.mode = this.modeName(this.prescription.mode_id)
  1718. // var rwLen = this.replacementWays.length
  1719. // this.prescription.replacement = ''
  1720. // for (let index = 0; index < rwLen; index++) {
  1721. // if (this.replacementWays[index].id == this.prescription.replacement_way) {
  1722. // this.prescription.replacement = this.replacementWays[index].name
  1723. // break
  1724. // }
  1725. // }
  1726. // this.prescription.dialysate_formulation_name = this.dialysateFormulationName(this.prescription.dialysate_formulation)
  1727. // var paLen = this.perfusionApparatus.length
  1728. // this.prescription.perfusion_apparatus_name = ''
  1729. // for (let index = 0; index < paLen; index++) {
  1730. // if (this.perfusionApparatus[index].id == this.prescription.perfusion_apparatus) {
  1731. // this.prescription.perfusion_apparatus_name = this.perfusionApparatus[index].name
  1732. // break
  1733. // }
  1734. // }
  1735. // var acLen = this.anticoagulantsConfit.length
  1736. // var thisALID = this.prescription.anticoagulant
  1737. // this.prescription.anticoagulant_name = ''
  1738. // if (typeof (this.anticoagulantsConfit[thisALID]) !== 'undefined' && this.anticoagulantsConfit[thisALID] != null) {
  1739. // this.prescription.anticoagulant_name = this.anticoagulantsConfit[thisALID].name
  1740. // this.AlPanel = this.anticoagulantsConfit[thisALID]
  1741. // }
  1742. // this.advices = response.data.data.advices
  1743. // this.monitors = response.data.data.monitors
  1744. // this.summary = response.data.data.summary
  1745. // this.org_template_info = response.data.data.org_template_info
  1746. // if (this.monitors.length < 8) {
  1747. // var nl = 8 - this.monitors.length
  1748. // for (let index = 0; index < nl; index++) {
  1749. // this.monitors.push([])
  1750. // }
  1751. // }
  1752. // this.jilurow = this.monitors.length + 1
  1753. // this.advice_jilurow = this.advices.length + 1
  1754. // var childMap = {}
  1755. // for (const index in this.advices) {
  1756. // if (this.advices[index].parent_id == 0) {
  1757. // continue
  1758. // }
  1759. // if (!(this.advices[index].parent_id in childMap)) {
  1760. // childMap[this.advices[index].parent_id] = []
  1761. // }
  1762. // childMap[this.advices[index].parent_id].push(this.advices[index])
  1763. // }
  1764. // var advices = []
  1765. // for (const index in this.advices) {
  1766. // if (this.advices[index].parent_id > 0) {
  1767. // continue
  1768. // }
  1769. // var item = this.advices[index]
  1770. // if (item.id in childMap) {
  1771. // item.children = childMap[item.id]
  1772. // } else {
  1773. // item.children = []
  1774. // }
  1775. // advices.push(item)
  1776. // }
  1777. // var leftAdvice = []
  1778. // var rightAdvice = []
  1779. // var adlen = advices.length
  1780. // var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
  1781. // for (var i = 0; i < halfLen; i++) {
  1782. // leftAdvice.push(advices[i])
  1783. // rightAdvice.push(advices[i + halfLen])
  1784. // }
  1785. // if (halfLen < 5) {
  1786. // var nl = 5 - leftAdvice.length
  1787. // for (let index = 0; index < nl; index++) {
  1788. // leftAdvice.push([])
  1789. // }
  1790. // var nl = 5 - rightAdvice.length
  1791. // for (let index = 0; index < nl; index++) {
  1792. // rightAdvice.push([])
  1793. // }
  1794. // }
  1795. // this.advices = []
  1796. // for (var i = 0; i < halfLen; i++) {
  1797. // var item = []
  1798. // item.push(leftAdvice[i])
  1799. // item.push(rightAdvice[i])
  1800. // this.advices.push(item)
  1801. // }
  1802. // this.loading = false
  1803. // this.doctor_advices = response.data.data.advices == null ? [] : response.data.data.advices
  1804. // for (let index = 0; index < this.doctor_advices.length; index++) {
  1805. // this.doctor_advices[index]['isShow'] = 2
  1806. // }
  1807. // if (this.doctor_advices.length > 0) {
  1808. // var group = this.newAdviceGroupObject()
  1809. // var initGroupBlock = function(group, advice) {
  1810. // group.group_no = advice.groupno
  1811. // }
  1812. // for (let index = this.doctor_advices.length - 1; index >= 0; index--) {
  1813. // var new_advice_index = 0
  1814. // if ('children' in this.doctor_advices[index] && this.doctor_advices[index].children.length > 0) {
  1815. // new_advice_index = index + this.doctor_advices[index].children.length + 1
  1816. // var doctor_advice = {
  1817. // delivery_way: this.doctor_advices[index].delivery_way,
  1818. // execution_frequency: this.doctor_advices[index].execution_frequency,
  1819. // groupno: this.doctor_advices[index].groupno,
  1820. // id: this.doctor_advices[index].id,
  1821. // parent_id: this.doctor_advices[index].parent_id,
  1822. // children: this.doctor_advices[index].children,
  1823. // remark: this.doctor_advices[index].remark,
  1824. // execution_staff: this.doctor_advices[index].execution_staff,
  1825. // checker: this.doctor_advices[index].checker,
  1826. // advice_doctor: this.doctor_advices[index].advice_doctor,
  1827. // }
  1828. // doctor_advice['isShow'] = 1
  1829. // this.doctor_advices.splice(new_advice_index, 0, doctor_advice)
  1830. // // this.doctor_advices.push(doctor_advice)
  1831. // }
  1832. // }
  1833. // for (let index = 0; index < this.doctor_advices.length; index++) {
  1834. // const advice = this.doctor_advices[index]
  1835. // if (advice.groupno == 0) {
  1836. // // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
  1837. // if (advice.parent_id > 0) {
  1838. // if (this.advice_groups.length > 0) {
  1839. // var parent_group = this.advice_groups[
  1840. // this.advice_groups.length - 1
  1841. // ]
  1842. // if (parent_group.advices.length > 0) {
  1843. // if (parent_group.advices[0].id == advice.parent_id) {
  1844. // parent_group.advices.push(advice)
  1845. // }
  1846. // }
  1847. // }
  1848. // continue
  1849. // } else {
  1850. // if (group.group_no > 0) {
  1851. // this.advice_groups.push(group)
  1852. // group = this.newAdviceGroupObject()
  1853. // }
  1854. // initGroupBlock(group, advice)
  1855. // group.advices.push(advice)
  1856. // this.advice_groups.push(group)
  1857. // group = this.newAdviceGroupObject()
  1858. // continue
  1859. // }
  1860. // }
  1861. // if (group.group_no > 0 && group.group_no != advice.groupno) {
  1862. // this.advice_groups.push(group)
  1863. // group = this.newAdviceGroupObject()
  1864. // }
  1865. // if (group.group_no == 0) {
  1866. // initGroupBlock(group, advice)
  1867. // }
  1868. // if (group.group_no == advice.groupno) {
  1869. // group.advices.push(advice)
  1870. // }
  1871. // }
  1872. // if (group.group_no > 0) {
  1873. // // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
  1874. // this.advice_groups.push(group)
  1875. // }
  1876. // }
  1877. // console.log(this.advice_groups)
  1878. } else {
  1879. this.loading = false;
  1880. this.$message.error("请求数据失败");
  1881. return false;
  1882. }
  1883. });
  1884. },
  1885. bloodAccessParOperaName(id) {
  1886. if (id in this.bloodAccessParOpera) {
  1887. return this.bloodAccessParOpera[id].name;
  1888. }
  1889. return "";
  1890. },
  1891. dialysateFormulationName(id) {
  1892. if (id in this.dialysateFormulationOptions) {
  1893. return this.dialysateFormulationOptions[id].name;
  1894. }
  1895. return "";
  1896. },
  1897. getAge: function(val) {
  1898. if (
  1899. this.org_template_info.template_id == 2 ||
  1900. this.org_template_info.template_id == 0
  1901. ) {
  1902. if (val.age == 0) {
  1903. return jsGetAge(val.birth, "-");
  1904. } else {
  1905. return val.age;
  1906. }
  1907. } else {
  1908. return jsGetAge(val.birth, "-");
  1909. }
  1910. },
  1911. newAdviceGroupObject: function() {
  1912. return Object.assign(
  1913. {},
  1914. {
  1915. group_no: 0,
  1916. // advice_doctor: 0,
  1917. // start_time: 0,
  1918. advices: []
  1919. // exec_staff: 0,
  1920. // exec_time: 0,
  1921. // checker: 0,
  1922. }
  1923. );
  1924. },
  1925. //日期
  1926. handleScheduleDateChange: function(index) {
  1927. this.treatStateVal = 0
  1928. this.patientStateVal = 0
  1929. this.zoneVal = 0
  1930. this.scheduleStateVal = 0
  1931. this.search_keyword = this.search_input = ''
  1932. // this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
  1933. // zone: this.zone_selected,
  1934. // schedule_type: this.schedule_type_selected,
  1935. // schedule_date: this.selected_date,
  1936. // })
  1937. this.selected_date = index
  1938. this.$store.dispatch('SetSelectedDate', { selected_date: index })
  1939. this.requestDialysisSchedules()
  1940. },
  1941. //初始化数据
  1942. getInitData: function() {
  1943. getDialysisRecordInitData().then(rs => {
  1944. var resp = rs.data
  1945. if (resp.state == 1) {
  1946. var zones = resp.data.zones
  1947. var schedules = resp.data.schedules
  1948. var zone_options = [{ id: 0, text: '全部' }]
  1949. for (let z_i = 0; z_i < zones.length; z_i++) {
  1950. const zone = zones[z_i]
  1951. zone_options.push({ id: zone.id, text: zone.name })
  1952. }
  1953. this.zone_options = zone_options
  1954. // this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
  1955. this.arr = this.processedDialysisSchedules(schedules, this.zone_options)
  1956. this.requestDialysisSchedules()
  1957. // this.getData()
  1958. } else {
  1959. this.$message.error(resp.msg)
  1960. }
  1961. })
  1962. },
  1963. // 班次
  1964. handletimeType: function(index) {
  1965. this.scheduleStateVal = index
  1966. this.$store.dispatch('SetScheduleTypeSelected', { schedule_type_selected: index })
  1967. this.search_keyword = this.search_input = ''
  1968. this.getData()
  1969. },
  1970. //分区
  1971. handleZoneChange: function(index) {
  1972. this.zoneVal = index
  1973. this.$store.dispatch('SetZoneSelected', { zone_selected: index })
  1974. this.search_keyword = this.search_input = ''
  1975. this.getData()
  1976. },
  1977. //患者状态
  1978. handleStateChange: function(index) {
  1979. this.patientStateVal = index
  1980. this.$store.dispatch('SetPatientStateSelected', { patient_state_selected: index })
  1981. this.search_keyword = this.search_input = ''
  1982. this.getData()
  1983. },
  1984. handleTreatChange: function(index) {
  1985. this.treatStateVal = index
  1986. this.$store.dispatch('SetTreatStateSelected', { treat_state_selected: index })
  1987. this.search_keyword = this.search_input = ''
  1988. this.getData()
  1989. },
  1990. processedDialysisSchedules: function(schedules, zone_options) {
  1991. var zoneMap = {}
  1992. var scheduleMap = {}
  1993. for (let z_i = 0; z_i < zone_options.length; z_i++) {
  1994. const zone = zone_options[z_i]
  1995. if (zone.id == 0) {
  1996. continue
  1997. }
  1998. scheduleMap[zone.id] = []
  1999. }
  2000. for (let index = 0; index < schedules.length; index++) {
  2001. const schedule = schedules[index]
  2002. scheduleMap[schedule.device_number.zone.id].push(schedule)
  2003. }
  2004. var zone_schedules = []
  2005. for (let index = 0; index < zone_options.length; index++) {
  2006. const zone = zone_options[index]
  2007. if (zone.id == 0) {
  2008. continue
  2009. }
  2010. var schedules = scheduleMap[zone.id]
  2011. zone_schedules.push({ zone_id: zone.id, zone_name: zone.text, schedules: schedules })
  2012. }
  2013. return zone_schedules
  2014. },
  2015. searchAction: function() {
  2016. this.search_keyword = this.search_input
  2017. this.scheduleStateVal = 0
  2018. this.zoneVal = 0
  2019. this.treatStateVal = 0
  2020. this.patientStateVal = 0
  2021. if(this.search_input != ''){
  2022. let arr = []
  2023. this.filtedSchedules.map(item => {
  2024. arr.push(...item.schedules)
  2025. })
  2026. this.tableData = arr
  2027. }else{
  2028. this.getData()
  2029. }
  2030. },
  2031. requestDialysisSchedules: function() {
  2032. var ymd = parseTime(this.selected_date, '{y}-{m}-{d}')
  2033. getDialysisSchedules(ymd).then(rs => {
  2034. var resp = rs.data
  2035. if (resp.state == 1) {
  2036. var schedules = resp.data.schedules
  2037. this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
  2038. let newArr = []
  2039. this.zone_schedules.map(item => {
  2040. newArr.push(...item.schedules)
  2041. })
  2042. this.tableData = newArr
  2043. this.getData()
  2044. } else {
  2045. this.$message.error(resp.msg)
  2046. }
  2047. })
  2048. },
  2049. changePatient(schedual){
  2050. console.log(schedual)
  2051. var xtdate = parseTime(schedual.schedule_date, '{y}-{m}-{d}')
  2052. this.$router.push(
  2053. '/dialysis/print?xtdate=' + xtdate + '&xtno=' + schedual.patient.dialysis_no
  2054. )
  2055. // this.patient_id = schedual.patient_id;
  2056. // this.date = schedual.schedule_date;
  2057. // // this.getScheduleDetail();
  2058. // // this.getLongAdvice();
  2059. // var patient_id = schedual.patient_id;
  2060. // var date = schedual.schedule_date;
  2061. // this.$router.push({
  2062. // path: "/dialysis/details",
  2063. // query: {
  2064. // patient_id: patient_id,
  2065. // date: date,
  2066. // patient_name: schedual.patient.name
  2067. // }
  2068. // });
  2069. },
  2070. getData(){
  2071. let patientArr = []
  2072. patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
  2073. console.log('patientArr',patientArr)
  2074. let arr1 = []
  2075. if(this.patientStateVal == 0){
  2076. arr1 = patientArr
  2077. console.log(arr1)
  2078. }else if(this.patientStateVal == 1){
  2079. let arr = []
  2080. arr = patientArr
  2081. for (let i = 0; i <arr.length; i++) {
  2082. for (let j = 0; j < arr[i].schedules.length; j++) {
  2083. 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 == ''))) {
  2084. // 删除元素后改变i的值
  2085. arr[i].schedules.splice(j--, 1);
  2086. }
  2087. }
  2088. }
  2089. console.log("执行1",arr)
  2090. arr1 = arr
  2091. }else if(this.patientStateVal == 2){
  2092. let arr = []
  2093. arr = patientArr
  2094. for (let i = 0; i < arr.length; i++) {
  2095. for (let j = 0; j < arr[i].schedules.length; j++) {
  2096. 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))) {
  2097. // 删除元素后改变i的值
  2098. console.log('几次')
  2099. arr[i].schedules.splice(j--, 1);
  2100. }
  2101. }
  2102. }
  2103. console.log("执行2",arr)
  2104. arr1 = arr
  2105. }else if(this.patientStateVal == 3){
  2106. let arr = []
  2107. arr = patientArr
  2108. for (let i = 0; i <arr.length; i++) {
  2109. for (let j = 0; j < arr[i].schedules.length; j++) {
  2110. 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))) {
  2111. // 删除元素后改变i的值
  2112. arr[i].schedules.splice(j--, 1);
  2113. }
  2114. }
  2115. }
  2116. console.log("执行1",arr)
  2117. arr1 = arr
  2118. }else if(this.patientStateVal == 4){
  2119. let arr = []
  2120. arr = patientArr
  2121. for (let i = 0; i < arr.length; i++) {
  2122. for (let j = 0; j < arr[i].schedules.length; j++) {
  2123. 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))) {
  2124. // 删除元素后改变i的值
  2125. arr[i].schedules.splice(j--, 1);
  2126. }
  2127. }
  2128. }
  2129. console.log("执行2",arr)
  2130. arr1 = arr
  2131. }
  2132. let arr2 = []
  2133. if(this.treatStateVal == 0){
  2134. arr2 = JSON.parse(JSON.stringify(arr1))
  2135. }else if(this.treatStateVal == 1){
  2136. let arr = []
  2137. arr = JSON.parse(JSON.stringify(arr1))
  2138. for (let i = 0; i < arr.length; i++) {
  2139. for (let j = 0; j < arr[i].schedules.length; j++) {
  2140. 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)) {
  2141. // 删除元素后改变i的值
  2142. arr[i].schedules.splice(j--, 1);
  2143. }
  2144. }
  2145. }
  2146. arr2 = arr
  2147. }else if(this.treatStateVal == 2){
  2148. let arr = []
  2149. arr = JSON.parse(JSON.stringify(arr1))
  2150. for (let i = 0; i < arr.length; i++) {
  2151. for (let j = 0; j < arr[i].schedules.length; j++) {
  2152. if (arr[i].schedules.length > 0 && arr[i].schedules[j].treatment_summary != null && arr[i].schedules[j].treatment_summary.dialysis_summary != '') {
  2153. // 删除元素后改变i的值
  2154. arr[i].schedules.splice(j--, 1);
  2155. }
  2156. }
  2157. }
  2158. arr2 = arr
  2159. }
  2160. let arr3 = []
  2161. if(this.scheduleStateVal == 0){
  2162. arr3 = JSON.parse(JSON.stringify(arr2))
  2163. }else{
  2164. let arr = []
  2165. arr = JSON.parse(JSON.stringify(arr2))
  2166. for (let i = 0; i < arr.length; i++) {
  2167. for (let j = 0; j < arr[i].schedules.length; j++) {
  2168. if (this.scheduleStateVal != arr[i].schedules[j].schedule_type) {
  2169. // 删除元素后改变i的值
  2170. arr[i].schedules.splice(j--, 1);
  2171. }
  2172. }
  2173. }
  2174. arr3 = arr
  2175. console.log("上午",arr)
  2176. }
  2177. let arr4 = []
  2178. if(this.zoneVal == 0){
  2179. arr4 = JSON.parse(JSON.stringify(arr3))
  2180. }else{
  2181. let arr = []
  2182. arr = JSON.parse(JSON.stringify(arr3))
  2183. for (let i = 0; i < arr.length; i++) {
  2184. if (this.zoneVal != arr[i].zone_id) {
  2185. // 删除元素后改变i的值
  2186. arr.splice(i--, 1);
  2187. }
  2188. }
  2189. arr4 = arr
  2190. }
  2191. let newArr = []
  2192. arr4.map(item => {
  2193. newArr.push(...item.schedules)
  2194. })
  2195. this.tableData = newArr
  2196. console.log('table',this.tableData)
  2197. },
  2198. },
  2199. watch: {
  2200. "patientInfo.gender": function() {
  2201. if (this.patientInfo.gender == 1) {
  2202. this.patientInfo_gender_1 = true;
  2203. this.patientInfo_gender_2 = false;
  2204. } else if (this.patientInfo.gender == 2) {
  2205. this.patientInfo_gender_2 = true;
  2206. this.patientInfo_gender_1 = false;
  2207. } else {
  2208. this.patientInfo_gender_2 = false;
  2209. this.patientInfo_gender_1 = false;
  2210. }
  2211. },
  2212. "patientInfo.source": function() {
  2213. if (this.patientInfo.source == 1) {
  2214. this.patientInfo_source_1 = true;
  2215. this.patientInfo_source_2 = false;
  2216. } else if (this.patientInfo.source == 2) {
  2217. this.patientInfo_source_2 = true;
  2218. this.patientInfo_source_1 = false;
  2219. } else {
  2220. this.patientInfo_source_2 = false;
  2221. this.patientInfo_source_1 = false;
  2222. }
  2223. }
  2224. },
  2225. created() {
  2226. var schedule_type_selected = this.$store.getters.schedule_type_selected
  2227. var zone_selected = this.$store.getters.zone_selected
  2228. var patient_state_selected = this.$store.getters.patient_state_selected
  2229. var treat_state_selected = this.$store.getters.treat_state_selected
  2230. var selected_date = this.$store.getters.selected_date
  2231. if (schedule_type_selected) {
  2232. this.scheduleStateVal = schedule_type_selected.schedule_type_selected
  2233. }
  2234. if (zone_selected) {
  2235. this.zoneVal = zone_selected.zone_selected
  2236. }
  2237. if (patient_state_selected) {
  2238. this.patientStateVal = patient_state_selected.patient_state_selected
  2239. }
  2240. if (treat_state_selected) {
  2241. this.treatStateVal = treat_state_selected.treat_state_selected
  2242. }
  2243. if (selected_date.selected_date) {
  2244. this.selected_date = selected_date.selected_date
  2245. }
  2246. this.getInitData();
  2247. var xtuser = this.$store.getters.xt_user;
  2248. this.orgname = xtuser.org.org_name;
  2249. // this.orgname = "遂溪方济医院";
  2250. this.modeOptions = this.$store.getters.treatment_mode;
  2251. this.replacementWays = this.$store.getters.replacement_ways;
  2252. this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
  2253. this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
  2254. // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
  2255. var bloodAccessParOpera = getDataConfig(
  2256. "hemodialysis",
  2257. "vascular_access_desc"
  2258. );
  2259. for (var key in bloodAccessParOpera) {
  2260. this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
  2261. bloodAccessParOpera[key];
  2262. }
  2263. var dialysateFormulationOptions = getDataConfig(
  2264. "hemodialysis",
  2265. "dialysate_formulation"
  2266. );
  2267. for (var key in dialysateFormulationOptions) {
  2268. this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
  2269. dialysateFormulationOptions[key];
  2270. }
  2271. const xtdate = this.$route.query && this.$route.query.xtdate;
  2272. const xtno = this.$route.query && this.$route.query.xtno;
  2273. if (
  2274. typeof xtdate === "string" &&
  2275. xtdate.length > 0 &&
  2276. typeof xtno === "string" &&
  2277. xtno.length > 0
  2278. ) {
  2279. this.queryParams.xtdate = xtdate;
  2280. this.queryParams.xtno = xtno;
  2281. this.getDialysisRecord();
  2282. } else {
  2283. this.$message.error("参数不齐");
  2284. return false;
  2285. }
  2286. },
  2287. computed:{
  2288. filtedSchedules: function() {
  2289. var search_keyword = this.search_keyword
  2290. if (search_keyword.length > 0) {
  2291. var schedules = []
  2292. for (let o_i = 0; o_i < this.zone_schedules.length; o_i++) {
  2293. const scheduleInfo = this.zone_schedules[o_i]
  2294. var originSchedules = scheduleInfo.schedules
  2295. if (originSchedules.length == 0) {
  2296. continue
  2297. }
  2298. var filtedSchedules = []
  2299. for (let s_i = 0; s_i < originSchedules.length; s_i++) {
  2300. const schedule = originSchedules[s_i]
  2301. if (schedule.patient.name.indexOf(search_keyword) != -1) {
  2302. filtedSchedules.push(schedule)
  2303. // break
  2304. }
  2305. }
  2306. if (filtedSchedules.length > 0) {
  2307. schedules.push({ zone_id: scheduleInfo.zone_id, zone_name: scheduleInfo.zone_name, schedules: filtedSchedules })
  2308. }
  2309. }
  2310. return schedules
  2311. }
  2312. }
  2313. },
  2314. };
  2315. </script>
  2316. <style>
  2317. .dialysis-print-order {
  2318. width: 960px;
  2319. margin: 0 auto;
  2320. }
  2321. .dialysis-print-order .order-yy-name {
  2322. margin: auto;
  2323. text-align: center;
  2324. font-size: 20px;
  2325. letter-spacing: 5px;
  2326. }
  2327. .dialysis-print-order .order-title {
  2328. margin: auto;
  2329. font-weight: 600;
  2330. text-align: center;
  2331. font-size: 22px;
  2332. padding: 10px;
  2333. }
  2334. .dialysis-print-order .table-box {
  2335. width: 100%;
  2336. line-height: 23px;
  2337. font-size: 14px;
  2338. }
  2339. .dialysis-print-order .print-table {
  2340. width: 100%;
  2341. text-align: center;
  2342. border-collapse: collapse;
  2343. line-height: 40px;
  2344. font-size: 14px;
  2345. border-color: #000;
  2346. }
  2347. .dialysis-print-order .print-table-no {
  2348. width: 100%;
  2349. text-align: center;
  2350. border-collapse: collapse;
  2351. font-size: 14px;
  2352. }
  2353. .dialysis-print-order .under-line {
  2354. border-bottom: 1px solid #999;
  2355. width: 95%;
  2356. text-align: center;
  2357. margin-left: 2px;
  2358. }
  2359. .dialysis-print-order .title-box {
  2360. text-align: center;
  2361. font-size: 16px;
  2362. }
  2363. .dialysis-print-order .radio-lebel-box {
  2364. font-weight: 400;
  2365. cursor: pointer;
  2366. }
  2367. .dialysis-print-order .radio-no {
  2368. opacity: 0;
  2369. outline: none;
  2370. position: absolute;
  2371. margin: 0;
  2372. width: 0;
  2373. height: 0;
  2374. z-index: -1;
  2375. }
  2376. .dialysis-print-order .radio-inner {
  2377. white-space: nowrap;
  2378. cursor: pointer;
  2379. outline: none;
  2380. display: inline-block;
  2381. line-height: 1;
  2382. position: relative;
  2383. vertical-align: middle;
  2384. }
  2385. .dialysis-print-order .radio-fang {
  2386. display: inline-block;
  2387. position: relative;
  2388. border: 1px solid #000;
  2389. box-sizing: border-box;
  2390. width: 14px;
  2391. height: 14px;
  2392. background-color: #fff;
  2393. z-index: 1;
  2394. transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
  2395. background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
  2396. }
  2397. .dialysis-print-order .is-checked-radio::after {
  2398. content: "√";
  2399. font-size: 15px;
  2400. }
  2401. .dialysis-print-order .print-table-no tr td {
  2402. padding: 8px 5px;
  2403. line-height: 25px;
  2404. }
  2405. .dialysis-print-order .print-table tr td {
  2406. padding: 1px 1px;
  2407. /*line-height: 25px;*/
  2408. }
  2409. .es-img {
  2410. height: 30px;
  2411. }
  2412. .advice-name {
  2413. text-align: left;
  2414. }
  2415. .advice-children {
  2416. display: flex;
  2417. }
  2418. .title-box-pro {
  2419. border: 0 #fff;
  2420. line-height: 25px;
  2421. height: 25px;
  2422. text-align: left;
  2423. padding-left: 10px !important;
  2424. }
  2425. .title-box-pro-tr {
  2426. border: 0 #fff;
  2427. }
  2428. .text-align-left {
  2429. text-align: left !important;
  2430. padding-left: 10px !important;
  2431. font-size: 14px !important;
  2432. line-height: 25px;
  2433. }
  2434. .print-table-tr-new td {
  2435. line-height: 20px !important;
  2436. }
  2437. .border-top-solid {
  2438. border: solid 1px #000;
  2439. }
  2440. .print-template-two tr {
  2441. line-height: 30px;
  2442. }
  2443. .table-box1 {
  2444. border: 1px solid #000;
  2445. width: 100%;
  2446. line-height: 30px;
  2447. font-size: 14px;
  2448. border-collapse: collapse;
  2449. }
  2450. .table-box1 tr {
  2451. border-bottom: 1px solid #000;
  2452. }
  2453. </style>
  2454. <style lang="scss">
  2455. .newContainer{
  2456. .dialysisPage::-webkit-scrollbar {
  2457. height: 15px;
  2458. }
  2459. .el-date-editor{
  2460. .el-input__inner{
  2461. padding-right:0px;
  2462. }
  2463. }
  2464. .el-table td, .el-table th{
  2465. text-align: center;
  2466. }
  2467. }
  2468. .newContainer::-webkit-scrollbar{
  2469. height: 15px !important;
  2470. }
  2471. </style>