dialysisPrintOrder.vue 76KB

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