dialysisPrintOrder.vue 118KB

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