dialysisPrintOrder.vue 167KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557
  1. <template>
  2. <div class="main-contain">
  3. <div class="position">
  4. <bread-crumb :crumbs="crumbs" style="flex: 2;"></bread-crumb>
  5. <template>
  6. <div style="margin-right: 10px;">
  7. <el-button
  8. :loading="loading"
  9. size="small"
  10. @click="fanhui"
  11. type="primary"
  12. >返回</el-button>
  13. </div>
  14. </template>
  15. <template v-if="org_template_info.template_id == 1">
  16. <el-button
  17. :loading="loading"
  18. size="small"
  19. icon="el-icon-printer"
  20. @click="printThisPage"
  21. type="primary"
  22. >打印</el-button
  23. >
  24. </template>
  25. <template
  26. v-if="
  27. org_template_info.template_id == 2
  28. "
  29. >
  30. <div>
  31. <el-button
  32. :loading="loading"
  33. size="small"
  34. icon="el-icon-printer"
  35. @click="printThisPage"
  36. type="primary"
  37. >打印全部</el-button
  38. >
  39. <el-button
  40. :loading="loading"
  41. size="small"
  42. icon="el-icon-printer"
  43. @click="printThisOnePage"
  44. type="primary"
  45. >打印记录单</el-button
  46. >
  47. <el-button
  48. :loading="loading"
  49. size="small"
  50. icon="el-icon-printer"
  51. @click="printThisTwoPage"
  52. type="primary"
  53. >打印医嘱单</el-button
  54. >
  55. </div>
  56. </template>
  57. <template v-if="org_template_info.template_id == 3">
  58. <el-button
  59. :loading="loading"
  60. size="small"
  61. icon="el-icon-printer"
  62. @click="printThisPage"
  63. type="primary"
  64. >打印</el-button
  65. >
  66. </template>
  67. <template v-if="org_template_info.template_id == 4">
  68. <el-button
  69. :loading="loading"
  70. size="small"
  71. icon="el-icon-printer"
  72. @click="printThisPage"
  73. type="primary"
  74. >打印</el-button
  75. >
  76. </template>
  77. <template v-if="org_template_info.template_id == 46">
  78. <el-button
  79. :loading="loading"
  80. size="small"
  81. icon="el-icon-printer"
  82. @click="printThisPage"
  83. type="primary"
  84. >打印</el-button
  85. >
  86. </template>
  87. <template v-if="org_template_info.template_id == 5">
  88. <div>
  89. <el-button
  90. :loading="loading"
  91. size="small"
  92. icon="el-icon-printer"
  93. @click="printThisPage"
  94. type="primary"
  95. >打印全部</el-button
  96. >
  97. <el-button
  98. :loading="loading"
  99. size="small"
  100. icon="el-icon-printer"
  101. @click="printThisOnePage"
  102. type="primary"
  103. >打印记录单</el-button
  104. >
  105. <el-button
  106. :loading="loading"
  107. size="small"
  108. icon="el-icon-printer"
  109. @click="printThisTwoPage"
  110. type="primary"
  111. >打印医嘱单</el-button
  112. >
  113. </div>
  114. </template>
  115. <template
  116. v-if="
  117. (org_template_info.template_id == 6 ||
  118. org_template_info.template_id == 10 ||
  119. org_template_info.template_id == 11 ||
  120. org_template_info.template_id == 50 ||
  121. org_template_info.template_id == 52 ||
  122. org_template_info.template_id == 53 ||
  123. org_template_info.template_id == 64 ||
  124. org_template_info.template_id == 199 )
  125. "
  126. >
  127. <div>
  128. <el-button
  129. :loading="loading"
  130. size="small"
  131. icon="el-icon-printer"
  132. @click="printThisPage"
  133. type="primary"
  134. >打印</el-button
  135. >
  136. <el-button
  137. :loading="loading"
  138. size="small"
  139. icon="el-icon-printer"
  140. @click="printThisTwoPage"
  141. type="primary"
  142. >打印医嘱单</el-button
  143. >
  144. </div>
  145. </template>
  146. <template v-if="org_template_info.template_id == 47">
  147. <el-button
  148. :loading="loading"
  149. size="small"
  150. icon="el-icon-printer"
  151. @click="printThisPage"
  152. type="primary"
  153. >打印</el-button
  154. >
  155. </template>
  156. <template v-if="org_template_info.template_id == 7">
  157. <el-button
  158. :loading="loading"
  159. size="small"
  160. icon="el-icon-printer"
  161. @click="printThisPage"
  162. type="primary"
  163. >打印</el-button
  164. >
  165. </template>
  166. <template v-if="org_template_info.template_id == 8">
  167. <el-button
  168. :loading="loading"
  169. size="small"
  170. icon="el-icon-printer"
  171. @click="printThisPage"
  172. type="primary"
  173. >打印</el-button
  174. >
  175. </template>
  176. <template v-if="org_template_info.template_id == 9">
  177. <el-button
  178. :loading="loading"
  179. size="small"
  180. icon="el-icon-printer"
  181. @click="printThisPage"
  182. type="primary"
  183. >打印</el-button
  184. >
  185. </template>
  186. <template v-if="org_template_info.template_id == 12">
  187. <el-button
  188. :loading="loading"
  189. size="small"
  190. icon="el-icon-printer"
  191. @click="printThisPage"
  192. type="primary"
  193. >打印</el-button
  194. >
  195. </template>
  196. <template v-if="org_template_info.template_id == 13">
  197. <el-button
  198. :loading="loading"
  199. size="small"
  200. icon="el-icon-printer"
  201. @click="printThisPage"
  202. type="primary"
  203. >打印</el-button
  204. >
  205. </template>
  206. <template
  207. v-if="
  208. org_template_info.template_id == 14
  209. "
  210. >
  211. <div>
  212. <el-button
  213. :loading="loading"
  214. size="small"
  215. icon="el-icon-printer"
  216. @click="printThisPage"
  217. type="primary"
  218. >打印全部</el-button
  219. >
  220. <el-button
  221. :loading="loading"
  222. size="small"
  223. icon="el-icon-printer"
  224. @click="printThisOnePage"
  225. type="primary"
  226. >打印记录单</el-button
  227. >
  228. <el-button
  229. :loading="loading"
  230. size="small"
  231. icon="el-icon-printer"
  232. @click="printThisTwoPage"
  233. type="primary"
  234. >打印医嘱单</el-button
  235. >
  236. </div>
  237. </template>
  238. <template v-if="org_template_info.template_id == 15">
  239. <el-button
  240. :loading="loading"
  241. size="small"
  242. icon="el-icon-printer"
  243. @click="printThisPage"
  244. type="primary"
  245. >打印</el-button
  246. >
  247. </template>
  248. <template v-if="org_template_info.template_id == 16">
  249. <el-button
  250. :loading="loading"
  251. size="small"
  252. icon="el-icon-printer"
  253. @click="printThisPage"
  254. type="primary"
  255. >打印</el-button
  256. >
  257. </template>
  258. <template v-if="org_template_info.template_id == 17">
  259. <el-button
  260. :loading="loading"
  261. size="small"
  262. icon="el-icon-printer"
  263. @click="printThisPage"
  264. type="primary"
  265. >打印</el-button
  266. >
  267. </template>
  268. <template v-if="org_template_info.template_id == 18">
  269. <el-button
  270. :loading="loading"
  271. size="small"
  272. icon="el-icon-printer"
  273. @click="printThisPage"
  274. type="primary"
  275. >打印</el-button
  276. >
  277. </template>
  278. <template v-if="org_template_info.template_id == 19">
  279. <el-button
  280. :loading="loading"
  281. size="small"
  282. icon="el-icon-printer"
  283. @click="printThisPage"
  284. type="primary"
  285. >打印</el-button
  286. >
  287. </template>
  288. <template v-if="org_template_info.template_id == 20">
  289. <el-button
  290. :loading="loading"
  291. size="small"
  292. icon="el-icon-printer"
  293. @click="printThisPage"
  294. type="primary"
  295. >打印</el-button
  296. >
  297. </template>
  298. <!-- <template v-if="org_template_info.template_id == 21">
  299. <el-button
  300. :loading="loading"
  301. size="small"
  302. icon="el-icon-printer"
  303. @click="printThisPage"
  304. type="primary"
  305. >打印</el-button
  306. >
  307. </template> -->
  308. <template
  309. v-if="
  310. org_template_info.template_id == 21
  311. "
  312. >
  313. <div>
  314. <el-button
  315. :loading="loading"
  316. size="small"
  317. icon="el-icon-printer"
  318. @click="printThisPage"
  319. type="primary"
  320. >打印全部</el-button
  321. >
  322. <el-button
  323. :loading="loading"
  324. size="small"
  325. icon="el-icon-printer"
  326. @click="printThisOnePage"
  327. type="primary"
  328. >打印记录单</el-button
  329. >
  330. <el-button
  331. :loading="loading"
  332. size="small"
  333. icon="el-icon-printer"
  334. @click="printThisTwoPage"
  335. type="primary"
  336. >打印医嘱单</el-button
  337. >
  338. </div>
  339. </template>
  340. <template v-if="org_template_info.template_id == 22">
  341. <div>
  342. <el-button
  343. :loading="loading"
  344. size="small"
  345. icon="el-icon-printer"
  346. @click="printThisPage"
  347. type="primary"
  348. >打印全部</el-button
  349. >
  350. <el-button
  351. :loading="loading"
  352. size="small"
  353. icon="el-icon-printer"
  354. @click="printThisOnePage"
  355. type="primary"
  356. >打印记录单</el-button
  357. >
  358. <el-button
  359. :loading="loading"
  360. size="small"
  361. icon="el-icon-printer"
  362. @click="printThisTwoPage"
  363. type="primary"
  364. >打印医嘱单</el-button
  365. >
  366. </div>
  367. </template>
  368. <template v-if="org_template_info.template_id == 23">
  369. <el-button
  370. :loading="loading"
  371. size="small"
  372. icon="el-icon-printer"
  373. @click="printThisPage"
  374. type="primary"
  375. >打印</el-button
  376. >
  377. </template>
  378. <template v-if="org_template_info.template_id == 24">
  379. <el-button
  380. :loading="loading"
  381. size="small"
  382. icon="el-icon-printer"
  383. @click="printThisPage"
  384. type="primary"
  385. >打印</el-button
  386. >
  387. </template>
  388. <template v-if="org_template_info.template_id == 25">
  389. <el-button
  390. :loading="loading"
  391. size="small"
  392. icon="el-icon-printer"
  393. @click="printThisPage"
  394. type="primary"
  395. >打印</el-button
  396. >
  397. </template>
  398. <template v-if="org_template_info.template_id == 26">
  399. <el-button
  400. :loading="loading"
  401. size="small"
  402. icon="el-icon-printer"
  403. @click="printThisPage"
  404. type="primary"
  405. >打印</el-button
  406. >
  407. </template>
  408. <template
  409. v-if="
  410. org_template_info.template_id == 27
  411. "
  412. >
  413. <div>
  414. <el-button
  415. :loading="loading"
  416. size="small"
  417. icon="el-icon-printer"
  418. @click="printThisPage"
  419. type="primary"
  420. >打印全部</el-button
  421. >
  422. <el-button
  423. :loading="loading"
  424. size="small"
  425. icon="el-icon-printer"
  426. @click="printThisOnePage"
  427. type="primary"
  428. >打印记录单</el-button
  429. >
  430. <el-button
  431. :loading="loading"
  432. size="small"
  433. icon="el-icon-printer"
  434. @click="printThisTwoPage"
  435. type="primary"
  436. >打印医嘱单</el-button
  437. >
  438. </div>
  439. </template>
  440. <template v-if="org_template_info.template_id == 28">
  441. <el-button
  442. :loading="loading"
  443. size="small"
  444. icon="el-icon-printer"
  445. @click="printThisPage"
  446. type="primary"
  447. >打印</el-button
  448. >
  449. </template>
  450. <template v-if="org_template_info.template_id == 29">
  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. </template>
  460. <template v-if="org_template_info.template_id == 30">
  461. <el-button
  462. :loading="loading"
  463. size="small"
  464. icon="el-icon-printer"
  465. @click="printThisPage"
  466. type="primary"
  467. >打印</el-button
  468. >
  469. </template>
  470. <template v-if="org_template_info.template_id == 31">
  471. <el-button
  472. :loading="loading"
  473. size="small"
  474. icon="el-icon-printer"
  475. @click="printThisPage"
  476. type="primary"
  477. >打印</el-button
  478. >
  479. </template>
  480. <template v-if="org_template_info.template_id == 32">
  481. <el-button
  482. :loading="loading"
  483. size="small"
  484. icon="el-icon-printer"
  485. @click="printThisPage"
  486. type="primary"
  487. >打印</el-button
  488. >
  489. </template>
  490. <template v-if="org_template_info.template_id == 33">
  491. <div>
  492. <el-button
  493. :loading="loading"
  494. size="small"
  495. icon="el-icon-printer"
  496. @click="printThisPage"
  497. type="primary"
  498. >打印全部</el-button
  499. >
  500. <el-button
  501. :loading="loading"
  502. size="small"
  503. icon="el-icon-printer"
  504. @click="printThisOnePage"
  505. type="primary"
  506. >打印记录单</el-button
  507. >
  508. <el-button
  509. :loading="loading"
  510. size="small"
  511. icon="el-icon-printer"
  512. @click="printThisTwoPage"
  513. type="primary"
  514. >打印医嘱单</el-button
  515. >
  516. </div>
  517. </template>
  518. <template v-if="org_template_info.template_id == 34">
  519. <el-button
  520. :loading="loading"
  521. size="small"
  522. icon="el-icon-printer"
  523. @click="printThisPage"
  524. type="primary"
  525. >打印</el-button
  526. >
  527. </template>
  528. <template v-if="org_template_info.template_id == 35">
  529. <el-button
  530. :loading="loading"
  531. size="small"
  532. icon="el-icon-printer"
  533. @click="printThisPage"
  534. type="primary"
  535. >打印</el-button
  536. >
  537. </template>
  538. <template v-if="org_template_info.template_id == 36">
  539. <div>
  540. <el-button
  541. :loading="loading"
  542. size="small"
  543. icon="el-icon-printer"
  544. @click="printThisPage"
  545. type="primary"
  546. >打印全部</el-button
  547. >
  548. <el-button
  549. :loading="loading"
  550. size="small"
  551. icon="el-icon-printer"
  552. @click="printThisOnePage"
  553. type="primary"
  554. >打印记录单</el-button
  555. >
  556. <el-button
  557. :loading="loading"
  558. size="small"
  559. icon="el-icon-printer"
  560. @click="printThisTwoPage"
  561. type="primary"
  562. >打印医嘱单</el-button
  563. >
  564. </div>
  565. </template>
  566. <template v-if="org_template_info.template_id == 37">
  567. <el-button
  568. :loading="loading"
  569. size="small"
  570. icon="el-icon-printer"
  571. @click="printThisPage"
  572. type="primary"
  573. >打印</el-button
  574. >
  575. </template>
  576. <template v-if="org_template_info.template_id == 38">
  577. <el-button
  578. :loading="loading"
  579. size="small"
  580. icon="el-icon-printer"
  581. @click="printThisPage"
  582. type="primary"
  583. >打印</el-button
  584. >
  585. </template>
  586. <template v-if="org_template_info.template_id == 39">
  587. <el-button
  588. :loading="loading"
  589. size="small"
  590. icon="el-icon-printer"
  591. @click="printThisPage"
  592. type="primary"
  593. >打印</el-button
  594. >
  595. </template>
  596. <template v-if="org_template_info.template_id == 40">
  597. <el-button
  598. :loading="loading"
  599. size="small"
  600. icon="el-icon-printer"
  601. @click="printThisPage"
  602. type="primary"
  603. >打印</el-button
  604. >
  605. </template>
  606. <template v-if="org_template_info.template_id == 41">
  607. <el-button
  608. :loading="loading"
  609. size="small"
  610. icon="el-icon-printer"
  611. @click="printThisPage"
  612. type="primary"
  613. >打印</el-button
  614. >
  615. </template>
  616. <template v-if="org_template_info.template_id == 42">
  617. <el-button
  618. :loading="loading"
  619. size="small"
  620. icon="el-icon-printer"
  621. @click="printThisPage"
  622. type="primary"
  623. >打印</el-button
  624. >
  625. </template>
  626. <template v-if="org_template_info.template_id == 43">
  627. <el-button
  628. :loading="loading"
  629. size="small"
  630. icon="el-icon-printer"
  631. @click="printThisPage"
  632. type="primary"
  633. >打印</el-button
  634. >
  635. </template>
  636. <template v-if="org_template_info.template_id == 44">
  637. <el-button
  638. :loading="loading"
  639. size="small"
  640. icon="el-icon-printer"
  641. @click="printThisPage"
  642. type="primary"
  643. >打印</el-button
  644. >
  645. </template>
  646. <template v-if="org_template_info.template_id == 45">
  647. <el-button
  648. :loading="loading"
  649. size="small"
  650. icon="el-icon-printer"
  651. @click="printThisPage"
  652. type="primary"
  653. >打印</el-button
  654. >
  655. </template>
  656. <template v-if="org_template_info.template_id == 48">
  657. <el-button
  658. :loading="loading"
  659. size="small"
  660. icon="el-icon-printer"
  661. @click="printThisPage"
  662. type="primary"
  663. >打印</el-button
  664. >
  665. </template>
  666. <template v-if="org_template_info.template_id == 49">
  667. <el-button
  668. :loading="loading"
  669. size="small"
  670. icon="el-icon-printer"
  671. @click="printThisPage"
  672. type="primary"
  673. >打印</el-button
  674. >
  675. </template>
  676. <template v-if="org_template_info.template_id == 50">
  677. <el-button
  678. :loading="loading"
  679. size="small"
  680. icon="el-icon-printer"
  681. @click="printThisPage"
  682. type="primary"
  683. >打印</el-button
  684. >
  685. </template>
  686. <template v-if="org_template_info.template_id == 51">
  687. <el-button
  688. :loading="loading"
  689. size="small"
  690. icon="el-icon-printer"
  691. @click="printThisPage"
  692. type="primary"
  693. >打印</el-button
  694. >
  695. </template>
  696. <template
  697. v-if="org_template_info.template_id == 54">
  698. <el-button
  699. :loading="loading"
  700. size="small"
  701. icon="el-icon-printer"
  702. @click="printThisPage"
  703. type="primary"
  704. >打印</el-button
  705. >
  706. </template>
  707. <template
  708. v-if="
  709. org_template_info.template_id == 55
  710. "
  711. >
  712. <el-button
  713. :loading="loading"
  714. size="small"
  715. icon="el-icon-printer"
  716. @click="printThisPage"
  717. type="primary"
  718. >打印</el-button
  719. >
  720. </template>
  721. <template
  722. v-if="
  723. org_template_info.template_id == 56 ||org_template_info.template_id == 59
  724. "
  725. >
  726. <el-button
  727. :loading="loading"
  728. size="small"
  729. icon="el-icon-printer"
  730. @click="printThisPage"
  731. type="primary"
  732. >打印</el-button
  733. >
  734. </template>
  735. <template
  736. v-if="
  737. org_template_info.template_id == 57
  738. "
  739. >
  740. <el-button
  741. :loading="loading"
  742. size="small"
  743. icon="el-icon-printer"
  744. @click="printThisPage"
  745. type="primary"
  746. >打印</el-button
  747. >
  748. </template>
  749. <template
  750. v-if="
  751. org_template_info.template_id == 58
  752. "
  753. >
  754. <el-button
  755. :loading="loading"
  756. size="small"
  757. icon="el-icon-printer"
  758. @click="printThisPage"
  759. type="primary"
  760. >打印</el-button
  761. >
  762. </template>
  763. <template
  764. v-if="
  765. org_template_info.template_id == 60
  766. "
  767. >
  768. <el-button
  769. :loading="loading"
  770. size="small"
  771. icon="el-icon-printer"
  772. @click="printThisPage"
  773. type="primary"
  774. >打印</el-button
  775. >
  776. </template>
  777. <template
  778. v-if="
  779. org_template_info.template_id == 61||org_template_info.template_id == 63
  780. "
  781. >
  782. <el-button
  783. :loading="loading"
  784. size="small"
  785. icon="el-icon-printer"
  786. @click="printThisPage"
  787. type="primary"
  788. >打印</el-button
  789. >
  790. </template>
  791. <template v-if="org_template_info.template_id == 62">
  792. <div>
  793. <el-button
  794. :loading="loading"
  795. size="small"
  796. icon="el-icon-printer"
  797. @click="printThisPage"
  798. type="primary"
  799. >打印</el-button
  800. >
  801. </div>
  802. </template>
  803. <template v-if="org_template_info.template_id == 65 ">
  804. <div>
  805. <el-button
  806. :loading="loading"
  807. size="small"
  808. icon="el-icon-printer"
  809. @click="printThisPage"
  810. type="primary"
  811. >打印</el-button
  812. >
  813. <!-- || $store.getters.xt_user.org.id == 0 -->
  814. </div>
  815. </template>
  816. <template v-if="org_template_info.template_id == 66 ">
  817. <div>
  818. <el-button
  819. :loading="loading"
  820. size="small"
  821. icon="el-icon-printer"
  822. @click="printThisPage"
  823. type="primary"
  824. >打印</el-button
  825. >
  826. </div>
  827. </template>
  828. <template v-if="org_template_info.template_id == 67 ">
  829. <div>
  830. <el-button
  831. :loading="loading"
  832. size="small"
  833. icon="el-icon-printer"
  834. @click="printThisPage"
  835. type="primary"
  836. >打印</el-button
  837. >
  838. </div>
  839. </template>
  840. <template v-if="org_template_info.template_id == 68 ">
  841. <div>
  842. <el-button
  843. :loading="loading"
  844. size="small"
  845. icon="el-icon-printer"
  846. @click="printThisPage"
  847. type="primary"
  848. >打印</el-button
  849. >
  850. </div>
  851. </template>
  852. <template v-if="org_template_info.template_id == 69 ">
  853. <div>
  854. <el-button
  855. :loading="loading"
  856. size="small"
  857. icon="el-icon-printer"
  858. @click="printThisPage"
  859. type="primary"
  860. >打印</el-button
  861. >
  862. </div>
  863. </template>
  864. <template v-if="org_template_info.template_id == 70">
  865. <div>
  866. <el-button
  867. :loading="loading"
  868. size="small"
  869. icon="el-icon-printer"
  870. @click="printThisPage"
  871. type="primary"
  872. >打印</el-button
  873. >
  874. </div>
  875. </template>
  876. <template v-if="org_template_info.template_id == 71">
  877. <div>
  878. <el-button
  879. :loading="loading"
  880. size="small"
  881. icon="el-icon-printer"
  882. @click="printThisPage"
  883. type="primary"
  884. >打印</el-button
  885. >
  886. </div>
  887. </template>
  888. <template v-if="org_template_info.template_id == 72">
  889. <div>
  890. <el-button
  891. :loading="loading"
  892. size="small"
  893. icon="el-icon-printer"
  894. @click="printThisPage"
  895. type="primary"
  896. >打印</el-button
  897. >
  898. </div>
  899. </template>
  900. <template v-if="org_template_info.template_id == 73">
  901. <div>
  902. <el-button
  903. :loading="loading"
  904. size="small"
  905. icon="el-icon-printer"
  906. @click="printThisPage"
  907. type="primary"
  908. >打印</el-button
  909. >
  910. </div>
  911. </template>
  912. <template v-if="org_template_info.template_id == 74">
  913. <div>
  914. <el-button
  915. :loading="loading"
  916. size="small"
  917. icon="el-icon-printer"
  918. @click="printThisPage"
  919. type="primary"
  920. >打印</el-button
  921. >
  922. </div>
  923. </template>
  924. <template v-if="org_template_info.template_id == 75">
  925. <div>
  926. <el-button
  927. :loading="loading"
  928. size="small"
  929. icon="el-icon-printer"
  930. @click="printThisPage"
  931. type="primary"
  932. >打印</el-button
  933. >
  934. </div>
  935. </template>
  936. <template v-if="org_template_info.template_id == 76">
  937. <div>
  938. <el-button
  939. :loading="loading"
  940. size="small"
  941. icon="el-icon-printer"
  942. @click="printThisPage"
  943. type="primary"
  944. >打印</el-button
  945. >
  946. </div>
  947. </template>
  948. <template v-if="org_template_info.template_id == 77">
  949. <div>
  950. <el-button
  951. :loading="loading"
  952. size="small"
  953. icon="el-icon-printer"
  954. @click="printThisPage"
  955. type="primary"
  956. >打印</el-button
  957. >
  958. </div>
  959. </template>
  960. <template v-if="org_template_info.template_id == 78 ">
  961. <div>
  962. <el-button
  963. :loading="loading"
  964. size="small"
  965. icon="el-icon-printer"
  966. @click="printThisPage"
  967. type="primary"
  968. >打印</el-button
  969. >
  970. </div>
  971. </template>
  972. <template v-if="org_template_info.template_id == 79">
  973. <div>
  974. <el-button
  975. :loading="loading"
  976. size="small"
  977. icon="el-icon-printer"
  978. @click="printThisPage"
  979. type="primary"
  980. >打印</el-button
  981. >
  982. </div>
  983. </template>
  984. </div>
  985. <div class="app-container" style="min-height: 0">
  986. <!--<div class="order-print-btn"-->
  987. <!--v-loading="loading"-->
  988. <!--element-loading-text="加载中"-->
  989. <!--element-loading-spinner="el-icon-loading"-->
  990. <!--element-loading-background="rgba(0, 0, 0, 0.8)"-->
  991. <!--style="width: 100%;">-->
  992. <!--</div>-->
  993. <!--<dialysis-print-order-two :patientInfo="patientInfo" :receiverTreatmentAccess="receiverTreatmentAccess" :predialysis="predialysis"></dialysis-print-order-two>-->
  994. <el-container class="newContainer">
  995. <div style="width: 270px; margin-right: 20px">
  996. <div class="cell clearfix" style="margin-bottom: 10px">
  997. <el-date-picker
  998. v-model="selected_date"
  999. prefix-icon="el-icon-date"
  1000. @change="handleScheduleDateChange"
  1001. :editable="false"
  1002. :clearable="false"
  1003. style="width: 130px; margin-right: 10px"
  1004. type="date"
  1005. placeholder="选择日期时间"
  1006. align="right"
  1007. ></el-date-picker>
  1008. <el-input
  1009. size="small"
  1010. style="width: 80px"
  1011. @keyup.enter.native="searchAction"
  1012. v-model.trim="search_input"
  1013. class="filter-item"
  1014. />
  1015. <el-button
  1016. size="small"
  1017. class="filter-item"
  1018. type="primary"
  1019. @click="searchAction"
  1020. >搜索</el-button
  1021. >
  1022. </div>
  1023. <div class="cell clearfix" style="margin-bottom: 10px">
  1024. <el-select
  1025. v-model="patientStateVal"
  1026. placeholder="全部患者状态"
  1027. style="width: 130px; margin-right: 10px"
  1028. @change="handleStateChange"
  1029. >
  1030. <el-option
  1031. v-for="item in patient_state"
  1032. :key="item.value"
  1033. :label="item.label"
  1034. :value="item.value"
  1035. >
  1036. </el-option>
  1037. </el-select>
  1038. <el-select
  1039. v-model="treatStateVal"
  1040. placeholder="全部治疗状态"
  1041. style="width: 130px; margin-right: 10px"
  1042. @change="handleTreatChange"
  1043. >
  1044. <el-option
  1045. v-for="item in treat_state"
  1046. :key="item.value"
  1047. :label="item.label"
  1048. :value="item.value"
  1049. >
  1050. </el-option>
  1051. </el-select>
  1052. </div>
  1053. <div class="cell clearfix" style="margin-bottom: 10px">
  1054. <el-select
  1055. v-model="scheduleStateVal"
  1056. placeholder="班次"
  1057. style="width: 130px; margin-right: 10px"
  1058. @change="handletimeType"
  1059. >
  1060. <el-option
  1061. v-for="item in schedule_options"
  1062. :key="item.value"
  1063. :label="item.label"
  1064. :value="item.value"
  1065. >
  1066. </el-option>
  1067. </el-select>
  1068. <el-select
  1069. v-model="zoneVal"
  1070. placeholder="分区"
  1071. style="width: 130px; margin-right: 10px"
  1072. @change="handleZoneChange"
  1073. >
  1074. <el-option
  1075. v-for="item in zone_options"
  1076. :key="item.id"
  1077. :label="item.text"
  1078. :value="item.id"
  1079. >
  1080. </el-option>
  1081. </el-select>
  1082. </div>
  1083. <div style="padding-right: 20px">
  1084. <el-table
  1085. ref="tab"
  1086. @row-click="changePatient"
  1087. highlight-current-row
  1088. :data="tableData"
  1089. height="480"
  1090. border
  1091. style="width: 100%"
  1092. >
  1093. <el-table-column prop="date" label="患者">
  1094. <template slot-scope="scope">
  1095. {{ scope.row.patient.name }}
  1096. </template>
  1097. </el-table-column>
  1098. <el-table-column prop="name" label="透析号">
  1099. <template slot-scope="scope">
  1100. {{ scope.row.patient.dialysis_no }}
  1101. </template>
  1102. </el-table-column>
  1103. </el-table>
  1104. </div>
  1105. </div>
  1106. <div
  1107. class="dialysisPage"
  1108. style="height: calc(100vh - 178px);overflow-x:auto;::-webkit-scrollbar:height:15px"
  1109. >
  1110. <DialysisPrintOrderOne
  1111. v-bind:childResponse="childResponse"
  1112. v-if="org_template_info.template_id == 1"
  1113. >
  1114. </DialysisPrintOrderOne>
  1115. <DialysisPrintOrderTwo
  1116. v-bind:childResponse="childResponse"
  1117. v-if="
  1118. org_template_info.template_id == 2
  1119. "
  1120. ></DialysisPrintOrderTwo>
  1121. <DialysisPrintOrderThree
  1122. v-bind:childResponse="childResponse"
  1123. v-if="org_template_info.template_id == 3"
  1124. >
  1125. </DialysisPrintOrderThree>
  1126. <DialysisPrintOrderFour
  1127. v-bind:childResponse="childResponse"
  1128. v-if="org_template_info.template_id == 4"
  1129. >
  1130. </DialysisPrintOrderFour>
  1131. <DialysisPrintOrderFive
  1132. v-bind:childResponse="childResponse"
  1133. v-if="org_template_info.template_id == 5"
  1134. >
  1135. </DialysisPrintOrderFive>
  1136. <DialysisPrintOrderSix
  1137. v-bind:childResponse="childResponse"
  1138. v-if="org_template_info.template_id == 6"
  1139. >
  1140. </DialysisPrintOrderSix>
  1141. <DialysisPrintOrderSeven
  1142. v-bind:childResponse="childResponse"
  1143. v-if="org_template_info.template_id == 7"
  1144. >
  1145. </DialysisPrintOrderSeven>
  1146. <DialysisPrintOrderEight
  1147. v-bind:childResponse="childResponse"
  1148. v-if="org_template_info.template_id == 8"
  1149. >
  1150. </DialysisPrintOrderEight>
  1151. <!--<DialysisPrintOrderTen></DialysisPrintOrderTen>-->
  1152. <DialysisPrintOrderTen
  1153. v-bind:childResponse="childResponse"
  1154. v-if="org_template_info.template_id == 10"
  1155. ></DialysisPrintOrderTen>
  1156. <DialysisPrintOrderNine
  1157. v-bind:childResponse="childResponse"
  1158. v-if="org_template_info.template_id == 9"
  1159. ></DialysisPrintOrderNine>
  1160. <DialysisPrintOrderEleven
  1161. v-bind:childResponse="childResponse"
  1162. v-if="org_template_info.template_id == 11"
  1163. ></DialysisPrintOrderEleven>
  1164. <DialysisPrintOrderTwelve
  1165. v-bind:childResponse="childResponse"
  1166. v-if="org_template_info.template_id == 12"
  1167. ></DialysisPrintOrderTwelve>
  1168. <DialysisPrintOrderThirteen
  1169. v-bind:childResponse="childResponse"
  1170. v-if="org_template_info.template_id == 13"
  1171. ></DialysisPrintOrderThirteen>
  1172. <DialysisPrintOrderFourteen
  1173. v-bind:childResponse="childResponse"
  1174. v-if="org_template_info.template_id == 14"
  1175. ></DialysisPrintOrderFourteen>
  1176. <DialysisPrintOrderFifteen
  1177. v-bind:childResponse="childResponse"
  1178. v-if="org_template_info.template_id == 15"
  1179. ></DialysisPrintOrderFifteen>
  1180. <DialysisPrintOrderSixteen
  1181. v-bind:childResponse="childResponse"
  1182. v-if="org_template_info.template_id == 16"
  1183. ></DialysisPrintOrderSixteen>
  1184. <DialysisPrintOrderSeventeen
  1185. v-bind:childResponse="childResponse"
  1186. v-if="org_template_info.template_id == 17"
  1187. ></DialysisPrintOrderSeventeen>
  1188. <DialysisPrintOrderEighteen
  1189. v-bind:childResponse="childResponse"
  1190. v-if="org_template_info.template_id == 18"
  1191. ></DialysisPrintOrderEighteen>
  1192. <DialysisPrintOrderNineteen
  1193. v-bind:childResponse="childResponse"
  1194. v-if="org_template_info.template_id == 19"
  1195. ></DialysisPrintOrderNineteen>
  1196. <DialysisPrintOrderTwenty
  1197. v-bind:childResponse="childResponse"
  1198. v-if="org_template_info.template_id == 20"
  1199. ></DialysisPrintOrderTwenty>
  1200. <DialysisPrintOrderTwentyOne
  1201. v-bind:childResponse="childResponse"
  1202. v-if="org_template_info.template_id == 21"
  1203. ></DialysisPrintOrderTwentyOne>
  1204. <DialysisPrintOrderTwentyTwo
  1205. v-bind:childResponse="childResponse"
  1206. v-if="org_template_info.template_id == 22"
  1207. ></DialysisPrintOrderTwentyTwo>
  1208. <DialysisPrintOrderTwentyThree
  1209. v-bind:childResponse="childResponse"
  1210. v-if="org_template_info.template_id == 23"
  1211. ></DialysisPrintOrderTwentyThree>
  1212. <DialysisPrintOrderTwentyFour
  1213. v-bind:childResponse="childResponse"
  1214. v-if="org_template_info.template_id == 24"
  1215. ></DialysisPrintOrderTwentyFour>
  1216. <DialysisPrintOrderTwentyFive
  1217. v-bind:childResponse="childResponse"
  1218. v-if="org_template_info.template_id == 25"
  1219. >
  1220. </DialysisPrintOrderTwentyFive>
  1221. <DialysisPrintOrderTwentySix
  1222. v-bind:childResponse="childResponse"
  1223. v-if="org_template_info.template_id == 26"
  1224. >
  1225. </DialysisPrintOrderTwentySix>
  1226. <DialysisPrintOrderTwentySeven
  1227. v-bind:childResponse="childResponse"
  1228. v-if="org_template_info.template_id == 27"
  1229. >
  1230. </DialysisPrintOrderTwentySeven>
  1231. <DialysisPrintOrderTwentyEight
  1232. v-bind:childResponse="childResponse"
  1233. v-if="org_template_info.template_id == 28"
  1234. >
  1235. </DialysisPrintOrderTwentyEight>
  1236. <DialysisPrintOrderTwentyNine
  1237. v-bind:childResponse="childResponse"
  1238. v-if="org_template_info.template_id == 29"
  1239. >
  1240. </DialysisPrintOrderTwentyNine>
  1241. <DialysisPrintOrderThirty
  1242. v-bind:childResponse="childResponse"
  1243. v-if="org_template_info.template_id == 30"
  1244. >
  1245. </DialysisPrintOrderThirty>
  1246. <DialysisPrintOrderThirtyOne
  1247. v-bind:childResponse="childResponse"
  1248. v-if="org_template_info.template_id == 31"
  1249. >
  1250. </DialysisPrintOrderThirtyOne>
  1251. <DialysisPrintOrderThirtyTwo
  1252. v-bind:childResponse="childResponse"
  1253. v-if="org_template_info.template_id == 32"
  1254. >
  1255. </DialysisPrintOrderThirtyTwo>
  1256. <DialysisPrintOrderThirtyThree
  1257. v-bind:childResponse="childResponse"
  1258. v-if="org_template_info.template_id == 33"
  1259. >
  1260. </DialysisPrintOrderThirtyThree>
  1261. <DialysisPrintOrderThirtyFour
  1262. v-bind:childResponse="childResponse"
  1263. v-if="org_template_info.template_id == 34"
  1264. >
  1265. </DialysisPrintOrderThirtyFour>
  1266. <DialysisPrintOrderThirtyFive
  1267. v-bind:childResponse="childResponse"
  1268. v-if="org_template_info.template_id == 35"
  1269. >
  1270. </DialysisPrintOrderThirtyFive>
  1271. <DialysisPrintOrderThirtySix
  1272. v-bind:childResponse="childResponse"
  1273. v-if="org_template_info.template_id == 36"
  1274. >
  1275. </DialysisPrintOrderThirtySix>
  1276. <DialysisPrintOrderThirtySeven
  1277. v-bind:childResponse="childResponse"
  1278. v-if="org_template_info.template_id == 37"
  1279. >
  1280. </DialysisPrintOrderThirtySeven>
  1281. <DialysisPrintOrderThirtyEight
  1282. v-bind:childResponse="childResponse"
  1283. v-if="org_template_info.template_id == 38"
  1284. >
  1285. </DialysisPrintOrderThirtyEight>
  1286. <DialysisPrintOrderThirtyNine
  1287. v-bind:childResponse="childResponse"
  1288. v-if="org_template_info.template_id == 39"
  1289. >
  1290. </DialysisPrintOrderThirtyNine>
  1291. <DialysisPrintOrderForty
  1292. v-bind:childResponse="childResponse"
  1293. v-if="org_template_info.template_id == 40"
  1294. >
  1295. </DialysisPrintOrderForty>
  1296. <DialysisPrintOrderFortyOne
  1297. v-bind:childResponse="childResponse"
  1298. v-if="org_template_info.template_id == 41"
  1299. >
  1300. </DialysisPrintOrderFortyOne>
  1301. <DialysisPrintOrderFortyTwo
  1302. v-bind:childResponse="childResponse"
  1303. v-if="org_template_info.template_id == 42"
  1304. >
  1305. </DialysisPrintOrderFortyTwo>
  1306. <DialysisPrintOrderFortyThree
  1307. v-bind:childResponse="childResponse"
  1308. v-if="org_template_info.template_id == 43"
  1309. >
  1310. </DialysisPrintOrderFortyThree>
  1311. <DialysisPrintOrderFortyFour
  1312. v-bind:childResponse="childResponse"
  1313. v-if="org_template_info.template_id == 44"
  1314. >
  1315. </DialysisPrintOrderFortyFour>
  1316. <DialysisPrintOrderFortyFive
  1317. v-bind:childResponse="childResponse"
  1318. v-if="org_template_info.template_id == 45"
  1319. >
  1320. </DialysisPrintOrderFortyFive>
  1321. <DialysisPrintOrderFortySix
  1322. v-bind:childResponse="childResponse"
  1323. v-if="org_template_info.template_id == 46"
  1324. >
  1325. </DialysisPrintOrderFortySix>
  1326. <DialysisPrintOrderFortySeven
  1327. v-bind:childResponse="childResponse"
  1328. v-if="org_template_info.template_id == 47"
  1329. >
  1330. </DialysisPrintOrderFortySeven>
  1331. <DialysisPrintOrderFortyEight
  1332. v-bind:childResponse="childResponse"
  1333. v-if="org_template_info.template_id == 48"
  1334. >
  1335. </DialysisPrintOrderFortyEight>
  1336. <DialysisPrintOrderFortyNine
  1337. v-bind:childResponse="childResponse"
  1338. v-if="org_template_info.template_id == 49"
  1339. >
  1340. </DialysisPrintOrderFortyNine>
  1341. <DialysisPrintOrderFifty
  1342. v-bind:childResponse="childResponse"
  1343. v-if="org_template_info.template_id == 50"
  1344. >
  1345. </DialysisPrintOrderFifty>
  1346. <DialysisPrintOrderFiftyOne
  1347. v-bind:childResponse="childResponse"
  1348. v-if="org_template_info.template_id == 51"
  1349. >
  1350. </DialysisPrintOrderFiftyOne>
  1351. <DialysisPrintOrderFiftyTwo
  1352. v-bind:childResponse="childResponse"
  1353. v-if="org_template_info.template_id == 52"
  1354. >
  1355. </DialysisPrintOrderFiftyTwo>
  1356. <DialysisPrintOrderFiftyThree
  1357. v-bind:childResponse="childResponse"
  1358. v-if="org_template_info.template_id == 53"
  1359. >
  1360. </DialysisPrintOrderFiftyThree>
  1361. <DialysisPrintOrderFiftyFour
  1362. v-bind:childResponse="childResponse"
  1363. v-if="org_template_info.template_id == 54"
  1364. >
  1365. </DialysisPrintOrderFiftyFour>
  1366. <DialysisPrintOrderFiftyfive
  1367. v-bind:childResponse="childResponse"
  1368. v-if="org_template_info.template_id == 55"
  1369. >
  1370. </DialysisPrintOrderFiftyfive>
  1371. <DialysisPrintOrderFiftySix
  1372. v-bind:childResponse="childResponse"
  1373. v-if="org_template_info.template_id == 56"
  1374. >
  1375. </DialysisPrintOrderFiftySix>
  1376. <DialysisPrintOrderFiftySeven
  1377. v-bind:childResponse="childResponse"
  1378. v-if="org_template_info.template_id == 57">
  1379. </DialysisPrintOrderFiftySeven>
  1380. <DialysisPrintOrderFiftyEight
  1381. v-bind:childResponse="childResponse"
  1382. v-if="org_template_info.template_id == 58">
  1383. </DialysisPrintOrderFiftyEight>
  1384. <DialysisPrintOrderFiftyNine
  1385. v-bind:childResponse="childResponse"
  1386. v-if="org_template_info.template_id == 59">
  1387. </DialysisPrintOrderFiftyNine>
  1388. <DialysisPrintOrderSixty
  1389. v-bind:childResponse="childResponse"
  1390. v-if="org_template_info.template_id == 60">
  1391. </DialysisPrintOrderSixty>
  1392. <DialysisPrintOrderSixtyOne
  1393. v-bind:childResponse="childResponse"
  1394. v-if="org_template_info.template_id == 61">
  1395. </DialysisPrintOrderSixtyOne>
  1396. <DialysisPrintOrderSixtyTwo
  1397. v-bind:childResponse="childResponse"
  1398. v-if="org_template_info.template_id == 62">
  1399. </DialysisPrintOrderSixtyTwo>
  1400. <!-- <DialysisPrintOrderSixtyThree
  1401. v-bind:childResponse="childResponse"
  1402. v-if="org_template_info.template_id == 63">
  1403. </DialysisPrintOrderSixtyThree> -->
  1404. <DialysisPrintOrderSixtyfour
  1405. v-bind:childResponse="childResponse"
  1406. v-if="org_template_info.template_id == 64">
  1407. </DialysisPrintOrderSixtyfour>
  1408. <DialysisPrintOrderSixtyFive
  1409. v-bind:childResponse="childResponse"
  1410. v-if="org_template_info.template_id == 65">
  1411. </DialysisPrintOrderSixtyFive>
  1412. <DialysisPrintOrderSixtysix
  1413. v-bind:childResponse="childResponse"
  1414. v-if="org_template_info.template_id == 66">
  1415. </DialysisPrintOrderSixtysix>
  1416. <DialysisPrintOrdersixtySeven
  1417. v-bind:childResponse="childResponse"
  1418. v-if="org_template_info.template_id == 67">
  1419. </DialysisPrintOrdersixtySeven>
  1420. <DialysisPrintOrderSixtyeight
  1421. v-bind:childResponse="childResponse"
  1422. v-if="org_template_info.template_id == 68"
  1423. >
  1424. </DialysisPrintOrderSixtyeight>
  1425. <DialysisPrintOrderSixtynine
  1426. v-bind:childResponse="childResponse"
  1427. v-if="org_template_info.template_id == 69"
  1428. >
  1429. </DialysisPrintOrderSixtynine>
  1430. <DialysisPrintOrderSeventy
  1431. v-bind:childResponse="childResponse"
  1432. v-if="org_template_info.template_id == 70"
  1433. >
  1434. </DialysisPrintOrderSeventy>
  1435. <DialysisPrintOrderseventyone
  1436. v-bind:childResponse="childResponse"
  1437. v-if="org_template_info.template_id == 71"
  1438. >
  1439. </DialysisPrintOrderseventyone>
  1440. <DialysisPrintOrderSeventyTwo
  1441. v-bind:childResponse="childResponse"
  1442. v-if="org_template_info.template_id == 72"
  1443. >
  1444. </DialysisPrintOrderSeventyTwo>
  1445. <DialysisPrintOrderSeventythree
  1446. v-bind:childResponse="childResponse"
  1447. v-if="org_template_info.template_id == 73"
  1448. ></DialysisPrintOrderSeventythree>
  1449. <DialysisPrintOrderZero
  1450. v-bind:childResponse="childResponse"
  1451. v-if="org_template_info.template_id == 199"
  1452. >
  1453. </DialysisPrintOrderZero>
  1454. <DialysisPrintOrderSop v-bind:childResponse="childResponse"
  1455. v-if="org_template_info.template_id == 74">
  1456. </DialysisPrintOrderSop>
  1457. <DialysisPrintOrderseventyfive v-bind:childResponse="childResponse"
  1458. v-if="org_template_info.template_id == 75">
  1459. </DialysisPrintOrderseventyfive>
  1460. <DialysisPrintOrderSeventysix v-bind:childResponse="childResponse"
  1461. v-if="org_template_info.template_id == 76">
  1462. </DialysisPrintOrderSeventysix>
  1463. <DialysisPrintOrderSeventyseven v-bind:childResponse="childResponse"
  1464. v-if="org_template_info.template_id == 77">
  1465. </DialysisPrintOrderSeventyseven>
  1466. <DialysisPrintOrderSeventyeight v-bind:childResponse="childResponse"
  1467. v-if="org_template_info.template_id == 78">
  1468. </DialysisPrintOrderSeventyeight>
  1469. <DialysisPrintOrderSeventynine v-bind:childResponse="childResponse"
  1470. v-if="org_template_info.template_id == 79">
  1471. </DialysisPrintOrderSeventynine>
  1472. </div>
  1473. </el-container>
  1474. </div>
  1475. </div>
  1476. </template>
  1477. <script>
  1478. import {
  1479. getDialysisRecordInitData,
  1480. getDialysisSchedules,
  1481. } from "@/api/dialysis_record";
  1482. import { parseTime } from "@/utils";
  1483. import { getDialysisRecord } from "@/api/dialysis";
  1484. import { getDataConfig } from "@/utils/data";
  1485. import { jsGetAge, uParseTime } from "@/utils/tools";
  1486. import LabelBox from "./printItem/LabelBox";
  1487. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  1488. import DialysisPrintOrderOne from "./template/dialysisPrintOrderOne";
  1489. import DialysisPrintOrderTwo from "./template/dialysisPrintOrderTwo";
  1490. import DialysisPrintOrderThree from "./template/dialysisPrintOrderThree";
  1491. import DialysisPrintOrderFour from "./template/DialysisPrintOrderFour";
  1492. import DialysisPrintOrderFive from "./template/DialysisPrintOrderFive";
  1493. import DialysisPrintOrderSix from "./template/DialysisPrintOrderSix";
  1494. import DialysisPrintOrderSeven from "./template/DialysisPrintOrderSeven";
  1495. import DialysisPrintOrderEight from "./template/DialysisPrintOrderEight";
  1496. import DialysisPrintOrderNine from "./template/DialysisPrintOrderNine";
  1497. import print from "print-js";
  1498. import DialysisPrintOrderTen from "./template/DialysisPrintOrderTen";
  1499. import DialysisPrintOrderEleven from "./template/DialysisPrintOrderEleven";
  1500. import DialysisPrintOrderTwelve from "./template/DialysisPrintOrderTwelve";
  1501. import DialysisPrintOrderThirteen from "./template/DialysisPrintOrderThirteen";
  1502. import DialysisPrintOrderFourteen from "./template/DialysisPrintOrderFourteen";
  1503. import DialysisPrintOrderFifteen from "./template/DialysisPrintOrderFifteen";
  1504. import DialysisPrintOrderSixteen from "./template/DialysisPrintOrderSixteen";
  1505. import DialysisPrintOrderSeventeen from "./template/DialysisPrintOrderSeventeen";
  1506. import DialysisPrintOrderEighteen from "./template/DialysisPrintOrderEighteen";
  1507. import DialysisPrintOrderNineteen from "./template/DialysisPrintOrderNineteen";
  1508. import DialysisPrintOrderTwenty from "./template/DialysisPrintOrderTwenty";
  1509. import DialysisPrintOrderTwentyOne from "./template/DialysisPrintOrderTwentyOne";
  1510. import DialysisPrintOrderTwentyTwo from "./template/DialysisPrintOrderTwentyTwo";
  1511. import DialysisPrintOrderTwentyThree from "./template/DialysisPrintOrderTwentyThree";
  1512. import DialysisPrintOrderTwentyFour from "./template/DialysisPrintOrderTwentyFour";
  1513. import DialysisPrintOrderTwentyFive from "./template/DialysisPrintOrderTwentyFive";
  1514. import DialysisPrintOrderTwentySix from "./template/DialysisPrintOrderTwentySix";
  1515. import DialysisPrintOrderTwentySeven from "./template/DialysisPrintOrderTwentySeven";
  1516. import DialysisPrintOrderTwentyEight from "./template/DialysisPrintOrderTwentyEight";
  1517. import DialysisPrintOrderTwentyNine from "./template/DialysisPrintOrderTwentyNine";
  1518. import DialysisPrintOrderThirty from "./template/DialysisPrintOrderThirty";
  1519. import DialysisPrintOrderThirtyOne from "./template/DialysisPrintOrderThirtyOne";
  1520. import DialysisPrintOrderThirtyTwo from "./template/DialysisPrintOrderThirtyTwo";
  1521. import DialysisPrintOrderThirtyThree from "./template/DialysisPrintOrderThirtyThree";
  1522. import DialysisPrintOrderThirtyFour from "./template/DialysisPrintOrderThirtyFour";
  1523. import DialysisPrintOrderThirtyFive from "./template/DialysisPrintOrderThirtyFive";
  1524. import DialysisPrintOrderThirtySix from "./template/DialysisPrintOrderThirtySix";
  1525. import DialysisPrintOrderThirtySeven from "./template/DialysisPrintOrderThirtySeven";
  1526. import DialysisPrintOrderThirtyEight from "./template/DialysisPrintOrderThirtyEight";
  1527. import DialysisPrintOrderThirtyNine from "./template/DialysisPrintOrderThirtyNine";
  1528. import DialysisPrintOrderForty from "./template/DialysisPrintOrderForty";
  1529. import DialysisPrintOrderFortyOne from "./template/DialysisPrintOrderFortyOne";
  1530. import DialysisPrintOrderFortyTwo from "./template/DialysisPrintOrderFortyTwo";
  1531. import DialysisPrintOrderFortyThree from "./template/DialysisPrintOrderFortyThree";
  1532. import DialysisPrintOrderFortyFour from "./template/DialysisPrintOrderFortyFour";
  1533. import DialysisPrintOrderFortyFive from "./template/DialysisPrintOrderFortyFive";
  1534. import DialysisPrintOrderFortySix from "./template/DialysisPrintOrderFortySix";
  1535. import DialysisPrintOrderFortySeven from "./template/DialysisPrintOrderFortySeven";
  1536. import DialysisPrintOrderFortyEight from "./template/DialysisPrintOrderFortyEight";
  1537. import DialysisPrintOrderFortyNine from "./template/DialysisPrintOrderFortyNine";
  1538. import DialysisPrintOrderFifty from "./template/DialysisPrintOrderFifty";
  1539. import DialysisPrintOrderFiftyOne from "./template/DialysisPrintOrderFiftyOne";
  1540. import DialysisPrintOrderFiftyTwo from "./template/DialysisPrintOrderFiftyTwo";
  1541. import DialysisPrintOrderFiftyThree from "./template/DialysisPrintOrderFiftyThree";
  1542. import DialysisPrintOrderFiftyFour from "./template/DialysisPrintOrderFiftyFour";
  1543. import DialysisPrintOrderFiftyfive from "./template/DialysisPrintOrderFiftyfive";
  1544. import DialysisPrintOrderFiftySix from "./template/DialysisPrintOrderFiftySix";
  1545. import DialysisPrintOrderFiftySeven from "./template/DialysisPrintOrderFiftySeven";
  1546. import DialysisPrintOrderFiftyEight from "./template/DialysisPrintOrderFiftyEight";
  1547. import DialysisPrintOrderFiftyNine from "./template/DialysisPrintOrderFiftyNine";
  1548. import DialysisPrintOrderSixty from "./template/DialysisPrintOrderSixty";
  1549. import DialysisPrintOrderSixtyOne from "./template/DialysisPrintOrderSixtyOne"
  1550. import DialysisPrintOrderSixtyTwo from "./template/DialysisPrintOrderSixtyTwo"
  1551. // import DialysisPrintOrderSixtyThree from "./template/DialysisPrintOrderSixtyThree"
  1552. import DialysisPrintOrderSixtyfour from './template/DialysisPrintOrderSixtyfour'
  1553. import DialysisPrintOrderSixtyFive from "./template/DialysisPrintOrderSixtyFive"
  1554. import DialysisPrintOrderSixtysix from './template/DialysisPrintOrderSixtysix'
  1555. import DialysisPrintOrdersixtySeven from './template/DialysisPrintOrdersixtySeven'
  1556. import DialysisPrintOrderSixtyeight from './template/DialysisPrintOrderSixtyeight'
  1557. import DialysisPrintOrderSixtynine from './template/DialysisPrintOrderSixtynine'
  1558. import DialysisPrintOrderSeventy from './template/DialysisPrintOrderSeventy'
  1559. import DialysisPrintOrderseventyone from './template/DialysisPrintOrderseventyone'
  1560. import DialysisPrintOrderSeventyTwo from './template/DialysisPrintOrderSeventyTwo'
  1561. import DialysisPrintOrderSeventythree from './template/DialysisPrintOrderSeventythree'
  1562. import DialysisPrintOrderSop from './template/DialysisPrintOrderSop'
  1563. import DialysisPrintOrderseventyfive from './template/DialysisPrintOrderseventyfive'
  1564. import DialysisPrintOrderSeventysix from './template/DialysisPrintOrderSeventysix'
  1565. import DialysisPrintOrderSeventyseven from './template/DialysisPrintOrderSeventyseven'
  1566. import DialysisPrintOrderSeventyeight from './template/DialysisPrintOrderSeventyeight'
  1567. import DialysisPrintOrderSeventynine from './template/DialysisPrintOrderSeventynine'
  1568. import DialysisPrintOrderZero from './template/DialysisPrintOrderZero'
  1569. export default {
  1570. name: "dialysisPrintOrder",
  1571. components: {
  1572. // DialysisPrintOrderSixtyThree,
  1573. DialysisPrintOrderSixtyTwo,
  1574. DialysisPrintOrderSixtyOne,
  1575. DialysisPrintOrderSixty,
  1576. DialysisPrintOrdersixtySeven,
  1577. DialysisPrintOrderFiftyNine,
  1578. DialysisPrintOrderFiftyEight,
  1579. DialysisPrintOrderFiftySeven,
  1580. DialysisPrintOrderFiftySix,
  1581. DialysisPrintOrderFiftyfive,
  1582. DialysisPrintOrderFiftyFour,
  1583. DialysisPrintOrderFiftyThree,
  1584. DialysisPrintOrderFiftyTwo,
  1585. DialysisPrintOrderFiftyOne,
  1586. DialysisPrintOrderFifty,
  1587. DialysisPrintOrderFortyNine,
  1588. DialysisPrintOrderFortyEight,
  1589. DialysisPrintOrderFortySeven,
  1590. DialysisPrintOrderFortySix,
  1591. DialysisPrintOrderFortyFive,
  1592. DialysisPrintOrderFortyFour,
  1593. DialysisPrintOrderFortyThree,
  1594. DialysisPrintOrderFortyTwo,
  1595. DialysisPrintOrderFortyOne,
  1596. DialysisPrintOrderForty,
  1597. DialysisPrintOrderThirtyNine,
  1598. DialysisPrintOrderThirtyEight,
  1599. DialysisPrintOrderThirtySeven,
  1600. DialysisPrintOrderThirtySix,
  1601. DialysisPrintOrderThirtyFive,
  1602. DialysisPrintOrderThirtyFour,
  1603. DialysisPrintOrderThirtyThree,
  1604. DialysisPrintOrderThirtyTwo,
  1605. DialysisPrintOrderThirtyOne,
  1606. DialysisPrintOrderThirty,
  1607. DialysisPrintOrderTwentyNine,
  1608. DialysisPrintOrderTwentyEight,
  1609. DialysisPrintOrderTwentySeven,
  1610. DialysisPrintOrderTwentySix,
  1611. DialysisPrintOrderTwentyFive,
  1612. DialysisPrintOrderTwentyFour,
  1613. DialysisPrintOrderTwentyThree,
  1614. DialysisPrintOrderTwentyTwo,
  1615. DialysisPrintOrderTwentyOne,
  1616. DialysisPrintOrderTwenty,
  1617. DialysisPrintOrderNineteen,
  1618. DialysisPrintOrderEighteen,
  1619. DialysisPrintOrderSeventeen,
  1620. DialysisPrintOrderSixteen,
  1621. DialysisPrintOrderFifteen,
  1622. DialysisPrintOrderFourteen,
  1623. DialysisPrintOrderThirteen,
  1624. DialysisPrintOrderTwelve,
  1625. DialysisPrintOrderEleven,
  1626. DialysisPrintOrderTen,
  1627. DialysisPrintOrderOne,
  1628. DialysisPrintOrderTwo,
  1629. DialysisPrintOrderThree,
  1630. DialysisPrintOrderFour,
  1631. DialysisPrintOrderFive,
  1632. DialysisPrintOrderSix,
  1633. DialysisPrintOrderSeven,
  1634. DialysisPrintOrderEight,
  1635. DialysisPrintOrderNine,
  1636. DialysisPrintOrderSixtyfour,
  1637. DialysisPrintOrderSixtyFive,
  1638. DialysisPrintOrderSixtysix,
  1639. DialysisPrintOrderSixtyeight,
  1640. DialysisPrintOrderSixtynine,
  1641. DialysisPrintOrderSeventy,
  1642. DialysisPrintOrderseventyone,
  1643. DialysisPrintOrderSeventyTwo,
  1644. DialysisPrintOrderSeventythree,
  1645. DialysisPrintOrderSop,
  1646. DialysisPrintOrderseventyfive,
  1647. DialysisPrintOrderSeventysix,
  1648. DialysisPrintOrderSeventyseven,
  1649. DialysisPrintOrderSeventyeight,
  1650. DialysisPrintOrderSeventynine,
  1651. DialysisPrintOrderZero,
  1652. LabelBox,
  1653. BreadCrumb,
  1654. // DialysisPrintOrderSixtyFive
  1655. },
  1656. data() {
  1657. return {
  1658. crumbs: [
  1659. { path: false, name: "透析管理" },
  1660. { path: false, name: "打印单" },
  1661. ],
  1662. childResponse: {},
  1663. operators: [],
  1664. adminUser: [],
  1665. check: {},
  1666. dialysisOrder: {
  1667. DeviceNumber: [],
  1668. },
  1669. operatorMaps: {},
  1670. complications: [
  1671. "低血压",
  1672. "高血压",
  1673. "心律失常",
  1674. "头晕",
  1675. "头痛",
  1676. "呕吐",
  1677. "抽搐",
  1678. "出血",
  1679. "心衰",
  1680. "腹痛",
  1681. ],
  1682. jilurow: 0,
  1683. advice_jilurow: 0,
  1684. loading: false,
  1685. orgname: "",
  1686. patientInfo_gender_1: false,
  1687. patientInfo_gender_2: false,
  1688. patientInfo_source_2: false,
  1689. patientInfo_source_1: false,
  1690. modeOptions: {},
  1691. replacementWays: [],
  1692. perfusionApparatus: [],
  1693. anticoagulantsConfit: {},
  1694. bloodAccessParOpera: {},
  1695. dialysateFormulationOptions: {},
  1696. queryParams: {
  1697. xtdate: "",
  1698. xtno: "",
  1699. },
  1700. patientInfo: {
  1701. birth: "",
  1702. age: "",
  1703. DialysisSchedule: {
  1704. device_number: { number: "" },
  1705. device_zone: { name: "" },
  1706. },
  1707. gender: 0,
  1708. },
  1709. predialysis: {
  1710. score: "",
  1711. internal_fistula: "",
  1712. internal_fistula_skin: "",
  1713. catheter: "",
  1714. blood_access_part_opera_name: "",
  1715. },
  1716. afterdialysis: {
  1717. complications_index: "",
  1718. },
  1719. prescription: {
  1720. dialysate_formulation_name: "",
  1721. device: {},
  1722. },
  1723. advices: [],
  1724. users: [],
  1725. monitors: [],
  1726. summary: {},
  1727. receiverTreatmentAccess: {},
  1728. org_template_info: {},
  1729. doctor_advices: [],
  1730. advice_groups: [],
  1731. AlPanel: {
  1732. id: 0,
  1733. name: "",
  1734. type: 1,
  1735. shouji: 2,
  1736. weichi: 2,
  1737. zongliang: 2,
  1738. gaimingcheng: -1,
  1739. gaijiliang: -1,
  1740. shouji_unit: "mg",
  1741. weichi_unit: "mg/h",
  1742. zongliang_unit: "mg",
  1743. gaimingcheng_unit: "",
  1744. gaijiliang_unit: "",
  1745. },
  1746. //
  1747. tableData: [],
  1748. selected_date: new Date(),
  1749. // search_input 和 search_keyword,使输入关键字时不会经常刷新 filtedSchedules
  1750. search_keyword: "", // 确定用于搜索的关键字
  1751. search_input: "", // 输入中的关键字
  1752. patient_state: [
  1753. { value: 0, label: "全部" },
  1754. { value: 1, label: "已签到" },
  1755. { value: 2, label: "未签到" },
  1756. { value: 3, label: "已上机" },
  1757. { value: 4, label: "已下机" },
  1758. ],
  1759. patientStateVal: 0,
  1760. treat_state: [
  1761. { value: 0, label: "全部" },
  1762. { value: 1, label: "待开处方" },
  1763. { value: 2, label: "待开小结" },
  1764. ],
  1765. treatStateVal: 0,
  1766. schedule_options: [
  1767. { value: 0, label: "全部" },
  1768. { value: 1, label: "上午" },
  1769. { value: 2, label: "下午" },
  1770. { value: 3, label: "晚上" },
  1771. ],
  1772. scheduleStateVal: 0,
  1773. zone_options: [{ id: 0, text: "全部" }],
  1774. zoneVal: 0,
  1775. x_tdate:'',
  1776. };
  1777. },
  1778. methods: {
  1779. //返回
  1780. fanhui(){
  1781. this.$router.push({
  1782. path: "/dialysis/details",
  1783. query: {
  1784. patient_id: this.patient_id,
  1785. date: this.date,
  1786. patient_name: this.patient_name,
  1787. mode_id: this.mode_id,
  1788. },
  1789. });
  1790. // window.history.back()
  1791. },
  1792. getAdminUser(id) {
  1793. if (id == 0) {
  1794. return "";
  1795. }
  1796. if (id == undefined) {
  1797. return "";
  1798. }
  1799. for (let i = 0; i < this.adminUser.length; i++) {
  1800. if (this.adminUser[i].id == id) {
  1801. return this.adminUser[i].name;
  1802. }
  1803. }
  1804. },
  1805. getTime(value, temp) {
  1806. if (value == 0) {
  1807. return "";
  1808. }
  1809. if (value != undefined) {
  1810. return uParseTime(value, temp);
  1811. }
  1812. return "";
  1813. },
  1814. // 打印
  1815. printThisPage() {
  1816. // console.log("this.org_template_info.template_id",this.org_template_info.template_id)
  1817. // if(this.$store.getters.xt_user.org.id == 0){
  1818. // this.org_template_info.template_id = 65
  1819. // }
  1820. console.log('0000000011111',this.org_template_info.template_id);
  1821. var ptime = Math.round(new Date().getTime() / 1000);
  1822. this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
  1823. const style =
  1824. '@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;}';
  1825. const style2 =
  1826. // 防止分页错位问题:table设置border: none;.tr设置page-break-inside:avoid; // 防止table数据太多,tr分页错乱 td设置border: 1px solid #000;// 防止部分分页的tr边框线没有
  1827. '@media print {.dialysis-print-order{width:960px;margin:0 auto} .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; } .print-table{border: none} .print-table tr{page-break-inside:avoid;} .print-table tr td{border: 1px solid #000;} .inside_table{border: none} .inside_table tr{page-break-inside:avoid;} .inside_table tr td{border: 1px solid #000;} .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 20px;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;} .row1{ border-left: 1px solid black;padding: 5px 5px;} .row2{ border-left:1px solid black; border-right:1px solid black; border-bottom:1px solid black;} .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{page-break-inside:avoid;} .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} ';
  1828. const style3 =
  1829. '@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%;}';
  1830. // const style3 =
  1831. // '@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;}';
  1832. //
  1833. const style4 =
  1834. '@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:18px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:18px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:18px}.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:20px;height:20px;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:23px;font-weight: 200;}}.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;}';
  1835. const style5 =
  1836. '@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;}}';
  1837. const style6 =
  1838. '@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;}';
  1839. const style7 =
  1840. '@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;}}';
  1841. const style8 =
  1842. '@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;}';
  1843. const style9 =
  1844. '@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;}';
  1845. const style10 =
  1846. '@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;}';
  1847. // 三明曙光样式
  1848. const style11 =
  1849. '@media print {.dialysis-print-order{width:960px;margin:100px 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:30px;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:15px}.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;}';
  1850. // 雷州惠爱样式
  1851. const style12 ='@page {margin-top:10px;}@media print {.dialysis-print-order{width:960px;margin:0 auto;margin-top:30px;} .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} .print-table tbody tr td{border-collapse:collapse;} .dialysis-print-order .print-table .short_tr th p{height:20px !important; line-height:20px !important;} .list_table{border-collapse:collapse;height:40px;display: flex;justify-content: flex-start;} .list_table div{text-align: left;flex: 1;} .list_table_1{height:40px;line-height:40px;text-align:left;border-collapse:collapse;} .list_table_1 div{height:40px;line-height:40px;white-space:normal;height: fit-content;} .dialysis-print-order .td_div1{display:flex;white-space: normal;} .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-table tr th p{height: 20px; line-height: 20px} .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;} .dialysis-print-order tbody .print-table tr{page-break-inside:avoid;} .dialysis-print-order tbody .print-table tr td{border: 1px solid #000;} ';
  1852. // 金乡宏大样式
  1853. const style13 ='@page {margin-top:5px;}@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} .print-table tbody tr{page-break-inside:avoid} .print-table tbody tr td{border-collapse:collapse;} .list_table{border-collapse:collapse;height:40px;display: flex;justify-content: flex-start;} .list_table div{text-align: left;flex: 1;} .list_table_1{height:40px;line-height:40px;text-align:left;border-collapse:collapse;} .list_table_1 div{height:40px;line-height:40px;} .dialysis-print-order .print-table-2{ width: 100%;text-align: left;border-collapse: collapse;line-height: 38px;font-size: 14px;} .dialysis-print-order .print-table-2 tbody tr{height:43px; padding-bottom:-12px;} .print-table-2 tbody tr td{padding-bottom:-12px;} .td_div1{display:flex;white-space: normal;} .print-table-3{text-align: center;width: 390px;border-collapse: inherit;height: 129px !important;border: none;} .print-table-3 .tr_3{border-bottom: 1px solid;} .print-table-3 .td_3 {border-right: 1px solid;} .print-table-3 .td_3_1 {width:66px;border-right: 1px solid;} .print-table-3 .td_3_2 {width:72px;border-right: 1px solid;} .print-table-4{text-align: center;width: 300px;border-collapse: inherit;height: 129px !important;border: none;} .print-table-4 .tr_3{border-bottom: 1px solid;} .print-table-4 .td_3 {border-right: 1px solid;} .print-table-4 .td_3_1 {width:66px;border-right: 1px solid;} .print-table-4 .td_3_2 {width:72px;border-right: 1px solid;} .print-table-5{width:100%;text-align:center;border-collapse:collapse;line-height:40px;font-size:14px} .dialysis-print-order .print-table-5 tr td_5{width:75px;} .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;}';
  1854. // 长沙南鸭样式
  1855. const style14 =// 防止分页错位问题:table设置border: none;.tr设置page-break-inside:avoid; // 防止table数据太多,tr分页错乱 td设置border: 1px solid #000;// 防止部分分页的tr边框线没有
  1856. '@media print {.dialysis-print-order{width:960px;margin:0 auto} .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; } .print-table{border: 0} .print-table tr{page-break-inside:avoid;} .print-table tr td{border: 0} .inside_table{border: none} .inside_table tr{page-break-inside:avoid;} .inside_table tr td{border: 1px solid #000;} .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 20px;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{page-break-inside:avoid;} .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:left;border-collapse:collapse;line-height:25px;font-size:14px} ';
  1857. // 营口北方医院
  1858. const style15 =
  1859. '@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:35px;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;}';
  1860. const style16 =
  1861. '@media print {.dialysis-print-order{width:960px;margin:0 auto} .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; } .print-table{border: none} .print-table tr{page-break-inside:avoid;} .print-table tr td{border: 1px solid #000;} .inside_table{border: none} .inside_table tr{page-break-inside:avoid;} .inside_table tr td{border: 1px solid #000;} .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 20px;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;} .row1{ border-left: 1px solid black;padding: 5px 5px;} .row2{ border-left:1px solid black; border-right:1px solid black; border-bottom:1px solid black;} .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{page-break-inside:avoid;} .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} ';
  1862. if (this.org_template_info.template_id == 1) {
  1863. printJS({
  1864. printable: "dialysis-print-box",
  1865. type: "html",
  1866. style: style,
  1867. scanStyles: false,
  1868. });
  1869. } else if (
  1870. this.org_template_info.template_id == 2
  1871. ) {
  1872. printJS({
  1873. printable: "dialysis-print-box-1",
  1874. type: "html",
  1875. style: style2,
  1876. scanStyles: false,
  1877. });
  1878. } else if (this.org_template_info.template_id == 3) {
  1879. printJS({
  1880. printable: "dialysis-print-box",
  1881. type: "html",
  1882. style: style,
  1883. scanStyles: false,
  1884. });
  1885. } else if (this.org_template_info.template_id == 4) {
  1886. printJS({
  1887. printable: "dialysis-print-box",
  1888. type: "html",
  1889. style: style,
  1890. scanStyles: false,
  1891. });
  1892. } else if (this.org_template_info.template_id == 5) {
  1893. printJS({
  1894. printable: "dialysis-print-box-1",
  1895. type: "html",
  1896. style: style2,
  1897. scanStyles: false,
  1898. });
  1899. } else if (
  1900. this.org_template_info.template_id == 6 ||
  1901. this.org_template_info.template_id == 10 ||
  1902. this.org_template_info.template_id == 11 ||
  1903. this.org_template_info.template_id == 49 ||
  1904. this.org_template_info.template_id == 50 ||
  1905. // this.org_template_info.template_id == 51 ||
  1906. this.org_template_info.template_id == 58 ||
  1907. this.org_template_info.template_id == 60 ||
  1908. this.org_template_info.template_id == 61 ||
  1909. this.org_template_info.template_id == 66 ||
  1910. this.org_template_info.template_id == 72
  1911. ) {
  1912. printJS({
  1913. printable: "dialysis-print-box-1",
  1914. type: "html",
  1915. style: style2,
  1916. scanStyles: false,
  1917. });
  1918. } else if (this.org_template_info.template_id == 7) {
  1919. printJS({
  1920. printable: "dialysis-print-box",
  1921. type: "html",
  1922. style: style4,
  1923. scanStyles: false,
  1924. });
  1925. } else if (this.org_template_info.template_id == 8||this.org_template_info.template_id == 62) {
  1926. printJS({
  1927. printable: "dialysis-print-box",
  1928. type: "html",
  1929. style: style15,
  1930. scanStyles: false,
  1931. });
  1932. } else if (
  1933. this.org_template_info.template_id == 9 ||
  1934. this.org_template_info.template_id == 25
  1935. ) {
  1936. printJS({
  1937. printable: "dialysis-print-box",
  1938. type: "html",
  1939. style: style5,
  1940. scanStyles: false,
  1941. });
  1942. } else if (this.org_template_info.template_id == 12) {
  1943. printJS({
  1944. printable: "dialysis-print-box",
  1945. type: "html",
  1946. style: style,
  1947. scanStyles: false,
  1948. });
  1949. } else if (this.org_template_info.template_id == 13) {
  1950. printJS({
  1951. printable: "dialysis-print-box-1",
  1952. type: "html",
  1953. style: style3,
  1954. scanStyles: false,
  1955. });
  1956. } else if (this.org_template_info.template_id == 14) {
  1957. printJS({
  1958. printable: "dialysis-print-box",
  1959. type: "html",
  1960. style: style,
  1961. scanStyles: false,
  1962. });
  1963. } else if (this.org_template_info.template_id == 15) {
  1964. printJS({
  1965. printable: "dialysis-print-box",
  1966. type: "html",
  1967. style: style,
  1968. scanStyles: false,
  1969. });
  1970. } else if (this.org_template_info.template_id == 16) {
  1971. printJS({
  1972. printable: "dialysis-print-box",
  1973. type: "html",
  1974. style: style,
  1975. scanStyles: false,
  1976. });
  1977. } else if (this.org_template_info.template_id == 17) {
  1978. printJS({
  1979. printable: "dialysis-print-box",
  1980. type: "html",
  1981. style: style6,
  1982. scanStyles: false,
  1983. });
  1984. } else if (this.org_template_info.template_id == 18) {
  1985. printJS({
  1986. printable: "dialysis-print-box",
  1987. type: "html",
  1988. style: style,
  1989. scanStyles: false,
  1990. });
  1991. } else if (this.org_template_info.template_id == 19) {
  1992. printJS({
  1993. printable: "dialysis-print-box-1",
  1994. type: "html",
  1995. style: style2,
  1996. scanStyles: false,
  1997. });
  1998. } else if (this.org_template_info.template_id == 20) {
  1999. printJS({
  2000. printable: "dialysis-print-box",
  2001. type: "html",
  2002. style: style,
  2003. scanStyles: false,
  2004. });
  2005. } else if (this.org_template_info.template_id == 21) {
  2006. printJS({
  2007. printable: "dialysis-print-box",
  2008. type: "html",
  2009. style: style,
  2010. scanStyles: false,
  2011. });
  2012. } else if (this.org_template_info.template_id == 22) {
  2013. printJS({
  2014. printable: "dialysis-print-box-1",
  2015. type: "html",
  2016. style: style2,
  2017. scanStyles: false,
  2018. });
  2019. } else if (this.org_template_info.template_id == 23) {
  2020. printJS({
  2021. printable: "dialysis-print-box",
  2022. type: "html",
  2023. style: style,
  2024. scanStyles: false,
  2025. });
  2026. } else if (this.org_template_info.template_id == 24) {
  2027. printJS({
  2028. printable: "dialysis-print-box",
  2029. type: "html",
  2030. style: style,
  2031. scanStyles: false,
  2032. });
  2033. } else if (this.org_template_info.template_id == 26) {
  2034. printJS({
  2035. printable: "dialysis-print-box",
  2036. type: "html",
  2037. style: style,
  2038. scanStyles: false,
  2039. });
  2040. } else if (this.org_template_info.template_id == 27) {
  2041. printJS({
  2042. printable: "dialysis-print-box",
  2043. type: "html",
  2044. style: style,
  2045. scanStyles: false,
  2046. });
  2047. } else if (this.org_template_info.template_id == 28) {
  2048. printJS({
  2049. printable: "dialysis-print-box",
  2050. type: "html",
  2051. style: style7,
  2052. scanStyles: false,
  2053. });
  2054. } else if (this.org_template_info.template_id == 29) {
  2055. printJS({
  2056. printable: "dialysis-print-box",
  2057. type: "html",
  2058. style: style,
  2059. scanStyles: false,
  2060. });
  2061. } else if (this.org_template_info.template_id == 30) {
  2062. printJS({
  2063. printable: "dialysis-print-box",
  2064. type: "html",
  2065. style: style,
  2066. scanStyles: false,
  2067. });
  2068. } else if (this.org_template_info.template_id == 31) {
  2069. printJS({
  2070. printable: "dialysis-print-box-1",
  2071. type: "html",
  2072. style: style3,
  2073. scanStyles: false,
  2074. });
  2075. } else if (this.org_template_info.template_id == 32) {
  2076. printJS({
  2077. printable: "dialysis-print-box",
  2078. type: "html",
  2079. style: style5,
  2080. scanStyles: false,
  2081. });
  2082. } else if (this.org_template_info.template_id == 33) {
  2083. printJS({
  2084. printable: "dialysis-print-box-1",
  2085. type: "html",
  2086. style: style2,
  2087. scanStyles: false,
  2088. });
  2089. } else if (this.org_template_info.template_id == 34) {
  2090. printJS({
  2091. printable: "dialysis-print-box-1",
  2092. type: "html",
  2093. style: style2,
  2094. scanStyles: false,
  2095. });
  2096. } else if (this.org_template_info.template_id == 35) {
  2097. printJS({
  2098. printable: "dialysis-print-box",
  2099. type: "html",
  2100. style: style,
  2101. scanStyles: false,
  2102. });
  2103. } else if (this.org_template_info.template_id == 36) {
  2104. printJS({
  2105. printable: "dialysis-print-box-1",
  2106. type: "html",
  2107. style: style,
  2108. scanStyles: false,
  2109. });
  2110. } else if (this.org_template_info.template_id == 37) {
  2111. printJS({
  2112. printable: "dialysis-print-box",
  2113. type: "html",
  2114. style: style,
  2115. scanStyles: false,
  2116. });
  2117. } else if (this.org_template_info.template_id == 38) {
  2118. printJS({
  2119. printable: "dialysis-print-box",
  2120. type: "html",
  2121. style: style8,
  2122. scanStyles: false,
  2123. });
  2124. } else if (this.org_template_info.template_id == 39) {
  2125. printJS({
  2126. printable: "dialysis-print-box",
  2127. type: "html",
  2128. style: style3,
  2129. scanStyles: false,
  2130. });
  2131. } else if (this.org_template_info.template_id == 40) {
  2132. printJS({
  2133. printable: "dialysis-print-box",
  2134. type: "html",
  2135. style: style5,
  2136. scanStyles: false,
  2137. });
  2138. } else if (this.org_template_info.template_id == 41) {
  2139. printJS({
  2140. printable: "dialysis-print-box-1",
  2141. type: "html",
  2142. style: style9,
  2143. scanStyles: false,
  2144. });
  2145. } else if (this.org_template_info.template_id == 42) {
  2146. printJS({
  2147. printable: "dialysis-print-box",
  2148. type: "html",
  2149. style: style,
  2150. scanStyles: false,
  2151. });
  2152. } else if (this.org_template_info.template_id == 43) {
  2153. printJS({
  2154. printable: "dialysis-print-box-1",
  2155. type: "html",
  2156. style: style2,
  2157. scanStyles: false,
  2158. });
  2159. } else if (this.org_template_info.template_id == 44) {
  2160. printJS({
  2161. printable: "dialysis-print-box-1",
  2162. type: "html",
  2163. style: style9,
  2164. scanStyles: false,
  2165. });
  2166. } else if (this.org_template_info.template_id == 45) {
  2167. printJS({
  2168. printable: "dialysis-print-box",
  2169. type: "html",
  2170. style: style,
  2171. scanStyles: false,
  2172. });
  2173. } else if (this.org_template_info.template_id == 46) {
  2174. printJS({
  2175. printable: "dialysis-print-box-1",
  2176. type: "html",
  2177. style: style2,
  2178. scanStyles: false,
  2179. });
  2180. } else if (this.org_template_info.template_id == 47) {
  2181. printJS({
  2182. printable: "dialysis-print-box-1",
  2183. type: "html",
  2184. style: style2,
  2185. scanStyles: false,
  2186. });
  2187. } else if (this.org_template_info.template_id == 48) {
  2188. printJS({
  2189. printable: "dialysis-print-box",
  2190. type: "html",
  2191. style: style11,
  2192. scanStyles: false,
  2193. });
  2194. } else if (this.org_template_info.template_id == 51) {
  2195. printJS({
  2196. printable: "dialysis-print-box-1",
  2197. type: "html",
  2198. style: style14,
  2199. scanStyles: false,
  2200. });
  2201. }else if (
  2202. this.org_template_info.template_id == 52
  2203. ) {
  2204. printJS({
  2205. printable: "dialysis-print-box-1",
  2206. type: "html",
  2207. style: style2,
  2208. scanStyles: false,
  2209. });
  2210. }else if (this.org_template_info.template_id == 64 ) {
  2211. printJS({
  2212. printable: "dialysis-print-box-64",
  2213. type: "html",
  2214. style: style12,
  2215. scanStyles: false,
  2216. });
  2217. }else if (this.org_template_info.template_id == 65 || this.org_template_info.template_id == 6) {
  2218. printJS({
  2219. printable: "dialysis-print-box-1",
  2220. type: "html",
  2221. style: style2,
  2222. scanStyles: false,
  2223. });
  2224. }
  2225. else if (this.org_template_info.template_id == 67 ) {
  2226. printJS({
  2227. printable: "dialysis-print-box-1",
  2228. type: "html",
  2229. style: style2,
  2230. scanStyles: false,
  2231. });
  2232. }
  2233. else if (this.org_template_info.template_id == 68 ) {
  2234. printJS({
  2235. printable: "dialysis-print-box-1",
  2236. type: "html",
  2237. style: style2,
  2238. scanStyles: false,
  2239. });
  2240. console.log('77777',this.org_template_info.template_id);
  2241. }else if (this.org_template_info.template_id == 69 ) {
  2242. printJS({
  2243. printable: "dialysis-print-box-1",
  2244. type: "html",
  2245. style: style2,
  2246. scanStyles: false,
  2247. });
  2248. console.log('77777',this.org_template_info.template_id);
  2249. }else if (this.org_template_info.template_id == 70 ) {
  2250. printJS({
  2251. printable: "dialysis-print-box-1",
  2252. type: "html",
  2253. style: style2,
  2254. scanStyles: false,
  2255. });
  2256. console.log('77777',this.org_template_info.template_id);
  2257. }
  2258. else if (
  2259. this.org_template_info.template_id == 53
  2260. ) {
  2261. printJS({
  2262. printable: "dialysis-print-box",
  2263. type: "html",
  2264. style: style12,
  2265. scanStyles: false,
  2266. });
  2267. }
  2268. else if (
  2269. this.org_template_info.template_id == 54 || this.org_template_info.template_id == 57
  2270. ) {
  2271. printJS({
  2272. printable: "dialysis-print-box",
  2273. type: "html",
  2274. style: style13,
  2275. scanStyles: false,
  2276. });
  2277. }else if (
  2278. this.org_template_info.template_id == 55
  2279. ) {
  2280. printJS({
  2281. printable: "dialysis-print-box-1",
  2282. type: "html",
  2283. style: style2,
  2284. scanStyles: false,
  2285. });
  2286. }else if (
  2287. this.org_template_info.template_id == 56 ||this.org_template_info.template_id == 59
  2288. ) {
  2289. printJS({
  2290. printable: "dialysis-print-box-1",
  2291. type: "html",
  2292. style: style2,
  2293. scanStyles: false,
  2294. });
  2295. }else if (this.org_template_info.template_id == 71) {
  2296. printJS({
  2297. printable: "dialysis-print-box",
  2298. type: "html",
  2299. style: style,
  2300. scanStyles: false,
  2301. });
  2302. }else if (this.org_template_info.template_id == 73 ) {
  2303. printJS({
  2304. printable: "dialysis-print-box-1",
  2305. type: "html",
  2306. style: style2,
  2307. scanStyles: false,
  2308. });
  2309. console.log('77777',this.org_template_info.template_id);
  2310. }else if (this.org_template_info.template_id == 74) {
  2311. printJS({
  2312. printable: "dialysis-print-box",
  2313. type: "html",
  2314. style: style4,
  2315. scanStyles: false,
  2316. });
  2317. }else if (this.org_template_info.template_id == 75) {
  2318. printJS({
  2319. printable: "dialysis-print-box-1",
  2320. type: "html",
  2321. style: style16,
  2322. scanStyles: false,
  2323. });
  2324. }else if (this.org_template_info.template_id == 76) {
  2325. printJS({
  2326. printable: "dialysis-print-box-1",
  2327. type: "html",
  2328. style: style2,
  2329. scanStyles: false,
  2330. });
  2331. }else if (this.org_template_info.template_id == 77) {
  2332. printJS({
  2333. printable: "dialysis-print-box-1",
  2334. type: "html",
  2335. style: style2,
  2336. scanStyles: false,
  2337. });
  2338. }else if (this.org_template_info.template_id == 78 ) {
  2339. printJS({
  2340. printable: "dialysis-print-box-1",
  2341. type: "html",
  2342. style: style2,
  2343. scanStyles: false,
  2344. });
  2345. }else if (this.org_template_info.template_id == 79) {
  2346. printJS({
  2347. printable: "dialysis-print-box",
  2348. type: "html",
  2349. style: style4,
  2350. scanStyles: false,
  2351. });
  2352. }
  2353. else if (this.org_template_info.template_id == 199 ) {
  2354. printJS({
  2355. printable: "dialysis-print-box-1",
  2356. type: "html",
  2357. style: style2,
  2358. scanStyles: false,
  2359. });
  2360. }
  2361. },
  2362. printThisOnePage() {
  2363. var ptime = Math.round(new Date().getTime() / 1000);
  2364. this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
  2365. const style =
  2366. '@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;}';
  2367. const style2 =
  2368. '@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;}';
  2369. if (this.org_template_info.template_id == 1) {
  2370. printJS({
  2371. printable: "dialysis-print-box",
  2372. type: "html",
  2373. style: style,
  2374. scanStyles: false,
  2375. });
  2376. } else if (
  2377. this.org_template_info.template_id == 2 ||
  2378. this.org_template_info.template_id == 5 ||
  2379. this.org_template_info.template_id == 22 ||
  2380. this.org_template_info.template_id == 33
  2381. ) {
  2382. printJS({
  2383. printable: "dialysis-print-box-1-1",
  2384. type: "html",
  2385. style: style2,
  2386. scanStyles: false,
  2387. });
  2388. } else if (this.org_template_info.template_id == 14) {
  2389. printJS({
  2390. printable: "new-dialysis-1",
  2391. type: "html",
  2392. style: style,
  2393. scanStyles: false,
  2394. });
  2395. } else if (this.org_template_info.template_id == 21) {
  2396. printJS({
  2397. printable: "new-dialysis-1",
  2398. type: "html",
  2399. style: style,
  2400. scanStyles: false,
  2401. });
  2402. } else if (this.org_template_info.template_id == 27) {
  2403. printJS({
  2404. printable: "new-dialysis-1",
  2405. type: "html",
  2406. style: style,
  2407. scanStyles: false,
  2408. });
  2409. } else if (this.org_template_info.template_id == 36) {
  2410. printJS({
  2411. printable: "dialysis-print-box-1-1",
  2412. type: "html",
  2413. style: style,
  2414. scanStyles: false,
  2415. });
  2416. }
  2417. },
  2418. printThisTwoPage() {
  2419. var ptime = Math.round(new Date().getTime() / 1000);
  2420. this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
  2421. const style =
  2422. '@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;}';
  2423. const style2 =
  2424. '@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_line2 {display: inline-block;border-bottom: 1px solid #999;text-align: left;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;}';
  2425. // 雷州惠爱样式
  2426. const style93 ='@page {margin-top:10px;}@media print {.dialysis-print-order{width:960px;margin:0 auto;margin-top:30px;} .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} .print-table tbody tr td{border-collapse:collapse;} .dialysis-print-order .print-table .short_tr th p{height:20px !important; line-height:20px !important;} .list_table{border-collapse:collapse;height:40px;display: flex;justify-content: flex-start;} .list_table div{text-align: left;flex: 1;} .list_table_1{height:40px;line-height:40px;text-align:left;border-collapse:collapse;} .list_table_1 div{height:40px;line-height:40px;white-space:normal;height: fit-content;} .dialysis-print-order .td_div1{display:flex;white-space: normal;} .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-table tr th p{height: 20px; line-height: 20px} .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;} .dialysis-print-order tbody .print-table tr{page-break-inside:avoid;} .dialysis-print-order tbody .print-table tr td{border: 1px solid #000;} ';
  2427. if (this.org_template_info.template_id == 1) {
  2428. printJS({
  2429. printable: "dialysis-print-box",
  2430. type: "html",
  2431. style: style,
  2432. scanStyles: false,
  2433. });
  2434. } else if (
  2435. this.org_template_info.template_id == 2 ||
  2436. this.org_template_info.template_id == 5 ||
  2437. this.org_template_info.template_id == 6 ||
  2438. this.org_template_info.template_id == 22 ||
  2439. this.org_template_info.template_id == 33
  2440. ) {
  2441. printJS({
  2442. printable: "dialysis-print-box-1-2",
  2443. type: "html",
  2444. style: style2,
  2445. scanStyles: false,
  2446. });
  2447. } else if (this.org_template_info.template_id == 14) {
  2448. printJS({
  2449. printable: "new-dialysis-2",
  2450. type: "html",
  2451. style: style,
  2452. scanStyles: false,
  2453. });
  2454. } else if (this.org_template_info.template_id == 21) {
  2455. printJS({
  2456. printable: "new-dialysis-2",
  2457. type: "html",
  2458. style: style,
  2459. scanStyles: false,
  2460. });
  2461. } else if (this.org_template_info.template_id == 27) {
  2462. printJS({
  2463. printable: "new-dialysis-2",
  2464. type: "html",
  2465. style: style,
  2466. scanStyles: false,
  2467. });
  2468. } else if (this.org_template_info.template_id == 36) {
  2469. printJS({
  2470. printable: "dialysis-print-box-1-2",
  2471. type: "html",
  2472. style: style,
  2473. scanStyles: false,
  2474. });
  2475. } else if (this.org_template_info.template_id == 53 ) {
  2476. printJS({
  2477. printable: "dialysis-print-box-1-2",
  2478. type: "html",
  2479. style: style93,
  2480. scanStyles: false,
  2481. });
  2482. }else if (this.org_template_info.template_id == 199 ) {
  2483. printJS({
  2484. printable: "dialysis-print-box-64",
  2485. type: "html",
  2486. style: style12,
  2487. scanStyles: false,
  2488. });
  2489. }
  2490. },
  2491. getNumber() {
  2492. if (this.dialysisOrder != null) {
  2493. return (
  2494. this.patientInfo.DialysisSchedule.device_zone.name +
  2495. this.dialysisOrder.DeviceNumber.number
  2496. );
  2497. } else {
  2498. return (
  2499. this.patientInfo.DialysisSchedule.device_zone.name +
  2500. this.patientInfo.DialysisSchedule.device_number.number
  2501. );
  2502. }
  2503. },
  2504. getXuserName(id) {
  2505. if (id <= 0) {
  2506. return "";
  2507. }
  2508. var name = "";
  2509. if (this.users == null || typeof this.users.length === "undefined") {
  2510. return name;
  2511. }
  2512. var leng = this.users.length;
  2513. if (leng == 0) {
  2514. return name;
  2515. }
  2516. for (let index = 0; index < leng; index++) {
  2517. if (this.users[index].id == id) {
  2518. name = this.users[index].name;
  2519. break;
  2520. }
  2521. }
  2522. return name;
  2523. },
  2524. setAdminUserES(id) {
  2525. // console.log(id);
  2526. if (id == 0) {
  2527. return "";
  2528. }
  2529. if (id in this.operatorMaps) {
  2530. return this.operatorMaps[id].url;
  2531. } else {
  2532. return "";
  2533. }
  2534. },
  2535. modeName(mode_id) {
  2536. return typeof this.modeOptions[mode_id] !== "undefined" &&
  2537. typeof this.modeOptions[mode_id].name !== "undefined"
  2538. ? this.modeOptions[mode_id].name
  2539. : "";
  2540. },
  2541. getDialysisRecord() {
  2542. this.loading = true;
  2543. getDialysisRecord(this.queryParams).then((response) => {
  2544. if (response.data.state == 1) {
  2545. this.childResponse = response;
  2546. this.mode_id= response.data.data.patientInfo.DialysisSchedule.mode_id
  2547. this.date = response.data.data.patientInfo.DialysisSchedule.schedule_date
  2548. this.patient_id = response.data.data.patientInfo.DialysisSchedule.patient_id
  2549. this.patient_name = response.data.data.patientInfo.name
  2550. console.log('kkkkkkk222222',this.org_template_info);
  2551. // console.log('this.org_template_info是数据',response.data.data.org_template_info.template_id);
  2552. this.org_template_info = response.data.data.org_template_info;
  2553. this.org_template_info.template_id= response.data.data.org_template_info.template_id
  2554. this.loading = false;
  2555. // this.adminUser = response.data.data.users
  2556. // this.users = response.data.data.users
  2557. // this.patientInfo = response.data.data.patientInfo
  2558. // this.patientInfo.birth = uParseTime(this.patientInfo.birthday, '{y}-{m}-{d}')
  2559. // // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
  2560. // if (response.data.data.patientInfo.first_dialysis_date != 0) {
  2561. // this.patientInfo.first_dialysis_date = uParseTime(response.data.data.patientInfo.first_dialysis_date, '{y}-{m}-{d}')
  2562. // } else {
  2563. // this.patientInfo.first_dialysis_date = ''
  2564. // }
  2565. // this.check = response.data.data.check
  2566. // this.predialysis = response.data.data.PredialysisEvaluation
  2567. // this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(this.predialysis.blood_access_part_opera_id)
  2568. // this.afterdialysis = response.data.data.AssessmentAfterDislysis
  2569. // this.operators = response.data.data.operators
  2570. // this.dialysisOrder = response.data.data.dialysisOrder === null ? null : response.data.data.dialysisOrder
  2571. // if (this.operators.length > 0) {
  2572. // var operatorsLen = this.operators.length
  2573. // for (var index = 0; index < operatorsLen; index++) {
  2574. // this.$set(this.operatorMaps, this.operators[index].creator, this.operators[index])
  2575. // }
  2576. // }
  2577. // this.afterdialysis.txqnx = -1
  2578. // if (this.afterdialysis.cruor.indexOf('0度') > -1) {
  2579. // this.afterdialysis.txqnx = 0
  2580. // }
  2581. // if (this.afterdialysis.cruor.indexOf('Ⅰ度') > -1) {
  2582. // this.afterdialysis.txqnx = 1
  2583. // }
  2584. // if (this.afterdialysis.cruor.indexOf('Ⅱ度') > -1) {
  2585. // this.afterdialysis.txqnx = 2
  2586. // }
  2587. // if (this.afterdialysis.cruor.indexOf('Ⅲ度') > -1) {
  2588. // this.afterdialysis.txqnx = 3
  2589. // }
  2590. // this.afterdialysis.complications = this.afterdialysis.complication.split(',')
  2591. // this.afterdialysis.complications_other = []
  2592. // this.afterdialysis.complications_index = []
  2593. // var acllen = this.afterdialysis.complications.length
  2594. // for (let index = 0; index < acllen; index++) {
  2595. // if (this.complications.indexOf(this.afterdialysis.complications[index]) >= 0) {
  2596. // this.afterdialysis.complications_index.push(this.afterdialysis.complications[index])
  2597. // } else if (this.complications.indexOf(this.afterdialysis.complications[index]) < 0 && this.afterdialysis.complications_other.indexOf(this.afterdialysis.complications[index]) < 0) {
  2598. // this.afterdialysis.complications_other.push(this.afterdialysis.complications[index])
  2599. // }
  2600. // }
  2601. // this.afterdialysis.complications_other = this.afterdialysis.complications_other.join(',')
  2602. // this.prescription = response.data.data.dialysisPrescription
  2603. // this.receiverTreatmentAccess = response.data.data.receiverTreatmentAccess
  2604. // this.prescription.mode = this.modeName(this.prescription.mode_id)
  2605. // var rwLen = this.replacementWays.length
  2606. // this.prescription.replacement = ''
  2607. // for (let index = 0; index < rwLen; index++) {
  2608. // if (this.replacementWays[index].id == this.prescription.replacement_way) {
  2609. // this.prescription.replacement = this.replacementWays[index].name
  2610. // break
  2611. // }
  2612. // }
  2613. // this.prescription.dialysate_formulation_name = this.dialysateFormulationName(this.prescription.dialysate_formulation)
  2614. // var paLen = this.perfusionApparatus.length
  2615. // this.prescription.perfusion_apparatus_name = ''
  2616. // for (let index = 0; index < paLen; index++) {
  2617. // if (this.perfusionApparatus[index].id == this.prescription.perfusion_apparatus) {
  2618. // this.prescription.perfusion_apparatus_name = this.perfusionApparatus[index].name
  2619. // break
  2620. // }
  2621. // }
  2622. // var acLen = this.anticoagulantsConfit.length
  2623. // var thisALID = this.prescription.anticoagulant
  2624. // this.prescription.anticoagulant_name = ''
  2625. // if (typeof (this.anticoagulantsConfit[thisALID]) !== 'undefined' && this.anticoagulantsConfit[thisALID] != null) {
  2626. // this.prescription.anticoagulant_name = this.anticoagulantsConfit[thisALID].name
  2627. // this.AlPanel = this.anticoagulantsConfit[thisALID]
  2628. // }
  2629. // this.advices = response.data.data.advices
  2630. // this.monitors = response.data.data.monitors
  2631. // this.summary = response.data.data.summary
  2632. // this.org_template_info = response.data.data.org_template_info
  2633. // if (this.monitors.length < 8) {
  2634. // var nl = 8 - this.monitors.length
  2635. // for (let index = 0; index < nl; index++) {
  2636. // this.monitors.push([])
  2637. // }
  2638. // }
  2639. // this.jilurow = this.monitors.length + 1
  2640. // this.advice_jilurow = this.advices.length + 1
  2641. // var childMap = {}
  2642. // for (const index in this.advices) {
  2643. // if (this.advices[index].parent_id == 0) {
  2644. // continue
  2645. // }
  2646. // if (!(this.advices[index].parent_id in childMap)) {
  2647. // childMap[this.advices[index].parent_id] = []
  2648. // }
  2649. // childMap[this.advices[index].parent_id].push(this.advices[index])
  2650. // }
  2651. // var advices = []
  2652. // for (const index in this.advices) {
  2653. // if (this.advices[index].parent_id > 0) {
  2654. // continue
  2655. // }
  2656. // var item = this.advices[index]
  2657. // if (item.id in childMap) {
  2658. // item.children = childMap[item.id]
  2659. // } else {
  2660. // item.children = []
  2661. // }
  2662. // advices.push(item)
  2663. // }
  2664. // var leftAdvice = []
  2665. // var rightAdvice = []
  2666. // var adlen = advices.length
  2667. // var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
  2668. // for (var i = 0; i < halfLen; i++) {
  2669. // leftAdvice.push(advices[i])
  2670. // rightAdvice.push(advices[i + halfLen])
  2671. // }
  2672. // if (halfLen < 5) {
  2673. // var nl = 5 - leftAdvice.length
  2674. // for (let index = 0; index < nl; index++) {
  2675. // leftAdvice.push([])
  2676. // }
  2677. // var nl = 5 - rightAdvice.length
  2678. // for (let index = 0; index < nl; index++) {
  2679. // rightAdvice.push([])
  2680. // }
  2681. // }
  2682. // this.advices = []
  2683. // for (var i = 0; i < halfLen; i++) {
  2684. // var item = []
  2685. // item.push(leftAdvice[i])
  2686. // item.push(rightAdvice[i])
  2687. // this.advices.push(item)
  2688. // }
  2689. // this.loading = false
  2690. // this.doctor_advices = response.data.data.advices == null ? [] : response.data.data.advices
  2691. // for (let index = 0; index < this.doctor_advices.length; index++) {
  2692. // this.doctor_advices[index]['isShow'] = 2
  2693. // }
  2694. // if (this.doctor_advices.length > 0) {
  2695. // var group = this.newAdviceGroupObject()
  2696. // var initGroupBlock = function(group, advice) {
  2697. // group.group_no = advice.groupno
  2698. // }
  2699. // for (let index = this.doctor_advices.length - 1; index >= 0; index--) {
  2700. // var new_advice_index = 0
  2701. // if ('children' in this.doctor_advices[index] && this.doctor_advices[index].children.length > 0) {
  2702. // new_advice_index = index + this.doctor_advices[index].children.length + 1
  2703. // var doctor_advice = {
  2704. // delivery_way: this.doctor_advices[index].delivery_way,
  2705. // execution_frequency: this.doctor_advices[index].execution_frequency,
  2706. // groupno: this.doctor_advices[index].groupno,
  2707. // id: this.doctor_advices[index].id,
  2708. // parent_id: this.doctor_advices[index].parent_id,
  2709. // children: this.doctor_advices[index].children,
  2710. // remark: this.doctor_advices[index].remark,
  2711. // execution_staff: this.doctor_advices[index].execution_staff,
  2712. // checker: this.doctor_advices[index].checker,
  2713. // advice_doctor: this.doctor_advices[index].advice_doctor,
  2714. // }
  2715. // doctor_advice['isShow'] = 1
  2716. // this.doctor_advices.splice(new_advice_index, 0, doctor_advice)
  2717. // // this.doctor_advices.push(doctor_advice)
  2718. // }
  2719. // }
  2720. // for (let index = 0; index < this.doctor_advices.length; index++) {
  2721. // const advice = this.doctor_advices[index]
  2722. // if (advice.groupno == 0) {
  2723. // // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
  2724. // if (advice.parent_id > 0) {
  2725. // if (this.advice_groups.length > 0) {
  2726. // var parent_group = this.advice_groups[
  2727. // this.advice_groups.length - 1
  2728. // ]
  2729. // if (parent_group.advices.length > 0) {
  2730. // if (parent_group.advices[0].id == advice.parent_id) {
  2731. // parent_group.advices.push(advice)
  2732. // }
  2733. // }
  2734. // }
  2735. // continue
  2736. // } else {
  2737. // if (group.group_no > 0) {
  2738. // this.advice_groups.push(group)
  2739. // group = this.newAdviceGroupObject()
  2740. // }
  2741. // initGroupBlock(group, advice)
  2742. // group.advices.push(advice)
  2743. // this.advice_groups.push(group)
  2744. // group = this.newAdviceGroupObject()
  2745. // continue
  2746. // }
  2747. // }
  2748. // if (group.group_no > 0 && group.group_no != advice.groupno) {
  2749. // this.advice_groups.push(group)
  2750. // group = this.newAdviceGroupObject()
  2751. // }
  2752. // if (group.group_no == 0) {
  2753. // initGroupBlock(group, advice)
  2754. // }
  2755. // if (group.group_no == advice.groupno) {
  2756. // group.advices.push(advice)
  2757. // }
  2758. // }
  2759. // if (group.group_no > 0) {
  2760. // // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
  2761. // this.advice_groups.push(group)
  2762. // }
  2763. // }
  2764. // console.log(this.advice_groups)
  2765. } else {
  2766. this.loading = false;
  2767. this.$message.error("请求数据失败");
  2768. return false;
  2769. }
  2770. });
  2771. },
  2772. bloodAccessParOperaName(id) {
  2773. if (id in this.bloodAccessParOpera) {
  2774. return this.bloodAccessParOpera[id].name;
  2775. }
  2776. return "";
  2777. },
  2778. dialysateFormulationName(id) {
  2779. if (id in this.dialysateFormulationOptions) {
  2780. return this.dialysateFormulationOptions[id].name;
  2781. }
  2782. return "";
  2783. },
  2784. getAge: function (val) {
  2785. if (
  2786. this.org_template_info.template_id == 2 ||
  2787. this.org_template_info.template_id == 0
  2788. ) {
  2789. if (val.age == 0) {
  2790. return jsGetAge(val.birth, "-");
  2791. } else {
  2792. return val.age;
  2793. }
  2794. } else {
  2795. return jsGetAge(val.birth, "-");
  2796. }
  2797. },
  2798. newAdviceGroupObject: function () {
  2799. return Object.assign(
  2800. {},
  2801. {
  2802. group_no: 0,
  2803. // advice_doctor: 0,
  2804. // start_time: 0,
  2805. advices: [],
  2806. // exec_staff: 0,
  2807. // exec_time: 0,
  2808. // checker: 0,
  2809. }
  2810. );
  2811. },
  2812. //日期
  2813. handleScheduleDateChange: function (index) {
  2814. this.treatStateVal = 0;
  2815. this.patientStateVal = 0;
  2816. this.zoneVal = 0;
  2817. this.scheduleStateVal = 0;
  2818. this.search_keyword = this.search_input = "";
  2819. // this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
  2820. // zone: this.zone_selected,
  2821. // schedule_type: this.schedule_type_selected,
  2822. // schedule_date: this.selected_date,
  2823. // })
  2824. this.selected_date = index;
  2825. this.$store.dispatch("SetSelectedDate", { selected_date: index });
  2826. this.requestDialysisSchedules();
  2827. },
  2828. //初始化数据
  2829. getInitData: function () {
  2830. getDialysisRecordInitData().then((rs) => {
  2831. var resp = rs.data;
  2832. if (resp.state == 1) {
  2833. var zones = resp.data.zones;
  2834. var schedules = resp.data.schedules;
  2835. var zone_options = [{ id: 0, text: "全部" }];
  2836. for (let z_i = 0; z_i < zones.length; z_i++) {
  2837. const zone = zones[z_i];
  2838. zone_options.push({ id: zone.id, text: zone.name });
  2839. }
  2840. this.zone_options = zone_options;
  2841. // this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
  2842. this.arr = this.processedDialysisSchedules(
  2843. schedules,
  2844. this.zone_options
  2845. );
  2846. this.requestDialysisSchedules();
  2847. // this.getData()
  2848. } else {
  2849. this.$message.error(resp.msg);
  2850. }
  2851. });
  2852. },
  2853. // 班次
  2854. handletimeType: function (index) {
  2855. this.scheduleStateVal = index;
  2856. this.$store.dispatch("SetScheduleTypeSelected", {
  2857. schedule_type_selected: index,
  2858. });
  2859. this.search_keyword = this.search_input = "";
  2860. this.getData();
  2861. },
  2862. //分区
  2863. handleZoneChange: function (index) {
  2864. this.zoneVal = index;
  2865. this.$store.dispatch("SetZoneSelected", { zone_selected: index });
  2866. this.search_keyword = this.search_input = "";
  2867. this.getData();
  2868. },
  2869. //患者状态
  2870. handleStateChange: function (index) {
  2871. this.patientStateVal = index;
  2872. this.$store.dispatch("SetPatientStateSelected", {
  2873. patient_state_selected: index,
  2874. });
  2875. this.search_keyword = this.search_input = "";
  2876. this.getData();
  2877. },
  2878. handleTreatChange: function (index) {
  2879. this.treatStateVal = index;
  2880. this.$store.dispatch("SetTreatStateSelected", {
  2881. treat_state_selected: index,
  2882. });
  2883. this.search_keyword = this.search_input = "";
  2884. this.getData();
  2885. },
  2886. processedDialysisSchedules: function (schedules, zone_options) {
  2887. var zoneMap = {};
  2888. var scheduleMap = {};
  2889. for (let z_i = 0; z_i < zone_options.length; z_i++) {
  2890. const zone = zone_options[z_i];
  2891. if (zone.id == 0) {
  2892. continue;
  2893. }
  2894. scheduleMap[zone.id] = [];
  2895. }
  2896. for (let index = 0; index < schedules.length; index++) {
  2897. const schedule = schedules[index];
  2898. scheduleMap[schedule.device_number.zone.id].push(schedule);
  2899. }
  2900. var zone_schedules = [];
  2901. for (let index = 0; index < zone_options.length; index++) {
  2902. const zone = zone_options[index];
  2903. if (zone.id == 0) {
  2904. continue;
  2905. }
  2906. var schedules = scheduleMap[zone.id];
  2907. zone_schedules.push({
  2908. zone_id: zone.id,
  2909. zone_name: zone.text,
  2910. schedules: schedules,
  2911. });
  2912. }
  2913. return zone_schedules;
  2914. },
  2915. searchAction: function () {
  2916. this.search_keyword = this.search_input;
  2917. this.scheduleStateVal = 0;
  2918. this.zoneVal = 0;
  2919. this.treatStateVal = 0;
  2920. this.patientStateVal = 0;
  2921. if (this.search_input != "") {
  2922. let arr = [];
  2923. this.filtedSchedules.map((item) => {
  2924. arr.push(...item.schedules);
  2925. });
  2926. this.tableData = arr;
  2927. } else {
  2928. this.getData();
  2929. }
  2930. },
  2931. requestDialysisSchedules: function () {
  2932. var ymd = parseTime(this.selected_date, "{y}-{m}-{d}");
  2933. getDialysisSchedules(ymd).then((rs) => {
  2934. var resp = rs.data;
  2935. if (resp.state == 1) {
  2936. var schedules = resp.data.schedules;
  2937. this.zone_schedules = this.processedDialysisSchedules(
  2938. schedules,
  2939. this.zone_options
  2940. );
  2941. let newArr = [];
  2942. this.zone_schedules.map((item) => {
  2943. newArr.push(...item.schedules);
  2944. });
  2945. this.tableData = newArr;
  2946. this.getData();
  2947. } else {
  2948. this.$message.error(resp.msg);
  2949. }
  2950. });
  2951. },
  2952. changePatient(schedual) {
  2953. console.log('schedual',schedual);
  2954. var xtdate = parseTime(schedual.schedule_date, "{y}-{m}-{d}");
  2955. console.log('fffff打印单单号',this.org_template_info.template_id);
  2956. this.x_tdate=xtdate
  2957. // this.queryParams.xtdate = xtdate;
  2958. // this.queryParams.xtno = schedual.patient.dialysis_no;
  2959. // this.queryParams.patient_id = schedual.patient.id
  2960. // this.getDialysisRecord()
  2961. // console.log('');
  2962. this.$router.push(
  2963. "/dialysis/print?xtdate=" +
  2964. xtdate +
  2965. "&xtno=" +
  2966. schedual.patient.dialysis_no+"&patient_id="+schedual.patient.id
  2967. );
  2968. // this.patient_id = schedual.patient_id;
  2969. // this.date = schedual.schedule_date;
  2970. // // this.getScheduleDetail();
  2971. // // this.getLongAdvice();
  2972. // var patient_id = schedual.patient_id;
  2973. // var date = schedual.schedule_date;
  2974. // this.$router.push({
  2975. // path: "/dialysis/details",
  2976. // query: {
  2977. // patient_id: patient_id,
  2978. // date: date,
  2979. // patient_name: schedual.patient.name
  2980. // }
  2981. // });
  2982. },
  2983. getData() {
  2984. let patientArr = [];
  2985. patientArr = JSON.parse(JSON.stringify(this.zone_schedules));
  2986. // console.log("patientArr", patientArr);
  2987. let arr1 = [];
  2988. if (this.patientStateVal == 0) {
  2989. arr1 = patientArr;
  2990. // console.log(arr1);
  2991. } else if (this.patientStateVal == 1) {
  2992. let arr = [];
  2993. arr = patientArr;
  2994. for (let i = 0; i < arr.length; i++) {
  2995. for (let j = 0; j < arr[i].schedules.length; j++) {
  2996. if (
  2997. arr[i].schedules.length > 0 &&
  2998. (arr[i].schedules[j].assessment_before_dislysis == null ||
  2999. (arr[i].schedules[j].assessment_before_dislysis.weight_before ==
  3000. "" &&
  3001. arr[i].schedules[j].assessment_before_dislysis
  3002. .diastolic_blood_pressure == "" &&
  3003. arr[i].schedules[j].assessment_before_dislysis
  3004. .systolic_blood_pressure == ""))
  3005. ) {
  3006. // 删除元素后改变i的值
  3007. arr[i].schedules.splice(j--, 1);
  3008. }
  3009. }
  3010. }
  3011. // console.log("执行1", arr);
  3012. arr1 = arr;
  3013. } else if (this.patientStateVal == 2) {
  3014. let arr = [];
  3015. arr = patientArr;
  3016. for (let i = 0; i < arr.length; i++) {
  3017. for (let j = 0; j < arr[i].schedules.length; j++) {
  3018. if (
  3019. arr[i].schedules.length > 0 &&
  3020. arr[i].schedules[j].assessment_before_dislysis != null &&
  3021. (arr[i].schedules[j].assessment_before_dislysis.weight_before !=
  3022. 0 ||
  3023. arr[i].schedules[j].assessment_before_dislysis
  3024. .diastolic_blood_pressure != 0 ||
  3025. arr[i].schedules[j].assessment_before_dislysis
  3026. .systolic_blood_pressure != 0)
  3027. ) {
  3028. // 删除元素后改变i的值
  3029. // console.log("几次");
  3030. arr[i].schedules.splice(j--, 1);
  3031. }
  3032. }
  3033. }
  3034. // console.log("执行2", arr);
  3035. arr1 = arr;
  3036. } else if (this.patientStateVal == 3) {
  3037. let arr = [];
  3038. arr = patientArr;
  3039. for (let i = 0; i < arr.length; i++) {
  3040. for (let j = 0; j < arr[i].schedules.length; j++) {
  3041. if (
  3042. arr[i].schedules.length > 0 &&
  3043. (arr[i].schedules[j].dialysis_order == null ||
  3044. (arr[i].schedules[j].dialysis_order != null &&
  3045. arr[i].schedules[j].dialysis_order.stage != 1))
  3046. ) {
  3047. // 删除元素后改变i的值
  3048. arr[i].schedules.splice(j--, 1);
  3049. }
  3050. }
  3051. }
  3052. console.log("执行1", arr);
  3053. arr1 = arr;
  3054. } else if (this.patientStateVal == 4) {
  3055. let arr = [];
  3056. arr = patientArr;
  3057. for (let i = 0; i < arr.length; i++) {
  3058. for (let j = 0; j < arr[i].schedules.length; j++) {
  3059. if (
  3060. arr[i].schedules.length > 0 &&
  3061. (arr[i].schedules[j].dialysis_order == null ||
  3062. (arr[i].schedules[j].dialysis_order != null &&
  3063. arr[i].schedules[j].dialysis_order.stage != 2))
  3064. ) {
  3065. // 删除元素后改变i的值
  3066. arr[i].schedules.splice(j--, 1);
  3067. }
  3068. }
  3069. }
  3070. console.log("执行2", arr);
  3071. arr1 = arr;
  3072. }
  3073. let arr2 = [];
  3074. if (this.treatStateVal == 0) {
  3075. arr2 = JSON.parse(JSON.stringify(arr1));
  3076. } else if (this.treatStateVal == 1) {
  3077. let arr = [];
  3078. arr = JSON.parse(JSON.stringify(arr1));
  3079. for (let i = 0; i < arr.length; i++) {
  3080. for (let j = 0; j < arr[i].schedules.length; j++) {
  3081. if (
  3082. arr[i].schedules.length > 0 &&
  3083. (arr[i].schedules[j].prescription != null ||
  3084. arr[i].schedules[j].prescription != null
  3085. ? arr[i].schedules[j].prescription.creater != 0
  3086. : false)
  3087. ) {
  3088. // 删除元素后改变i的值
  3089. arr[i].schedules.splice(j--, 1);
  3090. }
  3091. }
  3092. }
  3093. arr2 = arr;
  3094. } else if (this.treatStateVal == 2) {
  3095. let arr = [];
  3096. arr = JSON.parse(JSON.stringify(arr1));
  3097. for (let i = 0; i < arr.length; i++) {
  3098. for (let j = 0; j < arr[i].schedules.length; j++) {
  3099. if (
  3100. arr[i].schedules.length > 0 &&
  3101. arr[i].schedules[j].treatment_summary != null &&
  3102. arr[i].schedules[j].treatment_summary.dialysis_summary != ""
  3103. ) {
  3104. // 删除元素后改变i的值
  3105. arr[i].schedules.splice(j--, 1);
  3106. }
  3107. }
  3108. }
  3109. arr2 = arr;
  3110. }
  3111. let arr3 = [];
  3112. if (this.scheduleStateVal == 0) {
  3113. arr3 = JSON.parse(JSON.stringify(arr2));
  3114. } else {
  3115. let arr = [];
  3116. arr = JSON.parse(JSON.stringify(arr2));
  3117. for (let i = 0; i < arr.length; i++) {
  3118. for (let j = 0; j < arr[i].schedules.length; j++) {
  3119. if (this.scheduleStateVal != arr[i].schedules[j].schedule_type) {
  3120. // 删除元素后改变i的值
  3121. arr[i].schedules.splice(j--, 1);
  3122. }
  3123. }
  3124. }
  3125. arr3 = arr;
  3126. console.log("上午", arr);
  3127. }
  3128. let arr4 = [];
  3129. if (this.zoneVal == 0) {
  3130. arr4 = JSON.parse(JSON.stringify(arr3));
  3131. } else {
  3132. let arr = [];
  3133. arr = JSON.parse(JSON.stringify(arr3));
  3134. for (let i = 0; i < arr.length; i++) {
  3135. if (this.zoneVal != arr[i].zone_id) {
  3136. // 删除元素后改变i的值
  3137. arr.splice(i--, 1);
  3138. }
  3139. }
  3140. arr4 = arr;
  3141. }
  3142. let newArr = [];
  3143. arr4.map((item) => {
  3144. newArr.push(...item.schedules);
  3145. });
  3146. this.tableData = newArr;
  3147. // console.log("table", this.tableData);
  3148. },
  3149. },
  3150. watch: {
  3151. "patientInfo.gender": function () {
  3152. if (this.patientInfo.gender == 1) {
  3153. this.patientInfo_gender_1 = true;
  3154. this.patientInfo_gender_2 = false;
  3155. } else if (this.patientInfo.gender == 2) {
  3156. this.patientInfo_gender_2 = true;
  3157. this.patientInfo_gender_1 = false;
  3158. } else {
  3159. this.patientInfo_gender_2 = false;
  3160. this.patientInfo_gender_1 = false;
  3161. }
  3162. },
  3163. "patientInfo.source": function () {
  3164. if (this.patientInfo.source == 1) {
  3165. this.patientInfo_source_1 = true;
  3166. this.patientInfo_source_2 = false;
  3167. } else if (this.patientInfo.source == 2) {
  3168. this.patientInfo_source_2 = true;
  3169. this.patientInfo_source_1 = false;
  3170. } else {
  3171. this.patientInfo_source_2 = false;
  3172. this.patientInfo_source_1 = false;
  3173. }
  3174. },
  3175. },
  3176. created() {
  3177. // console.log("this.$store.getters.xt_user.org.id",this.$store.getters.xt_user.org.id)
  3178. var schedule_type_selected = this.$store.getters.schedule_type_selected;
  3179. var zone_selected = this.$store.getters.zone_selected;
  3180. var patient_state_selected = this.$store.getters.patient_state_selected;
  3181. var treat_state_selected = this.$store.getters.treat_state_selected;
  3182. var selected_date = this.$store.getters.selected_date;
  3183. if (schedule_type_selected) {
  3184. this.scheduleStateVal = schedule_type_selected.schedule_type_selected;
  3185. }
  3186. if (zone_selected) {
  3187. this.zoneVal = zone_selected.zone_selected;
  3188. }
  3189. if (patient_state_selected) {
  3190. this.patientStateVal = patient_state_selected.patient_state_selected;
  3191. }
  3192. if (treat_state_selected) {
  3193. this.treatStateVal = treat_state_selected.treat_state_selected;
  3194. }
  3195. if (selected_date.selected_date) {
  3196. this.selected_date = selected_date.selected_date;
  3197. }
  3198. this.getInitData();
  3199. var xtuser = this.$store.getters.xt_user;
  3200. this.orgname = xtuser.org.org_name;
  3201. // this.orgname = "遂溪方济医院";
  3202. this.modeOptions = this.$store.getters.treatment_mode;
  3203. this.replacementWays = this.$store.getters.replacement_ways;
  3204. this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
  3205. this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
  3206. // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
  3207. var bloodAccessParOpera = getDataConfig(
  3208. "hemodialysis",
  3209. "vascular_access_desc"
  3210. );
  3211. for (var key in bloodAccessParOpera) {
  3212. this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
  3213. bloodAccessParOpera[key];
  3214. }
  3215. var dialysateFormulationOptions = getDataConfig(
  3216. "hemodialysis",
  3217. "dialysate_formulation"
  3218. );
  3219. for (var key in dialysateFormulationOptions) {
  3220. this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
  3221. dialysateFormulationOptions[key];
  3222. }
  3223. const xtdate = this.$route.query && this.$route.query.xtdate;
  3224. const xtno = this.$route.query && this.$route.query.xtno;
  3225. const patient_id = this.$route.query && this.$route.query.patient_id;
  3226. if (
  3227. typeof xtdate === "string" &&
  3228. xtdate.length > 0 &&
  3229. typeof xtno === "string" &&
  3230. xtno.length > 0
  3231. ) {
  3232. this.queryParams.xtdate = xtdate;
  3233. this.queryParams.xtno = xtno;
  3234. this.queryParams.patient_id = patient_id
  3235. // console.log('wwwwww121212',this.org_template_info.template_id);
  3236. this.getDialysisRecord();
  3237. } else {
  3238. this.$message.error("参数不齐");
  3239. return false;
  3240. }
  3241. },
  3242. computed: {
  3243. filtedSchedules: function () {
  3244. var search_keyword = this.search_keyword;
  3245. if (search_keyword.length > 0) {
  3246. var schedules = [];
  3247. for (let o_i = 0; o_i < this.zone_schedules.length; o_i++) {
  3248. const scheduleInfo = this.zone_schedules[o_i];
  3249. var originSchedules = scheduleInfo.schedules;
  3250. if (originSchedules.length == 0) {
  3251. continue;
  3252. }
  3253. var filtedSchedules = [];
  3254. for (let s_i = 0; s_i < originSchedules.length; s_i++) {
  3255. const schedule = originSchedules[s_i];
  3256. if (schedule.patient.name.indexOf(search_keyword) != -1) {
  3257. filtedSchedules.push(schedule);
  3258. // break
  3259. }
  3260. }
  3261. if (filtedSchedules.length > 0) {
  3262. schedules.push({
  3263. zone_id: scheduleInfo.zone_id,
  3264. zone_name: scheduleInfo.zone_name,
  3265. schedules: filtedSchedules,
  3266. });
  3267. }
  3268. }
  3269. return schedules;
  3270. }
  3271. },
  3272. },
  3273. };
  3274. </script>
  3275. <style>
  3276. .dialysis-print-order {
  3277. width: 960px;
  3278. margin: 0 auto;
  3279. }
  3280. .dialysis-print-order .order-yy-name {
  3281. margin: auto;
  3282. text-align: center;
  3283. font-size: 20px;
  3284. letter-spacing: 5px;
  3285. }
  3286. .dialysis-print-order .order-title {
  3287. margin: auto;
  3288. font-weight: 600;
  3289. text-align: center;
  3290. font-size: 22px;
  3291. padding: 10px;
  3292. }
  3293. .dialysis-print-order .table-box {
  3294. width: 100%;
  3295. line-height: 23px;
  3296. font-size: 14px;
  3297. }
  3298. .dialysis-print-order .print-table {
  3299. width: 100%;
  3300. text-align: center;
  3301. border-collapse: collapse;
  3302. line-height: 40px;
  3303. font-size: 14px;
  3304. border-color: #000;
  3305. }
  3306. .dialysis-print-order .print-table-no {
  3307. width: 100%;
  3308. text-align: center;
  3309. border-collapse: collapse;
  3310. font-size: 14px;
  3311. }
  3312. .dialysis-print-order .under-line {
  3313. border-bottom: 1px solid #999;
  3314. width: 95%;
  3315. text-align: center;
  3316. margin-left: 2px;
  3317. }
  3318. .dialysis-print-order .title-box {
  3319. text-align: center;
  3320. font-size: 16px;
  3321. }
  3322. .dialysis-print-order .radio-lebel-box {
  3323. font-weight: 400;
  3324. cursor: pointer;
  3325. }
  3326. .dialysis-print-order .radio-no {
  3327. opacity: 0;
  3328. outline: none;
  3329. position: absolute;
  3330. margin: 0;
  3331. width: 0;
  3332. height: 0;
  3333. z-index: -1;
  3334. }
  3335. .dialysis-print-order .radio-inner {
  3336. white-space: nowrap;
  3337. cursor: pointer;
  3338. outline: none;
  3339. display: inline-block;
  3340. line-height: 1;
  3341. position: relative;
  3342. vertical-align: middle;
  3343. }
  3344. .dialysis-print-order .radio-fang {
  3345. display: inline-block;
  3346. position: relative;
  3347. border: 1px solid #000;
  3348. box-sizing: border-box;
  3349. width: 14px;
  3350. height: 14px;
  3351. background-color: #fff;
  3352. z-index: 1;
  3353. transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
  3354. background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
  3355. }
  3356. .dialysis-print-order .is-checked-radio::after {
  3357. content: "√";
  3358. font-size: 15px;
  3359. }
  3360. .dialysis-print-order .print-table-no tr td {
  3361. padding: 8px 5px;
  3362. line-height: 25px;
  3363. }
  3364. .dialysis-print-order .print-table tr td {
  3365. padding: 1px 1px;
  3366. /*line-height: 25px;*/
  3367. }
  3368. .es-img {
  3369. height: 30px;
  3370. }
  3371. .advice-name {
  3372. text-align: left;
  3373. }
  3374. .advice-children {
  3375. display: flex;
  3376. }
  3377. .title-box-pro {
  3378. border: 0 #fff;
  3379. line-height: 25px;
  3380. height: 25px;
  3381. text-align: left;
  3382. padding-left: 10px !important;
  3383. }
  3384. .title-box-pro-tr {
  3385. border: 0 #fff;
  3386. }
  3387. .text-align-left {
  3388. text-align: left !important;
  3389. padding-left: 10px !important;
  3390. font-size: 14px !important;
  3391. line-height: 25px;
  3392. }
  3393. .print-table-tr-new td {
  3394. line-height: 20px !important;
  3395. }
  3396. .border-top-solid {
  3397. border: solid 1px #000;
  3398. }
  3399. .print-template-two tr {
  3400. line-height: 30px;
  3401. }
  3402. .table-box1 {
  3403. border: 1px solid #000;
  3404. width: 100%;
  3405. line-height: 30px;
  3406. font-size: 14px;
  3407. border-collapse: collapse;
  3408. }
  3409. .table-box1 tr {
  3410. border-bottom: 1px solid #000;
  3411. }
  3412. </style>
  3413. <style lang="scss">
  3414. .newContainer {
  3415. .dialysisPage::-webkit-scrollbar {
  3416. height: 15px;
  3417. }
  3418. .el-date-editor {
  3419. .el-input__inner {
  3420. padding-right: 0px;
  3421. }
  3422. }
  3423. .el-table td,
  3424. .el-table th {
  3425. text-align: center;
  3426. }
  3427. }
  3428. .newContainer::-webkit-scrollbar {
  3429. height: 15px !important;
  3430. }
  3431. </style>