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

index.vue 112KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016
  1. <template>
  2. <!-- 点击透析记录患者资料跳转的页面 -->
  3. <div class="main-contain">
  4. <div class="position">
  5. <bread-crumb :crumbs="crumbs"></bread-crumb>
  6. <div class="print" style="float:left;">
  7. <el-button
  8. v-if="queueConfig.txxqyxs == 1"
  9. size="small"
  10. type="primary"
  11. @click="call"
  12. >叫号</el-button
  13. >
  14. <el-button
  15. v-if="queueConfig.txxqyxs == 1"
  16. size="small"
  17. type="primary"
  18. @click="next"
  19. >下一位</el-button
  20. >
  21. <el-button
  22. size="small"
  23. type="primary"
  24. @click="printOrderOne"
  25. icon="el-icon-printer"
  26. >打印上机单</el-button>
  27. <el-button
  28. size="small"
  29. type="primary"
  30. @click="printOrder"
  31. icon="el-icon-printer"
  32. >打印</el-button
  33. >
  34. </div>
  35. </div>
  36. <div
  37. class="loadingBox"
  38. v-loading="loading"
  39. element-loading-text="拼命加载中"
  40. element-loading-spinner="el-icon-loading"
  41. element-loading-background="rgba(0, 0, 0, 0.8)"
  42. >
  43. <div class="patientBox" style="width:300px;padding-left:10px;position: relative;">
  44. <el-button
  45. style="position: absolute;right:0;top:2px;z-index:10"
  46. size="small"
  47. type="primary"
  48. @click="refresh"
  49. >刷新</el-button>
  50. <el-tabs v-model="activeName" @tab-click="handleClick">
  51. <!-- 候诊区 -->
  52. <el-tab-pane label="候诊区" name="first">
  53. <div class="cell clearfix" style="margin-bottom:10px;">
  54. <el-date-picker v-model="selected_date"
  55. prefix-icon="el-icon-date" @change="handleScheduleDateChange"
  56. :editable="false" :clearable="false"
  57. style="width: 45%;margin-right:10px;" type="date" placeholder="选择日期时间" align="right" >
  58. </el-date-picker>
  59. <el-input size="small" style="width:25%;" @keyup.enter.native='searchAction' v-model.trim="search_input" class="filter-item"/>
  60. <el-button size="small" class="filter-item" type="primary" style="margin-right:20px;" @click="searchAction">搜索</el-button>
  61. </div>
  62. <div class="cell clearfix" style="margin-bottom:10px;display:flex;">
  63. <el-select v-model="patientStateVal" placeholder="全部患者状态" style="margin-right:10px;" @change="handleStateChange">
  64. <el-option
  65. v-for="item in patient_state"
  66. :key="item.value"
  67. :label="item.label"
  68. :value="item.value">
  69. </el-option>
  70. </el-select>
  71. <el-select v-model="treatStateVal" placeholder="全部治疗状态" style="margin-right:20px;" @change="handleTreatChange">
  72. <el-option
  73. v-for="item in treat_state"
  74. :key="item.value"
  75. :label="item.label"
  76. :value="item.value">
  77. </el-option>
  78. </el-select>
  79. </div>
  80. <div class="cell clearfix" style="margin-bottom:10px;display:flex;">
  81. <el-select v-model="scheduleStateVal" placeholder="班次" style="margin-right:10px;" @change="handletimeType">
  82. <el-option
  83. v-for="item in schedule_options"
  84. :key="item.value"
  85. :label="item.label"
  86. :value="item.value">
  87. </el-option>
  88. </el-select>
  89. <el-select v-model="zoneVal" placeholder="分区" style="margin-right:20px;" @change="handleZoneChange">
  90. <el-option
  91. v-for="item in zone_options"
  92. :key="item.id"
  93. :label="item.text"
  94. :value="item.id">
  95. </el-option>
  96. </el-select>
  97. </div>
  98. <div style="padding-right:20px;">
  99. <el-table
  100. ref="tab"
  101. @row-click="changePatient"
  102. highlight-current-row
  103. :data="tableData"
  104. height="500"
  105. border
  106. style="width: 100%">
  107. <el-table-column
  108. prop="date"
  109. label="床号"
  110. width="50"
  111. >
  112. <template slot-scope="scope">
  113. {{ scope.row.device_number.number }}
  114. </template>
  115. </el-table-column>
  116. <el-table-column
  117. prop="date"
  118. label="患者"
  119. >
  120. <template slot-scope="scope">
  121. {{ scope.row.patient.name }}
  122. <span v-if="scope.row.assessment_before_dislysis && patientStateVal == 1">
  123. ({{ getTime(scope.row.assessment_before_dislysis.created_time) }})
  124. </span>
  125. <!-- <span class="touxi_cishu" @click.stop="chishuclick(scope.row.patient.name)">
  126. 0/4
  127. </span> -->
  128. </template>
  129. </el-table-column>
  130. <el-table-column
  131. prop="name"
  132. label="状态"
  133. >
  134. <template slot-scope="scope">
  135. <div style="display:flex;align-items:center;justify-content:space-around;">
  136. <span class="tip1" v-if="scope.row.prescription == null || scope.row.prescription.creater == 0">
  137. 待开处方
  138. </span>
  139. <span class="tip2" v-if="scope.row.assessment_before_dislysis == null || scope.row.assessment_before_dislysis.weight_before == ''">
  140. 待称重
  141. </span>
  142. </div>
  143. </template>
  144. </el-table-column>
  145. </el-table>
  146. </div>
  147. </el-tab-pane>
  148. <!-- 透析区 -->
  149. <el-tab-pane label="透析区" name="second">
  150. <div class="cell clearfix" style="margin-bottom:10px;">
  151. <el-date-picker v-model="selected_date" prefix-icon="el-icon-date" @change="handleScheduleDateChange" :editable="false" :clearable="false" style="width: 45%;margin-right:10px;" type="date" placeholder="选择日期时间" align="right" ></el-date-picker>
  152. <el-input size="small" style="width:25%;" @keyup.enter.native='searchAction' v-model.trim="search_input" class="filter-item"/>
  153. <el-button size="small" class="filter-item" style="margin-right:20px;" type="primary" @click="searchAction">搜索</el-button>
  154. </div>
  155. <div class="cell clearfix" style="margin-bottom:10px;display:flex;">
  156. <el-select v-model="patientStateVal" placeholder="全部患者状态" style="margin-right:10px;" @change="handleStateChange">
  157. <el-option
  158. v-for="item in patient_state"
  159. :key="item.value"
  160. :label="item.label"
  161. :value="item.value">
  162. </el-option>
  163. </el-select>
  164. <el-select v-model="treatStateVal" placeholder="全部治疗状态" style="margin-right:20px;" @change="handleTreatChange">
  165. <el-option
  166. v-for="item in treat_state"
  167. :key="item.value"
  168. :label="item.label"
  169. :value="item.value">
  170. </el-option>
  171. </el-select>
  172. </div>
  173. <div class="cell clearfix" style="margin-bottom:10px;display:flex;">
  174. <el-select v-model="scheduleStateVal" placeholder="班次" style="margin-right:10px;" @change="handletimeType">
  175. <el-option
  176. v-for="item in schedule_options"
  177. :key="item.value"
  178. :label="item.label"
  179. :value="item.value">
  180. </el-option>
  181. </el-select>
  182. <el-select v-model="zoneVal" placeholder="分区" style="margin-right:20px;" @change="handleZoneChange">
  183. <el-option
  184. v-for="item in zone_options"
  185. :key="item.id"
  186. :label="item.text"
  187. :value="item.id">
  188. </el-option>
  189. </el-select>
  190. </div>
  191. <div style="padding-right:20px;">
  192. <el-table
  193. ref="tab1"
  194. @row-click="changePatient"
  195. highlight-current-row
  196. :data="tableData1"
  197. height="500"
  198. border
  199. style="width: 100%">
  200. <el-table-column
  201. prop="date"
  202. label="床号"
  203. width="50"
  204. >
  205. <template slot-scope="scope">
  206. {{ scope.row.device_number.number }}
  207. </template>
  208. </el-table-column>
  209. <el-table-column
  210. prop="date"
  211. label="患者"
  212. >
  213. <template slot-scope="scope">
  214. {{ scope.row.patient.name }}
  215. <span v-if="scope.row.assessment_before_dislysis && patientStateVal == 1">
  216. ({{ getTime(scope.row.assessment_before_dislysis.created_time) }})
  217. </span>
  218. <!-- <span class="touxi_cishu" @click.stop="chishuclick(scope.row.patient.name)">
  219. 0/4
  220. </span> -->
  221. </template>
  222. </el-table-column>
  223. <el-table-column
  224. prop="name"
  225. label="状态"
  226. >
  227. <template slot-scope="scope">
  228. <div style="display:flex;align-items:center;justify-content:space-around;">
  229. <span class="tip3" v-if="scope.row.dialysis_order ? scope.row.dialysis_order.stage == 1 : false">
  230. 已上机
  231. </span>
  232. <span class="tip4" v-if="scope.row.dialysis_order ? scope.row.dialysis_order.stage == 2 : false">
  233. 已下机
  234. </span>
  235. <span class="tip5" v-if="scope.row.treatment_summary == null || scope.row.treatment_summary.dialysis_summary == ''">
  236. 待开小结
  237. </span>
  238. </div>
  239. </template>
  240. </el-table-column>
  241. </el-table>
  242. </div>
  243. </el-tab-pane>
  244. </el-tabs>
  245. <!-- 打印上机单弹窗 -->
  246. <el-dialog
  247. :visible.sync="startVisibility"
  248. :close-on-click-modal="false"
  249. :close-on-press-escape="false"
  250. :show-close="false"
  251. width="30%"
  252. >
  253. <el-button
  254. size="small"
  255. icon="el-icon-printer"
  256. type="primary"
  257. @click="printAction"
  258. style="float:right"
  259. >打印</el-button
  260. >
  261. <div id="print_content">
  262. <div class="print_main_content">
  263. <div class="table_panel">
  264. <div v-for="(main_collection,index) in printList" :key="index">
  265. <div class="signPrint" style="width: 360px;font-size:16px;">
  266. <div style="margin-left:50px;">姓名:
  267. <span>{{main_collection.patient.name}} </span>
  268. ({{ main_collection.patient.dialysis_no }},{{getNewAge(main_collection.patient.id_card_no) }}岁)
  269. </div>
  270. <div class="printCell" style="display:flex;justify-content: space-around;">
  271. <span style="display: block;width: 50%;">
  272. 床号:{{ main_collection.number.number }}
  273. <span style="width:auto;" v-if="main_collection.schedule_type == 1">上午</span>
  274. <span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
  275. <span style="width:auto;" v-if="main_collection.schedule_type == 3">晚上</span>
  276. </span>
  277. <span style="display: block;width: 50%;">{{ printDate }}</span>
  278. </div>
  279. <div class="printCell" style="display:flex;justify-content: space-around;">
  280. <span style="display: block;width: 50%;">干体重:{{main_collection.assessmentbefor.dry_weight}}Kg</span>
  281. <span style="display: block;width: 50%;">抗凝剂:{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}</span>
  282. </div>
  283. <div class="printCell" style="display:flex;justify-content: space-around;">
  284. <span style="display: block;width: 50%;">净重值:{{ main_collection.assessmentbefor.weight_before - main_collection.assessmentbefor.additional_weight }}Kg</span>
  285. <span style="display: block;width: 50%;">
  286. 首剂: <span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_shouji}} mg</span>
  287. <span v-if="main_collection.dialysissolution.anticoagulant == 2">
  288. {{main_collection.dialysissolution.anticoagulant_shouji}}mg
  289. </span>
  290. <span v-if="main_collection.dialysissolution.anticoagulant == 3">
  291. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  292. </span>
  293. <span v-if="main_collection.dialysissolution.anticoagulant == 4">
  294. {{main_collection.dialysissolution.anticoagulant_shouji}}mg
  295. </span>
  296. <span v-if="main_collection.dialysissolution.anticoagulant == 5">
  297. {{main_collection.dialysissolution.anticoagulant_shouji}} mg
  298. </span>
  299. <span v-if="main_collection.dialysissolution.anticoagulant == 6">
  300. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  301. </span>
  302. <span v-if="main_collection.dialysissolution.anticoagulant == 7">
  303. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  304. </span>
  305. <span v-if="main_collection.dialysissolution.anticoagulant == 8">
  306. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  307. </span>
  308. <span v-if="main_collection.dialysissolution.anticoagulant == 9">
  309. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  310. </span>
  311. <span v-if="main_collection.dialysissolution.anticoagulant == 10">
  312. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  313. </span>
  314. <span v-if="main_collection.dialysissolution.anticoagulant == 11">
  315. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  316. </span>
  317. </span>
  318. </div>
  319. <div class="printCell" style="display:flex;justify-content: space-around;">
  320. <span style="display: block;width: 50%;">体重增加:{{ (main_collection.assessmentbefor.weight_before - assessmentAfterDislysis.weight_after).toFixed(2) }}Kg</span>
  321. <span style="display: block;width: 50%;">
  322. 维持:{{main_collection.dialysissolution.anticoagulant_weichi}}
  323. <span v-if="main_collection.dialysissolution.anticoagulant == 1">
  324. mg/h
  325. </span>
  326. <span v-if="main_collection.dialysissolution.anticoagulant == 2">
  327. mg/h
  328. </span>
  329. <span v-if="main_collection.dialysissolution.anticoagulant == 3">
  330. iu/h
  331. </span>
  332. <span v-if="main_collection.dialysissolution.anticoagulant == 4">
  333. mg/h
  334. </span>
  335. <span v-if="main_collection.dialysissolution.anticoagulant == 5">
  336. mg/h
  337. </span>
  338. <span v-if="main_collection.dialysissolution.anticoagulant == 6">
  339. iu/h
  340. </span>
  341. <span v-if="main_collection.dialysissolution.anticoagulant == 7">
  342. iu/h
  343. </span>
  344. <span v-if="main_collection.dialysissolution.anticoagulant == 8">
  345. iu/h
  346. </span>
  347. <span v-if="main_collection.dialysissolution.anticoagulant == 9">
  348. iu/h
  349. </span>
  350. <span v-if="main_collection.dialysissolution.anticoagulant == 10">
  351. iu/h
  352. </span>
  353. <span v-if="main_collection.dialysissolution.anticoagulant == 11">
  354. iu/h
  355. </span>
  356. </span>
  357. </div>
  358. <div class="printCell" style="display:flex;justify-content: space-around;">
  359. <span style="display: block;width: 50%;">处方脱水量:{{ main_collection.prescription.target_ultrafiltration }}
  360. <span v-if="$store.getters.xt_user.org.id == 10278 || $store.getters.xt_user.org.id == 10138 || $store.getters.xt_user.org.id == 10460">ml</span>
  361. <span v-else>L</span>
  362. </span>
  363. <span style="display: block;width: 50%;">
  364. 总量:{{main_collection.dialysissolution.anticoagulant_zongliang}}
  365. <span v-if="main_collection.dialysissolution.anticoagulant == 1">
  366. mg
  367. </span>
  368. <span v-if="main_collection.dialysissolution.anticoagulant == 2">
  369. mg
  370. </span>
  371. <span v-if="main_collection.dialysissolution.anticoagulant == 3">
  372. iu
  373. </span>
  374. <span v-if="main_collection.dialysissolution.anticoagulant == 4">
  375. mg
  376. </span>
  377. <span v-if="main_collection.dialysissolution.anticoagulant == 5">
  378. mg
  379. </span>
  380. <span v-if="main_collection.dialysissolution.anticoagulant == 6">
  381. iu
  382. </span>
  383. <span v-if="main_collection.dialysissolution.anticoagulant == 7">
  384. iu
  385. </span>
  386. <span v-if="main_collection.dialysissolution.anticoagulant == 8">
  387. iu
  388. </span>
  389. <span v-if="main_collection.dialysissolution.anticoagulant == 9">
  390. iu
  391. </span>
  392. <span v-if="main_collection.dialysissolution.anticoagulant == 10">
  393. iu
  394. </span>
  395. <span v-if="main_collection.dialysissolution.anticoagulant == 11">
  396. iu
  397. </span>
  398. </span>
  399. </div>
  400. </div>
  401. </div>
  402. <!-- <div v-for="(main_collection,index) in printList" :key="index" style="width: 80%;">
  403. <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; text-align: center; margin: auto;">
  404. <tr style="height: 20px;">
  405. <td>{{ printDate }}</td>
  406. <td>机号:{{ main_collection.number.number }}</td>
  407. </tr>
  408. <tr style="height: 20px;">
  409. <td>姓名</td>
  410. <td>{{main_collection.patient.name}}</td>
  411. </tr>
  412. <tr style="height: 20px;">
  413. <td>治疗方式</td>
  414. <td></td>
  415. </tr>
  416. <tr style="height: 20px;">
  417. <td>透析时间</td>
  418. <td>{{ printDate }}</td>
  419. </tr>
  420. <tr style="height: 20px;">
  421. <td>透前体重</td>
  422. <td></td>
  423. </tr>
  424. <tr style="height: 20px;">
  425. <td>干体重</td>
  426. <td>{{main_collection.assessmentbefor.dry_weight}}Kg</td>
  427. </tr>
  428. <tr style="height: 20px;">
  429. <td>超滤量</td>
  430. <td></td>
  431. </tr>
  432. <tr style="height: 20px;">
  433. <td>透前血压</td>
  434. <td>-</td>
  435. </tr>
  436. <tr style="height: 20px;">
  437. <td></td>
  438. <td></td>
  439. </tr>
  440. <tr style="height: 20px;">
  441. <td></td>
  442. <td></td>
  443. </tr>
  444. </table>
  445. </div> -->
  446. </div>
  447. </div>
  448. </div>
  449. <span slot="footer" class="dialog-footer">
  450. <el-button @click="startVisibility = false">取 消</el-button>
  451. </span>
  452. </el-dialog>
  453. <!-- 打印上机单弹窗----新 -->
  454. <el-dialog
  455. :visible.sync="centerDialogVisible"
  456. width="30%"
  457. >
  458. <el-button
  459. size="small"
  460. icon="el-icon-printer"
  461. type="primary"
  462. @click="printAction"
  463. style="float:right"
  464. >打印</el-button
  465. >
  466. <div id="print_content">
  467. <div class="print_main_content">
  468. <div class="table_panel" v-for="(main_collection,index) in printList">
  469. <div style="border: 1px solid black;width: 82%;" >
  470. <div style="margin: 5px 0;">
  471. <span style="font-weight: bolder;">{{main_collection.patient.name}} </span>&nbsp;&nbsp;
  472. <span>
  473. <span v-if="main_collection.patient.gender==1">男</span>
  474. <span v-if="main_collection.patient.gender==2">女</span>
  475. </span>&nbsp;&nbsp;
  476. <span>{{getNewAge(main_collection.patient.id_card_no) }}岁</span>&nbsp;&nbsp;<span>{{getTimes(main_collection.schedule_date)}}</span>&nbsp;&nbsp;
  477. <span></span>
  478. &nbsp;&nbsp;
  479. <span>
  480. <span style="width:auto;" v-if="main_collection.schedule_type == 1">上午</span>
  481. <span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
  482. <span style="width:auto;" v-if="main_collection.schedule_type == 3">晚上</span>
  483. </span>&nbsp;&nbsp;<span>{{ main_collection.number.number }}</span>
  484. </div>
  485. <div style="margin: 5px 0;">
  486. <span>身高:{{ main_collection.patient.height?main_collection.patient.height:"" }} cm</span>&nbsp;&nbsp;<span>干体重:{{main_collection.assessmentbefor.dry_weight}}kg</span>&nbsp;&nbsp;
  487. <span>HCT:%</span>&nbsp;&nbsp;<span>KTV目标:</span>
  488. </div>
  489. </div>
  490. <div style="height: 30px;width: 82%;border: 1px solid black;">
  491. </div>
  492. <div style="border: 1px solid black;width: 82%;">
  493. <div style="display: flex;margin: 5px 0;">
  494. <div style="flex: 1;">透析模式:{{getModeId(main_collection.mode_id)}}</div>
  495. <div style="flex: 1;">透析器/灌流器:{{main_collection.prescription.dialyzer_perfusion_apparatus }} </div>
  496. </div>
  497. <div style="display: flex;margin: 5px 0;">
  498. <div style="flex: 1;">血流量:{{main_collection.prescription.blood_flow_volume}}ml/min</div>
  499. <div style="flex: 1;">置换液总量:<span v-if="main_collection.prescription.displace_liqui_value>0">{{main_collection.prescription.displace_liqui_value}}</span>L</div>
  500. </div>
  501. <div style="margin: 5px 0;">
  502. <div>透析液类型:
  503. <span>Na:{{ main_collection.prescription.sodium }}</span>
  504. <span>K:{{ main_collection.prescription.kalium }}</span>
  505. <span>Ca:{{main_collection.prescription.calcium }}</span>
  506. <span>
  507. <span v-if="main_collection.prescription.chaptalization==0"> 不含 </span>
  508. <span v-if="main_collection.prescription.chaptalization>0"> 含糖:{{main_collection.prescription.chaptalization}} </span>
  509. HCO3:</span>
  510. </div>
  511. </div>
  512. <div style="display: flex;margin: 5px 0;">
  513. <div style="flex: 1;">超滤曲线:</div>
  514. <div style="flex: 1;">Na曲线:</div>
  515. </div>
  516. <div style="margin: 5px 0;">
  517. <span>抗凝方案:</span>
  518. <span>{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}</span>
  519. <span>
  520. 首剂:<span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_shouji}} mg</span>
  521. <span v-if="main_collection.dialysissolution.anticoagulant == 2">
  522. {{main_collection.dialysissolution.anticoagulant_shouji}}mg
  523. </span>
  524. <span v-if="main_collection.dialysissolution.anticoagulant == 3">
  525. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  526. </span>
  527. <span v-if="main_collection.dialysissolution.anticoagulant == 4">
  528. {{main_collection.dialysissolution.anticoagulant_shouji}}mg
  529. </span>
  530. <span v-if="main_collection.dialysissolution.anticoagulant == 5">
  531. {{main_collection.dialysissolution.anticoagulant_shouji}} mg
  532. </span>
  533. <span v-if="main_collection.dialysissolution.anticoagulant == 6">
  534. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  535. </span>
  536. <span v-if="main_collection.dialysissolution.anticoagulant == 7">
  537. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  538. </span>
  539. <span v-if="main_collection.dialysissolution.anticoagulant == 8">
  540. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  541. </span>
  542. <span v-if="main_collection.dialysissolution.anticoagulant == 9">
  543. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  544. </span>
  545. <span v-if="main_collection.dialysissolution.anticoagulant == 10">
  546. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  547. </span>
  548. <span v-if="main_collection.dialysissolution.anticoagulant == 11">
  549. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  550. </span>
  551. </span>
  552. <span>
  553. 维持:{{main_collection.dialysissolution.anticoagulant_weichi}}
  554. <span v-if="main_collection.dialysissolution.anticoagulant == 1">
  555. mg/h
  556. </span>
  557. <span v-if="main_collection.dialysissolution.anticoagulant == 2">
  558. mg/h
  559. </span>
  560. <span v-if="main_collection.dialysissolution.anticoagulant == 3">
  561. iu/h
  562. </span>
  563. <span v-if="main_collection.dialysissolution.anticoagulant == 4">
  564. mg/h
  565. </span>
  566. <span v-if="main_collection.dialysissolution.anticoagulant == 5">
  567. mg/h
  568. </span>
  569. <span v-if="main_collection.dialysissolution.anticoagulant == 6">
  570. iu/h
  571. </span>
  572. <span v-if="main_collection.dialysissolution.anticoagulant == 7">
  573. iu/h
  574. </span>
  575. <span v-if="main_collection.dialysissolution.anticoagulant == 8">
  576. iu/h
  577. </span>
  578. <span v-if="main_collection.dialysissolution.anticoagulant == 9">
  579. iu/h
  580. </span>
  581. <span v-if="main_collection.dialysissolution.anticoagulant == 10">
  582. iu/h
  583. </span>
  584. <span v-if="main_collection.dialysissolution.anticoagulant == 11">
  585. iu/h
  586. </span>
  587. </span>
  588. <span>
  589. 总量:{{main_collection.dialysissolution.anticoagulant_zongliang}}
  590. <span v-if="main_collection.dialysissolution.anticoagulant == 1">
  591. mg
  592. </span>
  593. <span v-if="main_collection.dialysissolution.anticoagulant == 2">
  594. mg
  595. </span>
  596. <span v-if="main_collection.dialysissolution.anticoagulant == 3">
  597. iu
  598. </span>
  599. <span v-if="main_collection.dialysissolution.anticoagulant == 4">
  600. mg
  601. </span>
  602. <span v-if="main_collection.dialysissolution.anticoagulant == 5">
  603. mg
  604. </span>
  605. <span v-if="main_collection.dialysissolution.anticoagulant == 6">
  606. iu
  607. </span>
  608. <span v-if="main_collection.dialysissolution.anticoagulant == 7">
  609. iu
  610. </span>
  611. <span v-if="main_collection.dialysissolution.anticoagulant == 8">
  612. iu
  613. </span>
  614. <span v-if="main_collection.dialysissolution.anticoagulant == 9">
  615. iu
  616. </span>
  617. <span v-if="main_collection.dialysissolution.anticoagulant == 10">
  618. iu
  619. </span>
  620. <span v-if="main_collection.dialysissolution.anticoagulant == 11">
  621. iu
  622. </span>
  623. </span>
  624. </div>
  625. <div style="margin: 5px 0;">
  626. 血管通路:{{getBloodAccess(main_collection.assessmentbefor.blood_access_part_opera_id) }}
  627. </div>
  628. </div>
  629. <div style="border: 1px solid black;width: 82%;">
  630. <div style="margin: 5px 0;">高危因素:{{ main_collection.prescription.remark }}</div>
  631. </div>
  632. </div>
  633. </div>
  634. </div>
  635. <span slot="footer" class="dialog-footer">
  636. <el-button @click="centerDialogVisible = false">取 消</el-button>
  637. </span>
  638. </el-dialog>
  639. <el-dialog
  640. :visible.sync="endVisibility"
  641. :close-on-click-modal="false"
  642. :close-on-press-escape="false"
  643. :show-close="false"
  644. width="30%"
  645. >
  646. <el-button
  647. size="small"
  648. icon="el-icon-printer"
  649. type="primary"
  650. @click="printAction"
  651. style="float:right"
  652. >打印</el-button
  653. >
  654. <div id="print_content">
  655. <div class="print_main_content">
  656. <div class="table_panel">
  657. <div v-for="(main_collection,index) in printList" :key="index">
  658. <div class="signPrint" style="width: 360px;font-size:16px;">
  659. <div style="margin-left:50px;">姓名:
  660. <span>{{main_collection.patient.name}} </span>
  661. ({{ main_collection.patient.dialysis_no }},{{getNewAge(main_collection.patient.id_card_no) }}岁)
  662. </div>
  663. <div class="printCell" style="display:flex;justify-content: space-around;">
  664. <span style="display: block;width: 50%;">
  665. 床号:{{ main_collection.number.number }}
  666. <span style="width:auto;" v-if="main_collection.schedule_type == 1">上午</span>
  667. <span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
  668. <span style="width:auto;" v-if="main_collection.schedule_type == 3">晚上</span>
  669. </span>
  670. <span style="display: block;width: 50%;">{{ printDate }}</span>
  671. </div>
  672. <div class="printCell" style="display:flex;justify-content: space-around;">
  673. <span style="display: block;width: 50%;">干体重:{{main_collection.assessmentbefor.dry_weight}}Kg</span>
  674. <span style="display: block;width: 50%;">抗凝剂:{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}</span>
  675. </div>
  676. <div class="printCell" style="display:flex;justify-content: space-around;">
  677. <span style="display: block;width: 50%;">净重值:{{ main_collection.assessmentbefor.weight_before - main_collection.assessmentbefor.additional_weight }}Kg</span>
  678. <span style="display: block;width: 50%;">
  679. 首剂: <span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_shouji}} mg</span>
  680. <span v-if="main_collection.dialysissolution.anticoagulant == 2">
  681. {{main_collection.dialysissolution.anticoagulant_shouji}}mg
  682. </span>
  683. <span v-if="main_collection.dialysissolution.anticoagulant == 3">
  684. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  685. </span>
  686. <span v-if="main_collection.dialysissolution.anticoagulant == 4">
  687. {{main_collection.dialysissolution.anticoagulant_shouji}}mg
  688. </span>
  689. <span v-if="main_collection.dialysissolution.anticoagulant == 5">
  690. {{main_collection.dialysissolution.anticoagulant_shouji}} mg
  691. </span>
  692. <span v-if="main_collection.dialysissolution.anticoagulant == 6">
  693. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  694. </span>
  695. <span v-if="main_collection.dialysissolution.anticoagulant == 7">
  696. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  697. </span>
  698. <span v-if="main_collection.dialysissolution.anticoagulant == 8">
  699. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  700. </span>
  701. <span v-if="main_collection.dialysissolution.anticoagulant == 9">
  702. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  703. </span>
  704. <span v-if="main_collection.dialysissolution.anticoagulant == 10">
  705. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  706. </span>
  707. <span v-if="main_collection.dialysissolution.anticoagulant == 11">
  708. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  709. </span>
  710. </span>
  711. </div>
  712. <div class="printCell" style="display:flex;justify-content: space-around;">
  713. <span style="display: block;width: 50%;">体重增加:{{ (main_collection.assessmentbefor.weight_before - assessmentAfterDislysis.weight_after).toFixed(2) }}Kg</span>
  714. <span style="display: block;width: 50%;">
  715. 维持:{{main_collection.dialysissolution.anticoagulant_weichi}}
  716. <span v-if="main_collection.dialysissolution.anticoagulant == 1">
  717. mg/h
  718. </span>
  719. <span v-if="main_collection.dialysissolution.anticoagulant == 2">
  720. mg/h
  721. </span>
  722. <span v-if="main_collection.dialysissolution.anticoagulant == 3">
  723. iu/h
  724. </span>
  725. <span v-if="main_collection.dialysissolution.anticoagulant == 4">
  726. mg/h
  727. </span>
  728. <span v-if="main_collection.dialysissolution.anticoagulant == 5">
  729. mg/h
  730. </span>
  731. <span v-if="main_collection.dialysissolution.anticoagulant == 6">
  732. iu/h
  733. </span>
  734. <span v-if="main_collection.dialysissolution.anticoagulant == 7">
  735. iu/h
  736. </span>
  737. <span v-if="main_collection.dialysissolution.anticoagulant == 8">
  738. iu/h
  739. </span>
  740. <span v-if="main_collection.dialysissolution.anticoagulant == 9">
  741. iu/h
  742. </span>
  743. <span v-if="main_collection.dialysissolution.anticoagulant == 10">
  744. iu/h
  745. </span>
  746. <span v-if="main_collection.dialysissolution.anticoagulant == 11">
  747. iu/h
  748. </span>
  749. </span>
  750. </div>
  751. <div class="printCell" style="display:flex;justify-content: space-around;">
  752. <span style="display: block;width: 50%;">处方脱水量:{{ main_collection.prescription.target_ultrafiltration }}
  753. <span v-if="$store.getters.xt_user.org.id == 10278 || $store.getters.xt_user.org.id == 10138">ml</span>
  754. <span v-else>L</span>
  755. </span>
  756. <span style="display: block;width: 50%;">
  757. 总量:{{main_collection.dialysissolution.anticoagulant_zongliang}}
  758. <span v-if="main_collection.dialysissolution.anticoagulant == 1">
  759. mg
  760. </span>
  761. <span v-if="main_collection.dialysissolution.anticoagulant == 2">
  762. mg
  763. </span>
  764. <span v-if="main_collection.dialysissolution.anticoagulant == 3">
  765. iu
  766. </span>
  767. <span v-if="main_collection.dialysissolution.anticoagulant == 4">
  768. mg
  769. </span>
  770. <span v-if="main_collection.dialysissolution.anticoagulant == 5">
  771. mg
  772. </span>
  773. <span v-if="main_collection.dialysissolution.anticoagulant == 6">
  774. iu
  775. </span>
  776. <span v-if="main_collection.dialysissolution.anticoagulant == 7">
  777. iu
  778. </span>
  779. <span v-if="main_collection.dialysissolution.anticoagulant == 8">
  780. iu
  781. </span>
  782. <span v-if="main_collection.dialysissolution.anticoagulant == 9">
  783. iu
  784. </span>
  785. <span v-if="main_collection.dialysissolution.anticoagulant == 10">
  786. iu
  787. </span>
  788. <span v-if="main_collection.dialysissolution.anticoagulant == 11">
  789. iu
  790. </span>
  791. </span>
  792. </div>
  793. </div>
  794. </div>
  795. </div>
  796. </div>
  797. </div>
  798. <span slot="footer" class="dialog-footer">
  799. <el-button @click="endVisibility = false">取 消</el-button>
  800. </span>
  801. </el-dialog>
  802. <!-- 显示透析日期的弹窗 -->
  803. <el-dialog
  804. :title="'患者信息(姓名:'+Dialysis_patient+'、透析号:'+20011120+')'"
  805. :visible.sync="cishu_dialogVisible"
  806. width="50%"
  807. :modal-append-to-body='false'
  808. :close-on-click-modal="false">
  809. <div>
  810. <div style="line-height: 40px;">
  811. 透析频率:HD(每周2次)
  812. </div>
  813. <div style="line-height: 40px;">
  814. 已排详情
  815. </div>
  816. <div>
  817. <el-calendar>
  818. <!-- 这里使用的是 2.5 slot 语法,对于新项目请使用 2.6 slot 语法-->
  819. <template
  820. slot="dateCell"
  821. slot-scope="{date, data}">
  822. <P v-if="data.day.split('-').slice(1).join('-')=='11-27'"
  823. style="background: red;color: white;text-align: center;">
  824. HD
  825. </P>
  826. <p :class="data.isSelected ? 'is-selected' : ''" style="text-align: center;">
  827. {{ data.day.split('-').slice(2).join('-') }} {{ data.isSelected ? '✔️' : ''}}<br/>
  828. <span v-if="data.day.split('-').slice(1).join('-')=='11-27'">上午 门诊</span>
  829. </p>
  830. </template>
  831. </el-calendar>
  832. </div>
  833. </div>
  834. </el-dialog>
  835. </div>
  836. <div style="width:75%" v-show="!showView">
  837. <div style="margin-left:60px;color:#34495e">
  838. <span>{{ patient.name }}({{ patient.dialysis_no }})</span>
  839. <span v-if="newTime != ''">&nbsp;&nbsp;|&nbsp;&nbsp;</span>
  840. <span v-if="newTime != ''">签到时间:{{ newTime }}</span>
  841. </div>
  842. <nav-igation
  843. ref="nav"
  844. title="弹窗导航"
  845. @advice="adviceFunc"
  846. :patient="patient"
  847. :schedual="schedual"
  848. :prescription="prescription"
  849. :solution="solution"
  850. :receiver_treatment_access="receiver_treatment_access"
  851. :predialysis_evaluation="predialysis_evaluation"
  852. :doctor_advices="doctor_advices"
  853. :double_check="double_check"
  854. :assessment_after_dislysis="assessment_after_dislysis"
  855. :treatment_summary="treatment_summary"
  856. :monitor_records="monitor_records"
  857. :dialysis_order="dialysis_order"
  858. :admin_users="admin_users"
  859. :devices="devices"
  860. :device_numbers="device_numbers"
  861. :admin_user_map="admin_user_map"
  862. :device_map="device_map"
  863. :device_number_map="device_number_map"
  864. :niprocart_info="niprocart_info"
  865. :jms_info="jms_info"
  866. :fistula_needle_set_info="fistula_needle_set_info"
  867. :fistula_needle_set_16_info="fistula_needle_set_16_info"
  868. :hemoperfusion_info="hemoperfusion_info"
  869. :dialyser_sterilised_info="dialyser_sterilised_info"
  870. :filtryzer_info="filtryzer_info"
  871. :dialyzers_info="dialyzers_info"
  872. :injector_info="injector_info"
  873. :bloodlines_info="bloodlines_info"
  874. :tubingHemodialysis_info="tubingHemodialysis_info"
  875. :safe_package_info="safe_package_info"
  876. :aliquid_info="aliquid_info"
  877. :config="config"
  878. :longAdvices="longAdvices"
  879. :waitUploadAdvices="waitUploadAdvices"
  880. :is_open="is_open"
  881. :last_predialysis_evaluation="lastPredialysisEvaluation"
  882. :last_monitor_record="lastMonitorRecord"
  883. :last_assessment_after_dislysis="lastAssessmentAfterDislysis"
  884. :last_dialysis_prescribe="lastDialysisPrescribe"
  885. :last_dryWeight_dislysis="lastDryWeightDislysis"
  886. :special_premission="headNurses"
  887. @assessmentAfterDislysis="assessmentAfterDislysisFunc"
  888. :system_prescribe="system_prescribe"
  889. :his_is_open="his_is_open"
  890. :is_advice_open="is_advice_open"
  891. :lastAssessment="lastAssessment"
  892. :stockType="stockType"
  893. :his_doctor_advices="his_doctor_advices"
  894. :lastOrder="lastOrder"
  895. :dryWeightList="dryWeightList"
  896. :docList="docList"
  897. >
  898. </nav-igation>
  899. <basic-infor
  900. :patient="patient"
  901. :device_number="schedual.id == 0 ? '' : schedual.device_number.number"
  902. :steps="steps"
  903. title="基本信息"
  904. ></basic-infor>
  905. <dialysis-prescription
  906. :prescription="prescription"
  907. :solution="solution"
  908. :device_map="device_map"
  909. :preparestock="preparestock"
  910. title="透析处方"
  911. ></dialysis-prescription>
  912. <!-- <past-data class="往期数据"></past-data> -->
  913. <div style="height: 20px;background-color: #f6f8f9"></div>
  914. <accepts-assessment
  915. :record="receiver_treatment_access"
  916. title="接诊评估"
  917. ></accepts-assessment>
  918. <assessment-before
  919. :record="predialysis_evaluation"
  920. ref="assessment_before"
  921. title="透前评估"
  922. ></assessment-before>
  923. <stat-order
  924. ref="stat_order"
  925. :advices="doctor_advices"
  926. :doctor_map="admin_user_map"
  927. title="临时医嘱"
  928. ></stat-order>
  929. <double-check
  930. ref="double_check"
  931. :record="double_check"
  932. :admin_map="admin_user_map"
  933. title="双人核对 "
  934. ></double-check>
  935. <dialysis-computer
  936. ref="dialysis_computer"
  937. :record="dialysis_order"
  938. :admin_map="admin_user_map"
  939. :device_number_map="device_number_map"
  940. title="透析上机 "
  941. ></dialysis-computer>
  942. <dialysis-monitoring
  943. ref="monitoring"
  944. :monitores="monitor_records"
  945. title="透析监测"
  946. ></dialysis-monitoring>
  947. <el-dialog
  948. title="长期医嘱单"
  949. :visible.sync="dialogFormVisible"
  950. width="960px"
  951. >
  952. <div class="printForm">
  953. <h1 class="title">长期医嘱单</h1>
  954. <div class="info">
  955. <ul>
  956. <li>
  957. <span class="name">姓名:</span>
  958. <input type="text" class="InputBox" />
  959. </li>
  960. <li>
  961. <span class="name">性别:</span>
  962. <input type="text" class="InputBox" />
  963. </li>
  964. <li>
  965. <span class="name">年龄:</span>
  966. <input type="text" class="InputBox" />
  967. </li>
  968. <li>
  969. <span class="name">科别:</span>
  970. <input type="text" class="InputBox" />
  971. </li>
  972. <li>
  973. <span class="name">床号:</span>
  974. <input type="text" class="InputBox" />
  975. </li>
  976. <li>
  977. <span class="name">住院号:</span>
  978. <input type="text" class="InputBox" />
  979. </li>
  980. </ul>
  981. </div>
  982. <table
  983. border="1"
  984. style="border:1px #999 solid;margin-top:20px;"
  985. bordercolorlight="#fff"
  986. bordercolordark="#fff"
  987. width="100%"
  988. cellpadding="0"
  989. cellspacing="0"
  990. class="printTable"
  991. >
  992. <tbody>
  993. <tr align="center">
  994. <th style="width:20%;" colspan="2" align="center">起始</th>
  995. <th style="width:20%;" rowspan="2" align="center">医嘱</th>
  996. <th style="width:8%;" rowspan="2" align="center">医师签名</th>
  997. <th style="width:6%;" rowspan="2" align="center">执行护士签名</th>
  998. <th style="width:42%;" colspan="4" align="center">停止</th>
  999. </tr>
  1000. <tr align="center">
  1001. <th align="center">日期</th>
  1002. <th align="center">时间</th>
  1003. <th style="width:10%;" align="center">日期</th>
  1004. <th style="width:10%;" align="center">时间</th>
  1005. <th style="width:10%;" align="center">医师签名</th>
  1006. <th style="width:6%;" align="center">执行护士签名</th>
  1007. </tr>
  1008. <tr align="center">
  1009. <td>2018-90-09</td>
  1010. <td>2018-90-09</td>
  1011. <td>地方开发发地方开发发方发发发大渡岗</td>
  1012. <td>张三</td>
  1013. <td>张三</td>
  1014. <td>张三</td>
  1015. <td>张三</td>
  1016. <td>张三</td>
  1017. <td>张三</td>
  1018. </tr>
  1019. <tr align="center">
  1020. <td>2018-90-09</td>
  1021. <td>2018-90-09</td>
  1022. <td>地方开发发地方开发发方发发发大渡岗</td>
  1023. <td>张三</td>
  1024. <td>张三</td>
  1025. <td>张三</td>
  1026. <td>张三</td>
  1027. <td>张三</td>
  1028. <td>张三</td>
  1029. </tr>
  1030. </tbody>
  1031. </table>
  1032. </div>
  1033. </el-dialog>
  1034. <el-dialog title="临时医嘱单" :visible.sync="orders" width="960px">
  1035. <div class="printForm">
  1036. <h1 class="title">临时医嘱单</h1>
  1037. <div class="info">
  1038. <ul>
  1039. <li>
  1040. <span class="name">姓名:</span>
  1041. <input type="text" class="InputBox" />
  1042. </li>
  1043. <li>
  1044. <span class="name">性别:</span>
  1045. <input type="text" class="InputBox" />
  1046. </li>
  1047. <li>
  1048. <span class="name">年龄:</span>
  1049. <input type="text" class="InputBox" />
  1050. </li>
  1051. <li>
  1052. <span class="name">科:</span>
  1053. <input type="text" class="InputBox" />
  1054. </li>
  1055. <li>
  1056. <span class="name">区:</span>
  1057. <input type="text" class="InputBox" />
  1058. </li>
  1059. <li>
  1060. <span class="name">房:</span>
  1061. <input type="text" class="InputBox" />
  1062. </li>
  1063. <li>
  1064. <span class="name">床:</span>
  1065. <input type="text" class="InputBox" />
  1066. </li>
  1067. <li>
  1068. <span class="name">住院号:</span>
  1069. <input type="text" class="InputBox" />
  1070. </li>
  1071. </ul>
  1072. </div>
  1073. <table
  1074. border="1"
  1075. style="border:1px #999 solid;margin-top:20px;"
  1076. bordercolorlight="#fff"
  1077. bordercolordark="#fff"
  1078. width="100%"
  1079. cellpadding="0"
  1080. cellspacing="0"
  1081. class="printTable"
  1082. >
  1083. <tbody>
  1084. <tr align="center">
  1085. <th style="width:10%;" align="center">日期</th>
  1086. <th style="width:10%;" align="center">时间</th>
  1087. <th style="width:10%;" align="center">医生签名</th>
  1088. <th style="width:40%;" align="center">医嘱内容</th>
  1089. <th style="width:10%;" align="center">执行时间</th>
  1090. <th style="width:10%;" align="center">护士签名</th>
  1091. <th style="width:10%;" align="center">金额</th>
  1092. </tr>
  1093. <tr align="center">
  1094. <td>2018-90-09</td>
  1095. <td>2018-90-09</td>
  1096. <td>张三</td>
  1097. <td>张三</td>
  1098. <td>张三</td>
  1099. <td>张三</td>
  1100. <td>888</td>
  1101. </tr>
  1102. <tr align="center">
  1103. <td>2018-90-09</td>
  1104. <td>2018-90-09</td>
  1105. <td>张三</td>
  1106. <td>张三</td>
  1107. <td>2018-90-09</td>
  1108. <td>张三</td>
  1109. <td>888</td>
  1110. </tr>
  1111. </tbody>
  1112. </table>
  1113. </div>
  1114. </el-dialog>
  1115. <dialysis-off
  1116. ref="dialysis_off"
  1117. :record="dialysis_order"
  1118. :admin_map="admin_user_map"
  1119. title="透析下机 "
  1120. ></dialysis-off>
  1121. <assessment-after
  1122. ref="assessment_after"
  1123. :record="assessment_after_dislysis"
  1124. title="透后评估"
  1125. ></assessment-after>
  1126. <treatment-of
  1127. ref="treatment_of"
  1128. :record="treatment_summary"
  1129. title="治疗小结"
  1130. ></treatment-of>
  1131. </div>
  1132. <div v-if="showView" style="text-align:center;margin: 0 auto;font-size:20px;">
  1133. <p style="margin-top:20px;">当前叫号</p>
  1134. <p style="margin-top:20px;">{{ $route.query.patient_name ? $route.query.patient_name : ""}}</p>
  1135. <p style="margin-top:20px;">签到时间:{{ $route.query.curPatientTime ? getDates($route.query.curPatientTime) : '' }}</p>
  1136. <p style="color:red;margin-top:20px;">提示:当前患者无排班,请先排班</p>
  1137. </div>
  1138. </div>
  1139. </div>
  1140. </template>
  1141. <script>
  1142. const moment = require('moment')
  1143. import axios from 'axios'
  1144. import NavIgation from './NavIgation'
  1145. import BasicInfor from './BasicInfor'
  1146. import DialysisPrescription from './DialysisPrescription'
  1147. import PastData from './pastData'
  1148. import AcceptsAssessment from './acceptsAssessment'
  1149. import AssessmentBefore from './assessmentBefore'
  1150. import StatOrder from './statOrder'
  1151. import DialysisComputer from './dialysisComputer'
  1152. import DoubleCheck from './doubleCheck'
  1153. import DialysisMonitoring from './dialysisMonitoring'
  1154. import DialysisOff from './dialysisOff'
  1155. import AssessmentAfter from './assessmentAfter'
  1156. import TreatmentOf from './treatmentOf'
  1157. import OperationStaff from './operationStaff'
  1158. import {
  1159. getDialysisScheduleDetail,
  1160. getLongAdviceTwo,
  1161. getDialysisRecordInitData,
  1162. getDialysisSchedules,
  1163. getInitPrintData
  1164. } from '@/api/dialysis_record'
  1165. import { getDataConfig } from '@/utils/data'
  1166. import { parseTime } from '@/utils'
  1167. import BreadCrumb from '@/xt_pages/components/bread-crumb'
  1168. import print from 'print-js'
  1169. import { uParseTime } from '@/utils/tools'
  1170. export default {
  1171. name: 'index',
  1172. components: {
  1173. NavIgation,
  1174. BasicInfor,
  1175. DialysisPrescription,
  1176. PastData,
  1177. AcceptsAssessment,
  1178. AssessmentBefore,
  1179. StatOrder,
  1180. DialysisComputer,
  1181. DoubleCheck,
  1182. DialysisMonitoring,
  1183. DialysisOff,
  1184. AssessmentAfter,
  1185. TreatmentOf,
  1186. OperationStaff,
  1187. BreadCrumb
  1188. },
  1189. data() {
  1190. return {
  1191. crumbs: [
  1192. { path: false, name: '透析管理' },
  1193. { path: false, name: '透析记录' },
  1194. { path: false, name: '透析单' }
  1195. ],
  1196. dialogFormVisible: false,
  1197. orders: false,
  1198. loading: false,
  1199. cishu_dialogVisible:false,//
  1200. patient_id: 0,
  1201. date: 0,
  1202. dialysis_date:0,
  1203. longAdvices: [],
  1204. waitUploadAdvices: [],
  1205. is_open: 0,
  1206. targetAdvices: [],
  1207. patient: { id: 0 }, // 患者信息
  1208. schedual: { id: 0 }, // 患者排班信息
  1209. prescription: { id: 0 }, // 透析处方
  1210. solution: { id: 0 }, // 透析方案
  1211. system_prescribe: { id: 0 },
  1212. receiver_treatment_access: { id: 0 }, // 接诊评估
  1213. predialysis_evaluation: { id: 0 }, // 透前评估
  1214. doctor_advices: [], // 临时医嘱
  1215. double_check: { id: 0 }, // 双人核对
  1216. assessment_after_dislysis: { id: 0 }, // 透后评估
  1217. treatment_summary: { id: 0 }, // 治疗小结
  1218. monitor_records: [], // 透析监测
  1219. dialysis_order: { id: 0 }, // 透析记录
  1220. admin_users: [], // 系统用户列表
  1221. devices: [], // 设备
  1222. device_numbers: [], // 床位号
  1223. admin_user_map: {}, // {user_id: admin_user object}
  1224. device_map: {}, // {device_id: device}
  1225. device_number_map: {}, // {device_number_id: device_number}
  1226. niprocart_info: [],
  1227. jms_info: [],
  1228. fistula_needle_set_info: [],
  1229. fistula_needle_set_16_info: [],
  1230. hemoperfusion_info: [],
  1231. dialyser_sterilised_info: [],
  1232. filtryzer_info: [],
  1233. dialyzers_info: [],
  1234. injector_info: [],
  1235. bloodlines_info: [],
  1236. tubingHemodialysis_info: [],
  1237. safe_package_info: [],
  1238. aliquid_info: [],
  1239. config: {},
  1240. his_is_open:0,
  1241. is_advice_open:0,
  1242. lastPredialysisEvaluation: { id: 0 },
  1243. lastMonitorRecord: { id: 0 },
  1244. lastAssessmentAfterDislysis: { id: 0 },
  1245. lastDryWeightDislysis: { id: 0 },
  1246. lastAssessment:{id:0},
  1247. headNurses: [],
  1248. lastDialysisPrescribe: { id: 0 },
  1249. //
  1250. activeName: 'first',
  1251. selected_date: new Date(),
  1252. // search_input 和 search_keyword,使输入关键字时不会经常刷新 filtedSchedules
  1253. search_keyword: '', // 确定用于搜索的关键字
  1254. search_input: '', // 输入中的关键字
  1255. patient_state: [
  1256. { value: 0, label: '全部患者' },
  1257. { value: 1, label: '已签到' },
  1258. { value: 2, label: '未签到' },
  1259. { value: 3, label: '已上机' },
  1260. { value: 4, label: '已下机' }
  1261. ],
  1262. patientStateVal: 0,
  1263. treat_state: [
  1264. { value: 0, label: '全部治疗' },
  1265. { value: 1, label: '待开处方' },
  1266. { value: 2, label: '待开小结' },
  1267. { value: 3, label: '待医嘱核对' },
  1268. ],
  1269. treatStateVal: 0,
  1270. schedule_options: [
  1271. { value: 0, label: '全部班' },
  1272. { value: 1, label: '上午' },
  1273. { value: 2, label: '下午' },
  1274. { value: 3, label: '晚上' }
  1275. ],
  1276. scheduleStateVal: 0,
  1277. zone_options: [
  1278. { id: 0, text: '全部分区' }
  1279. ],
  1280. zoneVal: 0,
  1281. tableData: [],
  1282. tableData1: [],
  1283. arr: [],
  1284. newName: '',
  1285. newTime: '',
  1286. scheudle_mode:"",
  1287. showView:false,
  1288. curPatient:{},
  1289. queueConfig:{},
  1290. stockType:[],
  1291. preparestock:[],
  1292. his_doctor_advices:[],
  1293. startVisibility:false,
  1294. endVisibility:false,
  1295. centerDialogVisible:false,//新上机单弹窗
  1296. printList:[],
  1297. anticoagulants_confit:null,
  1298. printDate:'',
  1299. assessmentAfterDislysis:{},
  1300. lastOrder:{},
  1301. dryWeightList:[],
  1302. docList:[],
  1303. blood_access_part_opera: [],
  1304. }
  1305. },
  1306. created() {
  1307. this.blood_access_part_opera = getDataConfig('hemodialysis', 'vascular_access_desc')
  1308. this.org_id = this.$store.getters.xt_user.org.id,
  1309. this.printDate = moment().format("YYYY-MM-DD HH:mm:ss")
  1310. if(this.$route.query.showView){
  1311. this.showView = this.$route.query.showView
  1312. }
  1313. if(sessionStorage.getItem("nameActive")){
  1314. this.activeName = sessionStorage.getItem("nameActive")
  1315. }
  1316. var patient_id = this.$route.query.patient_id
  1317. var date = this.$route.query.date
  1318. this.patient_id = patient_id
  1319. this.date = date
  1320. this.dialysis_date=
  1321. this.getScheduleDetail()
  1322. this.getLongAdvice()
  1323. this.selected_date = this.$route.query.date * 1000
  1324. var schedule_type_selected = this.$store.getters.schedule_type_selected
  1325. var zone_selected = this.$store.getters.zone_selected
  1326. var patient_state_selected = this.$store.getters.patient_state_selected
  1327. var treat_state_selected = this.$store.getters.treat_state_selected
  1328. var selected_date = this.$store.getters.selected_date
  1329. if (schedule_type_selected) {
  1330. this.scheduleStateVal = schedule_type_selected.schedule_type_selected
  1331. }
  1332. if (zone_selected) {
  1333. this.zoneVal = zone_selected.zone_selected
  1334. }
  1335. if (patient_state_selected) {
  1336. this.patientStateVal = patient_state_selected.patient_state_selected
  1337. }
  1338. if (treat_state_selected) {
  1339. this.treatStateVal = treat_state_selected.treat_state_selected
  1340. }
  1341. if (selected_date.selected_date) {
  1342. this.selected_date = selected_date.selected_date
  1343. }
  1344. this.initData = {
  1345. cmd: "queue/join",
  1346. data: {type:3,page:0,size:0},
  1347. };
  1348. this.websocketSend(this.initData)
  1349. this.getInitData()
  1350. this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
  1351. },
  1352. beforeMount() {
  1353. if (this.websocket) {
  1354. if (this.websocket.readyState == 1) {
  1355. console.log('执行1')
  1356. this.websocketMess();
  1357. } else {
  1358. setTimeout(() => {
  1359. console.log('执行2')
  1360. this.websocketMess();
  1361. }, 1000);
  1362. }
  1363. } else {
  1364. setTimeout(() => {
  1365. if (this.websocket) {
  1366. console.log('执行3')
  1367. this.websocketMess();
  1368. } else {
  1369. setTimeout(() => {
  1370. console.log('执行4')
  1371. this.websocketMess();
  1372. }, 1000);
  1373. }
  1374. }, 1000);
  1375. }
  1376. },
  1377. mounted() {
  1378. const timer = setInterval(() => {
  1379. // this.getInitData();
  1380. this.requestDialysisSchedules()
  1381. }, 1000 * 30)
  1382. // 通过$once来监听定时器,在beforeDestroy钩子可以被清除。
  1383. this.$once('hook:beforeDestroy', () => {
  1384. clearInterval(timer)
  1385. })
  1386. let obj = {
  1387. cmd: "queue/join",
  1388. data: {type:3,page:0,size:0},
  1389. };
  1390. this.websocketSend(obj)
  1391. },
  1392. computed: {
  1393. websocket() {
  1394. return this.$store.state.user.websocket;
  1395. },
  1396. steps: function() {
  1397. var steps = [
  1398. { title: '透析处方', finish: false },
  1399. { title: '接诊评估', finish: false },
  1400. { title: '透前评估', finish: false },
  1401. { title: '临时医嘱', finish: false },
  1402. { title: '双人核对', finish: false },
  1403. { title: '透析上机', finish: false },
  1404. { title: '透析监测', finish: false },
  1405. { title: '透析下机', finish: false },
  1406. { title: '透后评估', finish: false },
  1407. { title: '治疗小结', finish: false }
  1408. ]
  1409. steps[0].finish = this.prescription.id && this.prescription.creater > 0
  1410. steps[1].finish = this.receiver_treatment_access.id > 0
  1411. // steps[2].finish =this.predialysis_evaluation.id > 0 && this.predialysis_evaluation.creater > 0
  1412. steps[2].finish =this.predialysis_evaluation.id > 0
  1413. steps[3].finish = this.doctor_advices.length > 0
  1414. steps[5].finish = this.dialysis_order.id > 0
  1415. steps[7].finish =
  1416. this.dialysis_order.id > 0 && this.dialysis_order.stage == 2
  1417. steps[4].finish =
  1418. this.double_check.id > 0 &&
  1419. this.double_check.creater > 0 &&
  1420. this.double_check.modifier > 0
  1421. steps[6].finish = this.monitor_records.length > 0
  1422. // steps[8].finish = this.assessment_after_dislysis.id > 0 && this.assessment_after_dislysis.creater > 0
  1423. steps[8].finish = this.assessment_after_dislysis.id > 0
  1424. steps[9].finish = this.treatment_summary.id > 0
  1425. return steps
  1426. },
  1427. filtedSchedules: function() {
  1428. var search_keyword = this.search_keyword
  1429. if (search_keyword.length > 0) {
  1430. var schedules = []
  1431. for (let o_i = 0; o_i < this.zone_schedules.length; o_i++) {
  1432. const scheduleInfo = this.zone_schedules[o_i]
  1433. var originSchedules = scheduleInfo.schedules
  1434. if (originSchedules.length == 0) {
  1435. continue
  1436. }
  1437. var filtedSchedules = []
  1438. for (let s_i = 0; s_i < originSchedules.length; s_i++) {
  1439. const schedule = originSchedules[s_i]
  1440. if ((schedule.patient.name.indexOf(search_keyword) != -1) || (schedule.patient.first_letter.indexOf(search_keyword) != -1)) {
  1441. filtedSchedules.push(schedule)
  1442. // break
  1443. }
  1444. }
  1445. if (filtedSchedules.length > 0) {
  1446. schedules.push({ zone_id: scheduleInfo.zone_id, zone_name: scheduleInfo.zone_name, schedules: filtedSchedules })
  1447. }
  1448. }
  1449. return schedules
  1450. }
  1451. // var zone_selected = this.zoneVal
  1452. // var timetype_selected = this.scheduleStateVal
  1453. // if ((zone_selected == 0 && timetype_selected == 0) || this.zone_options.length <= 1) {
  1454. // var schedules = []
  1455. // for (let index = 0; index < this.zone_schedules.length; index++) {
  1456. // const scheduleInfo = this.zone_schedules[index]
  1457. // if (scheduleInfo.schedules.length != 0) {
  1458. // schedules.push(scheduleInfo)
  1459. // }
  1460. // }
  1461. // return schedules
  1462. // }
  1463. // var schedules = []
  1464. // for (let o_i = 0; o_i < this.zone_schedules.length; o_i++) {
  1465. // const scheduleInfo = this.zone_schedules[o_i]
  1466. // if (zone_selected == scheduleInfo.zone_id && timetype_selected == 0) {
  1467. // if (scheduleInfo.schedules.length == 0) {
  1468. // return []
  1469. // } else {
  1470. // return [scheduleInfo]
  1471. // }
  1472. // }
  1473. // var originSchedules = scheduleInfo.schedules
  1474. // if (originSchedules.length == 0) {
  1475. // continue
  1476. // }
  1477. // var filtedSchedules = []
  1478. // for (let s_i = 0; s_i < originSchedules.length; s_i++) {
  1479. // const schedule = originSchedules[s_i]
  1480. // if (zone_selected != 0) {
  1481. // if (zone_selected == schedule.device_number.zone.id) {
  1482. // if (timetype_selected == 0 || schedule.schedule_type == timetype_selected) {
  1483. // filtedSchedules.push(schedule)
  1484. // }
  1485. // }
  1486. // } else {
  1487. // if (timetype_selected == 0 || schedule.schedule_type == timetype_selected) {
  1488. // filtedSchedules.push(schedule)
  1489. // }
  1490. // }
  1491. // }
  1492. // if (filtedSchedules.length > 0) {
  1493. // schedules.push({ zone_id: scheduleInfo.zone_id, zone_name: scheduleInfo.zone_name, schedules: filtedSchedules })
  1494. // }
  1495. // }
  1496. // return schedules
  1497. }
  1498. },
  1499. beforeDestroy(){
  1500. let unObj = {
  1501. cmd: "queue/unjoin",
  1502. data: {type:3},
  1503. };
  1504. this.websocketSend(unObj)
  1505. },
  1506. methods: {
  1507. // 透析次数
  1508. chishuclick(row){
  1509. this.cishu_dialogVisible=true
  1510. console.log('ddddddd',row);
  1511. this.Dialysis_patient=row
  1512. },
  1513. getNewAge(UUserCard) {
  1514. if (UUserCard != null && UUserCard != '') {
  1515. // 获取年龄
  1516. var myDate = new Date()
  1517. var month = myDate.getMonth() + 1
  1518. var day = myDate.getDate()
  1519. var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1
  1520. if (UUserCard.substring(10, 12) < month || UUserCard.substring(10, 12) == month && UUserCard.substring(12, 14) <= day) {
  1521. age++
  1522. }
  1523. return age
  1524. }
  1525. },
  1526. adviceFunc() {
  1527. this.getScheduleDetail()
  1528. },
  1529. getLongAdvice() {
  1530. const params = {
  1531. patient_id: this.patient_id,
  1532. schedule_date:this.$route.query.date,
  1533. }
  1534. getLongAdviceTwo(params).then(rs => {
  1535. var resp = rs.data
  1536. if (resp.state == 1) {
  1537. var status = parseInt(resp.data.status)
  1538. switch (status) {
  1539. case 2:
  1540. var totalAdvice = resp.data.advices
  1541. var longAdvicesTwo = resp.data.advices_two
  1542. var waitUploadAdvices = []
  1543. for (let i = 0; i < totalAdvice.length; i++) {
  1544. totalAdvice[i]['isCheck'] = 1
  1545. }
  1546. for (let i = 0; i < totalAdvice.length; i++) {
  1547. for (let a = 0; a < longAdvicesTwo.length; a++) {
  1548. if (
  1549. totalAdvice[i].template_id ==
  1550. longAdvicesTwo[a].template_id &&
  1551. totalAdvice[i].frequency_type ==
  1552. longAdvicesTwo[a].frequency_type
  1553. ) {
  1554. totalAdvice[i]['isCheck'] = 0
  1555. }
  1556. }
  1557. }
  1558. for (let i = 0; i < totalAdvice.length; i++) {
  1559. if (totalAdvice[i].isCheck == 1) {
  1560. waitUploadAdvices.push(totalAdvice[i])
  1561. }
  1562. }
  1563. this.is_open = resp.data.is_open_remind
  1564. if(this.his_is_open == 1){
  1565. this.is_open = 0
  1566. }
  1567. if(this.is_advice_open == 1){
  1568. this.is_open = 1
  1569. }
  1570. this.longAdvices = totalAdvice
  1571. console.log("长期医嘱汇总 u 公告让你😯23232322332",this.longAdvices)
  1572. this.waitUploadAdvices = waitUploadAdvices
  1573. break
  1574. }
  1575. } else {
  1576. this.$message.error(resp.msg)
  1577. }
  1578. })
  1579. },
  1580. assessmentAfterDislysisFunc: function(val) {
  1581. for (var index in val) {
  1582. this.$set(this.assessment_after_dislysis, index, val[index])
  1583. }
  1584. },
  1585. didDelMonitor(record_id) {
  1586. var mrl = this.monitor_records.length
  1587. for (let index = 0; index < mrl; index++) {
  1588. if (this.monitor_records[index].id == record_id) {
  1589. this.monitor_records.splice(index, 1)
  1590. break
  1591. }
  1592. }
  1593. },
  1594. getScheduleDetail: function() {
  1595. this.loading = true
  1596. var dateStr = parseTime(this.date, '{y}-{m}-{d}')
  1597. if(this.$route.query.showView == true){
  1598. this.loading = false
  1599. return
  1600. }
  1601. // console.log('kkkkkkk',dateStr);
  1602. this.doctor_advices = []
  1603. getDialysisScheduleDetail(this.patient_id, dateStr).then(rs => {
  1604. var resp = rs.data
  1605. if (resp.state == 1) {
  1606. var patient = resp.data.patient // 患者信息
  1607. var schedual = resp.data.schedual // 患者排班信息
  1608. console.log("排班22222222222",resp)
  1609. var prescription = resp.data.prescription // 透析处方
  1610. if (prescription != null) {
  1611. if (prescription.body_fluid == -2) {
  1612. prescription.body_fluid = 0
  1613. }
  1614. if(prescription.bilirubin_adsorption_column == 0){
  1615. prescription.bilirubin_adsorption_column = ""
  1616. }
  1617. if(prescription.plasma_separator == 0){
  1618. prescription.plasma_separator = ""
  1619. }
  1620. }
  1621. var solution = resp.data.solution // 透析方案
  1622. var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
  1623. var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
  1624. if (predialysis_evaluation != null) {
  1625. if (predialysis_evaluation.blood_access_part_id == -2) {
  1626. predialysis_evaluation.blood_access_part_id = 0
  1627. }
  1628. if(predialysis_evaluation.blood_pressure_during_dialysis == 0){
  1629. predialysis_evaluation.blood_pressure_during_dialysis = ""
  1630. }
  1631. }
  1632. var doctor_advices = resp.data.doctor_advices // 临时医嘱
  1633. var double_check = resp.data.double_check // 双人核对
  1634. var assessment_after_dislysis = resp.data.assessment_after_dislysis // 透后评估
  1635. var treatment_summary = resp.data.treatment_summary // 治疗小结
  1636. var monitor_records = resp.data.monitor_records // 透析监测
  1637. var dialysis_order = resp.data.dialysis_order // 透析记录
  1638. var niprocart_info = resp.data.niprocart_info
  1639. var jms_info = resp.data.jms_info
  1640. var fistula_needle_set_info = resp.data.fistula_needle_set_info
  1641. var fistula_needle_set_16_info = resp.data.fistula_needle_set_16_info
  1642. var hemoperfusion_info = resp.data.hemoperfusion_info
  1643. var dialyser_sterilised_info = resp.data.dialyser_sterilised_info
  1644. var filtryzer_info = resp.data.filtryzer_info
  1645. var dialyzers_info = resp.data.dialyzers_info
  1646. var injector_info = resp.data.injector_info
  1647. var bloodlines_info = resp.data.bloodlines_info
  1648. var tubingHemodialysis_info = resp.data.tubingHemodialysis_info
  1649. var safe_package_info = resp.data.safe_package_info
  1650. var aliquid_info = resp.data.aliquid_info
  1651. var lastPredialysisEvaluation = resp.data.lastPredialysisEvaluation
  1652. if (lastPredialysisEvaluation != null) {
  1653. if (lastPredialysisEvaluation.blood_access_part_id == -2) {
  1654. lastPredialysisEvaluation.blood_access_part_id = 0
  1655. }
  1656. }
  1657. var lastMonitorRecord = resp.data.lastMonitorRecord
  1658. var lastAssessmentAfterDislysis = resp.data.lastAssessmentAfterDislysis
  1659. // if(lastAssessmentAfterDislysis.hypertenison!=""){
  1660. // lastAssessmentAfterDislysis.hypertenison = lastAssessmentAfterDislysis.hypertenison.toString()
  1661. // }
  1662. // if(lastAssessmentAfterDislysis.hypopiesia!=""){
  1663. // lastAssessmentAfterDislysis.hypopiesia = lastAssessmentAfterDislysis.hypopiesia.toString()
  1664. // }
  1665. var lastDialysisPrescribe = resp.data.lastDialysisPrescribe
  1666. var lastDryWeightDislysis = resp.data.lastDryWeightDislysis
  1667. var system_prescribe = resp.data.system_prescribe
  1668. var lastAssessment = resp.data.lastAssessment
  1669. var lastOrder = resp.data.lastOrder
  1670. this.lastOrder = lastOrder
  1671. this.$refs.nav.setLastRecord(
  1672. lastPredialysisEvaluation,
  1673. lastMonitorRecord,
  1674. lastAssessmentAfterDislysis,
  1675. lastDialysisPrescribe,
  1676. lastDryWeightDislysis,
  1677. schedual,
  1678. system_prescribe,
  1679. lastAssessment,
  1680. )
  1681. var headNurses = resp.data.headNurse
  1682. var config = resp.data.config
  1683. this.lastPredialysisEvaluation = lastPredialysisEvaluation
  1684. this.lastMonitorRecord = lastMonitorRecord
  1685. this.lastAssessmentAfterDislysis = lastAssessmentAfterDislysis
  1686. this.lastDialysisPrescribe = lastDialysisPrescribe
  1687. this.lastDryWeightDislysis = lastDryWeightDislysis
  1688. this.lastAssessment = lastAssessment
  1689. this.headNurses = headNurses
  1690. this.system_prescribe = system_prescribe
  1691. this.niprocart_info = []
  1692. this.jms_info = []
  1693. this.fistula_needle_set_info = []
  1694. this.fistula_needle_set_16_info = []
  1695. this.hemoperfusion_info = []
  1696. this.dialyser_sterilised_info = []
  1697. this.filtryzer_info = []
  1698. this.dialyzers_info = []
  1699. this.injector_info = []
  1700. this.bloodlines_info = []
  1701. this.tubingHemodialysis_info = []
  1702. this.safe_package_info = []
  1703. this.aliquid_info = []
  1704. this.niprocart_info = niprocart_info
  1705. this.jms_info = jms_info
  1706. this.fistula_needle_set_info = fistula_needle_set_info
  1707. this.fistula_needle_set_16_info = fistula_needle_set_16_info
  1708. this.hemoperfusion_info = hemoperfusion_info
  1709. this.dialyser_sterilised_info = dialyser_sterilised_info
  1710. this.filtryzer_info = filtryzer_info
  1711. this.dialyzers_info = dialyzers_info
  1712. this.injector_info = injector_info
  1713. this.bloodlines_info = bloodlines_info
  1714. this.tubingHemodialysis_info = tubingHemodialysis_info
  1715. this.safe_package_info = safe_package_info
  1716. this.aliquid_info = aliquid_info
  1717. this.config = config
  1718. // console.log('sdfdasfda4444444',this.patient);
  1719. this.patient = patient
  1720. console.log('bbbbbbbcccccccccc',this.patient);
  1721. this.schedual = schedual == null ? { id: 0 } : schedual
  1722. this.prescription = prescription == null ? { id: 0 } : prescription
  1723. this.solution = solution == null ? { id: 0 } : solution
  1724. this.receiver_treatment_access =
  1725. receiver_treatment_access == null
  1726. ? { id: 0 }
  1727. : receiver_treatment_access
  1728. this.predialysis_evaluation =
  1729. predialysis_evaluation == null ? { id: 0 } : predialysis_evaluation
  1730. this.doctor_advices = doctor_advices == null ? [] : doctor_advices
  1731. this.double_check = double_check == null ? { id: 0 } : double_check
  1732. this.assessment_after_dislysis =
  1733. assessment_after_dislysis == null
  1734. ? { id: 0 }
  1735. : assessment_after_dislysis
  1736. this.treatment_summary =
  1737. treatment_summary == null ? { id: 0 } : treatment_summary
  1738. this.monitor_records = monitor_records == null ? [] : monitor_records
  1739. this.dialysis_order =
  1740. dialysis_order == null ? { id: 0 } : dialysis_order
  1741. this.admin_users = resp.data.doctors
  1742. this.devices = resp.data.devices
  1743. this.device_numbers = resp.data.device_numbers
  1744. var his_doctor_advices = resp.data.his_advices
  1745. this.his_doctor_advices = his_doctor_advices
  1746. this.his_is_open = resp.data.is_open_config.is_open
  1747. this.is_advice_open = resp.data.is_advice_open.is_advice_open
  1748. var stockType = resp.data.stockType
  1749. this.stockType = stockType
  1750. this.dryWeightList = resp.data.dryWeightList
  1751. this.docList = resp.data.docList
  1752. console.log("doclist-----",this.docList)
  1753. var prepare = resp.data.prepare
  1754. if(prepare!=null){
  1755. this.preparestock = prepare
  1756. }else{
  1757. this.preparestock = []
  1758. }
  1759. for (let i = 0; i < this.doctor_advices.length; i++){
  1760. this.doctor_advices[i]['origin'] = 1
  1761. }
  1762. if (his_doctor_advices != null) {
  1763. for (let i = 0; i < his_doctor_advices.length; i++) {
  1764. his_doctor_advices[i]['origin'] = 2
  1765. his_doctor_advices[i]['way'] = 1
  1766. this.doctor_advices.push(his_doctor_advices[i])
  1767. }
  1768. }
  1769. const obj = {}
  1770. this.doctor_advices = this.doctor_advices.reduce((cur, next) => {
  1771. obj[next.id] ? '' : obj[next.id] = true && cur.push(next)
  1772. return cur
  1773. }, []) // 设置cur默认类型为数组,并且初始值为空的数组
  1774. var device_map = {}
  1775. for (let index = 0; index < this.devices.length; index++) {
  1776. const device = this.devices[index]
  1777. device_map[device.id] = device
  1778. }
  1779. this.device_map = device_map
  1780. var admin_map = {}
  1781. for (let index = 0; index < this.admin_users.length; index++) {
  1782. const admin = this.admin_users[index]
  1783. admin_map[admin.id] = admin
  1784. }
  1785. this.admin_user_map = admin_map
  1786. var device_number_map = {}
  1787. for (let index = 0; index < this.device_numbers.length; index++) {
  1788. const device_number = this.device_numbers[index]
  1789. device_number_map[device_number.id] = device_number
  1790. }
  1791. this.device_number_map = device_number_map
  1792. } else {
  1793. this.$message.error(resp.msg)
  1794. }
  1795. // 目标超滤量是否默认上次数据
  1796. if (this.lastDialysisPrescribe != null) {
  1797. delete this.lastDialysisPrescribe.target_ultrafiltration
  1798. }
  1799. if (this.solution != null) {
  1800. delete this.solution.target_ultrafiltration
  1801. }
  1802. if(this.predialysis_evaluation.id > 0){
  1803. this.newTime = parseTime(this.predialysis_evaluation.created_time, '{h}:{i}')
  1804. this.dialysis_date = parseTime(this.predialysis_evaluation.created_time, '{y}-{m}-{d}')
  1805. console.log('qqqqqqqqq',this.dialysis_date);
  1806. // this.dialysis_date=this.predialysis_evaluation.created_time
  1807. }
  1808. this.loading = false
  1809. })
  1810. },
  1811. printOrder() {
  1812. var xtdate = parseTime(this.date, '{y}-{m}-{d}')
  1813. this.$router.push(
  1814. '/dialysis/print?xtdate=' + xtdate + '&xtno=' + this.patient.dialysis_no +"&patient_id="+this.patient.id
  1815. )
  1816. },
  1817. printOrderOne(){
  1818. this.getInitPrintData()
  1819. },
  1820. // 日期
  1821. handleScheduleDateChange: function(index) {
  1822. this.treatStateVal = 0
  1823. this.patientStateVal = 0
  1824. this.zoneVal = 0
  1825. this.scheduleStateVal = 0
  1826. this.search_keyword = this.search_input = ''
  1827. // this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
  1828. // zone: this.zone_selected,
  1829. // schedule_type: this.schedule_type_selected,
  1830. // schedule_date: this.selected_date,
  1831. // })
  1832. this.selected_date = index
  1833. this.$store.dispatch('SetSelectedDate', { selected_date: index })
  1834. this.requestDialysisSchedules()
  1835. },
  1836. // 初始化数据
  1837. getInitData: function() {
  1838. getDialysisRecordInitData().then(rs => {
  1839. var resp = rs.data
  1840. if (resp.state == 1) {
  1841. var zones = resp.data.zones
  1842. var schedules = resp.data.schedules
  1843. var zone_options = [{ id: 0, text: '全部分区' }]
  1844. for (let z_i = 0; z_i < zones.length; z_i++) {
  1845. const zone = zones[z_i]
  1846. zone_options.push({ id: zone.id, text: zone.name })
  1847. }
  1848. this.zone_options = zone_options
  1849. this.arr = this.processedDialysisSchedules(schedules, this.zone_options)
  1850. this.requestDialysisSchedules()
  1851. } else {
  1852. this.$message.error(resp.msg)
  1853. }
  1854. })
  1855. },
  1856. // 班次
  1857. handletimeType: function(index) {
  1858. this.scheduleStateVal = index
  1859. this.$store.dispatch('SetScheduleTypeSelected', { schedule_type_selected: index })
  1860. this.search_keyword = this.search_input = ''
  1861. this.getData()
  1862. },
  1863. // 分区
  1864. handleZoneChange: function(index) {
  1865. this.zoneVal = index
  1866. this.$store.dispatch('SetZoneSelected', { zone_selected: index })
  1867. this.search_keyword = this.search_input = ''
  1868. this.getData()
  1869. },
  1870. // 患者状态
  1871. handleStateChange: function(index) {
  1872. this.patientStateVal = index
  1873. this.$store.dispatch('SetPatientStateSelected', { patient_state_selected: index })
  1874. this.search_keyword = this.search_input = ''
  1875. this.getData()
  1876. },
  1877. handleTreatChange: function(index) {
  1878. this.treatStateVal = index
  1879. this.$store.dispatch('SetTreatStateSelected', { treat_state_selected: index })
  1880. this.search_keyword = this.search_input = ''
  1881. this.getData()
  1882. },
  1883. processedDialysisSchedules: function(schedules, zone_options) {
  1884. var zoneMap = {}
  1885. var scheduleMap = {}
  1886. for (let z_i = 0; z_i < zone_options.length; z_i++) {
  1887. const zone = zone_options[z_i]
  1888. if (zone.id == 0) {
  1889. continue
  1890. }
  1891. scheduleMap[zone.id] = []
  1892. }
  1893. for (let index = 0; index < schedules.length; index++) {
  1894. const schedule = schedules[index]
  1895. scheduleMap[schedule.device_number.zone.id].push(schedule)
  1896. }
  1897. var zone_schedules = []
  1898. for (let index = 0; index < zone_options.length; index++) {
  1899. const zone = zone_options[index]
  1900. if (zone.id == 0) {
  1901. continue
  1902. }
  1903. var schedules = scheduleMap[zone.id]
  1904. zone_schedules.push({ zone_id: zone.id, zone_name: zone.text, schedules: schedules })
  1905. }
  1906. return zone_schedules
  1907. },
  1908. searchAction: function() {
  1909. this.search_keyword = this.search_input
  1910. this.scheduleStateVal = 0
  1911. this.zoneVal = 0
  1912. this.treatStateVal = 0
  1913. this.patientStateVal = 0
  1914. if (this.search_input != '') {
  1915. const arr = []
  1916. this.filtedSchedules.map(item => {
  1917. arr.push(...item.schedules)
  1918. })
  1919. if (this.activeName == 'first') {
  1920. this.tableData = arr
  1921. } else if (this.activeName == 'second') {
  1922. this.tableData1 = arr
  1923. }
  1924. } else {
  1925. this.getData()
  1926. }
  1927. },
  1928. requestDialysisSchedules: function() {
  1929. console.log("时间人民站起来了呃")
  1930. var ymd = parseTime(this.selected_date, '{y}-{m}-{d}')
  1931. getDialysisSchedules(ymd).then(rs => {
  1932. var resp = rs.data
  1933. if (resp.state == 1) {
  1934. var schedules = resp.data.schedules
  1935. // if(this.prescription!=null){
  1936. // for(let i=0;i<schedules.length;i++){
  1937. // if(this.prescription.patient_id == schedules[i].patient_id){
  1938. // this.prescription = schedules[i].prescription
  1939. // }
  1940. // }
  1941. // }
  1942. this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
  1943. const patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
  1944. if (this.activeName == 'first') {
  1945. for (let i = 0; i < patientArr.length; i++) {
  1946. for (let j = 0; j < patientArr[i].schedules.length; j++) {
  1947. if (patientArr[i].schedules.length > 0 && patientArr[i].schedules[j].dialysis_order != null) {
  1948. // 删除元素后改变i的值
  1949. patientArr[i].schedules.splice(j--, 1)
  1950. }
  1951. }
  1952. }
  1953. } else if (this.activeName == 'second') {
  1954. for (let i = 0; i < patientArr.length; i++) {
  1955. for (let j = 0; j < patientArr[i].schedules.length; j++) {
  1956. if (patientArr[i].schedules.length > 0 && patientArr[i].schedules[j].dialysis_order == null) {
  1957. // 删除元素后改变i的值
  1958. patientArr[i].schedules.splice(j--, 1)
  1959. }
  1960. }
  1961. }
  1962. }
  1963. const newArr = []
  1964. patientArr.map(item => {
  1965. newArr.push(...item.schedules)
  1966. })
  1967. console.log("newArrwowowowowoowwowo",newArr)
  1968. this.tableData = newArr
  1969. this.getData()
  1970. } else {
  1971. this.$message.error(resp.msg)
  1972. }
  1973. })
  1974. },
  1975. changePatient(schedual) {
  1976. this.patient_id = schedual.patient_id
  1977. this.date = schedual.schedule_date
  1978. // this.getScheduleDetail();
  1979. this.getLongAdvice();
  1980. var patient_id = schedual.patient_id
  1981. var date = schedual.schedule_date
  1982. this.$router.push({
  1983. path: '/dialysis/details',
  1984. query: {
  1985. patient_id: patient_id,
  1986. date: date,
  1987. patient_name: schedual.patient.name,
  1988. mode_id:schedual.mode_id
  1989. }
  1990. })
  1991. },
  1992. handleClick(type) {
  1993. sessionStorage.setItem('nameActive', type.name);
  1994. this.getData()
  1995. },
  1996. getData() {
  1997. let patientArr = []
  1998. patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
  1999. if (this.activeName == 'first') {
  2000. for (let i = 0; i < patientArr.length; i++) {
  2001. for (let j = 0; j < patientArr[i].schedules.length; j++) {
  2002. if (patientArr[i].schedules.length > 0 && patientArr[i].schedules[j].dialysis_order != null) {
  2003. // 删除元素后改变i的值
  2004. // console.log('候诊区', patientArr[i].schedules[j])
  2005. patientArr[i].schedules.splice(j--, 1)
  2006. }
  2007. }
  2008. }
  2009. let arr1 = []
  2010. if (this.patientStateVal == 0) {
  2011. arr1 = patientArr
  2012. } else if (this.patientStateVal == 1) {
  2013. let arr = []
  2014. arr = patientArr
  2015. for (let i = 0; i < arr.length; i++) {
  2016. for (let j = 0; j < arr[i].schedules.length; j++) {
  2017. 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 == ''))) {
  2018. // 删除元素后改变i的值
  2019. arr[i].schedules.splice(j--, 1)
  2020. }
  2021. }
  2022. }
  2023. // console.log('执行1', arr)
  2024. arr1 = arr
  2025. } else if (this.patientStateVal == 2) {
  2026. let arr = []
  2027. arr = patientArr
  2028. for (let i = 0; i < arr.length; i++) {
  2029. for (let j = 0; j < arr[i].schedules.length; j++) {
  2030. 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))) {
  2031. // 删除元素后改变i的值
  2032. arr[i].schedules.splice(j--, 1)
  2033. }
  2034. }
  2035. }
  2036. // console.log('执行2', arr)
  2037. arr1 = arr
  2038. }
  2039. let arr2 = []
  2040. if (this.treatStateVal == 0) {
  2041. arr2 = JSON.parse(JSON.stringify(arr1))
  2042. } else if (this.treatStateVal == 1) {
  2043. let arr = []
  2044. arr = JSON.parse(JSON.stringify(arr1))
  2045. for (let i = 0; i < arr.length; i++) {
  2046. for (let j = 0; j < arr[i].schedules.length; j++) {
  2047. 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)) {
  2048. // 删除元素后改变i的值
  2049. arr[i].schedules.splice(j--, 1)
  2050. }
  2051. }
  2052. }
  2053. arr2 = arr
  2054. } else if(this.treatStateVal == 3){
  2055. let arr = []
  2056. arr = JSON.parse(JSON.stringify(arr1))
  2057. for (let i = 0; i < arr.length; i++) {
  2058. for (let j = 0; j < arr[i].schedules.length; j++) {
  2059. if(arr[i].schedules[j].doctor_advice.length == 0){
  2060. arr[i].schedules.splice(j--, 1)
  2061. }
  2062. if(arr[i].schedules && arr[i].schedules[j] && arr[i].schedules[j].doctor_advice){
  2063. let sign = 0
  2064. arr[i].schedules[j].doctor_advice.map(item => {
  2065. if(item.check_state == 1){
  2066. sign++
  2067. }
  2068. })
  2069. if(sign == arr[i].schedules[j].doctor_advice.length && arr[i].schedules[j].doctor_advice.length > 0){
  2070. arr[i].schedules.splice(j--, 1)
  2071. }
  2072. }
  2073. }
  2074. }
  2075. arr2 = arr
  2076. }
  2077. let arr3 = []
  2078. if (this.scheduleStateVal == 0) {
  2079. arr3 = JSON.parse(JSON.stringify(arr2))
  2080. } else {
  2081. let arr = []
  2082. arr = JSON.parse(JSON.stringify(arr2))
  2083. for (let i = 0; i < arr.length; i++) {
  2084. for (let j = 0; j < arr[i].schedules.length; j++) {
  2085. if (this.scheduleStateVal != arr[i].schedules[j].schedule_type) {
  2086. // 删除元素后改变i的值
  2087. arr[i].schedules.splice(j--, 1)
  2088. }
  2089. }
  2090. }
  2091. arr3 = arr
  2092. }
  2093. let arr4 = []
  2094. if (this.zoneVal == 0) {
  2095. arr4 = JSON.parse(JSON.stringify(arr3))
  2096. } else {
  2097. let arr = []
  2098. arr = JSON.parse(JSON.stringify(arr3))
  2099. for (let i = 0; i < arr.length; i++) {
  2100. if (this.zoneVal != arr[i].zone_id) {
  2101. // 删除元素后改变i的值
  2102. arr.splice(i--, 1)
  2103. }
  2104. }
  2105. arr4 = arr
  2106. }
  2107. const newArr = []
  2108. arr4.map(item => {
  2109. newArr.push(...item.schedules)
  2110. })
  2111. if(this.patientStateVal == 1){
  2112. newArr.map(item => {
  2113. item.created_time = item.assessment_before_dislysis.created_time
  2114. })
  2115. newArr.sort(this.compare('created_time'))
  2116. }
  2117. if(this.org_id ==10579 || this.org_id == 0){
  2118. if(newArr!=null && newArr.length>0){
  2119. for(let i=0;i<newArr.length;i++){
  2120. newArr[i].sort =0
  2121. newArr[i].sort =newArr[i].device_number.sort
  2122. }
  2123. }
  2124. newArr.sort(function(a, b) {
  2125. return a.sort - b.sort;
  2126. });
  2127. }
  2128. // console.log('排序',newArr)
  2129. this.tableData = newArr
  2130. const name = this.$route.query.patient_name
  2131. this.tableData.map((item, index) => {
  2132. if (name == item.patient.name) {
  2133. // if (item.assessment_before_dislysis != null) {
  2134. // this.newTime = parseTime(item.assessment_before_dislysis.created_time, '{h}:{i}')
  2135. // }
  2136. setTimeout(() => {
  2137. this.$refs.tab.setCurrentRow(this.tableData[index])
  2138. }, 10)
  2139. }
  2140. })
  2141. } else if (this.activeName == 'second') {
  2142. for (let i = 0; i < patientArr.length; i++) {
  2143. for (let j = 0; j < patientArr[i].schedules.length; j++) {
  2144. if (patientArr[i].schedules.length > 0 && patientArr[i].schedules[j].dialysis_order == null) {
  2145. // 删除元素后改变i的值
  2146. patientArr[i].schedules.splice(j--, 1)
  2147. }
  2148. }
  2149. }
  2150. let arr1 = []
  2151. // let patientArr =
  2152. if (this.patientStateVal == 0) {
  2153. arr1 = patientArr
  2154. } else if (this.patientStateVal == 1) {
  2155. let arr = []
  2156. arr = patientArr
  2157. for (let i = 0; i < arr.length; i++) {
  2158. for (let j = 0; j < arr[i].schedules.length; j++) {
  2159. 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 == ''))) {
  2160. // 删除元素后改变i的值
  2161. arr[i].schedules.splice(j--, 1)
  2162. }
  2163. }
  2164. }
  2165. arr1 = arr
  2166. } else if (this.patientStateVal == 2) {
  2167. let arr = []
  2168. arr = patientArr
  2169. for (let i = 0; i < arr.length; i++) {
  2170. for (let j = 0; j < arr[i].schedules.length; j++) {
  2171. 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))) {
  2172. // 删除元素后改变i的值
  2173. arr[i].schedules.splice(j--, 1)
  2174. }
  2175. }
  2176. }
  2177. arr1 = arr
  2178. } else if (this.patientStateVal == 3) {
  2179. let arr = []
  2180. arr = patientArr
  2181. for (let i = 0; i < arr.length; i++) {
  2182. for (let j = 0; j < arr[i].schedules.length; j++) {
  2183. if (arr[i].schedules.length > 0 && (arr[i].schedules[j].dialysis_order != null && arr[i].schedules[j].dialysis_order.stage != 1)) {
  2184. // 删除元素后改变i的值
  2185. arr[i].schedules.splice(j--, 1)
  2186. }
  2187. }
  2188. }
  2189. arr1 = arr
  2190. } else if (this.patientStateVal == 4) {
  2191. let arr = []
  2192. arr = patientArr
  2193. for (let i = 0; i < arr.length; i++) {
  2194. for (let j = 0; j < arr[i].schedules.length; j++) {
  2195. if (arr[i].schedules.length > 0 && (arr[i].schedules[j].dialysis_order != null && arr[i].schedules[j].dialysis_order.stage != 2)) {
  2196. // 删除元素后改变i的值
  2197. arr[i].schedules.splice(j--, 1)
  2198. }
  2199. }
  2200. }
  2201. arr1 = arr
  2202. }
  2203. let arr2 = []
  2204. if (this.treatStateVal == 0) {
  2205. arr2 = JSON.parse(JSON.stringify(arr1))
  2206. } else if (this.treatStateVal == 2) {
  2207. let arr = []
  2208. arr = JSON.parse(JSON.stringify(arr1))
  2209. for (let i = 0; i < arr.length; i++) {
  2210. for (let j = 0; j < arr[i].schedules.length; j++) {
  2211. if (arr[i].schedules.length > 0 && arr[i].schedules[j].treatment_summary != null && arr[i].schedules[j].treatment_summary.dialysis_summary != '') {
  2212. // 删除元素后改变i的值
  2213. arr[i].schedules.splice(j--, 1)
  2214. }
  2215. }
  2216. }
  2217. arr2 = arr
  2218. } else if(this.treatStateVal == 3){
  2219. let arr = []
  2220. arr = JSON.parse(JSON.stringify(arr1))
  2221. for (let i = 0; i < arr.length; i++) {
  2222. for (let j = 0; j < arr[i].schedules.length; j++) {
  2223. if(arr[i].schedules[j].doctor_advice.length == 0){
  2224. arr[i].schedules.splice(j--, 1)
  2225. }
  2226. if(arr[i].schedules && arr[i].schedules[j] && arr[i].schedules[j].doctor_advice){
  2227. let sign = 0
  2228. arr[i].schedules[j].doctor_advice.map(item => {
  2229. if(item.check_state == 1){
  2230. sign++
  2231. }
  2232. })
  2233. if(sign == arr[i].schedules[j].doctor_advice.length && arr[i].schedules[j].doctor_advice.length > 0){
  2234. arr[i].schedules.splice(j--, 1)
  2235. }
  2236. }
  2237. }
  2238. }
  2239. arr2 = arr
  2240. }
  2241. let arr3 = []
  2242. if (this.scheduleStateVal == 0) {
  2243. arr3 = JSON.parse(JSON.stringify(arr2))
  2244. } else {
  2245. let arr = []
  2246. arr = JSON.parse(JSON.stringify(arr2))
  2247. for (let i = 0; i < arr.length; i++) {
  2248. for (let j = 0; j < arr[i].schedules.length; j++) {
  2249. if (this.scheduleStateVal != arr[i].schedules[j].schedule_type) {
  2250. // 删除元素后改变i的值
  2251. arr[i].schedules.splice(j--, 1)
  2252. }
  2253. }
  2254. }
  2255. arr3 = arr
  2256. }
  2257. let arr4 = []
  2258. if (this.zoneVal == 0) {
  2259. arr4 = JSON.parse(JSON.stringify(arr3))
  2260. } else {
  2261. let arr = []
  2262. arr = JSON.parse(JSON.stringify(arr3))
  2263. for (let i = 0; i < arr.length; i++) {
  2264. if (this.zoneVal != arr[i].zone_id) {
  2265. // 删除元素后改变i的值
  2266. arr.splice(i--, 1)
  2267. }
  2268. }
  2269. arr4 = arr
  2270. }
  2271. const newArr = []
  2272. arr4.map(item => {
  2273. newArr.push(...item.schedules)
  2274. })
  2275. if(this.patientStateVal == 1){
  2276. newArr.map(item => {
  2277. item.created_time = item.assessment_before_dislysis.created_time
  2278. })
  2279. newArr.sort(this.compare('created_time'))
  2280. }
  2281. if(this.org_id == 0 || this.org_id == 10579){
  2282. if(newArr!=null && newArr.length>0){
  2283. for(let i=0;i<newArr.length;i++){
  2284. newArr[i].sort =0
  2285. newArr[i].sort =newArr[i].device_number.sort
  2286. }
  2287. }
  2288. newArr.sort(function(a, b) {
  2289. return a.sort - b.sort;
  2290. });
  2291. }
  2292. this.tableData1 = newArr
  2293. const name = this.$route.query.patient_name
  2294. this.tableData1.map((item, index) => {
  2295. if (name == item.patient.name) {
  2296. // if (item.assessment_before_dislysis != null) {
  2297. // this.newTime = parseTime(item.assessment_before_dislysis.created_time, '{h}:{i}')
  2298. // }
  2299. setTimeout(() => {
  2300. this.$refs.tab1.setCurrentRow(this.tableData1[index])
  2301. }, 10)
  2302. }
  2303. })
  2304. }
  2305. },
  2306. compare(property){
  2307. return function(a,b){
  2308. var value1 = a[property];
  2309. var value2 = b[property];
  2310. return value2 - value1;
  2311. }
  2312. },
  2313. getTime(date){
  2314. date = new Date(date * 1000)
  2315. var Y = date.getFullYear() + '-';
  2316. var M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1);
  2317. var D = (date.getDate() < 10 ? '0'+date.getDate() : date.getDate());
  2318. var h = (date.getHours() < 10 ? '0'+date.getHours() : date.getHours());
  2319. var m = (date.getMinutes() < 10 ? '0'+date.getMinutes() : date.getMinutes());
  2320. var s = (date.getSeconds() < 10 ? '0'+date.getSeconds() : date.getSeconds());
  2321. let strDate = h + ':' + m;
  2322. return strDate;
  2323. },
  2324. getTimes(time) {
  2325. return uParseTime(time, '{y}-{m}-{d}')
  2326. },
  2327. refresh(){
  2328. this.requestDialysisSchedules()
  2329. },
  2330. websocketSend(data) {
  2331. try {
  2332. this.websocket.send(JSON.stringify(data))
  2333. } catch (error) {
  2334. this.showError = true;
  2335. this.showIndex = 4;
  2336. this.errorInfo = "网络异常,请稍后退出重试!";
  2337. }
  2338. },
  2339. websocketMess() {
  2340. this.websocket.onmessage = e => {
  2341. let res = JSON.parse(e.data);
  2342. // let res = re.data;
  2343. // console.log('res3333333333',res)
  2344. if(res.channel == 'queue/join'){
  2345. let timeType = null
  2346. if(this.scheduleStateVal == 1){
  2347. timeType = 1
  2348. }else if(this.scheduleStateVal == 2){
  2349. timeType = 2
  2350. }else{
  2351. if(new Date().getHours() < 10){
  2352. timeType = 1
  2353. }else if(new Date().getHours() >= 10){
  2354. timeType = 2
  2355. }
  2356. }
  2357. let fisrtQueueInfo = []
  2358. this.newFisrtQueueInfo = res.data.fisrtQueueInfo
  2359. this.queueConfig = res.data.queueConfig
  2360. if(res.data.fisrtQueueInfo != null){
  2361. if(timeType == 1){
  2362. fisrtQueueInfo = res.data.fisrtQueueInfo.morning
  2363. if(fisrtQueueInfo.create_time){
  2364. fisrtQueueInfo.create_time = moment(parseInt(fisrtQueueInfo.create_time) * 1000).format('HH:mm')
  2365. }
  2366. }else if(timeType == 2){
  2367. fisrtQueueInfo = res.data.fisrtQueueInfo.afternoon
  2368. if(fisrtQueueInfo.create_time){
  2369. fisrtQueueInfo.create_time = moment(parseInt(fisrtQueueInfo.create_time) * 1000).format('HH:mm')
  2370. }
  2371. }
  2372. }
  2373. this.fisrtQueueInfo = fisrtQueueInfo
  2374. // this.fisrtQueueInfo = res.data.fisrtQueueInfo
  2375. let arr = res.data.patientQueueList.data
  2376. let waitingCalledArr = []
  2377. let calledArr = []
  2378. arr.map(item => {
  2379. if(item.status == 1){
  2380. // item.create_time = moment(item.create_time * 1000).format('HH:mm:ss')
  2381. waitingCalledArr.push(item)
  2382. }else if(item.status == 2){
  2383. // item.create_time = moment(item.create_time * 1000).format('HH:mm:ss')
  2384. calledArr.push(item)
  2385. }
  2386. })
  2387. this.waitingCalled = waitingCalledArr
  2388. this.called = calledArr
  2389. }else if(res.channel == 'allQueueList'){
  2390. let arr = res.data.queue_list.data
  2391. let waitingCalledArr = []
  2392. let calledArr = []
  2393. arr.map(item => {
  2394. if(item.status == 1){
  2395. // item.create_time = moment(item.create_time * 1000).format('HH:mm:ss')
  2396. waitingCalledArr.push(item)
  2397. }else if(item.status == 2){
  2398. // item.create_time = moment(item.create_time * 1000).format('HH:mm:ss')
  2399. calledArr.push(item)
  2400. }
  2401. })
  2402. this.waitingCalled = waitingCalledArr
  2403. this.called = calledArr
  2404. }else if(res.channel == 'patientCallInfo'){
  2405. res.data.patientInfo.create_time = moment(res.data.patientInfo.create_time * 1000).format('HH:mm')
  2406. this.fisrtQueueInfo = res.data.patientInfo
  2407. }else if(res.channel == 'fisrtQueueInfo'){
  2408. if(this.scheduleStateVal == 1){
  2409. timeType = 1
  2410. }else if(this.scheduleStateVal == 2){
  2411. timeType = 2
  2412. }else{
  2413. if(new Date().getHours() < 10){
  2414. timeType = 1
  2415. }else if(new Date().getHours() >= 10){
  2416. timeType = 2
  2417. }
  2418. }
  2419. let fisrtQueueInfo = []
  2420. this.newFisrtQueueInfo = res.data.patientInfo
  2421. if(res.data.patientInfo != null){
  2422. if(timeType == 1){
  2423. fisrtQueueInfo = res.data.patientInfo.morning
  2424. if(fisrtQueueInfo.create_time){
  2425. fisrtQueueInfo.create_time = moment(parseInt(fisrtQueueInfo.create_time) * 1000).format('HH:mm')
  2426. }
  2427. }else if(timeType == 2){
  2428. fisrtQueueInfo = res.data.patientInfo.afternoon
  2429. if(fisrtQueueInfo.create_time){
  2430. fisrtQueueInfo.create_time = moment(parseInt(fisrtQueueInfo.create_time) * 1000).format('HH:mm')
  2431. }
  2432. }
  2433. }
  2434. this.fisrtQueueInfo = fisrtQueueInfo
  2435. }
  2436. }
  2437. },
  2438. call(){
  2439. // console.log('patient_id',patient_id)
  2440. let org_id = parseInt(sessionStorage.getItem("org_id"));
  2441. let admin_user_id = parseInt(sessionStorage.getItem("admin_user_id"));
  2442. axios.get('/api/index/callpatient?org_id=' + org_id + '&patient_id=' + this.patient_id + '&admin_user_id=' + admin_user_id).then(res => {
  2443. // let patientArr = res.data.queue_list.data
  2444. // this.patientArr = patientArr
  2445. // this.$emit('child-event',this.patientArr)
  2446. if(res.data.data.patientInfo == null){
  2447. this.$message.error('已经是最后一位了');
  2448. return
  2449. }
  2450. if(res.data.code == 200){
  2451. this.$message({
  2452. message: res.data.msg,
  2453. type: 'success'
  2454. });
  2455. this.curPatient = res.data.data.patientInfo
  2456. let arr = []
  2457. let newArr = []
  2458. this.zone_schedules.map(item => {
  2459. newArr.push(...item.schedules)
  2460. })
  2461. newArr.map(item => {
  2462. arr.push(item.patient_id)
  2463. })
  2464. if(arr.indexOf(parseInt(res.data.data.patientInfo.patient_id)) > -1){
  2465. this.showView = false
  2466. this.$router.push({
  2467. path: '/dialysis/details',
  2468. query: {
  2469. patient_id: parseInt(res.data.data.patientInfo.patient_id),
  2470. date: this.$route.query.date,
  2471. patient_name: res.data.data.patientInfo.patient_name,
  2472. mode_id:newArr[arr.indexOf(parseInt(res.data.data.patientInfo.patient_id))].mode_id,
  2473. curPatientTime:res.data.data.patientInfo.create_time,
  2474. showView:false
  2475. }
  2476. })
  2477. }else {
  2478. this.showView = true
  2479. this.$router.push({
  2480. path: '/dialysis/details',
  2481. query: {
  2482. patient_id: parseInt(res.data.data.patientInfo.patient_id),
  2483. date: this.$route.query.date,
  2484. patient_name: res.data.data.patientInfo.patient_name,
  2485. mode_id:this.$route.query.mode_id,
  2486. curPatientTime:res.data.data.patientInfo.create_time,
  2487. showView:true
  2488. }
  2489. })
  2490. }
  2491. }
  2492. })
  2493. },
  2494. next(){
  2495. let schedule_type = null
  2496. if(new Date().getHours() < 11){
  2497. schedule_type = 1
  2498. }else {
  2499. schedule_type = 2
  2500. }
  2501. let org_id = parseInt(sessionStorage.getItem("org_id"));
  2502. let admin_user_id = parseInt(sessionStorage.getItem("admin_user_id"));
  2503. axios.get('/api/index/nextcall?org_id=' + org_id + '&patient_id=' + this.patient_id + '&admin_user_id=' + admin_user_id + '&schedule_type=' + schedule_type).then(res => {
  2504. if(res.data.data.patientInfo == null){
  2505. this.$message.error('已经是最后一位了');
  2506. return
  2507. }
  2508. if(res.data.code == 200){
  2509. this.$message({
  2510. message: res.data.msg,
  2511. type: 'success'
  2512. });
  2513. this.curPatient = res.data.data.patientInfo
  2514. let arr = []
  2515. let newArr = []
  2516. this.zone_schedules.map(item => {
  2517. newArr.push(...item.schedules)
  2518. })
  2519. newArr.map(item => {
  2520. arr.push(item.patient_id)
  2521. })
  2522. if(arr.indexOf(parseInt(res.data.data.patientInfo.patient_id)) > -1){
  2523. this.showView = false
  2524. this.$router.push({
  2525. path: '/dialysis/details',
  2526. query: {
  2527. patient_id: parseInt(res.data.data.patientInfo.patient_id),
  2528. date: this.$route.query.date,
  2529. patient_name: res.data.data.patientInfo.patient_name,
  2530. mode_id:newArr[arr.indexOf(parseInt(res.data.data.patientInfo.patient_id))].mode_id,
  2531. curPatientTime:res.data.data.patientInfo.create_time,
  2532. showView:false
  2533. }
  2534. })
  2535. }else {
  2536. this.showView = true
  2537. this.$router.push({
  2538. path: '/dialysis/details',
  2539. query: {
  2540. patient_id: parseInt(res.data.data.patientInfo.patient_id),
  2541. date: this.$route.query.date,
  2542. patient_name: res.data.data.patientInfo.patient_name,
  2543. mode_id:this.$route.query.mode_id,
  2544. curPatientTime:res.data.data.patientInfo.create_time,
  2545. showView:true
  2546. }
  2547. })
  2548. }
  2549. }
  2550. })
  2551. },
  2552. getDates(time){
  2553. return moment(time * 1000).format('HH:mm:ss')
  2554. },
  2555. printAction: function() {
  2556. const style = '@media print {.signPrint{margin-left:30px;} .print_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 180px;} @page {margin-top:10px;}}'
  2557. const style1 = '@page {margin-top:10px;} @media print{}'
  2558. printJS({
  2559. printable: 'print_content',
  2560. type: 'html',
  2561. documentTitle: '',
  2562. style: style1,
  2563. scanStyles: false
  2564. })
  2565. },
  2566. getInitPrintData(){
  2567. const loading = this.$loading({
  2568. lock: true,
  2569. text: 'Loading',
  2570. spinner: 'el-icon-loading',
  2571. background: 'rgba(0, 0, 0, 0.7)'
  2572. })
  2573. var params = {
  2574. patient_id:this.$route.query.patient_id,
  2575. record_date:this.$route.query.date,
  2576. }
  2577. getInitPrintData(params).then(response=>{
  2578. if(response.data.state == 1){
  2579. var list = response.data.data.list
  2580. console.log("listwowoowowowowow",list)
  2581. var assessmentAfterDislysis = response.data.data.assessmentAfterDislysis
  2582. this.printList = list
  2583. this.assessmentAfterDislysis = assessmentAfterDislysis
  2584. if(this.org_id == 0 || this.org_id ==10469){
  2585. this.centerDialogVisible = true
  2586. }else{
  2587. this.startVisibility = true
  2588. }
  2589. loading.close()
  2590. }
  2591. })
  2592. },
  2593. getModeId(val){
  2594. var name =""
  2595. if(val == 1){
  2596. name ="HD"
  2597. }
  2598. if(val == 2){
  2599. name ="HDF"
  2600. }
  2601. if(val == 3){
  2602. name ="HD+HP"
  2603. }
  2604. if(val == 4){
  2605. name ="HP"
  2606. }
  2607. if(val == 5){
  2608. name ="HF"
  2609. }
  2610. if(val == 6){
  2611. name ="SCUF"
  2612. }
  2613. if(val == 7){
  2614. name ="IUF"
  2615. }
  2616. if(val == 8){
  2617. name ="IUF"
  2618. }
  2619. if(val == 9){
  2620. name ="HFHD+HP"
  2621. }
  2622. if(val == 10){
  2623. name ="HFHD+HP"
  2624. }
  2625. if(val == 11){
  2626. name ="HFR"
  2627. }
  2628. if(val == 12){
  2629. name ="HDF+HP"
  2630. }
  2631. if(val == 13){
  2632. name ="CRRT"
  2633. }
  2634. if(val == 14){
  2635. name ="腹水回输"
  2636. }
  2637. if(val == 19){
  2638. name ="IUF+HD"
  2639. }
  2640. if(val == 20){
  2641. name ="UF"
  2642. }
  2643. if(val == 21){
  2644. name ="HD+"
  2645. }
  2646. if(val == 22){
  2647. name ="血浆胆红素吸附+HDF"
  2648. }
  2649. if(val == 23){
  2650. name ="血浆胆红素吸附"
  2651. }
  2652. if(val == 24){
  2653. name ="I-HDF"
  2654. }
  2655. if(val == 25){
  2656. name ="HD高通"
  2657. }
  2658. if(val == 26){
  2659. name ="CVVH"
  2660. }
  2661. if(val == 27){
  2662. name ="CVVHD"
  2663. }
  2664. if(val == 28){
  2665. name ="CVVHDF"
  2666. }
  2667. if(val == 29){
  2668. name ="PE"
  2669. }
  2670. if(val == 30){
  2671. name ="血浆胆红素吸附+HP"
  2672. }
  2673. if(val == 31){
  2674. name ="HPD"
  2675. }
  2676. if(val == 32){
  2677. name ="HDP"
  2678. }
  2679. if(val == 33){
  2680. name ="HDP"
  2681. }
  2682. if(val == 33){
  2683. name ="HFD"
  2684. }
  2685. if(val == 34){
  2686. name ="HDF100"
  2687. }
  2688. if(val == 35){
  2689. name ="HDF600"
  2690. }
  2691. if(val == 36){
  2692. name ="HDF800"
  2693. }
  2694. if(val == 37){
  2695. name ="HDF1000"
  2696. }
  2697. return name
  2698. },
  2699. getBloodAccess(id){
  2700. var name = ""
  2701. for(let i=0;i<this.blood_access_part_opera.length;i++){
  2702. if(id == this.blood_access_part_opera[i].id){
  2703. name = this.blood_access_part_opera[i].name
  2704. }
  2705. }
  2706. return name
  2707. }
  2708. }
  2709. }
  2710. </script>
  2711. <style style="stylesheet/scss" lang="scss" scoped>
  2712. .details-bg {
  2713. background: #fff;
  2714. margin: 0 15px;
  2715. }
  2716. .printForm {
  2717. .title {
  2718. font-size: 30px;
  2719. font-weight: 500;
  2720. text-align: center;
  2721. line-height: 60px;
  2722. }
  2723. .info {
  2724. ul {
  2725. display: -webkit-box;
  2726. display: -moz-box;
  2727. display: -ms-flexbox;
  2728. display: -webkit-flex;
  2729. display: flex;
  2730. align-items: center;
  2731. -moz-box-sizing: border-box;
  2732. -webkit-box-sizing: border-box;
  2733. -o-box-sizing: border-box;
  2734. -ms-box-sizing: border-box;
  2735. box-sizing: border-box;
  2736. -webkit-justify-content: space-around;
  2737. -moz-justify-content: space-around;
  2738. -ms-justify-content: space-around;
  2739. -o-justify-content: space-around;
  2740. justify-content: space-around;
  2741. li {
  2742. display: flex;
  2743. box-sizing: border-box;
  2744. justify-content: space-around;
  2745. // .name {
  2746. // }
  2747. .InputBox {
  2748. padding: 0;
  2749. border: none;
  2750. border-bottom: 1px #e5e5e5 solid;
  2751. width: 60px;
  2752. outline: none;
  2753. }
  2754. }
  2755. }
  2756. }
  2757. .printTable {
  2758. tr {
  2759. padding: 2px;
  2760. th {
  2761. padding: 6px 4px;
  2762. }
  2763. td {
  2764. padding: 6px 4px;
  2765. }
  2766. }
  2767. }
  2768. }
  2769. .loadingBox{
  2770. display: flex;
  2771. .patientBox{
  2772. background: #fff;
  2773. .touxi_cishu{
  2774. display: inline-block;
  2775. border: 1px solid #409eff;
  2776. width: 30px;
  2777. text-align: center;
  2778. border-radius: 10px;
  2779. }
  2780. }
  2781. .tip1{
  2782. background: #4fc7cb;
  2783. border-radius: 5px;
  2784. text-align: center;
  2785. font-size: 12px;
  2786. display: inline-block;
  2787. width: 60px;
  2788. // height: 23px;
  2789. // line-height: 23px;
  2790. color: #fff;
  2791. }
  2792. .tip2{
  2793. background: #ee8556;
  2794. border-radius: 5px;
  2795. text-align: center;
  2796. font-size: 12px;
  2797. display: inline-block;
  2798. width: 60px;
  2799. // height: 23px;
  2800. // line-height: 23px;
  2801. color: #fff;
  2802. }
  2803. .tip3{
  2804. background: #409eff;
  2805. border-radius: 5px;
  2806. text-align: center;
  2807. font-size: 12px;
  2808. display: inline-block;
  2809. width: 60px;
  2810. color: #fff;
  2811. }
  2812. .tip4{
  2813. background: #a8b3ba;
  2814. border-radius: 5px;
  2815. text-align: center;
  2816. font-size: 12px;
  2817. display: inline-block;
  2818. width: 60px;
  2819. color: #fff;
  2820. }
  2821. .tip5{
  2822. background: #7bce91;
  2823. border-radius: 5px;
  2824. text-align: center;
  2825. font-size: 12px;
  2826. display: inline-block;
  2827. width: 60px;
  2828. color: #fff;
  2829. }
  2830. }
  2831. </style>
  2832. <style lang="scss">
  2833. .loadingBox{
  2834. .el-loading-spinner{
  2835. top:10%;
  2836. }
  2837. .el-button--small, .el-button--small.is-round{
  2838. padding:9px 10px;
  2839. }
  2840. .el-date-editor{
  2841. .el-input__inner{
  2842. padding-right:0px;
  2843. }
  2844. }
  2845. .el-table td, .el-table th{
  2846. text-align: center;
  2847. }
  2848. .el-table td{
  2849. height: 44px !important;
  2850. }
  2851. .el-table .cell{
  2852. padding: 0;
  2853. }
  2854. }
  2855. </style>