index.vue 136KB

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