index.vue 137KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690
  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 :class="[data.isSelected ? 'is-selected' : '',isFutureDate(data.day) ? 'future-date' : '']" >
  1341. <span v-if="data.day == item.order_date">
  1342. {{ getModeId(item.mode_id) }}
  1343. <span v-if="item.schedual_type_name ==1">上午</span>
  1344. <span v-if="item.schedual_type_name ==2">下午</span>
  1345. <span v-if="item.schedual_type_name ==3">晚上</span>
  1346. </span>
  1347. </span>
  1348. </span>
  1349. </p>
  1350. </template>
  1351. </el-calendar>
  1352. </div>
  1353. </div>
  1354. </div>
  1355. </el-dialog>
  1356. </div>
  1357. </template>
  1358. <script>
  1359. const moment = require('moment')
  1360. import axios from 'axios'
  1361. import NavIgation from './NavIgation'
  1362. import BasicInfor from './BasicInfor'
  1363. import DialysisPrescription from './DialysisPrescription'
  1364. import PastData from './pastData'
  1365. import AcceptsAssessment from './acceptsAssessment'
  1366. import AssessmentBefore from './assessmentBefore'
  1367. import StatOrder from './statOrder'
  1368. import DialysisComputer from './dialysisComputer'
  1369. import DoubleCheck from './doubleCheck'
  1370. import DialysisMonitoring from './dialysisMonitoring'
  1371. import DialysisOff from './dialysisOff'
  1372. import AssessmentAfter from './assessmentAfter'
  1373. import TreatmentOf from './treatmentOf'
  1374. import OperationStaff from './operationStaff'
  1375. import {
  1376. getDialysisScheduleDetail,
  1377. getLongAdviceTwo,
  1378. getDialysisRecordInitData,
  1379. getDialysisSchedules,
  1380. getInitPrintData,
  1381. getPatientDialysisRecordList
  1382. } from '@/api/dialysis_record'
  1383. import { getDataConfig } from '@/utils/data'
  1384. import { parseTime } from '@/utils'
  1385. import BreadCrumb from '@/xt_pages/components/bread-crumb'
  1386. import print from 'print-js'
  1387. import { uParseTime } from '@/utils/tools'
  1388. import Calendar from 'vue-calendar-component'
  1389. import data from '../../../store/modules/data'
  1390. export default {
  1391. name: 'index',
  1392. components: {
  1393. NavIgation,
  1394. BasicInfor,
  1395. DialysisPrescription,
  1396. PastData,
  1397. AcceptsAssessment,
  1398. AssessmentBefore,
  1399. StatOrder,
  1400. DialysisComputer,
  1401. DoubleCheck,
  1402. DialysisMonitoring,
  1403. DialysisOff,
  1404. AssessmentAfter,
  1405. TreatmentOf,
  1406. OperationStaff,
  1407. BreadCrumb,
  1408. Calendar,//日历
  1409. },
  1410. data() {
  1411. return {
  1412. crumbs: [
  1413. { path: false, name: '透析管理' },
  1414. { path: false, name: '透析记录' },
  1415. { path: false, name: '透析单' }
  1416. ],
  1417. dialogFormVisible: false,
  1418. orders: false,
  1419. loading: false,
  1420. cishu_dialogVisible:false,//
  1421. patient_id: 0,
  1422. date: 0,
  1423. dialysis_date:0,
  1424. longAdvices: [],
  1425. waitUploadAdvices: [],
  1426. is_open: 0,
  1427. targetAdvices: [],
  1428. patient: { id: 0 }, // 患者信息
  1429. schedual: { id: 0 }, // 患者排班信息
  1430. prescription: { id: 0 }, // 透析处方
  1431. solution: { id: 0 }, // 透析方案
  1432. system_prescribe: { id: 0 },
  1433. receiver_treatment_access: { id: 0 }, // 接诊评估
  1434. predialysis_evaluation: { id: 0 }, // 透前评估
  1435. doctor_advices: [], // 临时医嘱
  1436. double_check: { id: 0 }, // 双人核对
  1437. assessment_after_dislysis: { id: 0 }, // 透后评估
  1438. treatment_summary: { id: 0 }, // 治疗小结
  1439. monitor_records: [], // 透析监测
  1440. dialysis_order: { id: 0 }, // 透析记录
  1441. admin_users: [], // 系统用户列表
  1442. devices: [], // 设备
  1443. device_numbers: [], // 床位号
  1444. admin_user_map: {}, // {user_id: admin_user object}
  1445. device_map: {}, // {device_id: device}
  1446. device_number_map: {}, // {device_number_id: device_number}
  1447. niprocart_info: [],
  1448. jms_info: [],
  1449. fistula_needle_set_info: [],
  1450. fistula_needle_set_16_info: [],
  1451. hemoperfusion_info: [],
  1452. dialyser_sterilised_info: [],
  1453. filtryzer_info: [],
  1454. dialyzers_info: [],
  1455. injector_info: [],
  1456. bloodlines_info: [],
  1457. tubingHemodialysis_info: [],
  1458. safe_package_info: [],
  1459. aliquid_info: [],
  1460. config: {},
  1461. his_is_open:0,
  1462. is_advice_open:0,
  1463. lastPredialysisEvaluation: { id: 0 },
  1464. lastMonitorRecord: { id: 0 },
  1465. lastAssessmentAfterDislysis: { id: 0 },
  1466. lastDryWeightDislysis: { id: 0 },
  1467. lastAssessment:{id:0},
  1468. headNurses: [],
  1469. lastDialysisPrescribe: { id: 0 },
  1470. //
  1471. activeName: 'first',
  1472. selected_date: new Date(),
  1473. // search_input 和 search_keyword,使输入关键字时不会经常刷新 filtedSchedules
  1474. search_keyword: '', // 确定用于搜索的关键字
  1475. search_input: '', // 输入中的关键字
  1476. patient_state: [
  1477. { value: 0, label: '全部患者' },
  1478. { value: 1, label: '已签到' },
  1479. { value: 2, label: '未签到' },
  1480. { value: 3, label: '已上机' },
  1481. { value: 4, label: '已下机' }
  1482. ],
  1483. patientStateVal: 0,
  1484. treat_state: [
  1485. { value: 0, label: '全部治疗' },
  1486. { value: 1, label: '待开处方' },
  1487. { value: 2, label: '待开小结' },
  1488. { value: 3, label: '待医嘱核对' },
  1489. ],
  1490. treatStateVal: 0,
  1491. schedule_options: [
  1492. { value: 0, label: '全部班' },
  1493. { value: 1, label: '上午' },
  1494. { value: 2, label: '下午' },
  1495. { value: 3, label: '晚上' }
  1496. ],
  1497. scheduleStateVal: 0,
  1498. zone_options: [
  1499. { id: 0, text: '全部分区' }
  1500. ],
  1501. zoneVal: 0,
  1502. tableData: [],
  1503. tableData1: [],
  1504. arr: [],
  1505. newName: '',
  1506. newTime: '',
  1507. scheudle_mode:"",
  1508. showView:false,
  1509. curPatient:{},
  1510. queueConfig:{},
  1511. stockType:[],
  1512. preparestock:[],
  1513. his_doctor_advices:[],
  1514. startVisibility:false,
  1515. endVisibility:false,
  1516. centerDialogVisible:false,//新上机单弹窗
  1517. printList:[],
  1518. anticoagulants_confit:null,
  1519. printDate:'',
  1520. assessmentAfterDislysis:{},
  1521. lastOrder:{},
  1522. dryWeightList:[],
  1523. docList:[],
  1524. blood_access_part_opera: [],
  1525. Dialysis_patient:'',
  1526. Refresh:true,
  1527. norefresh:true,
  1528. historyclick:false,
  1529. time_value:new Date(),
  1530. start_time:moment().startOf('months').format('YYYY-MM-DD'),
  1531. end_time:moment().endOf('months').format('YYYY-MM-DD'),
  1532. orderList:[],
  1533. lastTreat:{id:0},
  1534. // start_time2:'',
  1535. // end_time2:'',
  1536. first_monitor:{},
  1537. last_monitor:{},
  1538. displaceLiquiPartOptions:[]
  1539. }
  1540. },
  1541. created() {
  1542. this.displaceLiquiPartOptions = this.$store.getters.displace_liqui;
  1543. this.blood_access_part_opera = getDataConfig('hemodialysis', 'vascular_access_desc')
  1544. this.org_id = this.$store.getters.xt_user.org.id,
  1545. this.printDate = moment().format("YYYY-MM-DD HH:mm:ss")
  1546. if(this.$route.query.showView){
  1547. this.showView = this.$route.query.showView
  1548. }
  1549. if(sessionStorage.getItem("nameActive")){
  1550. this.activeName = sessionStorage.getItem("nameActive")
  1551. }
  1552. var patient_id = this.$route.query.patient_id
  1553. var date = this.$route.query.date
  1554. this.patient_id = patient_id
  1555. this.date = date
  1556. this.dialysis_date=date
  1557. this.getScheduleDetail()
  1558. this.getLongAdvice()
  1559. this.selected_date = this.$route.query.date * 1000
  1560. var schedule_type_selected = this.$store.getters.schedule_type_selected
  1561. var zone_selected = this.$store.getters.zone_selected
  1562. var patient_state_selected = this.$store.getters.patient_state_selected
  1563. var treat_state_selected = this.$store.getters.treat_state_selected
  1564. var selected_date = this.$store.getters.selected_date
  1565. if (schedule_type_selected) {
  1566. this.scheduleStateVal = schedule_type_selected.schedule_type_selected
  1567. }
  1568. if (zone_selected) {
  1569. this.zoneVal = zone_selected.zone_selected
  1570. }
  1571. if (patient_state_selected) {
  1572. this.patientStateVal = patient_state_selected.patient_state_selected
  1573. }
  1574. if (treat_state_selected) {
  1575. this.treatStateVal = treat_state_selected.treat_state_selected
  1576. }
  1577. if (selected_date.selected_date) {
  1578. this.selected_date = selected_date.selected_date
  1579. }
  1580. this.initData = {
  1581. cmd: "queue/join",
  1582. data: {type:3,page:0,size:0},
  1583. };
  1584. this.websocketSend(this.initData)
  1585. this.getInitData()
  1586. this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
  1587. },
  1588. computed: {
  1589. websocket() {
  1590. return this.$store.state.user.websocket;
  1591. },
  1592. steps: function() {
  1593. var steps = [
  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. { title: '透后评估', finish: false },
  1603. { title: '治疗小结', finish: false }
  1604. ]
  1605. steps[0].finish = this.prescription.id && this.prescription.creater > 0
  1606. steps[1].finish = this.receiver_treatment_access.id > 0
  1607. // steps[2].finish =this.predialysis_evaluation.id > 0 && this.predialysis_evaluation.creater > 0
  1608. steps[2].finish =this.predialysis_evaluation.id > 0
  1609. steps[3].finish = this.doctor_advices.length > 0
  1610. steps[5].finish = this.dialysis_order.id > 0
  1611. steps[7].finish =
  1612. this.dialysis_order.id > 0 && this.dialysis_order.stage == 2
  1613. steps[4].finish =
  1614. this.double_check.id > 0 &&
  1615. this.double_check.creater > 0 &&
  1616. this.double_check.modifier > 0
  1617. steps[6].finish = this.monitor_records.length > 0
  1618. // steps[8].finish = this.assessment_after_dislysis.id > 0 && this.assessment_after_dislysis.creater > 0
  1619. steps[8].finish = this.assessment_after_dislysis.id > 0
  1620. steps[9].finish = this.treatment_summary.id > 0
  1621. return steps
  1622. },
  1623. filtedSchedules: function() {
  1624. var search_keyword = this.search_keyword
  1625. if (search_keyword.length > 0) {
  1626. var schedules = []
  1627. for (let o_i = 0; o_i < this.zone_schedules.length; o_i++) {
  1628. const scheduleInfo = this.zone_schedules[o_i]
  1629. var originSchedules = scheduleInfo.schedules
  1630. if (originSchedules.length == 0) {
  1631. continue
  1632. }
  1633. var filtedSchedules = []
  1634. for (let s_i = 0; s_i < originSchedules.length; s_i++) {
  1635. const schedule = originSchedules[s_i]
  1636. if ((schedule.patient.name.indexOf(search_keyword) != -1) || (schedule.patient.first_letter.indexOf(search_keyword) != -1)) {
  1637. filtedSchedules.push(schedule)
  1638. // break
  1639. }
  1640. }
  1641. if (filtedSchedules.length > 0) {
  1642. schedules.push({ zone_id: scheduleInfo.zone_id, zone_name: scheduleInfo.zone_name, schedules: filtedSchedules })
  1643. }
  1644. }
  1645. return schedules
  1646. }
  1647. // var zone_selected = this.zoneVal
  1648. // var timetype_selected = this.scheduleStateVal
  1649. // if ((zone_selected == 0 && timetype_selected == 0) || this.zone_options.length <= 1) {
  1650. // var schedules = []
  1651. // for (let index = 0; index < this.zone_schedules.length; index++) {
  1652. // const scheduleInfo = this.zone_schedules[index]
  1653. // if (scheduleInfo.schedules.length != 0) {
  1654. // schedules.push(scheduleInfo)
  1655. // }
  1656. // }
  1657. // return schedules
  1658. // }
  1659. // var schedules = []
  1660. // for (let o_i = 0; o_i < this.zone_schedules.length; o_i++) {
  1661. // const scheduleInfo = this.zone_schedules[o_i]
  1662. // if (zone_selected == scheduleInfo.zone_id && timetype_selected == 0) {
  1663. // if (scheduleInfo.schedules.length == 0) {
  1664. // return []
  1665. // } else {
  1666. // return [scheduleInfo]
  1667. // }
  1668. // }
  1669. // var originSchedules = scheduleInfo.schedules
  1670. // if (originSchedules.length == 0) {
  1671. // continue
  1672. // }
  1673. // var filtedSchedules = []
  1674. // for (let s_i = 0; s_i < originSchedules.length; s_i++) {
  1675. // const schedule = originSchedules[s_i]
  1676. // if (zone_selected != 0) {
  1677. // if (zone_selected == schedule.device_number.zone.id) {
  1678. // if (timetype_selected == 0 || schedule.schedule_type == timetype_selected) {
  1679. // filtedSchedules.push(schedule)
  1680. // }
  1681. // }
  1682. // } else {
  1683. // if (timetype_selected == 0 || schedule.schedule_type == timetype_selected) {
  1684. // filtedSchedules.push(schedule)
  1685. // }
  1686. // }
  1687. // }
  1688. // if (filtedSchedules.length > 0) {
  1689. // schedules.push({ zone_id: scheduleInfo.zone_id, zone_name: scheduleInfo.zone_name, schedules: filtedSchedules })
  1690. // }
  1691. // }
  1692. // return schedules
  1693. }
  1694. },
  1695. beforeMount() {
  1696. if (this.websocket) {
  1697. if (this.websocket.readyState == 1) {
  1698. console.log('执行1')
  1699. this.websocketMess();
  1700. } else {
  1701. setTimeout(() => {
  1702. console.log('执行2')
  1703. this.websocketMess();
  1704. }, 1000);
  1705. }
  1706. } else {
  1707. setTimeout(() => {
  1708. if (this.websocket) {
  1709. console.log('执行3')
  1710. this.websocketMess();
  1711. } else {
  1712. setTimeout(() => {
  1713. console.log('执行4')
  1714. this.websocketMess();
  1715. }, 1000);
  1716. }
  1717. }, 1000);
  1718. }
  1719. },
  1720. mounted() {
  1721. this.scrollToCurrentRow()
  1722. const timer = setInterval(() => {
  1723. // this.getInitData();
  1724. this.requestDialysisSchedules()
  1725. }, 1000 * 30)
  1726. // 通过$once来监听定时器,在beforeDestroy钩子可以被清除。
  1727. this.$once('hook:beforeDestroy', () => {
  1728. clearInterval(timer)
  1729. })
  1730. let obj = {
  1731. cmd: "queue/join",
  1732. data: {type:3,page:0,size:0},
  1733. };
  1734. this.websocketSend(obj)
  1735. // this.getmonth(this.time_value)
  1736. // this.handlePick(this.time_value)
  1737. },
  1738. beforeDestroy(){
  1739. let unObj = {
  1740. cmd: "queue/unjoin",
  1741. data: {type:3},
  1742. };
  1743. this.websocketSend(unObj)
  1744. },
  1745. methods: {
  1746. isFutureDate(dateString) {
  1747. const today = new Date();
  1748. today.setHours(0, 0, 0, 0); // 清除时间部分,只比较日期
  1749. const date = new Date(dateString);
  1750. return date > today;
  1751. },
  1752. scrollToCurrentRow() {
  1753. this.$nextTick(() => {
  1754. const tableRef = this.activeName === 'first' ? 'tab' : 'tab1'
  1755. const tableData = this.activeName === 'first' ? this.tableData : this.tableData1
  1756. const currentPatientId = this.$route.query.patient_id
  1757. if (!currentPatientId || !tableData || !this.$refs[tableRef]) return
  1758. const index = tableData.findIndex(item => item.patient_id == currentPatientId)
  1759. if (index !== -1) {
  1760. // 先设置当前行高亮
  1761. this.$refs[tableRef].setCurrentRow(tableData[index])
  1762. // 然后滚动到该行
  1763. this.$refs[tableRef].scrollToRow(tableData[index])
  1764. }
  1765. })
  1766. },
  1767. getDisplaceLiquiPart: function (val) {
  1768. let displace_liqui_part_name = "/";
  1769. const displace_liqui_part = this.displaceLiquiPartOptions;
  1770. for (let i = 0; i < displace_liqui_part.length; i++) {
  1771. if (displace_liqui_part[i].id == val) {
  1772. displace_liqui_part_name = displace_liqui_part[i].name;
  1773. }
  1774. }
  1775. return displace_liqui_part_name;
  1776. },
  1777. getModeName(id){
  1778. var name = ""
  1779. if(id == 1){
  1780. name = "HD"
  1781. }
  1782. if(id == 2){
  1783. name = "HDF"
  1784. }
  1785. if(id == 3){
  1786. name = "HD+HP"
  1787. }
  1788. if(id == 4){
  1789. name = "HP"
  1790. }
  1791. if(id == 5){
  1792. name = "HF"
  1793. }
  1794. if(id == 6){
  1795. name = "SCUF"
  1796. }
  1797. if(id == 7){
  1798. name = "IUF"
  1799. }
  1800. if(id == 8){
  1801. name = "HFHD"
  1802. }
  1803. if(id == 9){
  1804. name = "HFHD+HP"
  1805. }
  1806. if(id == 10){
  1807. name = "PHF"
  1808. }
  1809. if(id == 11){
  1810. name = "HFR"
  1811. }
  1812. if(id == 12){
  1813. name = "HDF+HP"
  1814. }
  1815. if(id == 13){
  1816. name = "CRRT"
  1817. }
  1818. if(id == 14){
  1819. name = "腹水回输"
  1820. }
  1821. if(id == 19){
  1822. name = "IUF+HD"
  1823. }
  1824. if(id == 20){
  1825. name = "UF"
  1826. }
  1827. if(id == 21){
  1828. name = "HD+"
  1829. }
  1830. if(id == 22){
  1831. name = "血浆胆红素吸附+HDF"
  1832. }
  1833. if(id == 23){
  1834. name = "血浆胆红素吸附"
  1835. }
  1836. if(id == 24){
  1837. name = "I-HDF"
  1838. }
  1839. if(id == 25){
  1840. name = "HD高通"
  1841. }
  1842. if(id == 26){
  1843. name = "CVVH"
  1844. }
  1845. if(id == 27){
  1846. name = "CVVHD"
  1847. }
  1848. if(id == 28){
  1849. name = "CVVHDF"
  1850. }
  1851. if(id == 29){
  1852. name = "PE"
  1853. }
  1854. if(id == 30){
  1855. name = "血浆胆红素吸附+HP"
  1856. }
  1857. if(id == 31){
  1858. name = "HPD"
  1859. }
  1860. if(id == 32){
  1861. name = "HDP"
  1862. }
  1863. return name
  1864. },
  1865. // 透析次数
  1866. chishuclick(row){
  1867. this.cishu_dialogVisible=true
  1868. console.log('ddddddd',row);
  1869. this.Dialysis_patient=row
  1870. },
  1871. getNewAge(UUserCard) {
  1872. if (UUserCard != null && UUserCard != '') {
  1873. // 获取年龄
  1874. var myDate = new Date()
  1875. var month = myDate.getMonth() + 1
  1876. var day = myDate.getDate()
  1877. var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1
  1878. if (UUserCard.substring(10, 12) < month || UUserCard.substring(10, 12) == month && UUserCard.substring(12, 14) <= day) {
  1879. age++
  1880. }
  1881. return age
  1882. }
  1883. },
  1884. adviceFunc() {
  1885. this.getScheduleDetail()
  1886. },
  1887. getLongAdvice() {
  1888. const params = {
  1889. patient_id: this.patient_id,
  1890. schedule_date:this.$route.query.date,
  1891. }
  1892. getLongAdviceTwo(params).then(rs => {
  1893. var resp = rs.data
  1894. if (resp.state == 1) {
  1895. console.log('vbnvnffvvvv',resp);
  1896. var status = parseInt(resp.data.status)
  1897. switch (status) {
  1898. case 2:
  1899. var totalAdvice = resp.data.advices
  1900. var longAdvicesTwo = resp.data.advices_two
  1901. var waitUploadAdvices = []
  1902. for (let i = 0; i < totalAdvice.length; i++) {
  1903. totalAdvice[i]['isCheck'] = 1
  1904. }
  1905. for (let i = 0; i < totalAdvice.length; i++) {
  1906. for (let a = 0; a < longAdvicesTwo.length; a++) {
  1907. if (
  1908. totalAdvice[i].template_id ==
  1909. longAdvicesTwo[a].template_id &&
  1910. totalAdvice[i].frequency_type ==
  1911. longAdvicesTwo[a].frequency_type
  1912. ) {
  1913. totalAdvice[i]['isCheck'] = 0
  1914. }
  1915. }
  1916. }
  1917. for (let i = 0; i < totalAdvice.length; i++) {
  1918. if (totalAdvice[i].isCheck == 1) {
  1919. waitUploadAdvices.push(totalAdvice[i])
  1920. }
  1921. }
  1922. this.is_open = resp.data.is_open_remind
  1923. if(this.his_is_open == 1){
  1924. this.is_open = 0
  1925. }
  1926. if(this.is_advice_open == 1){
  1927. this.is_open = 1
  1928. }
  1929. this.longAdvices = totalAdvice
  1930. console.log("长期医嘱汇总 u 公告让你😯23232322332",this.longAdvices)
  1931. this.waitUploadAdvices = waitUploadAdvices
  1932. break
  1933. }
  1934. } else {
  1935. this.$message.error(resp.msg)
  1936. }
  1937. })
  1938. },
  1939. assessmentAfterDislysisFunc: function(val) {
  1940. for (var index in val) {
  1941. this.$set(this.assessment_after_dislysis, index, val[index])
  1942. }
  1943. },
  1944. didDelMonitor(record_id) {
  1945. var mrl = this.monitor_records.length
  1946. for (let index = 0; index < mrl; index++) {
  1947. if (this.monitor_records[index].id == record_id) {
  1948. this.monitor_records.splice(index, 1)
  1949. break
  1950. }
  1951. }
  1952. },
  1953. getScheduleDetail: function() {
  1954. this.loading = true
  1955. var dateStr = parseTime(this.date, '{y}-{m}-{d}')
  1956. if(this.$route.query.showView == true){
  1957. this.loading = false
  1958. return
  1959. }
  1960. // console.log('kkkkkkk',dateStr);
  1961. this.doctor_advices = []
  1962. getDialysisScheduleDetail(this.patient_id, dateStr).then(rs => {
  1963. var resp = rs.data
  1964. if (resp.state == 1) {
  1965. var patient = resp.data.patient // 患者信息
  1966. var schedual = resp.data.schedual // 患者排班信息
  1967. console.log("排班22222222222",resp)
  1968. var prescription = resp.data.prescription // 透析处方
  1969. if (prescription != null) {
  1970. if (prescription.body_fluid == -2) {
  1971. prescription.body_fluid = 0
  1972. }
  1973. if(prescription.bilirubin_adsorption_column == 0){
  1974. prescription.bilirubin_adsorption_column = ""
  1975. }
  1976. if(prescription.plasma_separator == 0){
  1977. prescription.plasma_separator = ""
  1978. }
  1979. }
  1980. var solution = resp.data.solution // 透析方案
  1981. var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
  1982. var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
  1983. if (predialysis_evaluation != null) {
  1984. if (predialysis_evaluation.blood_access_part_id == -2) {
  1985. predialysis_evaluation.blood_access_part_id = 0
  1986. }
  1987. if(predialysis_evaluation.blood_pressure_during_dialysis == 0){
  1988. predialysis_evaluation.blood_pressure_during_dialysis = ""
  1989. }
  1990. }
  1991. var doctor_advices = resp.data.doctor_advices // 临时医嘱
  1992. var double_check = resp.data.double_check // 双人核对
  1993. var assessment_after_dislysis = resp.data.assessment_after_dislysis // 透后评估
  1994. var treatment_summary = resp.data.treatment_summary // 治疗小结
  1995. var monitor_records = resp.data.monitor_records // 透析监测
  1996. var dialysis_order = resp.data.dialysis_order // 透析记录
  1997. var niprocart_info = resp.data.niprocart_info
  1998. var jms_info = resp.data.jms_info
  1999. var fistula_needle_set_info = resp.data.fistula_needle_set_info
  2000. var fistula_needle_set_16_info = resp.data.fistula_needle_set_16_info
  2001. var hemoperfusion_info = resp.data.hemoperfusion_info
  2002. var dialyser_sterilised_info = resp.data.dialyser_sterilised_info
  2003. var filtryzer_info = resp.data.filtryzer_info
  2004. var dialyzers_info = resp.data.dialyzers_info
  2005. var injector_info = resp.data.injector_info
  2006. var bloodlines_info = resp.data.bloodlines_info
  2007. var tubingHemodialysis_info = resp.data.tubingHemodialysis_info
  2008. var safe_package_info = resp.data.safe_package_info
  2009. var aliquid_info = resp.data.aliquid_info
  2010. var lastPredialysisEvaluation = resp.data.lastPredialysisEvaluation
  2011. if (lastPredialysisEvaluation != null) {
  2012. if (lastPredialysisEvaluation.blood_access_part_id == -2) {
  2013. lastPredialysisEvaluation.blood_access_part_id = 0
  2014. }
  2015. }
  2016. var lastMonitorRecord = resp.data.lastMonitorRecord
  2017. var lastAssessmentAfterDislysis = resp.data.lastAssessmentAfterDislysis
  2018. // if(this.org_id == 10702){
  2019. // lastAssessmentAfterDislysis.actual_ultrafiltration = 0
  2020. // }
  2021. // if(lastAssessmentAfterDislysis.hypertenison!=""){
  2022. // lastAssessmentAfterDislysis.hypertenison = lastAssessmentAfterDislysis.hypertenison.toString()
  2023. // }
  2024. // if(lastAssessmentAfterDislysis.hypopiesia!=""){
  2025. // lastAssessmentAfterDislysis.hypopiesia = lastAssessmentAfterDislysis.hypopiesia.toString()
  2026. // }
  2027. var lastDialysisPrescribe = resp.data.lastDialysisPrescribe
  2028. var lastDryWeightDislysis = resp.data.lastDryWeightDislysis
  2029. var system_prescribe = resp.data.system_prescribe
  2030. var lastAssessment = resp.data.lastAssessment
  2031. var lastOrder = resp.data.lastOrder
  2032. this.lastOrder = lastOrder
  2033. this.$refs.nav.setLastRecord(
  2034. lastPredialysisEvaluation,
  2035. lastMonitorRecord,
  2036. lastAssessmentAfterDislysis,
  2037. lastDialysisPrescribe,
  2038. lastDryWeightDislysis,
  2039. schedual,
  2040. system_prescribe,
  2041. lastAssessment,
  2042. )
  2043. var headNurses = resp.data.headNurse
  2044. var config = resp.data.config
  2045. this.lastPredialysisEvaluation = lastPredialysisEvaluation
  2046. this.lastMonitorRecord = lastMonitorRecord
  2047. this.lastAssessmentAfterDislysis = lastAssessmentAfterDislysis
  2048. this.lastDialysisPrescribe = lastDialysisPrescribe
  2049. this.lastDryWeightDislysis = lastDryWeightDislysis
  2050. this.lastAssessment = lastAssessment
  2051. this.headNurses = headNurses
  2052. this.system_prescribe = system_prescribe
  2053. this.niprocart_info = []
  2054. this.jms_info = []
  2055. this.fistula_needle_set_info = []
  2056. this.fistula_needle_set_16_info = []
  2057. this.hemoperfusion_info = []
  2058. this.dialyser_sterilised_info = []
  2059. this.filtryzer_info = []
  2060. this.dialyzers_info = []
  2061. this.injector_info = []
  2062. this.bloodlines_info = []
  2063. this.tubingHemodialysis_info = []
  2064. this.safe_package_info = []
  2065. this.aliquid_info = []
  2066. this.niprocart_info = niprocart_info
  2067. this.jms_info = jms_info
  2068. this.fistula_needle_set_info = fistula_needle_set_info
  2069. this.fistula_needle_set_16_info = fistula_needle_set_16_info
  2070. this.hemoperfusion_info = hemoperfusion_info
  2071. this.dialyser_sterilised_info = dialyser_sterilised_info
  2072. this.filtryzer_info = filtryzer_info
  2073. this.dialyzers_info = dialyzers_info
  2074. this.injector_info = injector_info
  2075. this.bloodlines_info = bloodlines_info
  2076. this.tubingHemodialysis_info = tubingHemodialysis_info
  2077. this.safe_package_info = safe_package_info
  2078. this.aliquid_info = aliquid_info
  2079. this.config = config
  2080. // console.log('sdfdasfda4444444',this.patient);
  2081. this.patient = patient
  2082. console.log('bbbbbbbcccccccccc',this.patient);
  2083. this.schedual = schedual == null ? { id: 0 } : schedual
  2084. this.prescription = prescription == null ? { id: 0 } : prescription
  2085. this.solution = solution == null ? { id: 0 } : solution
  2086. this.receiver_treatment_access =
  2087. receiver_treatment_access == null
  2088. ? { id: 0 }
  2089. : receiver_treatment_access
  2090. this.predialysis_evaluation =
  2091. predialysis_evaluation == null ? { id: 0 } : predialysis_evaluation
  2092. this.doctor_advices = doctor_advices == null ? [] : doctor_advices
  2093. this.double_check = double_check == null ? { id: 0 } : double_check
  2094. this.assessment_after_dislysis =
  2095. assessment_after_dislysis == null
  2096. ? { id: 0 }
  2097. : assessment_after_dislysis
  2098. this.treatment_summary =
  2099. treatment_summary == null ? { id: 0 } : treatment_summary
  2100. this.monitor_records = monitor_records == null ? [] : monitor_records
  2101. this.dialysis_order =
  2102. dialysis_order == null ? { id: 0 } : dialysis_order
  2103. this.admin_users = resp.data.doctors
  2104. this.devices = resp.data.devices
  2105. this.device_numbers = resp.data.device_numbers
  2106. var his_doctor_advices = resp.data.his_advices
  2107. var newArr = []
  2108. if(his_doctor_advices!=null && his_doctor_advices.length>0){
  2109. for(let i=0;i<his_doctor_advices.length>0;i++){
  2110. if(this.org_id == 0 || this.org_id == 10744){
  2111. if(his_doctor_advices[i].delivery_way != '口服'){
  2112. newArr.push(his_doctor_advices[i])
  2113. }
  2114. }else{
  2115. newArr.push(his_doctor_advices[i])
  2116. }
  2117. }
  2118. }
  2119. console.log("newArr=---------------------------",newArr)
  2120. this.his_doctor_advices = []
  2121. this.his_doctor_advices = newArr
  2122. this.his_is_open = resp.data.is_open_config.is_open
  2123. this.is_advice_open = resp.data.is_advice_open.is_advice_open
  2124. var stockType = resp.data.stockType
  2125. this.stockType = stockType
  2126. this.lastTreat = resp.data.lastAcceptTreatment
  2127. console.log("上次透后平出22222222222222222222-----------",resp.data.firstMonitor)
  2128. this.first_monitor = resp.data.firstMonitor
  2129. console.log("上次透后体重-----------",resp.data.firstMonitor)
  2130. this.last_monitor = resp.data.lastMonitor
  2131. this.dryWeightList = resp.data.dryWeightList
  2132. this.docList = resp.data.docList
  2133. console.log("doclist-----",this.docList)
  2134. var prepare = resp.data.prepare
  2135. if(prepare!=null){
  2136. this.preparestock = prepare
  2137. }else{
  2138. this.preparestock = []
  2139. }
  2140. for (let i = 0; i < this.doctor_advices.length; i++){
  2141. this.doctor_advices[i]['origin'] = 1
  2142. }
  2143. if (his_doctor_advices != null) {
  2144. for (let i = 0; i < his_doctor_advices.length; i++) {
  2145. his_doctor_advices[i]['origin'] = 2
  2146. his_doctor_advices[i]['way'] = 1
  2147. this.doctor_advices.push(his_doctor_advices[i])
  2148. }
  2149. }
  2150. const obj = {}
  2151. this.doctor_advices = this.doctor_advices.reduce((cur, next) => {
  2152. obj[next.id] ? '' : obj[next.id] = true && cur.push(next)
  2153. return cur
  2154. }, []) // 设置cur默认类型为数组,并且初始值为空的数组
  2155. var device_map = {}
  2156. for (let index = 0; index < this.devices.length; index++) {
  2157. const device = this.devices[index]
  2158. device_map[device.id] = device
  2159. }
  2160. this.device_map = device_map
  2161. var admin_map = {}
  2162. for (let index = 0; index < this.admin_users.length; index++) {
  2163. const admin = this.admin_users[index]
  2164. admin_map[admin.id] = admin
  2165. }
  2166. this.admin_user_map = admin_map
  2167. var device_number_map = {}
  2168. for (let index = 0; index < this.device_numbers.length; index++) {
  2169. const device_number = this.device_numbers[index]
  2170. device_number_map[device_number.id] = device_number
  2171. }
  2172. this.device_number_map = device_number_map
  2173. } else {
  2174. this.$message.error(resp.msg)
  2175. }
  2176. // 目标超滤量是否默认上次数据
  2177. if (this.lastDialysisPrescribe != null) {
  2178. delete this.lastDialysisPrescribe.target_ultrafiltration
  2179. }
  2180. if (this.solution != null) {
  2181. delete this.solution.target_ultrafiltration
  2182. }
  2183. if(this.predialysis_evaluation.id > 0){
  2184. this.newTime = parseTime(this.predialysis_evaluation.created_time, '{h}:{i}')
  2185. this.dialysis_date = parseTime(this.predialysis_evaluation.created_time, '{y}-{m}-{d}')
  2186. console.log('qqqqqqqqq',this.dialysis_date);
  2187. // this.dialysis_date=this.predialysis_evaluation.created_time
  2188. }
  2189. this.loading = false
  2190. if(this.org_id == 0 || this.org_id == 10751){
  2191. if(this.doctor_advices!=null && this.doctor_advices.length>0){
  2192. this.doctor_advices.sort((a, b) => a.start_time - b.start_time)
  2193. }
  2194. }
  2195. })
  2196. },
  2197. printOrder() {
  2198. var xtdate = parseTime(this.date, '{y}-{m}-{d}')
  2199. this.$router.push(
  2200. '/dialysis/print?xtdate=' + xtdate + '&xtno=' + this.patient.dialysis_no +"&patient_id="+this.patient.id
  2201. )
  2202. },
  2203. printOrderOne(){
  2204. this.getInitPrintData()
  2205. },
  2206. // 日期
  2207. handleScheduleDateChange: function(index) {
  2208. this.treatStateVal = 0
  2209. this.patientStateVal = 0
  2210. this.zoneVal = 0
  2211. this.scheduleStateVal = 0
  2212. this.search_keyword = this.search_input = ''
  2213. // this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
  2214. // zone: this.zone_selected,
  2215. // schedule_type: this.schedule_type_selected,
  2216. // schedule_date: this.selected_date,
  2217. // })
  2218. this.selected_date = index
  2219. this.$store.dispatch('SetSelectedDate', { selected_date: index })
  2220. this.requestDialysisSchedules()
  2221. },
  2222. // 初始化数据
  2223. getInitData: function() {
  2224. getDialysisRecordInitData().then(rs => {
  2225. var resp = rs.data
  2226. if (resp.state == 1) {
  2227. var zones = resp.data.zones
  2228. var schedules = resp.data.schedules
  2229. var zone_options = [{ id: 0, text: '全部分区' }]
  2230. for (let z_i = 0; z_i < zones.length; z_i++) {
  2231. const zone = zones[z_i]
  2232. zone_options.push({ id: zone.id, text: zone.name })
  2233. }
  2234. this.zone_options = zone_options
  2235. this.arr = this.processedDialysisSchedules(schedules, this.zone_options)
  2236. this.requestDialysisSchedules()
  2237. } else {
  2238. this.$message.error(resp.msg)
  2239. }
  2240. })
  2241. },
  2242. // 班次
  2243. handletimeType: function(index) {
  2244. this.scheduleStateVal = index
  2245. this.$store.dispatch('SetScheduleTypeSelected', { schedule_type_selected: index })
  2246. this.search_keyword = this.search_input = ''
  2247. this.getData()
  2248. },
  2249. // 分区
  2250. handleZoneChange: function(index) {
  2251. this.zoneVal = index
  2252. this.$store.dispatch('SetZoneSelected', { zone_selected: index })
  2253. this.search_keyword = this.search_input = ''
  2254. this.getData()
  2255. },
  2256. // 患者状态
  2257. handleStateChange: function(index) {
  2258. this.patientStateVal = index
  2259. this.$store.dispatch('SetPatientStateSelected', { patient_state_selected: index })
  2260. this.search_keyword = this.search_input = ''
  2261. this.getData()
  2262. },
  2263. handleTreatChange: function(index) {
  2264. this.treatStateVal = index
  2265. this.$store.dispatch('SetTreatStateSelected', { treat_state_selected: index })
  2266. this.search_keyword = this.search_input = ''
  2267. this.getData()
  2268. },
  2269. processedDialysisSchedules: function(schedules, zone_options) {
  2270. var zoneMap = {}
  2271. var scheduleMap = {}
  2272. for (let z_i = 0; z_i < zone_options.length; z_i++) {
  2273. const zone = zone_options[z_i]
  2274. if (zone.id == 0) {
  2275. continue
  2276. }
  2277. scheduleMap[zone.id] = []
  2278. }
  2279. for (let index = 0; index < schedules.length; index++) {
  2280. const schedule = schedules[index]
  2281. scheduleMap[schedule.device_number.zone.id].push(schedule)
  2282. }
  2283. var zone_schedules = []
  2284. for (let index = 0; index < zone_options.length; index++) {
  2285. const zone = zone_options[index]
  2286. if (zone.id == 0) {
  2287. continue
  2288. }
  2289. var schedules = scheduleMap[zone.id]
  2290. zone_schedules.push({ zone_id: zone.id, zone_name: zone.text, schedules: schedules })
  2291. }
  2292. return zone_schedules
  2293. },
  2294. searchAction: function() {
  2295. this.search_keyword = this.search_input
  2296. this.scheduleStateVal = 0
  2297. this.zoneVal = 0
  2298. this.treatStateVal = 0
  2299. this.patientStateVal = 0
  2300. if (this.search_input != '') {
  2301. const arr = []
  2302. this.filtedSchedules.map(item => {
  2303. arr.push(...item.schedules)
  2304. })
  2305. if (this.activeName == 'first') {
  2306. this.tableData = arr
  2307. } else if (this.activeName == 'second') {
  2308. this.tableData1 = arr
  2309. }
  2310. } else {
  2311. this.getData()
  2312. }
  2313. },
  2314. requestDialysisSchedules: function() {
  2315. var ymd = parseTime(this.selected_date, '{y}-{m}-{d}')
  2316. getDialysisSchedules(ymd).then(rs => {
  2317. var resp = rs.data
  2318. if (resp.state == 1) {
  2319. var schedules = resp.data.schedules
  2320. // if(this.prescription!=null){
  2321. // for(let i=0;i<schedules.length;i++){
  2322. // if(this.prescription.patient_id == schedules[i].patient_id){
  2323. // this.prescription = schedules[i].prescription
  2324. // }
  2325. // }
  2326. // }
  2327. this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
  2328. const patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
  2329. if (this.activeName == 'first') {
  2330. for (let i = 0; i < patientArr.length; i++) {
  2331. for (let j = 0; j < patientArr[i].schedules.length; j++) {
  2332. if (patientArr[i].schedules.length > 0 && patientArr[i].schedules[j].dialysis_order != null) {
  2333. // 删除元素后改变i的值
  2334. patientArr[i].schedules.splice(j--, 1)
  2335. }
  2336. }
  2337. }
  2338. } else if (this.activeName == 'second') {
  2339. for (let i = 0; i < patientArr.length; i++) {
  2340. for (let j = 0; j < patientArr[i].schedules.length; j++) {
  2341. if (patientArr[i].schedules.length > 0 && patientArr[i].schedules[j].dialysis_order == null) {
  2342. // 删除元素后改变i的值
  2343. patientArr[i].schedules.splice(j--, 1)
  2344. }
  2345. }
  2346. }
  2347. }
  2348. const newArr = []
  2349. patientArr.map(item => {
  2350. newArr.push(...item.schedules)
  2351. })
  2352. // console.log("newArrwowowowowoowwowo",newArr)
  2353. this.tableData = newArr
  2354. this.getData()
  2355. } else {
  2356. this.$message.error(resp.msg)
  2357. }
  2358. })
  2359. },
  2360. changePatient(schedual) {
  2361. this.patient_id = schedual.patient_id
  2362. this.date = schedual.schedule_date
  2363. this.getScheduleDetail();
  2364. // console.log('schedual',schedual);
  2365. //this.getLongAdvice();
  2366. this.$nextTick(() => {
  2367. if (this.activeName === 'first') {
  2368. const index = this.tableData.findIndex(item => item.patient_id === schedual.patient_id)
  2369. if (index !== -1) {
  2370. this.$refs.tab.setCurrentRow(this.tableData[index])
  2371. }
  2372. } else if (this.activeName === 'second') {
  2373. const index = this.tableData1.findIndex(item => item.patient_id === schedual.patient_id)
  2374. if (index !== -1) {
  2375. this.$refs.tab1.setCurrentRow(this.tableData1[index])
  2376. }
  2377. }
  2378. })
  2379. var patient_id = schedual.patient_id
  2380. var date = schedual.schedule_date
  2381. this.$router.push({
  2382. path: '/dialysis/details',
  2383. query: {
  2384. patient_id: patient_id,
  2385. date: date,
  2386. patient_name: schedual.patient.name,
  2387. mode_id:schedual.mode_id
  2388. }
  2389. })
  2390. // 滚动到当前行
  2391. this.scrollToCurrentRow()
  2392. },
  2393. handleClick(type) {
  2394. this.activeName = type.name
  2395. this.$nextTick(() => {
  2396. this.scrollToCurrentRow()
  2397. })
  2398. sessionStorage.setItem('nameActive', type.name);
  2399. this.getData()
  2400. },
  2401. getData() {
  2402. let patientArr = []
  2403. patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
  2404. if (this.activeName == 'first') {
  2405. for (let i = 0; i < patientArr.length; i++) {
  2406. for (let j = 0; j < patientArr[i].schedules.length; j++) {
  2407. if (patientArr[i].schedules.length > 0 && patientArr[i].schedules[j].dialysis_order != null) {
  2408. // 删除元素后改变i的值
  2409. // console.log('候诊区', patientArr[i].schedules[j])
  2410. patientArr[i].schedules.splice(j--, 1)
  2411. }
  2412. }
  2413. }
  2414. let arr1 = []
  2415. if (this.patientStateVal == 0) {
  2416. arr1 = patientArr
  2417. } else if (this.patientStateVal == 1) {
  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 == '' && arr[i].schedules[j].assessment_before_dislysis.diastolic_blood_pressure == '' && arr[i].schedules[j].assessment_before_dislysis.systolic_blood_pressure == ''))) {
  2423. // 删除元素后改变i的值
  2424. arr[i].schedules.splice(j--, 1)
  2425. }
  2426. }
  2427. }
  2428. // console.log('执行1', arr)
  2429. arr1 = arr
  2430. } else if (this.patientStateVal == 2) {
  2431. let arr = []
  2432. arr = patientArr
  2433. for (let i = 0; i < arr.length; i++) {
  2434. for (let j = 0; j < arr[i].schedules.length; j++) {
  2435. 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))) {
  2436. // 删除元素后改变i的值
  2437. arr[i].schedules.splice(j--, 1)
  2438. }
  2439. }
  2440. }
  2441. // console.log('执行2', arr)
  2442. arr1 = arr
  2443. }
  2444. let arr2 = []
  2445. if (this.treatStateVal == 0) {
  2446. arr2 = JSON.parse(JSON.stringify(arr1))
  2447. } else if (this.treatStateVal == 1) {
  2448. let arr = []
  2449. arr = JSON.parse(JSON.stringify(arr1))
  2450. for (let i = 0; i < arr.length; i++) {
  2451. for (let j = 0; j < arr[i].schedules.length; j++) {
  2452. 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)) {
  2453. // 删除元素后改变i的值
  2454. arr[i].schedules.splice(j--, 1)
  2455. }
  2456. }
  2457. }
  2458. arr2 = arr
  2459. } else if(this.treatStateVal == 3){
  2460. let arr = []
  2461. arr = JSON.parse(JSON.stringify(arr1))
  2462. for (let i = 0; i < arr.length; i++) {
  2463. for (let j = 0; j < arr[i].schedules.length; j++) {
  2464. if(arr[i].schedules[j].doctor_advice.length == 0){
  2465. arr[i].schedules.splice(j--, 1)
  2466. }
  2467. if(arr[i].schedules && arr[i].schedules[j] && arr[i].schedules[j].doctor_advice){
  2468. let sign = 0
  2469. arr[i].schedules[j].doctor_advice.map(item => {
  2470. if(item.check_state == 1){
  2471. sign++
  2472. }
  2473. })
  2474. if(sign == arr[i].schedules[j].doctor_advice.length && arr[i].schedules[j].doctor_advice.length > 0){
  2475. arr[i].schedules.splice(j--, 1)
  2476. }
  2477. }
  2478. }
  2479. }
  2480. arr2 = arr
  2481. }
  2482. let arr3 = []
  2483. if (this.scheduleStateVal == 0) {
  2484. arr3 = JSON.parse(JSON.stringify(arr2))
  2485. } else {
  2486. let arr = []
  2487. arr = JSON.parse(JSON.stringify(arr2))
  2488. for (let i = 0; i < arr.length; i++) {
  2489. for (let j = 0; j < arr[i].schedules.length; j++) {
  2490. if (this.scheduleStateVal != arr[i].schedules[j].schedule_type) {
  2491. // 删除元素后改变i的值
  2492. arr[i].schedules.splice(j--, 1)
  2493. }
  2494. }
  2495. }
  2496. arr3 = arr
  2497. }
  2498. let arr4 = []
  2499. if (this.zoneVal == 0) {
  2500. arr4 = JSON.parse(JSON.stringify(arr3))
  2501. } else {
  2502. let arr = []
  2503. arr = JSON.parse(JSON.stringify(arr3))
  2504. for (let i = 0; i < arr.length; i++) {
  2505. if (this.zoneVal != arr[i].zone_id) {
  2506. // 删除元素后改变i的值
  2507. arr.splice(i--, 1)
  2508. }
  2509. }
  2510. arr4 = arr
  2511. }
  2512. const newArr = []
  2513. arr4.map(item => {
  2514. newArr.push(...item.schedules)
  2515. })
  2516. if(this.patientStateVal == 1){
  2517. newArr.map(item => {
  2518. item.created_time = item.assessment_before_dislysis.created_time
  2519. })
  2520. newArr.sort(this.compare('created_time'))
  2521. }
  2522. 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){
  2523. if(newArr!=null && newArr.length>0){
  2524. for(let i=0;i<newArr.length;i++){
  2525. newArr[i].sort =0
  2526. newArr[i].sort =newArr[i].device_number.sort
  2527. }
  2528. }
  2529. newArr.sort(function(a, b) {
  2530. return a.sort - b.sort;
  2531. });
  2532. }
  2533. // console.log('排序',newArr)
  2534. this.tableData = newArr
  2535. const name = this.$route.query.patient_name
  2536. this.tableData.map((item, index) => {
  2537. if (name == item.patient.name) {
  2538. // if (item.assessment_before_dislysis != null) {
  2539. // this.newTime = parseTime(item.assessment_before_dislysis.created_time, '{h}:{i}')
  2540. // }
  2541. setTimeout(() => {
  2542. this.$refs.tab.setCurrentRow(this.tableData[index])
  2543. }, 10)
  2544. }
  2545. })
  2546. } else if (this.activeName == 'second') {
  2547. for (let i = 0; i < patientArr.length; i++) {
  2548. for (let j = 0; j < patientArr[i].schedules.length; j++) {
  2549. if (patientArr[i].schedules.length > 0 && patientArr[i].schedules[j].dialysis_order == null) {
  2550. // 删除元素后改变i的值
  2551. patientArr[i].schedules.splice(j--, 1)
  2552. }
  2553. }
  2554. }
  2555. let arr1 = []
  2556. // let patientArr =
  2557. if (this.patientStateVal == 0) {
  2558. arr1 = patientArr
  2559. } else if (this.patientStateVal == 1) {
  2560. let arr = []
  2561. arr = patientArr
  2562. for (let i = 0; i < arr.length; i++) {
  2563. for (let j = 0; j < arr[i].schedules.length; j++) {
  2564. 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 == ''))) {
  2565. // 删除元素后改变i的值
  2566. arr[i].schedules.splice(j--, 1)
  2567. }
  2568. }
  2569. }
  2570. arr1 = arr
  2571. } else if (this.patientStateVal == 2) {
  2572. let arr = []
  2573. arr = patientArr
  2574. for (let i = 0; i < arr.length; i++) {
  2575. for (let j = 0; j < arr[i].schedules.length; j++) {
  2576. 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))) {
  2577. // 删除元素后改变i的值
  2578. arr[i].schedules.splice(j--, 1)
  2579. }
  2580. }
  2581. }
  2582. arr1 = arr
  2583. } else if (this.patientStateVal == 3) {
  2584. let arr = []
  2585. arr = patientArr
  2586. for (let i = 0; i < arr.length; i++) {
  2587. for (let j = 0; j < arr[i].schedules.length; j++) {
  2588. if (arr[i].schedules.length > 0 && (arr[i].schedules[j].dialysis_order != null && arr[i].schedules[j].dialysis_order.stage != 1)) {
  2589. // 删除元素后改变i的值
  2590. arr[i].schedules.splice(j--, 1)
  2591. }
  2592. }
  2593. }
  2594. arr1 = arr
  2595. } else if (this.patientStateVal == 4) {
  2596. let arr = []
  2597. arr = patientArr
  2598. for (let i = 0; i < arr.length; i++) {
  2599. for (let j = 0; j < arr[i].schedules.length; j++) {
  2600. if (arr[i].schedules.length > 0 && (arr[i].schedules[j].dialysis_order != null && arr[i].schedules[j].dialysis_order.stage != 2)) {
  2601. // 删除元素后改变i的值
  2602. arr[i].schedules.splice(j--, 1)
  2603. }
  2604. }
  2605. }
  2606. arr1 = arr
  2607. }
  2608. let arr2 = []
  2609. if (this.treatStateVal == 0) {
  2610. arr2 = JSON.parse(JSON.stringify(arr1))
  2611. } else if (this.treatStateVal == 2) {
  2612. let arr = []
  2613. arr = JSON.parse(JSON.stringify(arr1))
  2614. for (let i = 0; i < arr.length; i++) {
  2615. for (let j = 0; j < arr[i].schedules.length; j++) {
  2616. if (arr[i].schedules.length > 0 && arr[i].schedules[j].treatment_summary != null && arr[i].schedules[j].treatment_summary.dialysis_summary != '') {
  2617. // 删除元素后改变i的值
  2618. arr[i].schedules.splice(j--, 1)
  2619. }
  2620. }
  2621. }
  2622. arr2 = arr
  2623. } else if(this.treatStateVal == 3){
  2624. let arr = []
  2625. arr = JSON.parse(JSON.stringify(arr1))
  2626. for (let i = 0; i < arr.length; i++) {
  2627. for (let j = 0; j < arr[i].schedules.length; j++) {
  2628. if(arr[i].schedules[j].doctor_advice.length == 0){
  2629. arr[i].schedules.splice(j--, 1)
  2630. }
  2631. if(arr[i].schedules && arr[i].schedules[j] && arr[i].schedules[j].doctor_advice){
  2632. let sign = 0
  2633. arr[i].schedules[j].doctor_advice.map(item => {
  2634. if(item.check_state == 1){
  2635. sign++
  2636. }
  2637. })
  2638. if(sign == arr[i].schedules[j].doctor_advice.length && arr[i].schedules[j].doctor_advice.length > 0){
  2639. arr[i].schedules.splice(j--, 1)
  2640. }
  2641. }
  2642. }
  2643. }
  2644. arr2 = arr
  2645. }
  2646. let arr3 = []
  2647. if (this.scheduleStateVal == 0) {
  2648. arr3 = JSON.parse(JSON.stringify(arr2))
  2649. } else {
  2650. let arr = []
  2651. arr = JSON.parse(JSON.stringify(arr2))
  2652. for (let i = 0; i < arr.length; i++) {
  2653. for (let j = 0; j < arr[i].schedules.length; j++) {
  2654. if (this.scheduleStateVal != arr[i].schedules[j].schedule_type) {
  2655. // 删除元素后改变i的值
  2656. arr[i].schedules.splice(j--, 1)
  2657. }
  2658. }
  2659. }
  2660. arr3 = arr
  2661. }
  2662. let arr4 = []
  2663. if (this.zoneVal == 0) {
  2664. arr4 = JSON.parse(JSON.stringify(arr3))
  2665. } else {
  2666. let arr = []
  2667. arr = JSON.parse(JSON.stringify(arr3))
  2668. for (let i = 0; i < arr.length; i++) {
  2669. if (this.zoneVal != arr[i].zone_id) {
  2670. // 删除元素后改变i的值
  2671. arr.splice(i--, 1)
  2672. }
  2673. }
  2674. arr4 = arr
  2675. }
  2676. const newArr = []
  2677. arr4.map(item => {
  2678. newArr.push(...item.schedules)
  2679. })
  2680. if(this.patientStateVal == 1){
  2681. newArr.map(item => {
  2682. item.created_time = item.assessment_before_dislysis.created_time
  2683. })
  2684. newArr.sort(this.compare('created_time'))
  2685. }
  2686. 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){
  2687. if(newArr!=null && newArr.length>0){
  2688. for(let i=0;i<newArr.length;i++){
  2689. newArr[i].sort =0
  2690. newArr[i].sort =newArr[i].device_number.sort
  2691. }
  2692. }
  2693. newArr.sort(function(a, b) {
  2694. return a.sort - b.sort;
  2695. });
  2696. }
  2697. this.tableData1 = newArr
  2698. const name = this.$route.query.patient_name
  2699. this.tableData1.map((item, index) => {
  2700. if (name == item.patient.name) {
  2701. // if (item.assessment_before_dislysis != null) {
  2702. // this.newTime = parseTime(item.assessment_before_dislysis.created_time, '{h}:{i}')
  2703. // }
  2704. setTimeout(() => {
  2705. this.$refs.tab1.setCurrentRow(this.tableData1[index])
  2706. }, 10)
  2707. }
  2708. })
  2709. }
  2710. const name = this.$route.query.patient_id
  2711. if (this.activeName == 'first') {
  2712. this.tableData.map((item, index) => {
  2713. if (name == item.patient.id) {
  2714. this.$nextTick(() => {
  2715. this.$refs.tab.setCurrentRow(this.tableData[index])
  2716. })
  2717. }
  2718. })
  2719. } else if (this.activeName == 'second') {
  2720. this.tableData1.map((item, index) => {
  2721. if (name == item.patient.id) {
  2722. this.$nextTick(() => {
  2723. this.$refs.tab1.setCurrentRow(this.tableData1[index])
  2724. })
  2725. }
  2726. })
  2727. }
  2728. this.scrollToCurrentRow()
  2729. },
  2730. compare(property){
  2731. return function(a,b){
  2732. var value1 = a[property];
  2733. var value2 = b[property];
  2734. return value2 - value1;
  2735. }
  2736. },
  2737. getTime(date){
  2738. date = new Date(date * 1000)
  2739. var Y = date.getFullYear() + '-';
  2740. var M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1);
  2741. var D = (date.getDate() < 10 ? '0'+date.getDate() : date.getDate());
  2742. var h = (date.getHours() < 10 ? '0'+date.getHours() : date.getHours());
  2743. var m = (date.getMinutes() < 10 ? '0'+date.getMinutes() : date.getMinutes());
  2744. var s = (date.getSeconds() < 10 ? '0'+date.getSeconds() : date.getSeconds());
  2745. let strDate = h + ':' + m;
  2746. return strDate;
  2747. },
  2748. getTimes(time) {
  2749. return uParseTime(time, '{y}-{m}-{d}')
  2750. },
  2751. refresh(){
  2752. this.requestDialysisSchedules()
  2753. },
  2754. websocketSend(data) {
  2755. try {
  2756. this.websocket.send(JSON.stringify(data))
  2757. } catch (error) {
  2758. this.showError = true;
  2759. this.showIndex = 4;
  2760. this.errorInfo = "网络异常,请稍后退出重试!";
  2761. }
  2762. },
  2763. websocketMess() {
  2764. this.websocket.onmessage = e => {
  2765. let res = JSON.parse(e.data);
  2766. // let res = re.data;
  2767. // console.log('res3333333333',res)
  2768. if(res.channel == 'queue/join'){
  2769. let timeType = null
  2770. if(this.scheduleStateVal == 1){
  2771. timeType = 1
  2772. }else if(this.scheduleStateVal == 2){
  2773. timeType = 2
  2774. }else{
  2775. if(new Date().getHours() < 10){
  2776. timeType = 1
  2777. }else if(new Date().getHours() >= 10){
  2778. timeType = 2
  2779. }
  2780. }
  2781. let fisrtQueueInfo = []
  2782. this.newFisrtQueueInfo = res.data.fisrtQueueInfo
  2783. this.queueConfig = res.data.queueConfig
  2784. if(res.data.fisrtQueueInfo != null){
  2785. if(timeType == 1){
  2786. fisrtQueueInfo = res.data.fisrtQueueInfo.morning
  2787. if(fisrtQueueInfo.create_time){
  2788. fisrtQueueInfo.create_time = moment(parseInt(fisrtQueueInfo.create_time) * 1000).format('HH:mm')
  2789. }
  2790. }else if(timeType == 2){
  2791. fisrtQueueInfo = res.data.fisrtQueueInfo.afternoon
  2792. if(fisrtQueueInfo.create_time){
  2793. fisrtQueueInfo.create_time = moment(parseInt(fisrtQueueInfo.create_time) * 1000).format('HH:mm')
  2794. }
  2795. }
  2796. }
  2797. this.fisrtQueueInfo = fisrtQueueInfo
  2798. // this.fisrtQueueInfo = res.data.fisrtQueueInfo
  2799. let arr = res.data.patientQueueList.data
  2800. let waitingCalledArr = []
  2801. let calledArr = []
  2802. arr.map(item => {
  2803. if(item.status == 1){
  2804. // item.create_time = moment(item.create_time * 1000).format('HH:mm:ss')
  2805. waitingCalledArr.push(item)
  2806. }else if(item.status == 2){
  2807. // item.create_time = moment(item.create_time * 1000).format('HH:mm:ss')
  2808. calledArr.push(item)
  2809. }
  2810. })
  2811. this.waitingCalled = waitingCalledArr
  2812. this.called = calledArr
  2813. }else if(res.channel == 'allQueueList'){
  2814. let arr = res.data.queue_list.data
  2815. let waitingCalledArr = []
  2816. let calledArr = []
  2817. arr.map(item => {
  2818. if(item.status == 1){
  2819. // item.create_time = moment(item.create_time * 1000).format('HH:mm:ss')
  2820. waitingCalledArr.push(item)
  2821. }else if(item.status == 2){
  2822. // item.create_time = moment(item.create_time * 1000).format('HH:mm:ss')
  2823. calledArr.push(item)
  2824. }
  2825. })
  2826. this.waitingCalled = waitingCalledArr
  2827. this.called = calledArr
  2828. }else if(res.channel == 'patientCallInfo'){
  2829. res.data.patientInfo.create_time = moment(res.data.patientInfo.create_time * 1000).format('HH:mm')
  2830. this.fisrtQueueInfo = res.data.patientInfo
  2831. }else if(res.channel == 'fisrtQueueInfo'){
  2832. if(this.scheduleStateVal == 1){
  2833. timeType = 1
  2834. }else if(this.scheduleStateVal == 2){
  2835. timeType = 2
  2836. }else{
  2837. if(new Date().getHours() < 10){
  2838. timeType = 1
  2839. }else if(new Date().getHours() >= 10){
  2840. timeType = 2
  2841. }
  2842. }
  2843. let fisrtQueueInfo = []
  2844. this.newFisrtQueueInfo = res.data.patientInfo
  2845. if(res.data.patientInfo != null){
  2846. if(timeType == 1){
  2847. fisrtQueueInfo = res.data.patientInfo.morning
  2848. if(fisrtQueueInfo.create_time){
  2849. fisrtQueueInfo.create_time = moment(parseInt(fisrtQueueInfo.create_time) * 1000).format('HH:mm')
  2850. }
  2851. }else if(timeType == 2){
  2852. fisrtQueueInfo = res.data.patientInfo.afternoon
  2853. if(fisrtQueueInfo.create_time){
  2854. fisrtQueueInfo.create_time = moment(parseInt(fisrtQueueInfo.create_time) * 1000).format('HH:mm')
  2855. }
  2856. }
  2857. }
  2858. this.fisrtQueueInfo = fisrtQueueInfo
  2859. }
  2860. }
  2861. },
  2862. call(){
  2863. // console.log('patient_id',patient_id)
  2864. let org_id = parseInt(sessionStorage.getItem("org_id"));
  2865. let admin_user_id = parseInt(sessionStorage.getItem("admin_user_id"));
  2866. axios.get('/api/index/callpatient?org_id=' + org_id + '&patient_id=' + this.patient_id + '&admin_user_id=' + admin_user_id).then(res => {
  2867. // let patientArr = res.data.queue_list.data
  2868. // this.patientArr = patientArr
  2869. // this.$emit('child-event',this.patientArr)
  2870. if(res.data.data.patientInfo == null){
  2871. this.$message.error('已经是最后一位了');
  2872. return
  2873. }
  2874. if(res.data.code == 200){
  2875. this.$message({
  2876. message: res.data.msg,
  2877. type: 'success'
  2878. });
  2879. this.curPatient = res.data.data.patientInfo
  2880. let arr = []
  2881. let newArr = []
  2882. this.zone_schedules.map(item => {
  2883. newArr.push(...item.schedules)
  2884. })
  2885. newArr.map(item => {
  2886. arr.push(item.patient_id)
  2887. })
  2888. if(arr.indexOf(parseInt(res.data.data.patientInfo.patient_id)) > -1){
  2889. this.showView = false
  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:newArr[arr.indexOf(parseInt(res.data.data.patientInfo.patient_id))].mode_id,
  2897. curPatientTime:res.data.data.patientInfo.create_time,
  2898. showView:false
  2899. }
  2900. })
  2901. }else {
  2902. this.showView = true
  2903. this.$router.push({
  2904. path: '/dialysis/details',
  2905. query: {
  2906. patient_id: parseInt(res.data.data.patientInfo.patient_id),
  2907. date: this.$route.query.date,
  2908. patient_name: res.data.data.patientInfo.patient_name,
  2909. mode_id:this.$route.query.mode_id,
  2910. curPatientTime:res.data.data.patientInfo.create_time,
  2911. showView:true
  2912. }
  2913. })
  2914. }
  2915. }
  2916. })
  2917. },
  2918. next(){
  2919. let schedule_type = null
  2920. if(new Date().getHours() < 11){
  2921. schedule_type = 1
  2922. }else {
  2923. schedule_type = 2
  2924. }
  2925. let org_id = parseInt(sessionStorage.getItem("org_id"));
  2926. let admin_user_id = parseInt(sessionStorage.getItem("admin_user_id"));
  2927. 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 => {
  2928. if(res.data.data.patientInfo == null){
  2929. this.$message.error('已经是最后一位了');
  2930. return
  2931. }
  2932. if(res.data.code == 200){
  2933. this.$message({
  2934. message: res.data.msg,
  2935. type: 'success'
  2936. });
  2937. this.curPatient = res.data.data.patientInfo
  2938. let arr = []
  2939. let newArr = []
  2940. this.zone_schedules.map(item => {
  2941. newArr.push(...item.schedules)
  2942. })
  2943. newArr.map(item => {
  2944. arr.push(item.patient_id)
  2945. })
  2946. if(arr.indexOf(parseInt(res.data.data.patientInfo.patient_id)) > -1){
  2947. this.showView = false
  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:newArr[arr.indexOf(parseInt(res.data.data.patientInfo.patient_id))].mode_id,
  2955. curPatientTime:res.data.data.patientInfo.create_time,
  2956. showView:false
  2957. }
  2958. })
  2959. }else {
  2960. this.showView = true
  2961. this.$router.push({
  2962. path: '/dialysis/details',
  2963. query: {
  2964. patient_id: parseInt(res.data.data.patientInfo.patient_id),
  2965. date: this.$route.query.date,
  2966. patient_name: res.data.data.patientInfo.patient_name,
  2967. mode_id:this.$route.query.mode_id,
  2968. curPatientTime:res.data.data.patientInfo.create_time,
  2969. showView:true
  2970. }
  2971. })
  2972. }
  2973. }
  2974. })
  2975. },
  2976. getDates(time){
  2977. return moment(time * 1000).format('HH:mm:ss')
  2978. },
  2979. printAction: function() {
  2980. 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;}}'
  2981. const style1 = '@page {margin-top:10px;} @media print{}'
  2982. printJS({
  2983. printable: 'print_content',
  2984. type: 'html',
  2985. documentTitle: '',
  2986. style: style1,
  2987. scanStyles: false
  2988. })
  2989. },
  2990. // 打印上机单弹窗数据源
  2991. getInitPrintData(){
  2992. const loading = this.$loading({
  2993. lock: true,
  2994. text: 'Loading',
  2995. spinner: 'el-icon-loading',
  2996. background: 'rgba(0, 0, 0, 0.7)'
  2997. })
  2998. var params = {
  2999. patient_id:this.$route.query.patient_id,
  3000. record_date:this.$route.query.date,
  3001. mode_id:this.$route.query.mode_id,
  3002. }
  3003. getInitPrintData(params).then(response=>{
  3004. if(response.data.state == 1){
  3005. var list = response.data.data.list
  3006. console.log("listwowoowowowowow",list)
  3007. var assessmentAfterDislysis = response.data.data.assessmentAfterDislysis
  3008. this.printList = list
  3009. this.assessmentAfterDislysis = assessmentAfterDislysis
  3010. if(this.org_id ==10469){
  3011. this.centerDialogVisible = true
  3012. }else{
  3013. this.startVisibility = true
  3014. }
  3015. loading.close()
  3016. }
  3017. })
  3018. },
  3019. getModeId(val){
  3020. var name =""
  3021. if(val == 1){
  3022. name ="HD"
  3023. }
  3024. if(val == 2){
  3025. name ="HDF"
  3026. }
  3027. if(val == 3){
  3028. name ="HD+HP"
  3029. }
  3030. if(val == 4){
  3031. name ="HP"
  3032. }
  3033. if(val == 5){
  3034. name ="HF"
  3035. }
  3036. if(val == 6){
  3037. name ="SCUF"
  3038. }
  3039. if(val == 7){
  3040. name ="IUF"
  3041. }
  3042. if(val == 8){
  3043. name ="HFHD"
  3044. }
  3045. if(val == 9){
  3046. name ="HFHD+HP"
  3047. }
  3048. if(val == 10){
  3049. name ="HFD"
  3050. }
  3051. if(val == 11){
  3052. name ="HFR"
  3053. }
  3054. if(val == 12){
  3055. name ="HDF+HP"
  3056. }
  3057. if(val == 13){
  3058. name ="CRRT"
  3059. }
  3060. if(val == 14){
  3061. name ="腹水回输"
  3062. }
  3063. if(val == 19){
  3064. name ="IUF+HD"
  3065. }
  3066. if(val == 20){
  3067. name ="UF"
  3068. }
  3069. if(val == 21){
  3070. name ="HD+"
  3071. }
  3072. if(val == 22){
  3073. name ="血浆胆红素吸附+HDF"
  3074. }
  3075. if(val == 23){
  3076. name ="血浆胆红素吸附"
  3077. }
  3078. if(val == 24){
  3079. name ="I-HDF"
  3080. }
  3081. if(val == 25){
  3082. name ="HD高通"
  3083. }
  3084. if(val == 26){
  3085. name ="CVVH"
  3086. }
  3087. if(val == 27){
  3088. name ="CVVHD"
  3089. }
  3090. if(val == 28){
  3091. name ="CVVHDF"
  3092. }
  3093. if(val == 29){
  3094. name ="PE"
  3095. }
  3096. if(val == 30){
  3097. name ="血浆胆红素吸附+HP"
  3098. }
  3099. if(val == 31){
  3100. name ="HPD"
  3101. }
  3102. if(val == 32){
  3103. name ="HDP"
  3104. }
  3105. if(val == 33){
  3106. name ="HDP"
  3107. }
  3108. if(val == 33){
  3109. name ="HFD"
  3110. }
  3111. if(val == 34){
  3112. name ="HDF100"
  3113. }
  3114. if(val == 35){
  3115. name ="HDF600"
  3116. }
  3117. if(val == 36){
  3118. name ="HDF800"
  3119. }
  3120. if(val == 37){
  3121. name ="HDF1000"
  3122. }
  3123. return name
  3124. },
  3125. getBloodAccess(id){
  3126. var name = ""
  3127. for(let i=0;i<this.blood_access_part_opera.length;i++){
  3128. if(id == this.blood_access_part_opera[i].id){
  3129. name = this.blood_access_part_opera[i].name
  3130. }
  3131. }
  3132. return name
  3133. },
  3134. // 透析历史
  3135. history_click(){
  3136. this.getPatientDialysisRecordList()
  3137. // this.getmonth(this.time_value2)
  3138. // console.log('time_value',moment(this.time_value2).format('YYYY-MM-DD'));
  3139. },
  3140. getPatientDialysisRecordList(){
  3141. var params= {
  3142. patient_id:this.$route.query.patient_id,
  3143. start_time:this.start_time,
  3144. end_time:this.end_time,
  3145. }
  3146. console.log('tttt',params);
  3147. getPatientDialysisRecordList(params).then(response=>{
  3148. if(response.data.state == 1){
  3149. var list = response.data.data.list
  3150. this.historyclick =true
  3151. if(list!=null && list.length>0){
  3152. for(let i=0;i<list.length;i++){
  3153. list[i].order_date =""
  3154. if(this.org_id ==9538 || this.org_id ==10101 || this.org_id ==10353 ){
  3155. list[i].order_date = this.getOrderTime(list[i].dialysis_date)
  3156. list[i].schedual_type_name= list[i].schedual_type
  3157. }else{
  3158. list[i].order_date = this.getOrderTime(list[i].schedule_date)
  3159. list[i].schedual_type_name= list[i].schedule_type
  3160. }
  3161. }
  3162. }
  3163. console.log("list------",list)
  3164. this.orderList = []
  3165. this.orderList = list
  3166. }
  3167. })
  3168. },
  3169. // 获取每个月的第一天和最后一天
  3170. getmonth(val){
  3171. // const months= new Date(val).getMonth()
  3172. // let startTime = moment().month(months).startOf('month').format('YYYY-MM-DD')
  3173. // // //某月最后一天
  3174. // let endTime = moment().month(months).endOf('month').format('YYYY-MM-DD')
  3175. // this.startTime = startTime
  3176. // this.endTime = endTime
  3177. // console.log('time_value333333',this.startTime,this.endTime);
  3178. },
  3179. getOrderTime(val){
  3180. // console.log('77778888',val,this.dialysis_date=uParseTime(val, "{y}-{m}-{d}"));
  3181. if (val < 0) {
  3182. return "";
  3183. }
  3184. if (val == "") {
  3185. return "";
  3186. } else {
  3187. return uParseTime(val, "{y}-{m}-{d}");
  3188. }
  3189. },
  3190. viewDayWork(val){
  3191. console.log("val00000000000000000",val)
  3192. const starttime = moment(this.time_value).format('YYYY-MM-DD')
  3193. console.log('eeeeeeee',starttime);
  3194. const len = (val.target.innerText).split(' ')
  3195. console.log("val33333333333333444",len)
  3196. if(val.target.innerText == '下个月'){
  3197. this.start_time = moment(this.time_value).startOf('month').format('YYYY-MM-DD')
  3198. this.end_time = moment(this.time_value).endOf('month').format('YYYY-MM-DD')
  3199. console.log('gggggggg',this.start_time,this.end_time);
  3200. this.getPatientDialysisRecordList()
  3201. }else if(val.target.innerText == '上个月'){
  3202. this.start_time = moment(this.time_value).startOf('month').format('YYYY-MM-DD')
  3203. this.end_time = moment(this.time_value).endOf('month').format('YYYY-MM-DD')
  3204. console.log('gggggggg',this.start_time,this.end_time);
  3205. this.getPatientDialysisRecordList()
  3206. }else if(val.target.innerText =='今天'){
  3207. this.start_time = moment(this.time_value).startOf('month').format('YYYY-MM-DD')
  3208. this.end_time = moment(this.time_value).endOf('month').format('YYYY-MM-DD')
  3209. console.log('gggggggg',this.start_time,this.end_time);
  3210. this.getPatientDialysisRecordList()
  3211. }else{
  3212. // console.log('4444',this.orderList);
  3213. if(len.length>1){
  3214. var patient_id = this.$route.query.patient_id
  3215. var start_time = this.timestamp(starttime)
  3216. this.$router.push({
  3217. path: "/dialysis/details",
  3218. query: { patient_id:patient_id , date: start_time}
  3219. });
  3220. this.history_click = false
  3221. }else{
  3222. this.time_value
  3223. }
  3224. }
  3225. },
  3226. timestamp(start_time) {
  3227. // 使用 Date 对象和它的 getTime 方法将日期字符串转换为时间戳
  3228. return new Date(start_time).getTime()/1000 - 28800;
  3229. }
  3230. },
  3231. watch:{
  3232. time_value:{
  3233. handler(newValue,oldValue){
  3234. console.log("newValue----------",newValue)
  3235. // this.initData()
  3236. this.time_value = newValue
  3237. // this.getmonth(this.time_value)
  3238. this.start_time = moment(this.time_value).startOf('month').format('YYYY-MM-DD')
  3239. this.end_time = moment(this.time_value).endOf('month').format('YYYY-MM-DD')
  3240. // this.start_time = moment().month(months).startOf('month').format('YYYY-MM-DD')
  3241. // this.end_time = moment().month(months).endOf('month').format('YYYY-MM-DD')
  3242. // console.log('rrrrr',this.start_time,this.end_time);
  3243. // this.end_time = moment(oldValue).format('YYYY-MM-DD')
  3244. }
  3245. },
  3246. '$route.query.patient_id'(newVal) {
  3247. if (newVal) {
  3248. this.scrollToCurrentRow()
  3249. }
  3250. },
  3251. tableData() {
  3252. this.scrollToCurrentRow()
  3253. },
  3254. tableData1() {
  3255. this.scrollToCurrentRow()
  3256. }
  3257. }
  3258. }
  3259. </script>
  3260. <style style="stylesheet/scss" lang="scss" scoped>
  3261. .details-bg {
  3262. background: #fff;
  3263. margin: 0 15px;
  3264. }
  3265. .printForm {
  3266. .title {
  3267. font-size: 30px;
  3268. font-weight: 500;
  3269. text-align: center;
  3270. line-height: 60px;
  3271. }
  3272. .info {
  3273. ul {
  3274. display: -webkit-box;
  3275. display: -moz-box;
  3276. display: -ms-flexbox;
  3277. display: -webkit-flex;
  3278. display: flex;
  3279. align-items: center;
  3280. -moz-box-sizing: border-box;
  3281. -webkit-box-sizing: border-box;
  3282. -o-box-sizing: border-box;
  3283. -ms-box-sizing: border-box;
  3284. box-sizing: border-box;
  3285. -webkit-justify-content: space-around;
  3286. -moz-justify-content: space-around;
  3287. -ms-justify-content: space-around;
  3288. -o-justify-content: space-around;
  3289. justify-content: space-around;
  3290. li {
  3291. display: flex;
  3292. box-sizing: border-box;
  3293. justify-content: space-around;
  3294. // .name {
  3295. // }
  3296. .InputBox {
  3297. padding: 0;
  3298. border: none;
  3299. border-bottom: 1px #e5e5e5 solid;
  3300. width: 60px;
  3301. outline: none;
  3302. }
  3303. }
  3304. }
  3305. }
  3306. .printTable {
  3307. tr {
  3308. padding: 2px;
  3309. th {
  3310. padding: 6px 4px;
  3311. }
  3312. td {
  3313. padding: 6px 4px;
  3314. }
  3315. }
  3316. }
  3317. }
  3318. .loadingBox{
  3319. display: flex;
  3320. .patientBox{
  3321. background: #fff;
  3322. .touxi_cishu{
  3323. display: inline-block;
  3324. border: 1px solid #409eff;
  3325. width: 30px;
  3326. text-align: center;
  3327. border-radius: 10px;
  3328. }
  3329. }
  3330. .tip1{
  3331. background: #4fc7cb;
  3332. border-radius: 5px;
  3333. text-align: center;
  3334. font-size: 12px;
  3335. display: inline-block;
  3336. width: 60px;
  3337. // height: 23px;
  3338. // line-height: 23px;
  3339. color: #fff;
  3340. }
  3341. .tip2{
  3342. background: #ee8556;
  3343. border-radius: 5px;
  3344. text-align: center;
  3345. font-size: 12px;
  3346. display: inline-block;
  3347. width: 60px;
  3348. // height: 23px;
  3349. // line-height: 23px;
  3350. color: #fff;
  3351. }
  3352. .tip3{
  3353. background: #409eff;
  3354. border-radius: 5px;
  3355. text-align: center;
  3356. font-size: 12px;
  3357. display: inline-block;
  3358. width: 60px;
  3359. color: #fff;
  3360. }
  3361. .tip4{
  3362. background: #a8b3ba;
  3363. border-radius: 5px;
  3364. text-align: center;
  3365. font-size: 12px;
  3366. display: inline-block;
  3367. width: 60px;
  3368. color: #fff;
  3369. }
  3370. .tip5{
  3371. background: #7bce91;
  3372. border-radius: 5px;
  3373. text-align: center;
  3374. font-size: 12px;
  3375. display: inline-block;
  3376. width: 60px;
  3377. color: #fff;
  3378. }
  3379. }
  3380. .history{
  3381. .touxipl{
  3382. display: inline-block;
  3383. width: 60%;
  3384. border-bottom:1px solid gray;
  3385. }
  3386. }
  3387. </style>
  3388. <style lang="scss">
  3389. .loadingBox{
  3390. .el-loading-spinner{
  3391. top:10%;
  3392. }
  3393. .el-button--small, .el-button--small.is-round{
  3394. padding:9px 10px;
  3395. }
  3396. .el-date-editor{
  3397. .el-input__inner{
  3398. padding-right:0px;
  3399. }
  3400. }
  3401. .el-table td, .el-table th{
  3402. text-align: center;
  3403. }
  3404. .el-table td{
  3405. height: 44px !important;
  3406. }
  3407. .el-table .cell{
  3408. padding: 0;
  3409. }
  3410. }
  3411. .history{
  3412. .el-dialog{
  3413. .el-dialog__header{
  3414. padding: 10px 10px 10px;
  3415. background-color: #409eff;
  3416. .el-dialog__title{
  3417. color: white;
  3418. font-size: 15px;
  3419. }
  3420. .el-dialog__headerbtn{
  3421. position: absolute;
  3422. top: 12px;
  3423. right: 20px;
  3424. .el-dialog__close{
  3425. color: white;
  3426. }
  3427. }
  3428. }
  3429. .el-dialog__body{
  3430. padding: 15px 10px
  3431. }
  3432. }
  3433. }
  3434. .Calendar{
  3435. color: #000 !important;
  3436. width: 100% !important;
  3437. max-width: 839px !important;
  3438. .wh_content_all{
  3439. background-color: #fff;
  3440. .wh_top_changge{
  3441. .wh_jiantou1{
  3442. border-top: 2px solid #000;
  3443. border-left: 2px solid #000;
  3444. }
  3445. .wh_content_li{
  3446. color: #000;
  3447. }
  3448. .wh_jiantou2{
  3449. border-top: 2px solid #000;
  3450. border-right: 2px solid #000;
  3451. }
  3452. }
  3453. .wh_content_item{
  3454. text-align: center;
  3455. color: #000 ;
  3456. height: 50px;
  3457. .wh_top_tag{
  3458. width: 100%;
  3459. height: 50px ;
  3460. line-height: 50px;
  3461. margin: 0;
  3462. display: flex;
  3463. justify-content: center;
  3464. align-items: center;
  3465. text-align: center
  3466. }
  3467. .wh_isToday{
  3468. border: 1px solid #409eff;
  3469. background: #409eff !important;
  3470. color: #fff;
  3471. border-radius: 0;
  3472. }
  3473. .wh_chose_day{
  3474. border: 1px solid #409eff;
  3475. background: #fff !important;
  3476. color: #409eff;
  3477. border-radius: 0;
  3478. }
  3479. .wh_item_date{
  3480. width: 100%;
  3481. height: 50px;
  3482. line-height: 50px;
  3483. margin: 0;
  3484. display: flex;
  3485. justify-content: center;
  3486. align-items: center;
  3487. }
  3488. .wh_item_date:hover {
  3489. background: #fff;
  3490. cursor: pointer;
  3491. }
  3492. }
  3493. }
  3494. }
  3495. .future-date {
  3496. color:#e6f7ff;
  3497. }
  3498. /* 如果需要背景色而不是文字颜色 */
  3499. .future-date {
  3500. background-color: #409eff;
  3501. }
  3502. </style>