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

dialysisPrintOrder.vue 121KB

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