dialysisPrintOrder.vue 78KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710
  1. <template>
  2. <div class="main-contain">
  3. <div class="position">
  4. <bread-crumb :crumbs="crumbs"></bread-crumb>
  5. <template v-if="org_template_info.template_id == 1">
  6. <el-button
  7. :loading="loading"
  8. size="small"
  9. icon="el-icon-printer"
  10. @click="printThisPage"
  11. type="primary"
  12. >打印</el-button
  13. >
  14. </template>
  15. <template
  16. v-if="
  17. org_template_info.template_id == 2 ||
  18. org_template_info.template_id == 0
  19. "
  20. >
  21. <div>
  22. <el-button
  23. :loading="loading"
  24. size="small"
  25. icon="el-icon-printer"
  26. @click="printThisPage"
  27. type="primary"
  28. >打印全部</el-button
  29. >
  30. <el-button
  31. :loading="loading"
  32. size="small"
  33. icon="el-icon-printer"
  34. @click="printThisOnePage"
  35. type="primary"
  36. >打印纪录单</el-button
  37. >
  38. <el-button
  39. :loading="loading"
  40. size="small"
  41. icon="el-icon-printer"
  42. @click="printThisTwoPage"
  43. type="primary"
  44. >打印医嘱单</el-button
  45. >
  46. </div>
  47. </template>
  48. <template v-if="org_template_info.template_id == 3">
  49. <el-button
  50. :loading="loading"
  51. size="small"
  52. icon="el-icon-printer"
  53. @click="printThisPage"
  54. type="primary"
  55. >打印</el-button
  56. >
  57. </template>
  58. <template v-if="org_template_info.template_id == 4">
  59. <el-button
  60. :loading="loading"
  61. size="small"
  62. icon="el-icon-printer"
  63. @click="printThisPage"
  64. type="primary"
  65. >打印</el-button
  66. >
  67. </template>
  68. <template v-if="org_template_info.template_id == 5">
  69. <div>
  70. <el-button
  71. :loading="loading"
  72. size="small"
  73. icon="el-icon-printer"
  74. @click="printThisPage"
  75. type="primary"
  76. >打印全部</el-button
  77. >
  78. <el-button
  79. :loading="loading"
  80. size="small"
  81. icon="el-icon-printer"
  82. @click="printThisOnePage"
  83. type="primary"
  84. >打印纪录单</el-button
  85. >
  86. <el-button
  87. :loading="loading"
  88. size="small"
  89. icon="el-icon-printer"
  90. @click="printThisTwoPage"
  91. type="primary"
  92. >打印医嘱单</el-button
  93. >
  94. </div>
  95. </template>
  96. <template
  97. v-if="
  98. org_template_info.template_id == 6 ||
  99. org_template_info.template_id == 10 ||
  100. org_template_info.template_id == 11
  101. "
  102. >
  103. <el-button
  104. :loading="loading"
  105. size="small"
  106. icon="el-icon-printer"
  107. @click="printThisPage"
  108. type="primary"
  109. >打印</el-button
  110. >
  111. </template>
  112. <template v-if="org_template_info.template_id == 7">
  113. <el-button
  114. :loading="loading"
  115. size="small"
  116. icon="el-icon-printer"
  117. @click="printThisPage"
  118. type="primary"
  119. >打印</el-button
  120. >
  121. </template>
  122. <template v-if="org_template_info.template_id == 8">
  123. <el-button
  124. :loading="loading"
  125. size="small"
  126. icon="el-icon-printer"
  127. @click="printThisPage"
  128. type="primary"
  129. >打印</el-button
  130. >
  131. </template>
  132. <template v-if="org_template_info.template_id == 9">
  133. <el-button
  134. :loading="loading"
  135. size="small"
  136. icon="el-icon-printer"
  137. @click="printThisPage"
  138. type="primary"
  139. >打印</el-button
  140. >
  141. </template>
  142. <template v-if="org_template_info.template_id == 12">
  143. <el-button
  144. :loading="loading"
  145. size="small"
  146. icon="el-icon-printer"
  147. @click="printThisPage"
  148. type="primary"
  149. >打印</el-button
  150. >
  151. </template>
  152. <template v-if="org_template_info.template_id == 13">
  153. <el-button
  154. :loading="loading"
  155. size="small"
  156. icon="el-icon-printer"
  157. @click="printThisPage"
  158. type="primary"
  159. >打印</el-button
  160. >
  161. </template>
  162. <template
  163. v-if="
  164. org_template_info.template_id == 14 ||
  165. org_template_info.template_id == 0
  166. "
  167. >
  168. <div>
  169. <el-button
  170. :loading="loading"
  171. size="small"
  172. icon="el-icon-printer"
  173. @click="printThisPage"
  174. type="primary"
  175. >打印全部</el-button
  176. >
  177. <el-button
  178. :loading="loading"
  179. size="small"
  180. icon="el-icon-printer"
  181. @click="printThisOnePage"
  182. type="primary"
  183. >打印纪录单</el-button
  184. >
  185. <el-button
  186. :loading="loading"
  187. size="small"
  188. icon="el-icon-printer"
  189. @click="printThisTwoPage"
  190. type="primary"
  191. >打印医嘱单</el-button
  192. >
  193. </div>
  194. </template>
  195. <template v-if="org_template_info.template_id == 15">
  196. <el-button
  197. :loading="loading"
  198. size="small"
  199. icon="el-icon-printer"
  200. @click="printThisPage"
  201. type="primary"
  202. >打印</el-button
  203. >
  204. </template>
  205. <template v-if="org_template_info.template_id == 16">
  206. <el-button
  207. :loading="loading"
  208. size="small"
  209. icon="el-icon-printer"
  210. @click="printThisPage"
  211. type="primary"
  212. >打印</el-button
  213. >
  214. </template>
  215. <template v-if="org_template_info.template_id == 17">
  216. <el-button
  217. :loading="loading"
  218. size="small"
  219. icon="el-icon-printer"
  220. @click="printThisPage"
  221. type="primary"
  222. >打印</el-button
  223. >
  224. </template>
  225. </div>
  226. <div class="app-container" style="min-height:0;">
  227. <!--<div class="order-print-btn"-->
  228. <!--v-loading="loading"-->
  229. <!--element-loading-text="加载中"-->
  230. <!--element-loading-spinner="el-icon-loading"-->
  231. <!--element-loading-background="rgba(0, 0, 0, 0.8)"-->
  232. <!--style="width: 100%;">-->
  233. <!--</div>-->
  234. <!--<dialysis-print-order-two :patientInfo="patientInfo" :receiverTreatmentAccess="receiverTreatmentAccess" :predialysis="predialysis"></dialysis-print-order-two>-->
  235. <el-container class="newContainer">
  236. <div style="width:270px;margin-right:20px;">
  237. <div class="cell clearfix" style="margin-bottom:10px;">
  238. <el-date-picker v-model="selected_date" prefix-icon="el-icon-date" @change="handleScheduleDateChange" :editable="false" :clearable="false" style="width: 130px;margin-right:10px;" type="date" placeholder="选择日期时间" align="right" ></el-date-picker>
  239. <el-input size="small" style="width:80px;" v-model.trim="search_input" class="filter-item"/>
  240. <el-button size="small" class="filter-item" type="primary" @click="searchAction">搜索</el-button>
  241. </div>
  242. <div class="cell clearfix" style="margin-bottom:10px;">
  243. <el-select v-model="patientStateVal" placeholder="全部患者状态" style="width:130px;margin-right:10px;" @change="handleStateChange">
  244. <el-option
  245. v-for="item in patient_state"
  246. :key="item.value"
  247. :label="item.label"
  248. :value="item.value">
  249. </el-option>
  250. </el-select>
  251. <el-select v-model="treatStateVal" placeholder="全部治疗状态" style="width:130px;margin-right:10px;" @change="handleTreatChange">
  252. <el-option
  253. v-for="item in treat_state"
  254. :key="item.value"
  255. :label="item.label"
  256. :value="item.value">
  257. </el-option>
  258. </el-select>
  259. </div>
  260. <div class="cell clearfix" style="margin-bottom:10px;">
  261. <el-select v-model="scheduleStateVal" placeholder="班次" style="width:130px;margin-right:10px;" @change="handletimeType">
  262. <el-option
  263. v-for="item in schedule_options"
  264. :key="item.value"
  265. :label="item.label"
  266. :value="item.value">
  267. </el-option>
  268. </el-select>
  269. <el-select v-model="zoneVal" placeholder="分区" style="width:130px;margin-right:10px;" @change="handleZoneChange">
  270. <el-option
  271. v-for="item in zone_options"
  272. :key="item.id"
  273. :label="item.text"
  274. :value="item.id">
  275. </el-option>
  276. </el-select>
  277. </div>
  278. <div style="padding-right:20px;">
  279. <el-table
  280. ref="tab"
  281. @row-click="changePatient"
  282. highlight-current-row
  283. :data="tableData"
  284. height="480"
  285. border
  286. style="width: 100%">
  287. <el-table-column
  288. prop="date"
  289. label="患者"
  290. >
  291. <template slot-scope="scope">
  292. {{ scope.row.patient.name }}
  293. </template>
  294. </el-table-column>
  295. <el-table-column
  296. prop="name"
  297. label="透析号"
  298. >
  299. <template slot-scope="scope">
  300. {{ scope.row.patient.dialysis_no }}
  301. </template>
  302. </el-table-column>
  303. </el-table>
  304. </div>
  305. </div>
  306. <div class='dialysisPage' style="height: calc(100vh - 178px);overflow-x:auto;::-webkit-scrollbar:height:15px">
  307. <DialysisPrintOrderOne
  308. v-bind:childResponse="childResponse"
  309. v-if="org_template_info.template_id == 1"
  310. >
  311. </DialysisPrintOrderOne>
  312. <DialysisPrintOrderTwo
  313. v-bind:childResponse="childResponse"
  314. v-if="
  315. org_template_info.template_id == 2 ||
  316. org_template_info.template_id == 0
  317. "
  318. ></DialysisPrintOrderTwo>
  319. <DialysisPrintOrderThree
  320. v-bind:childResponse="childResponse"
  321. v-if="org_template_info.template_id == 3"
  322. >
  323. </DialysisPrintOrderThree>
  324. <DialysisPrintOrderFour
  325. v-bind:childResponse="childResponse"
  326. v-if="org_template_info.template_id == 4"
  327. >
  328. </DialysisPrintOrderFour>
  329. <DialysisPrintOrderFive
  330. v-bind:childResponse="childResponse"
  331. v-if="org_template_info.template_id == 5"
  332. >
  333. </DialysisPrintOrderFive>
  334. <DialysisPrintOrderSix
  335. v-bind:childResponse="childResponse"
  336. v-if="org_template_info.template_id == 6"
  337. >
  338. </DialysisPrintOrderSix>
  339. <DialysisPrintOrderSeven
  340. v-bind:childResponse="childResponse"
  341. v-if="org_template_info.template_id == 7"
  342. >
  343. </DialysisPrintOrderSeven>
  344. <DialysisPrintOrderEight
  345. v-bind:childResponse="childResponse"
  346. v-if="org_template_info.template_id == 8"
  347. >
  348. </DialysisPrintOrderEight>
  349. <!--<DialysisPrintOrderTen></DialysisPrintOrderTen>-->
  350. <DialysisPrintOrderTen
  351. v-bind:childResponse="childResponse"
  352. v-if="org_template_info.template_id == 10"
  353. ></DialysisPrintOrderTen>
  354. <DialysisPrintOrderNine
  355. v-bind:childResponse="childResponse"
  356. v-if="org_template_info.template_id == 9"
  357. ></DialysisPrintOrderNine>
  358. <DialysisPrintOrderEleven
  359. v-bind:childResponse="childResponse"
  360. v-if="org_template_info.template_id == 11"
  361. ></DialysisPrintOrderEleven>
  362. <DialysisPrintOrderTwelve
  363. v-bind:childResponse="childResponse"
  364. v-if="org_template_info.template_id == 12"
  365. ></DialysisPrintOrderTwelve>
  366. <DialysisPrintOrderThirteen
  367. v-bind:childResponse="childResponse"
  368. v-if="org_template_info.template_id == 13"
  369. ></DialysisPrintOrderThirteen>
  370. <DialysisPrintOrderFourteen
  371. v-bind:childResponse="childResponse"
  372. v-if="org_template_info.template_id == 14"
  373. ></DialysisPrintOrderFourteen>
  374. <DialysisPrintOrderFifteen
  375. v-bind:childResponse="childResponse"
  376. v-if="org_template_info.template_id == 15"
  377. ></DialysisPrintOrderFifteen>
  378. <DialysisPrintOrderSixteen
  379. v-bind:childResponse="childResponse"
  380. v-if="org_template_info.template_id == 16"
  381. ></DialysisPrintOrderSixteen>
  382. <DialysisPrintOrderSeventeen
  383. v-bind:childResponse="childResponse"
  384. v-if="org_template_info.template_id == 17"
  385. ></DialysisPrintOrderSeventeen>
  386. </div>
  387. </el-container>
  388. </div>
  389. </div>
  390. </template>
  391. <script>
  392. import {
  393. getDialysisRecordInitData,
  394. getDialysisSchedules
  395. } from "@/api/dialysis_record";
  396. import { parseTime } from "@/utils";
  397. import { getDialysisRecord } from "@/api/dialysis";
  398. import { getDataConfig } from "@/utils/data";
  399. import { jsGetAge, uParseTime } from "@/utils/tools";
  400. import LabelBox from "./printItem/LabelBox";
  401. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  402. import DialysisPrintOrderOne from "./template/dialysisPrintOrderOne";
  403. import DialysisPrintOrderTwo from "./template/dialysisPrintOrderTwo";
  404. import DialysisPrintOrderThree from "./template/dialysisPrintOrderThree";
  405. import DialysisPrintOrderFour from "./template/DialysisPrintOrderFour";
  406. import DialysisPrintOrderFive from "./template/DialysisPrintOrderFive";
  407. import DialysisPrintOrderSix from "./template/DialysisPrintOrderSix";
  408. import DialysisPrintOrderSeven from "./template/DialysisPrintOrderSeven";
  409. import DialysisPrintOrderEight from "./template/DialysisPrintOrderEight";
  410. import DialysisPrintOrderNine from "./template/DialysisPrintOrderNine";
  411. import print from "print-js";
  412. import DialysisPrintOrderTen from "./template/DialysisPrintOrderTen";
  413. import DialysisPrintOrderEleven from "./template/DialysisPrintOrderEleven";
  414. import DialysisPrintOrderTwelve from "./template/DialysisPrintOrderTwelve";
  415. import DialysisPrintOrderThirteen from "./template/DialysisPrintOrderThirteen";
  416. import DialysisPrintOrderFourteen from "./template/DialysisPrintOrderFourteen";
  417. import DialysisPrintOrderFifteen from "./template/DialysisPrintOrderFifteen";
  418. import DialysisPrintOrderSixteen from "./template/DialysisPrintOrderSixteen";
  419. import DialysisPrintOrderSeventeen from "./template/DialysisPrintOrderSeventeen";
  420. export default {
  421. name: "dialysisPrintOrder",
  422. components: {
  423. DialysisPrintOrderSeventeen,
  424. DialysisPrintOrderSixteen,
  425. DialysisPrintOrderFifteen,
  426. DialysisPrintOrderFourteen,
  427. DialysisPrintOrderThirteen,
  428. DialysisPrintOrderTwelve,
  429. DialysisPrintOrderEleven,
  430. DialysisPrintOrderTen,
  431. DialysisPrintOrderOne,
  432. DialysisPrintOrderTwo,
  433. DialysisPrintOrderThree,
  434. DialysisPrintOrderFour,
  435. DialysisPrintOrderFive,
  436. DialysisPrintOrderSix,
  437. DialysisPrintOrderSeven,
  438. DialysisPrintOrderEight,
  439. DialysisPrintOrderNine,
  440. LabelBox,
  441. BreadCrumb
  442. },
  443. data() {
  444. return {
  445. crumbs: [
  446. { path: false, name: "透析管理" },
  447. { path: false, name: "打印单" }
  448. ],
  449. childResponse: {},
  450. operators: [],
  451. adminUser: [],
  452. check: {},
  453. dialysisOrder: {
  454. DeviceNumber: []
  455. },
  456. operatorMaps: {},
  457. complications: [
  458. "低血压",
  459. "高血压",
  460. "心律失常",
  461. "头晕",
  462. "头痛",
  463. "呕吐",
  464. "抽搐",
  465. "出血",
  466. "心衰",
  467. "腹痛"
  468. ],
  469. jilurow: 0,
  470. advice_jilurow: 0,
  471. loading: false,
  472. orgname: "",
  473. patientInfo_gender_1: false,
  474. patientInfo_gender_2: false,
  475. patientInfo_source_2: false,
  476. patientInfo_source_1: false,
  477. modeOptions: {},
  478. replacementWays: [],
  479. perfusionApparatus: [],
  480. anticoagulantsConfit: {},
  481. bloodAccessParOpera: {},
  482. dialysateFormulationOptions: {},
  483. queryParams: {
  484. xtdate: "",
  485. xtno: ""
  486. },
  487. patientInfo: {
  488. birth: "",
  489. age: "",
  490. DialysisSchedule: {
  491. device_number: { number: "" },
  492. device_zone: { name: "" }
  493. },
  494. gender: 0
  495. },
  496. predialysis: {
  497. score: "",
  498. internal_fistula: "",
  499. internal_fistula_skin: "",
  500. catheter: "",
  501. blood_access_part_opera_name: ""
  502. },
  503. afterdialysis: {
  504. complications_index: ""
  505. },
  506. prescription: {
  507. dialysate_formulation_name: "",
  508. device: {}
  509. },
  510. advices: [],
  511. users: [],
  512. monitors: [],
  513. summary: {},
  514. receiverTreatmentAccess: {},
  515. org_template_info: {},
  516. doctor_advices: [],
  517. advice_groups: [],
  518. AlPanel: {
  519. id: 0,
  520. name: "",
  521. type: 1,
  522. shouji: 2,
  523. weichi: 2,
  524. zongliang: 2,
  525. gaimingcheng: -1,
  526. gaijiliang: -1,
  527. shouji_unit: "mg",
  528. weichi_unit: "mg/h",
  529. zongliang_unit: "mg",
  530. gaimingcheng_unit: "",
  531. gaijiliang_unit: ""
  532. },
  533. //
  534. tableData: [],
  535. selected_date: new Date(),
  536. // search_input 和 search_keyword,使输入关键字时不会经常刷新 filtedSchedules
  537. search_keyword: '', // 确定用于搜索的关键字
  538. search_input: '', // 输入中的关键字
  539. patient_state:[
  540. {value: 0,label: '全部'},
  541. {value: 1,label: '已签到'},
  542. {value: 2,label: '未签到'},
  543. {value: 3,label: '已上机'},
  544. {value: 4,label: '已下机'},
  545. ],
  546. patientStateVal: 0,
  547. treat_state:[
  548. {value: 0,label: '全部'},
  549. {value: 1,label: '待开处方'},
  550. {value: 2,label: '待开小结'},
  551. ],
  552. treatStateVal: 0,
  553. schedule_options:[
  554. {value: 0,label: '全部'},
  555. {value: 1,label: '上午'},
  556. {value: 2,label: '下午'},
  557. {value: 3,label: '晚上'},
  558. ],
  559. scheduleStateVal: 0,
  560. zone_options:[
  561. { id: 0, text: '全部' }
  562. ],
  563. zoneVal:0,
  564. };
  565. },
  566. methods: {
  567. getAdminUser(id) {
  568. if (id == 0) {
  569. return "";
  570. }
  571. if (id == undefined) {
  572. return "";
  573. }
  574. for (let i = 0; i < this.adminUser.length; i++) {
  575. if (this.adminUser[i].id == id) {
  576. return this.adminUser[i].name;
  577. }
  578. }
  579. },
  580. getTime(value, temp) {
  581. if (value == 0) {
  582. return "";
  583. }
  584. if (value != undefined) {
  585. return uParseTime(value, temp);
  586. }
  587. return "";
  588. },
  589. printThisPage() {
  590. var ptime = Math.round(new Date().getTime() / 1000);
  591. this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
  592. const style =
  593. '@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;}';
  594. const style2 =
  595. '@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;}';
  596. const style3 =
  597. '@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;}.row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}';
  598. // const style3 =
  599. // '@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;}';
  600. //
  601. const style5 =
  602. '@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: 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;}.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;}}';
  603. if (this.org_template_info.template_id == 1) {
  604. printJS({
  605. printable: "dialysis-print-box",
  606. type: "html",
  607. style: style,
  608. scanStyles: false
  609. });
  610. } else if (
  611. this.org_template_info.template_id == 2 ||
  612. this.org_template_info.template_id == 0
  613. ) {
  614. printJS({
  615. printable: "dialysis-print-box-1",
  616. type: "html",
  617. style: style2,
  618. scanStyles: false
  619. });
  620. } else if (this.org_template_info.template_id == 3) {
  621. printJS({
  622. printable: "dialysis-print-box",
  623. type: "html",
  624. style: style,
  625. scanStyles: false
  626. });
  627. } else if (this.org_template_info.template_id == 4) {
  628. printJS({
  629. printable: "dialysis-print-box",
  630. type: "html",
  631. style: style,
  632. scanStyles: false
  633. });
  634. } else if (this.org_template_info.template_id == 5) {
  635. printJS({
  636. printable: "dialysis-print-box-1",
  637. type: "html",
  638. style: style2,
  639. scanStyles: false
  640. });
  641. } else if (
  642. this.org_template_info.template_id == 6 ||
  643. this.org_template_info.template_id == 10 ||
  644. this.org_template_info.template_id == 11
  645. ) {
  646. printJS({
  647. printable: "dialysis-print-box-1",
  648. type: "html",
  649. style: style2,
  650. scanStyles: false
  651. });
  652. } else if (this.org_template_info.template_id == 7) {
  653. printJS({
  654. printable: "dialysis-print-box",
  655. type: "html",
  656. style: style,
  657. scanStyles: false
  658. });
  659. } else if (this.org_template_info.template_id == 8) {
  660. printJS({
  661. printable: "dialysis-print-box",
  662. type: "html",
  663. style: style,
  664. scanStyles: false
  665. });
  666. } else if (this.org_template_info.template_id == 9) {
  667. printJS({
  668. printable: "dialysis-print-box",
  669. type: "html",
  670. style: style5,
  671. scanStyles: false
  672. });
  673. } else if (this.org_template_info.template_id == 12) {
  674. printJS({
  675. printable: "dialysis-print-box",
  676. type: "html",
  677. style: style,
  678. scanStyles: false
  679. });
  680. } else if (this.org_template_info.template_id == 13) {
  681. printJS({
  682. printable: "dialysis-print-box-1",
  683. type: "html",
  684. style: style3,
  685. scanStyles: false
  686. });
  687. } else if (this.org_template_info.template_id == 14){
  688. printJS({
  689. printable: "dialysis-print-box",
  690. type: "html",
  691. style: style,
  692. scanStyles: false
  693. });
  694. } else if (this.org_template_info.template_id == 15){
  695. printJS({
  696. printable: "dialysis-print-box",
  697. type: "html",
  698. style: style,
  699. scanStyles: false
  700. });
  701. } else if (this.org_template_info.template_id == 16){
  702. printJS({
  703. printable: "dialysis-print-box",
  704. type: "html",
  705. style: style,
  706. scanStyles: false
  707. });
  708. } else if (this.org_template_info.template_id == 17) {
  709. printJS({
  710. printable: "dialysis-print-box",
  711. type: "html",
  712. style: style,
  713. scanStyles: false
  714. });
  715. }
  716. },
  717. printThisOnePage() {
  718. var ptime = Math.round(new Date().getTime() / 1000);
  719. this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
  720. const style =
  721. '@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;}';
  722. const style2 =
  723. '@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;}';
  724. if (this.org_template_info.template_id == 1) {
  725. printJS({
  726. printable: "dialysis-print-box",
  727. type: "html",
  728. style: style,
  729. scanStyles: false
  730. });
  731. } else if (
  732. this.org_template_info.template_id == 2 ||
  733. this.org_template_info.template_id == 0 ||
  734. this.org_template_info.template_id == 5
  735. ) {
  736. printJS({
  737. printable: "dialysis-print-box-1-1",
  738. type: "html",
  739. style: style2,
  740. scanStyles: false
  741. });
  742. } else if(this.org_template_info.template_id == 14){
  743. printJS({
  744. printable: "new-dialysis-1",
  745. type: "html",
  746. style: style,
  747. scanStyles: false
  748. });
  749. }
  750. },
  751. printThisTwoPage() {
  752. var ptime = Math.round(new Date().getTime() / 1000);
  753. this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
  754. const style =
  755. '@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;}';
  756. const style2 =
  757. '@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;}';
  758. if (this.org_template_info.template_id == 1) {
  759. printJS({
  760. printable: "dialysis-print-box",
  761. type: "html",
  762. style: style,
  763. scanStyles: false
  764. });
  765. } else if (
  766. this.org_template_info.template_id == 2 ||
  767. this.org_template_info.template_id == 0 ||
  768. this.org_template_info.template_id == 5
  769. ) {
  770. printJS({
  771. printable: "dialysis-print-box-1-2",
  772. type: "html",
  773. style: style2,
  774. scanStyles: false
  775. });
  776. }else if(this.org_template_info.template_id == 14){
  777. printJS({
  778. printable: "new-dialysis-2",
  779. type: "html",
  780. style: style,
  781. scanStyles: false
  782. });
  783. }
  784. },
  785. getNumber() {
  786. if (this.dialysisOrder != null) {
  787. return (
  788. this.patientInfo.DialysisSchedule.device_zone.name +
  789. this.dialysisOrder.DeviceNumber.number
  790. );
  791. } else {
  792. return (
  793. this.patientInfo.DialysisSchedule.device_zone.name +
  794. this.patientInfo.DialysisSchedule.device_number.number
  795. );
  796. }
  797. },
  798. getXuserName(id) {
  799. if (id <= 0) {
  800. return "";
  801. }
  802. var name = "";
  803. if (this.users == null || typeof this.users.length === "undefined") {
  804. return name;
  805. }
  806. var leng = this.users.length;
  807. if (leng == 0) {
  808. return name;
  809. }
  810. for (let index = 0; index < leng; index++) {
  811. if (this.users[index].id == id) {
  812. name = this.users[index].name;
  813. break;
  814. }
  815. }
  816. return name;
  817. },
  818. setAdminUserES(id) {
  819. console.log(id);
  820. if (id == 0) {
  821. return "";
  822. }
  823. if (id in this.operatorMaps) {
  824. return this.operatorMaps[id].url;
  825. } else {
  826. return "";
  827. }
  828. },
  829. modeName(mode_id) {
  830. return typeof this.modeOptions[mode_id] !== "undefined" &&
  831. typeof this.modeOptions[mode_id].name !== "undefined"
  832. ? this.modeOptions[mode_id].name
  833. : "";
  834. },
  835. getDialysisRecord() {
  836. this.loading = true;
  837. getDialysisRecord(this.queryParams).then(response => {
  838. if (response.data.state == 1) {
  839. this.childResponse = response;
  840. this.org_template_info = response.data.data.org_template_info;
  841. this.loading = false;
  842. // this.adminUser = response.data.data.users
  843. // this.users = response.data.data.users
  844. // this.patientInfo = response.data.data.patientInfo
  845. // this.patientInfo.birth = uParseTime(this.patientInfo.birthday, '{y}-{m}-{d}')
  846. // // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
  847. // if (response.data.data.patientInfo.first_dialysis_date != 0) {
  848. // this.patientInfo.first_dialysis_date = uParseTime(response.data.data.patientInfo.first_dialysis_date, '{y}-{m}-{d}')
  849. // } else {
  850. // this.patientInfo.first_dialysis_date = ''
  851. // }
  852. // this.check = response.data.data.check
  853. // this.predialysis = response.data.data.PredialysisEvaluation
  854. // this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(this.predialysis.blood_access_part_opera_id)
  855. // this.afterdialysis = response.data.data.AssessmentAfterDislysis
  856. // this.operators = response.data.data.operators
  857. // this.dialysisOrder = response.data.data.dialysisOrder === null ? null : response.data.data.dialysisOrder
  858. // if (this.operators.length > 0) {
  859. // var operatorsLen = this.operators.length
  860. // for (var index = 0; index < operatorsLen; index++) {
  861. // this.$set(this.operatorMaps, this.operators[index].creator, this.operators[index])
  862. // }
  863. // }
  864. // this.afterdialysis.txqnx = -1
  865. // if (this.afterdialysis.cruor.indexOf('0度') > -1) {
  866. // this.afterdialysis.txqnx = 0
  867. // }
  868. // if (this.afterdialysis.cruor.indexOf('Ⅰ度') > -1) {
  869. // this.afterdialysis.txqnx = 1
  870. // }
  871. // if (this.afterdialysis.cruor.indexOf('Ⅱ度') > -1) {
  872. // this.afterdialysis.txqnx = 2
  873. // }
  874. // if (this.afterdialysis.cruor.indexOf('Ⅲ度') > -1) {
  875. // this.afterdialysis.txqnx = 3
  876. // }
  877. // this.afterdialysis.complications = this.afterdialysis.complication.split(',')
  878. // this.afterdialysis.complications_other = []
  879. // this.afterdialysis.complications_index = []
  880. // var acllen = this.afterdialysis.complications.length
  881. // for (let index = 0; index < acllen; index++) {
  882. // if (this.complications.indexOf(this.afterdialysis.complications[index]) >= 0) {
  883. // this.afterdialysis.complications_index.push(this.afterdialysis.complications[index])
  884. // } else if (this.complications.indexOf(this.afterdialysis.complications[index]) < 0 && this.afterdialysis.complications_other.indexOf(this.afterdialysis.complications[index]) < 0) {
  885. // this.afterdialysis.complications_other.push(this.afterdialysis.complications[index])
  886. // }
  887. // }
  888. // this.afterdialysis.complications_other = this.afterdialysis.complications_other.join(',')
  889. // this.prescription = response.data.data.dialysisPrescription
  890. // this.receiverTreatmentAccess = response.data.data.receiverTreatmentAccess
  891. // this.prescription.mode = this.modeName(this.prescription.mode_id)
  892. // var rwLen = this.replacementWays.length
  893. // this.prescription.replacement = ''
  894. // for (let index = 0; index < rwLen; index++) {
  895. // if (this.replacementWays[index].id == this.prescription.replacement_way) {
  896. // this.prescription.replacement = this.replacementWays[index].name
  897. // break
  898. // }
  899. // }
  900. // this.prescription.dialysate_formulation_name = this.dialysateFormulationName(this.prescription.dialysate_formulation)
  901. // var paLen = this.perfusionApparatus.length
  902. // this.prescription.perfusion_apparatus_name = ''
  903. // for (let index = 0; index < paLen; index++) {
  904. // if (this.perfusionApparatus[index].id == this.prescription.perfusion_apparatus) {
  905. // this.prescription.perfusion_apparatus_name = this.perfusionApparatus[index].name
  906. // break
  907. // }
  908. // }
  909. // var acLen = this.anticoagulantsConfit.length
  910. // var thisALID = this.prescription.anticoagulant
  911. // this.prescription.anticoagulant_name = ''
  912. // if (typeof (this.anticoagulantsConfit[thisALID]) !== 'undefined' && this.anticoagulantsConfit[thisALID] != null) {
  913. // this.prescription.anticoagulant_name = this.anticoagulantsConfit[thisALID].name
  914. // this.AlPanel = this.anticoagulantsConfit[thisALID]
  915. // }
  916. // this.advices = response.data.data.advices
  917. // this.monitors = response.data.data.monitors
  918. // this.summary = response.data.data.summary
  919. // this.org_template_info = response.data.data.org_template_info
  920. // if (this.monitors.length < 8) {
  921. // var nl = 8 - this.monitors.length
  922. // for (let index = 0; index < nl; index++) {
  923. // this.monitors.push([])
  924. // }
  925. // }
  926. // this.jilurow = this.monitors.length + 1
  927. // this.advice_jilurow = this.advices.length + 1
  928. // var childMap = {}
  929. // for (const index in this.advices) {
  930. // if (this.advices[index].parent_id == 0) {
  931. // continue
  932. // }
  933. // if (!(this.advices[index].parent_id in childMap)) {
  934. // childMap[this.advices[index].parent_id] = []
  935. // }
  936. // childMap[this.advices[index].parent_id].push(this.advices[index])
  937. // }
  938. // var advices = []
  939. // for (const index in this.advices) {
  940. // if (this.advices[index].parent_id > 0) {
  941. // continue
  942. // }
  943. // var item = this.advices[index]
  944. // if (item.id in childMap) {
  945. // item.children = childMap[item.id]
  946. // } else {
  947. // item.children = []
  948. // }
  949. // advices.push(item)
  950. // }
  951. // var leftAdvice = []
  952. // var rightAdvice = []
  953. // var adlen = advices.length
  954. // var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
  955. // for (var i = 0; i < halfLen; i++) {
  956. // leftAdvice.push(advices[i])
  957. // rightAdvice.push(advices[i + halfLen])
  958. // }
  959. // if (halfLen < 5) {
  960. // var nl = 5 - leftAdvice.length
  961. // for (let index = 0; index < nl; index++) {
  962. // leftAdvice.push([])
  963. // }
  964. // var nl = 5 - rightAdvice.length
  965. // for (let index = 0; index < nl; index++) {
  966. // rightAdvice.push([])
  967. // }
  968. // }
  969. // this.advices = []
  970. // for (var i = 0; i < halfLen; i++) {
  971. // var item = []
  972. // item.push(leftAdvice[i])
  973. // item.push(rightAdvice[i])
  974. // this.advices.push(item)
  975. // }
  976. // this.loading = false
  977. // this.doctor_advices = response.data.data.advices == null ? [] : response.data.data.advices
  978. // for (let index = 0; index < this.doctor_advices.length; index++) {
  979. // this.doctor_advices[index]['isShow'] = 2
  980. // }
  981. // if (this.doctor_advices.length > 0) {
  982. // var group = this.newAdviceGroupObject()
  983. // var initGroupBlock = function(group, advice) {
  984. // group.group_no = advice.groupno
  985. // }
  986. // for (let index = this.doctor_advices.length - 1; index >= 0; index--) {
  987. // var new_advice_index = 0
  988. // if ('children' in this.doctor_advices[index] && this.doctor_advices[index].children.length > 0) {
  989. // new_advice_index = index + this.doctor_advices[index].children.length + 1
  990. // var doctor_advice = {
  991. // delivery_way: this.doctor_advices[index].delivery_way,
  992. // execution_frequency: this.doctor_advices[index].execution_frequency,
  993. // groupno: this.doctor_advices[index].groupno,
  994. // id: this.doctor_advices[index].id,
  995. // parent_id: this.doctor_advices[index].parent_id,
  996. // children: this.doctor_advices[index].children,
  997. // remark: this.doctor_advices[index].remark,
  998. // execution_staff: this.doctor_advices[index].execution_staff,
  999. // checker: this.doctor_advices[index].checker,
  1000. // advice_doctor: this.doctor_advices[index].advice_doctor,
  1001. // }
  1002. // doctor_advice['isShow'] = 1
  1003. // this.doctor_advices.splice(new_advice_index, 0, doctor_advice)
  1004. // // this.doctor_advices.push(doctor_advice)
  1005. // }
  1006. // }
  1007. // for (let index = 0; index < this.doctor_advices.length; index++) {
  1008. // const advice = this.doctor_advices[index]
  1009. // if (advice.groupno == 0) {
  1010. // // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
  1011. // if (advice.parent_id > 0) {
  1012. // if (this.advice_groups.length > 0) {
  1013. // var parent_group = this.advice_groups[
  1014. // this.advice_groups.length - 1
  1015. // ]
  1016. // if (parent_group.advices.length > 0) {
  1017. // if (parent_group.advices[0].id == advice.parent_id) {
  1018. // parent_group.advices.push(advice)
  1019. // }
  1020. // }
  1021. // }
  1022. // continue
  1023. // } else {
  1024. // if (group.group_no > 0) {
  1025. // this.advice_groups.push(group)
  1026. // group = this.newAdviceGroupObject()
  1027. // }
  1028. // initGroupBlock(group, advice)
  1029. // group.advices.push(advice)
  1030. // this.advice_groups.push(group)
  1031. // group = this.newAdviceGroupObject()
  1032. // continue
  1033. // }
  1034. // }
  1035. // if (group.group_no > 0 && group.group_no != advice.groupno) {
  1036. // this.advice_groups.push(group)
  1037. // group = this.newAdviceGroupObject()
  1038. // }
  1039. // if (group.group_no == 0) {
  1040. // initGroupBlock(group, advice)
  1041. // }
  1042. // if (group.group_no == advice.groupno) {
  1043. // group.advices.push(advice)
  1044. // }
  1045. // }
  1046. // if (group.group_no > 0) {
  1047. // // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
  1048. // this.advice_groups.push(group)
  1049. // }
  1050. // }
  1051. // console.log(this.advice_groups)
  1052. } else {
  1053. this.loading = false;
  1054. this.$message.error("请求数据失败");
  1055. return false;
  1056. }
  1057. });
  1058. },
  1059. bloodAccessParOperaName(id) {
  1060. if (id in this.bloodAccessParOpera) {
  1061. return this.bloodAccessParOpera[id].name;
  1062. }
  1063. return "";
  1064. },
  1065. dialysateFormulationName(id) {
  1066. if (id in this.dialysateFormulationOptions) {
  1067. return this.dialysateFormulationOptions[id].name;
  1068. }
  1069. return "";
  1070. },
  1071. getAge: function(val) {
  1072. if (
  1073. this.org_template_info.template_id == 2 ||
  1074. this.org_template_info.template_id == 0
  1075. ) {
  1076. if (val.age == 0) {
  1077. return jsGetAge(val.birth, "-");
  1078. } else {
  1079. return val.age;
  1080. }
  1081. } else {
  1082. return jsGetAge(val.birth, "-");
  1083. }
  1084. },
  1085. newAdviceGroupObject: function() {
  1086. return Object.assign(
  1087. {},
  1088. {
  1089. group_no: 0,
  1090. // advice_doctor: 0,
  1091. // start_time: 0,
  1092. advices: []
  1093. // exec_staff: 0,
  1094. // exec_time: 0,
  1095. // checker: 0,
  1096. }
  1097. );
  1098. },
  1099. //日期
  1100. handleScheduleDateChange: function() {
  1101. this.treatStateVal = 0
  1102. this.patientStateVal = 0
  1103. this.zoneVal = 0
  1104. this.scheduleStateVal = 0
  1105. this.search_keyword = this.search_input = ''
  1106. // this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
  1107. // zone: this.zone_selected,
  1108. // schedule_type: this.schedule_type_selected,
  1109. // schedule_date: this.selected_date,
  1110. // })
  1111. this.requestDialysisSchedules()
  1112. },
  1113. //初始化数据
  1114. getInitData: function() {
  1115. getDialysisRecordInitData().then(rs => {
  1116. var resp = rs.data
  1117. if (resp.state == 1) {
  1118. var zones = resp.data.zones
  1119. var schedules = resp.data.schedules
  1120. var zone_options = [{ id: 0, text: '全部' }]
  1121. for (let z_i = 0; z_i < zones.length; z_i++) {
  1122. const zone = zones[z_i]
  1123. zone_options.push({ id: zone.id, text: zone.name })
  1124. }
  1125. this.zone_options = zone_options
  1126. this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
  1127. this.arr = this.processedDialysisSchedules(schedules, this.zone_options)
  1128. this.getData()
  1129. } else {
  1130. this.$message.error(resp.msg)
  1131. }
  1132. })
  1133. },
  1134. // 班次
  1135. handletimeType: function(index) {
  1136. this.scheduleStateVal = index
  1137. // this.$store.dispatch('SetScheduleTypeSelected', { schedule_type_selected: index })
  1138. this.search_keyword = this.search_input = ''
  1139. this.getData()
  1140. },
  1141. //分区
  1142. handleZoneChange: function(index) {
  1143. this.zoneVal = index
  1144. // this.$store.dispatch('SetZoneSelected', { zone_selected: index })
  1145. this.search_keyword = this.search_input = ''
  1146. this.getData()
  1147. },
  1148. //患者状态
  1149. handleStateChange: function(index) {
  1150. this.patientStateVal = index
  1151. // this.$store.dispatch('SetPatientStateSelected', { patient_state_selected: index })
  1152. this.search_keyword = this.search_input = ''
  1153. this.getData()
  1154. },
  1155. handleTreatChange: function(index) {
  1156. this.treatStateVal = index
  1157. // this.$store.dispatch('SetTreatStateSelected', { treat_state_selected: index })
  1158. this.search_keyword = this.search_input = ''
  1159. this.getData()
  1160. },
  1161. processedDialysisSchedules: function(schedules, zone_options) {
  1162. var zoneMap = {}
  1163. var scheduleMap = {}
  1164. for (let z_i = 0; z_i < zone_options.length; z_i++) {
  1165. const zone = zone_options[z_i]
  1166. if (zone.id == 0) {
  1167. continue
  1168. }
  1169. scheduleMap[zone.id] = []
  1170. }
  1171. for (let index = 0; index < schedules.length; index++) {
  1172. const schedule = schedules[index]
  1173. scheduleMap[schedule.device_number.zone.id].push(schedule)
  1174. }
  1175. var zone_schedules = []
  1176. for (let index = 0; index < zone_options.length; index++) {
  1177. const zone = zone_options[index]
  1178. if (zone.id == 0) {
  1179. continue
  1180. }
  1181. var schedules = scheduleMap[zone.id]
  1182. zone_schedules.push({ zone_id: zone.id, zone_name: zone.text, schedules: schedules })
  1183. }
  1184. return zone_schedules
  1185. },
  1186. searchAction: function() {
  1187. this.search_keyword = this.search_input
  1188. this.scheduleStateVal = 0
  1189. this.zoneVal = 0
  1190. this.treatStateVal = 0
  1191. this.patientStateVal = 0
  1192. if(this.search_input != ''){
  1193. let arr = []
  1194. this.filtedSchedules.map(item => {
  1195. arr.push(...item.schedules)
  1196. })
  1197. this.tableData = arr
  1198. }else{
  1199. this.getData()
  1200. }
  1201. },
  1202. requestDialysisSchedules: function() {
  1203. var ymd = parseTime(this.selected_date, '{y}-{m}-{d}')
  1204. getDialysisSchedules(ymd).then(rs => {
  1205. var resp = rs.data
  1206. if (resp.state == 1) {
  1207. var schedules = resp.data.schedules
  1208. this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
  1209. let newArr = []
  1210. this.zone_schedules.map(item => {
  1211. newArr.push(...item.schedules)
  1212. })
  1213. this.tableData = newArr
  1214. } else {
  1215. this.$message.error(resp.msg)
  1216. }
  1217. })
  1218. },
  1219. changePatient(schedual){
  1220. console.log(schedual)
  1221. var xtdate = parseTime(schedual.schedule_date, '{y}-{m}-{d}')
  1222. this.$router.push(
  1223. '/dialysis/print?xtdate=' + xtdate + '&xtno=' + schedual.patient.dialysis_no
  1224. )
  1225. // this.patient_id = schedual.patient_id;
  1226. // this.date = schedual.schedule_date;
  1227. // // this.getScheduleDetail();
  1228. // // this.getLongAdvice();
  1229. // var patient_id = schedual.patient_id;
  1230. // var date = schedual.schedule_date;
  1231. // this.$router.push({
  1232. // path: "/dialysis/details",
  1233. // query: {
  1234. // patient_id: patient_id,
  1235. // date: date,
  1236. // patient_name: schedual.patient.name
  1237. // }
  1238. // });
  1239. },
  1240. getData(){
  1241. let patientArr = []
  1242. patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
  1243. console.log('patientArr',patientArr)
  1244. let arr1 = []
  1245. if(this.patientStateVal == 0){
  1246. arr1 = patientArr
  1247. console.log(arr1)
  1248. }else if(this.patientStateVal == 1){
  1249. let arr = []
  1250. arr = patientArr
  1251. for (let i = 0; i <arr.length; i++) {
  1252. for (let j = 0; j < arr[i].schedules.length; j++) {
  1253. if (arr[i].schedules.length > 0 && (arr[i].schedules[j].assessment_before_dislysis == null || (arr[i].schedules[j].assessment_before_dislysis.weight_before == '' && arr[i].schedules[j].assessment_before_dislysis.diastolic_blood_pressure == '' && arr[i].schedules[j].assessment_before_dislysis.systolic_blood_pressure == ''))) {
  1254. // 删除元素后改变i的值
  1255. arr[i].schedules.splice(j--, 1);
  1256. }
  1257. }
  1258. }
  1259. console.log("执行1",arr)
  1260. arr1 = arr
  1261. }else if(this.patientStateVal == 2){
  1262. let arr = []
  1263. arr = patientArr
  1264. for (let i = 0; i < arr.length; i++) {
  1265. for (let j = 0; j < arr[i].schedules.length; j++) {
  1266. if (arr[i].schedules.length > 0 && (arr[i].schedules[j].assessment_before_dislysis != null && (arr[i].schedules[j].assessment_before_dislysis.weight_before != 0 || arr[i].schedules[j].assessment_before_dislysis.diastolic_blood_pressure != 0 || arr[i].schedules[j].assessment_before_dislysis.systolic_blood_pressure != 0))) {
  1267. // 删除元素后改变i的值
  1268. console.log('几次')
  1269. arr[i].schedules.splice(j--, 1);
  1270. }
  1271. }
  1272. }
  1273. console.log("执行2",arr)
  1274. arr1 = arr
  1275. }else if(this.patientStateVal == 3){
  1276. let arr = []
  1277. arr = patientArr
  1278. for (let i = 0; i <arr.length; i++) {
  1279. for (let j = 0; j < arr[i].schedules.length; j++) {
  1280. if (arr[i].schedules.length > 0 && (arr[i].schedules[j].dialysis_order == null || (arr[i].schedules[j].dialysis_order != null && arr[i].schedules[j].dialysis_order.stage != 1))) {
  1281. // 删除元素后改变i的值
  1282. arr[i].schedules.splice(j--, 1);
  1283. }
  1284. }
  1285. }
  1286. console.log("执行1",arr)
  1287. arr1 = arr
  1288. }else if(this.patientStateVal == 4){
  1289. let arr = []
  1290. arr = patientArr
  1291. for (let i = 0; i < arr.length; i++) {
  1292. for (let j = 0; j < arr[i].schedules.length; j++) {
  1293. if (arr[i].schedules.length > 0 && (arr[i].schedules[j].dialysis_order == null || (arr[i].schedules[j].dialysis_order != null && arr[i].schedules[j].dialysis_order.stage != 2))) {
  1294. // 删除元素后改变i的值
  1295. arr[i].schedules.splice(j--, 1);
  1296. }
  1297. }
  1298. }
  1299. console.log("执行2",arr)
  1300. arr1 = arr
  1301. }
  1302. let arr2 = []
  1303. if(this.treatStateVal == 0){
  1304. arr2 = JSON.parse(JSON.stringify(arr1))
  1305. }else if(this.treatStateVal == 1){
  1306. let arr = []
  1307. arr = JSON.parse(JSON.stringify(arr1))
  1308. for (let i = 0; i < arr.length; i++) {
  1309. for (let j = 0; j < arr[i].schedules.length; j++) {
  1310. if (arr[i].schedules.length > 0 && (arr[i].schedules[j].prescription != null || arr[i].schedules[j].prescription != null ? arr[i].schedules[j].prescription.creater != 0 : false)) {
  1311. // 删除元素后改变i的值
  1312. arr[i].schedules.splice(j--, 1);
  1313. }
  1314. }
  1315. }
  1316. arr2 = arr
  1317. }else if(this.treatStateVal == 2){
  1318. let arr = []
  1319. arr = JSON.parse(JSON.stringify(arr1))
  1320. for (let i = 0; i < arr.length; i++) {
  1321. for (let j = 0; j < arr[i].schedules.length; j++) {
  1322. if (arr[i].schedules.length > 0 && arr[i].schedules[j].treatment_summary != null && arr[i].schedules[j].treatment_summary.dialysis_summary != '') {
  1323. // 删除元素后改变i的值
  1324. arr[i].schedules.splice(j--, 1);
  1325. }
  1326. }
  1327. }
  1328. arr2 = arr
  1329. }
  1330. let arr3 = []
  1331. if(this.scheduleStateVal == 0){
  1332. arr3 = JSON.parse(JSON.stringify(arr2))
  1333. }else{
  1334. let arr = []
  1335. arr = JSON.parse(JSON.stringify(arr2))
  1336. for (let i = 0; i < arr.length; i++) {
  1337. for (let j = 0; j < arr[i].schedules.length; j++) {
  1338. if (this.scheduleStateVal != arr[i].schedules[j].schedule_type) {
  1339. // 删除元素后改变i的值
  1340. arr[i].schedules.splice(j--, 1);
  1341. }
  1342. }
  1343. }
  1344. arr3 = arr
  1345. console.log("上午",arr)
  1346. }
  1347. let arr4 = []
  1348. if(this.zoneVal == 0){
  1349. arr4 = JSON.parse(JSON.stringify(arr3))
  1350. }else{
  1351. let arr = []
  1352. arr = JSON.parse(JSON.stringify(arr3))
  1353. for (let i = 0; i < arr.length; i++) {
  1354. if (this.zoneVal != arr[i].zone_id) {
  1355. // 删除元素后改变i的值
  1356. arr.splice(i--, 1);
  1357. }
  1358. }
  1359. arr4 = arr
  1360. }
  1361. let newArr = []
  1362. arr4.map(item => {
  1363. newArr.push(...item.schedules)
  1364. })
  1365. this.tableData = newArr
  1366. console.log('table',this.tableData)
  1367. },
  1368. },
  1369. watch: {
  1370. "patientInfo.gender": function() {
  1371. if (this.patientInfo.gender == 1) {
  1372. this.patientInfo_gender_1 = true;
  1373. this.patientInfo_gender_2 = false;
  1374. } else if (this.patientInfo.gender == 2) {
  1375. this.patientInfo_gender_2 = true;
  1376. this.patientInfo_gender_1 = false;
  1377. } else {
  1378. this.patientInfo_gender_2 = false;
  1379. this.patientInfo_gender_1 = false;
  1380. }
  1381. },
  1382. "patientInfo.source": function() {
  1383. if (this.patientInfo.source == 1) {
  1384. this.patientInfo_source_1 = true;
  1385. this.patientInfo_source_2 = false;
  1386. } else if (this.patientInfo.source == 2) {
  1387. this.patientInfo_source_2 = true;
  1388. this.patientInfo_source_1 = false;
  1389. } else {
  1390. this.patientInfo_source_2 = false;
  1391. this.patientInfo_source_1 = false;
  1392. }
  1393. }
  1394. },
  1395. created() {
  1396. this.getInitData();
  1397. var xtuser = this.$store.getters.xt_user;
  1398. this.orgname = xtuser.org.org_name;
  1399. // this.orgname = "遂溪方济医院";
  1400. this.modeOptions = this.$store.getters.treatment_mode;
  1401. this.replacementWays = this.$store.getters.replacement_ways;
  1402. this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
  1403. this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
  1404. // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
  1405. var bloodAccessParOpera = getDataConfig(
  1406. "hemodialysis",
  1407. "vascular_access_desc"
  1408. );
  1409. for (var key in bloodAccessParOpera) {
  1410. this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
  1411. bloodAccessParOpera[key];
  1412. }
  1413. var dialysateFormulationOptions = getDataConfig(
  1414. "hemodialysis",
  1415. "dialysate_formulation"
  1416. );
  1417. for (var key in dialysateFormulationOptions) {
  1418. this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
  1419. dialysateFormulationOptions[key];
  1420. }
  1421. const xtdate = this.$route.query && this.$route.query.xtdate;
  1422. const xtno = this.$route.query && this.$route.query.xtno;
  1423. if (
  1424. typeof xtdate === "string" &&
  1425. xtdate.length > 0 &&
  1426. typeof xtno === "string" &&
  1427. xtno.length > 0
  1428. ) {
  1429. this.queryParams.xtdate = xtdate;
  1430. this.queryParams.xtno = xtno;
  1431. this.getDialysisRecord();
  1432. } else {
  1433. this.$message.error("参数不齐");
  1434. return false;
  1435. }
  1436. },
  1437. computed:{
  1438. filtedSchedules: function() {
  1439. var search_keyword = this.search_keyword
  1440. if (search_keyword.length > 0) {
  1441. var schedules = []
  1442. for (let o_i = 0; o_i < this.zone_schedules.length; o_i++) {
  1443. const scheduleInfo = this.zone_schedules[o_i]
  1444. var originSchedules = scheduleInfo.schedules
  1445. if (originSchedules.length == 0) {
  1446. continue
  1447. }
  1448. var filtedSchedules = []
  1449. for (let s_i = 0; s_i < originSchedules.length; s_i++) {
  1450. const schedule = originSchedules[s_i]
  1451. if (schedule.patient.name.indexOf(search_keyword) != -1) {
  1452. filtedSchedules.push(schedule)
  1453. // break
  1454. }
  1455. }
  1456. if (filtedSchedules.length > 0) {
  1457. schedules.push({ zone_id: scheduleInfo.zone_id, zone_name: scheduleInfo.zone_name, schedules: filtedSchedules })
  1458. }
  1459. }
  1460. return schedules
  1461. }
  1462. }
  1463. },
  1464. };
  1465. </script>
  1466. <style>
  1467. .dialysis-print-order {
  1468. width: 960px;
  1469. margin: 0 auto;
  1470. }
  1471. .dialysis-print-order .order-yy-name {
  1472. margin: auto;
  1473. text-align: center;
  1474. font-size: 20px;
  1475. letter-spacing: 5px;
  1476. }
  1477. .dialysis-print-order .order-title {
  1478. margin: auto;
  1479. font-weight: 600;
  1480. text-align: center;
  1481. font-size: 22px;
  1482. padding: 10px;
  1483. }
  1484. .dialysis-print-order .table-box {
  1485. width: 100%;
  1486. line-height: 23px;
  1487. font-size: 14px;
  1488. }
  1489. .dialysis-print-order .print-table {
  1490. width: 100%;
  1491. text-align: center;
  1492. border-collapse: collapse;
  1493. line-height: 40px;
  1494. font-size: 14px;
  1495. }
  1496. .dialysis-print-order .print-table-no {
  1497. width: 100%;
  1498. text-align: center;
  1499. border-collapse: collapse;
  1500. font-size: 14px;
  1501. }
  1502. .dialysis-print-order .under-line {
  1503. border-bottom: 1px solid #999;
  1504. width: 95%;
  1505. text-align: center;
  1506. margin-left: 2px;
  1507. }
  1508. .dialysis-print-order .title-box {
  1509. text-align: center;
  1510. font-size: 16px;
  1511. }
  1512. .dialysis-print-order .radio-lebel-box {
  1513. font-weight: 400;
  1514. cursor: pointer;
  1515. }
  1516. .dialysis-print-order .radio-no {
  1517. opacity: 0;
  1518. outline: none;
  1519. position: absolute;
  1520. margin: 0;
  1521. width: 0;
  1522. height: 0;
  1523. z-index: -1;
  1524. }
  1525. .dialysis-print-order .radio-inner {
  1526. white-space: nowrap;
  1527. cursor: pointer;
  1528. outline: none;
  1529. display: inline-block;
  1530. line-height: 1;
  1531. position: relative;
  1532. vertical-align: middle;
  1533. }
  1534. .dialysis-print-order .radio-fang {
  1535. display: inline-block;
  1536. position: relative;
  1537. border: 1px solid #000;
  1538. box-sizing: border-box;
  1539. width: 14px;
  1540. height: 14px;
  1541. background-color: #fff;
  1542. z-index: 1;
  1543. transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
  1544. background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
  1545. }
  1546. .dialysis-print-order .is-checked-radio::after {
  1547. content: "√";
  1548. font-size: 15px;
  1549. }
  1550. .dialysis-print-order .print-table-no tr td {
  1551. padding: 8px 5px;
  1552. line-height: 25px;
  1553. }
  1554. .dialysis-print-order .print-table tr td {
  1555. padding: 1px 1px;
  1556. /*line-height: 25px;*/
  1557. }
  1558. .es-img {
  1559. height: 30px;
  1560. }
  1561. .advice-name {
  1562. text-align: left;
  1563. }
  1564. .advice-children {
  1565. display: flex;
  1566. }
  1567. .title-box-pro {
  1568. border: 0 #fff;
  1569. line-height: 25px;
  1570. height: 25px;
  1571. text-align: left;
  1572. padding-left: 10px !important;
  1573. }
  1574. .title-box-pro-tr {
  1575. border: 0 #fff;
  1576. }
  1577. .text-align-left {
  1578. text-align: left !important;
  1579. padding-left: 10px !important;
  1580. font-size: 14px !important;
  1581. line-height: 25px;
  1582. }
  1583. .print-table-tr-new td {
  1584. line-height: 20px !important;
  1585. }
  1586. .border-top-solid {
  1587. border: solid 1px #000;
  1588. }
  1589. .print-template-two tr {
  1590. line-height: 30px;
  1591. }
  1592. .table-box1 {
  1593. border: 1px solid #000;
  1594. width: 100%;
  1595. line-height: 30px;
  1596. font-size: 14px;
  1597. border-collapse: collapse;
  1598. }
  1599. .table-box1 tr {
  1600. border-bottom: 1px solid #000;
  1601. }
  1602. </style>
  1603. <style lang="scss">
  1604. .newContainer{
  1605. .dialysisPage::-webkit-scrollbar {
  1606. height: 15px;
  1607. }
  1608. .el-date-editor{
  1609. .el-input__inner{
  1610. padding-right:0px;
  1611. }
  1612. }
  1613. .el-table td, .el-table th{
  1614. text-align: center;
  1615. }
  1616. }
  1617. .newContainer::-webkit-scrollbar{
  1618. height: 15px !important;
  1619. }
  1620. </style>