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

dialysisPrintOrder.vue 136KB

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