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

dialysisParameter.vue 74KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066
  1. <template>
  2. <div class="page_consumables">
  3. <div class="cell clearfix">
  4. <label class="title"> <span class="name">排班班次</span> : </label>
  5. <div class="time">
  6. <ul class>
  7. <li
  8. :class="item.value == schedulType ? 'active' : ''"
  9. @click="selectSchedulType(item.value)"
  10. v-for="item in schedulArr"
  11. :key="item.value"
  12. >
  13. {{ item.label }}
  14. </li>
  15. </ul>
  16. </div>
  17. <label class="title"><span class="name">日期查询</span> : </label>
  18. <el-date-picker size="small" v-model="selected_date" prefix-icon="el-icon-date" @change="handleScheduleDateChange"
  19. :editable="false" :clearable="false" style="width: 196px;margin-right:10px;" type="date"
  20. format="yyyy-MM-dd"
  21. value-format="yyyy-MM-dd"
  22. placeholder="选择日期时间" align="right"
  23. ></el-date-picker>
  24. <el-input size="small" style="width: 180px;" @keyup.enter.native='searchAction' v-model.trim="search_input"
  25. class="filter-item" v-model="query.keywords"/>
  26. <el-button size="small" class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
  27. </div>
  28. <div class="cell clearfix" style="justify-content: space-between;">
  29. <!-- <div style="display:flex;">
  30. <label class="title"> <span class="name">分区</span> : </label>
  31. <div class="time">
  32. <ul class>
  33. <li
  34. :class="item.id == partitionType ? 'active' : ''"
  35. @click="selectPartitionType(item.id)"
  36. v-for="item in partitionArr"
  37. :key="item.id"
  38. >
  39. {{ item.name }}
  40. </li>
  41. </ul>
  42. </div>
  43. </div> -->
  44. <label class="title"><span class="name">分区</span> : </label>
  45. <el-select v-model="partition_id" multiple placeholder="请选择分区" style="margin-left:-400px" @change="selectPartitionType">
  46. <el-option
  47. v-for="item in partitionArrOne"
  48. :key="item.id"
  49. :label="item.name"
  50. :value="item.id">
  51. </el-option>
  52. </el-select>
  53. <div>
  54. <el-button size="small" icon="el-icon-printer" @click="toDialog" type="primary">设置</el-button>
  55. <el-button size="small" icon="el-icon-printer" @click="toSign" type="primary">标签打印</el-button>
  56. <el-button size="small" icon="el-icon-printer" @click="printAction" type="primary">标签打印设置</el-button>
  57. <el-button size="small" @click="exportList" type="primary">导出</el-button>
  58. <el-button size="small" @click="toPrint" icon="el-icon-printer" type="primary">打印</el-button>
  59. <el-button size="small" type="primary" @click="statistics">统计表</el-button>
  60. </div>
  61. </div>
  62. <div>
  63. <el-table
  64. :data="list"
  65. border
  66. :row-style="{ color: '#303133' }"
  67. :header-cell-style="{
  68. backgroundColor: 'rgb(245, 247, 250)',
  69. color: '#606266'
  70. }"
  71. @selection-change="handleSelectionChange"
  72. >
  73. <el-table-column align="center" type="selection" width="55">
  74. </el-table-column>
  75. <el-table-column align="center" label="序号" width="55">
  76. <template slot-scope="scope">
  77. {{scope.$index + 1}}
  78. </template>
  79. </el-table-column>
  80. <el-table-column align="center" label="透析机号" v-if="dialysisSett.device_number==1">
  81. <template slot-scope="scope">
  82. {{scope.row.device_number.zone.name}} {{scope.row.device_number.number}}
  83. </template>
  84. </el-table-column>
  85. <el-table-column align="center" label="姓名" v-if="dialysisSett.name==1">
  86. <template slot-scope="scope">
  87. {{scope.row.patient.name}}
  88. </template>
  89. </el-table-column>
  90. <el-table-column align="center" label="透析模式" v-if="dialysisSett.name==1">
  91. <template slot-scope="scope">
  92. <span v-if="scope.row.mode_id == 1">HD</span>
  93. <span v-if="scope.row.mode_id == 2">HDF</span>
  94. <span v-if="scope.row.mode_id == 3">HD+HP</span>
  95. <span v-if="scope.row.mode_id == 4">HP</span>
  96. <span v-if="scope.row.mode_id == 5">HF</span>
  97. <span v-if="scope.row.mode_id == 6">SCUF</span>
  98. <span v-if="scope.row.mode_id == 7">IUF</span>
  99. <span v-if="scope.row.mode_id == 8">HFHD</span>
  100. <span v-if="scope.row.mode_id == 9">HFHD+HP</span>
  101. <span v-if="scope.row.mode_id == 10">PHF</span>
  102. <span v-if="scope.row.mode_id == 11">HFR</span>
  103. <span v-if="scope.row.mode_id == 12">HDF+HP</span>
  104. <span v-if="scope.row.mode_id == 13">CRRT</span>
  105. <span v-if="scope.row.mode_id == 19">IUF+HD</span>
  106. <span v-if="scope.row.mode_id == 20">UF</span>
  107. <span v-if="scope.row.mode_id == 21">HD+</span>
  108. <span v-if="scope.row.mode_id == 22">血浆胆红素吸附+HDF</span>
  109. <span v-if="scope.row.mode_id == 23">血浆胆红素吸附</span>
  110. <span v-if="scope.row.mode_id == 24">I-HDF</span>
  111. <span v-if="scope.row.mode_id == 25">HD高通F</span>
  112. <span v-if="scope.row.mode_id == 26">CVVH</span>
  113. <span v-if="scope.row.mode_id == 27">CVVHD</span>
  114. <span v-if="scope.row.mode_id == 28">CVVHDF</span>
  115. <span v-if="scope.row.mode_id == 29">PE</span>
  116. <span v-if="scope.row.mode_id == 30">血浆胆红素吸附+HP</span>
  117. <span v-if="scope.row.mode_id == 31">HPD</span>
  118. <span v-if="scope.row.mode_id == 32">HDP</span>
  119. <span v-if="scope.row.mode_id == 33">HFD</span>
  120. <span v-if="scope.row.mode_id == 34">HDF100</span>
  121. <span v-if="scope.row.mode_id == 35">HDF600</span>
  122. <span v-if="scope.row.mode_id == 36">HDF800</span>
  123. <span v-if="scope.row.mode_id == 37">HDF1000</span>
  124. </template>
  125. </el-table-column>
  126. <el-table-column align="center" label="透析号" v-if="dialysisSett.dialysis_no==1">
  127. <template slot-scope="scope">
  128. {{scope.row.patient.dialysis_no}}
  129. </template>
  130. </el-table-column>
  131. <el-table-column align="center" label="住院(门诊)号" v-if="dialysisSett.admission_number==1">
  132. <template slot-scope="scope">
  133. {{scope.row.xt_receive_treatment_asses.admission_number}}
  134. </template>
  135. </el-table-column>
  136. <el-table-column align="center" label="透前体重" v-if="dialysisSett.weight_befor==1">
  137. <template slot-scope="scope">
  138. {{scope.row.assessment_befor_dislysis.weight_before?scope.row.assessment_befor_dislysis.weight_before:""}}
  139. </template>
  140. </el-table-column>
  141. <el-table-column align="center" label="干体重" v-if="dialysisSett.dry_weight==1">
  142. <template slot-scope="scope">
  143. {{scope.row.assessment_befor_dislysis.dry_weight?scope.row.assessment_befor_dislysis.dry_weight:""}}
  144. </template>
  145. </el-table-column>
  146. <el-table-column align="center" label="透前血压" v-if="dialysisSett.blood_pressure==1">
  147. <template slot-scope="scope">
  148. <span v-if="scope.row.assessment_befor_dislysis.systolic_blood_pressure>0">{{scope.row.assessment_befor_dislysis.systolic_blood_pressure}}</span>
  149. <span v-if="scope.row.assessment_befor_dislysis.diastolic_blood_pressure>0">/{{scope.row.assessment_befor_dislysis.diastolic_blood_pressure}}</span>
  150. </template>
  151. </el-table-column>
  152. <el-table-column align="center" label="目标脱水量" v-if="dialysisSett.ultrafiltration_volume==1">
  153. <template slot-scope="scope">
  154. <span v-if="scope.row.dialysis_solution.target_ultrafiltration>0">{{scope.row.dialysis_solution.target_ultrafiltration}}</span>
  155. </template>
  156. </el-table-column>
  157. <el-table-column align="center" label="抗凝剂(首剂)(维持)(总量)" v-if="dialysisSett.anticoagulant==1">
  158. <template slot-scope="scope">
  159. <span>{{getAnticoagualnt(scope.row.dialysis_solution.anticoagulant)}}</span>
  160. <span v-if="scope.row.dialysis_solution.anticoagulant_shouji > 0">({{scope.row.dialysis_solution.anticoagulant_shouji}})</span>
  161. <span v-if="scope.row.dialysis_solution.anticoagulant_weichi > 0">({{scope.row.dialysis_solution.anticoagulant_weichi}})</span>
  162. <span v-if="scope.row.dialysis_solution.anticoagulant_zongliang > 0">({{scope.row.dialysis_solution.anticoagulant_zongliang}})</span>
  163. </template>
  164. </el-table-column>
  165. <el-table-column align="center" label="透析时长" v-if="dialysisSett.dialysis_time ==1">
  166. <template slot-scope="scope">
  167. <span v-if="scope.row.dialysis_solution.dialysis_duration_hour >0">{{scope.row.dialysis_solution.dialysis_duration_hour}}时</span>
  168. <span v-if="scope.row.dialysis_solution.dialysis_duration_minute >0">{{scope.row.dialysis_solution.dialysis_duration_minute}}分</span>
  169. </template>
  170. </el-table-column>
  171. <el-table-column align="center" label="设备型号" v-if="dialysisSett.device_type==1">
  172. <template slot-scope="scope">
  173. <span>{{scope.row.assessment_befor_dislysis.machine_type}}</span>
  174. </template>
  175. </el-table-column>
  176. <el-table-column align="center" label="透析器/灌流器" v-if="dialysisSett.dialyzer_perfusion_apparatus == 1">
  177. <template slot-scope="scope">
  178. <span>{{scope.row.dialysis_solution.dialyzer_perfusion_apparatus}}</span>
  179. </template>
  180. </el-table-column>
  181. <el-table-column align="center" label="透析器" v-if="dialysisSett.dialysis_dialyszers == 1">
  182. <template slot-scope="scope">
  183. <span>{{scope.row.dialysis_solution.dialysis_dialyszers}}</span>
  184. </template>
  185. </el-table-column>
  186. <el-table-column align="center" label="灌流器" v-if="dialysisSett.dialysis_irrigation ==1">
  187. <template slot-scope="scope">
  188. <span>{{scope.row.dialysis_solution.dialysis_irrigation}}</span>
  189. </template>
  190. </el-table-column>
  191. <el-table-column align="center" label="滤过器" v-if="dialysisSett.dialysis_irrigation ==1">
  192. <template slot-scope="scope">
  193. <span>{{scope.row.dialysis_solution.dialysis_strainer}}</span>
  194. </template>
  195. </el-table-column>
  196. <el-table-column align="center" label="置换液" v-if="dialysisSett.displace_liqui_part==1">
  197. <template slot-scope="scope">
  198. <span>{{getDisplaceLiquiPart(scope.row.dialysis_solution.displace_liqui_part)}}</span>
  199. </template>
  200. </el-table-column>
  201. <el-table-column align="center" label="置换液总量" v-if="dialysisSett.displace_liqui_value==1">
  202. <template slot-scope="scope">
  203. <span v-if="scope.row.dialysis_solution.displace_liqui_value>0">{{scope.row.dialysis_solution.displace_liqui_value}}</span>
  204. </template>
  205. </el-table-column>
  206. <el-table-column align="center" label="钾" v-if="dialysisSett.kalium==1">
  207. <template slot-scope="scope">
  208. <span v-if="scope.row.dialysis_solution.kalium>0">{{scope.row.dialysis_solution.kalium}}</span>
  209. </template>
  210. </el-table-column>
  211. <el-table-column align="center" label="钠" v-if="dialysisSett.sodium==1">
  212. <template slot-scope="scope">
  213. <span v-if="scope.row.dialysis_solution.sodium>0">{{scope.row.dialysis_solution.sodium}}</span>
  214. </template>
  215. </el-table-column>
  216. <el-table-column align="center" label="钙" v-if="dialysisSett.calcium==1">
  217. <template slot-scope="scope">
  218. <span v-if="scope.row.dialysis_solution.calcium>0">{{scope.row.dialysis_solution.calcium}}</span>
  219. </template>
  220. </el-table-column>
  221. <el-table-column align="center" label="碳酸氢盐" v-if="dialysisSett.bicarbonate == 1">
  222. <template slot-scope="scope">
  223. <span v-if="scope.row.dialysis_solution.bicarbonate>0">{{scope.row.dialysis_solution.bicarbonate}}</span>
  224. </template>
  225. </el-table-column>
  226. <el-table-column align="center" label="血管通路" v-if="dialysisSett.blood_access==1">
  227. <template slot-scope="scope">
  228. <span>{{getBloodAccessOption(scope.row.dialysis_solution.blood_access)}}</span>
  229. </template>
  230. </el-table-column>
  231. <el-table-column align="center" label="封管液" v-if="dialysisSett.blood_access==1">
  232. <template slot-scope="scope">
  233. <span v-if="getBloodAccessOption(scope.row.dialysis_solution.blood_access).indexOf('导管')!==-1">1</span>
  234. </template>
  235. </el-table-column>
  236. <el-table-column align="center" label="促红" v-if="org_id!=10599">
  237. <template slot-scope="scope">
  238. {{ scope.row.advice_spc }}
  239. </template>
  240. </el-table-column>
  241. <el-table-column align="center" label="封管液" v-if="dialysisSett.sealing_fluid_dispose == 1">
  242. <template slot-scope="scope">
  243. <span>{{scope.row.xt_assesment_after_dislysis.sealing_fluid_dispose}} </span>
  244. </template>
  245. </el-table-column>
  246. <el-table-column align="center" label="葡萄糖" v-if="dialysisSett.glucose==1">
  247. <template slot-scope="scope">
  248. <span>{{scope.row.dialysis_solution.amylaceum?scope.row.dialysis_solution.amylaceum:""}} </span>
  249. </template>
  250. </el-table-column>
  251. <el-table-column align="center" label="血流量" v-if="dialysisSett.blood_flow_volume==1">
  252. <template slot-scope="scope">
  253. <span>{{scope.row.dialysis_solution.blood_flow_volume?scope.row.dialysis_solution.blood_flow_volume:""}} </span>
  254. </template>
  255. </el-table-column>
  256. </el-table>
  257. <el-dialog
  258. title="统计类型设置"
  259. :visible.sync="dialogVisible"
  260. width="30%">
  261. <span>
  262. <el-checkbox v-model="device_number" label="透析机号"></el-checkbox>
  263. <el-checkbox v-model="device_type" label="设备型号"></el-checkbox>
  264. <el-checkbox v-model="name" label="姓名"></el-checkbox>
  265. <el-checkbox v-model="admission_number" label="住院(门诊)号"></el-checkbox>
  266. <el-checkbox v-model="dialysis_no" label="透析号"></el-checkbox>
  267. <el-checkbox v-model="weight_befor" label="透前体重"></el-checkbox>
  268. <el-checkbox v-model="dry_weight" label="干体重"></el-checkbox>
  269. <el-checkbox v-model="blood_pressure" label="透前血压"></el-checkbox>
  270. <el-checkbox v-model="ultrafiltration_volume" label="目标脱水量"></el-checkbox>
  271. <!-- <el-checkbox v-model="internal_fistula" label="血管通路"></el-checkbox> -->
  272. <el-checkbox v-model="blood_flow_volume" label="血流量"></el-checkbox>
  273. <el-checkbox v-model="anticoagulant" label="抗凝剂(首剂)(维持)(总量)"></el-checkbox>
  274. <el-checkbox v-model="sealing_fluid_dispose" label="封管液"></el-checkbox>
  275. <el-checkbox v-model="mode_id" label="透析模式"></el-checkbox>
  276. <el-checkbox v-model="dialysis_time" label="透析时长"></el-checkbox>
  277. <el-checkbox v-model="dialysis_dialyszers" label="透析器"></el-checkbox>
  278. <el-checkbox v-model="dialysis_irrigation" label="灌流器"></el-checkbox>
  279. <el-checkbox v-model="kalium" label="钾"></el-checkbox>
  280. <el-checkbox v-model="displace_liqui_value" label="置换液总量"></el-checkbox>
  281. <el-checkbox v-model="bicarbonate" label="碳酸氢根"></el-checkbox>
  282. <el-checkbox v-model="glucose" label="葡萄糖"></el-checkbox>
  283. <el-checkbox v-model="dialyzer_perfusion_apparatus" label="透析器/灌流器"></el-checkbox>
  284. <el-checkbox v-model="displace_liqui_part" label="置换液"></el-checkbox>
  285. <el-checkbox v-model="sodium" label="钠"></el-checkbox>
  286. <el-checkbox v-model="calcium" label="钙"></el-checkbox>
  287. <el-checkbox v-model="blood_access" label="血管通路"></el-checkbox>
  288. </span>
  289. <span slot="footer" class="dialog-footer">
  290. <el-button @click="dialogVisible = false">取 消</el-button>
  291. <el-button type="primary" @click="saveDialysisSetting">确 定</el-button>
  292. </span>
  293. </el-dialog>
  294. <el-dialog
  295. title="打印设置"
  296. :visible.sync="dialogVisibleOne"
  297. width="30%"
  298. >
  299. <span>
  300. <ul>
  301. <li>
  302. <el-checkbox v-model="prescription_status">透析处方状态</el-checkbox>
  303. </li>
  304. <li>
  305. <el-checkbox v-model="week">星期</el-checkbox>
  306. </li>
  307. <li>
  308. <el-checkbox v-model="name">姓名</el-checkbox>
  309. </li>
  310. <li>
  311. <el-checkbox v-model="zone_name">分区</el-checkbox>
  312. </li>
  313. <li>
  314. <el-checkbox v-model="classes">班次</el-checkbox>
  315. </li>
  316. <li>
  317. <el-checkbox v-model="number">机号</el-checkbox>
  318. </li>
  319. <li>
  320. <el-checkbox v-model="mode">透析模式</el-checkbox>
  321. </li>
  322. <li>
  323. <el-checkbox v-model="dialyzers">透析器</el-checkbox>
  324. </li>
  325. <li>
  326. <el-checkbox v-model="perfusion_apparatus">灌流器</el-checkbox>
  327. </li>
  328. <li>
  329. <el-checkbox v-model="anticoagulant">抗凝剂(商品名称)</el-checkbox>
  330. </li>
  331. <li>
  332. <el-checkbox v-model="anticoagulant_zongliang">总量</el-checkbox>
  333. </li>
  334. <li>
  335. <el-checkbox v-model="doctor_advice">长期医嘱</el-checkbox>
  336. </li>
  337. </ul>
  338. </span>
  339. <span slot="footer" class="dialog-footer">
  340. <el-button @click="dialogVisibleOne = false">取 消</el-button>
  341. <el-button type="primary" @click="saveRemindPrint">保 存</el-button>
  342. </span>
  343. </el-dialog>
  344. </div>
  345. <el-pagination
  346. @size-change="handleSizeChange"
  347. @current-change="handleCurrentChange"
  348. :page-sizes="[100, 200, 300,500,1000]"
  349. :page-size="100"
  350. background
  351. align="right"
  352. style="margin-top:20px;"
  353. layout="total, sizes, prev, pager, next, jumper"
  354. :total="total"
  355. >
  356. </el-pagination>
  357. <el-dialog
  358. title="透析参数统计表"
  359. :visible.sync="startdialogVisible"
  360. width="70%">
  361. <span>
  362. <div class="cell clearfix">
  363. <label class="title"> <span class="name">排班班次</span> : </label>
  364. <el-select v-model="schedule_type" placeholder="请选择" @change="changeScheduleType">
  365. <el-option
  366. v-for="item in schedulArr"
  367. :key="item.value"
  368. :label="item.label"
  369. :value="item.value">
  370. </el-option>
  371. </el-select>
  372. <label class="title"> <span class="name">病区选择</span> : </label>
  373. <el-select v-model="partion_type" placeholder="请选择" @change="changePartionType">
  374. <el-option
  375. v-for="item in partitionArr"
  376. :key="item.id"
  377. :label="item.name"
  378. :value="item.id">
  379. </el-option>
  380. </el-select>
  381. <el-button size="small" @click="toPrintOne" icon="el-icon-printer" type="primary">打印</el-button>
  382. <el-button size="small" @click="exportListOne" type="primary">导出</el-button>
  383. </div>
  384. <el-table
  385. :data="tableList"
  386. border
  387. :row-style="{ color: '#303133' }"
  388. :header-cell-style="{
  389. backgroundColor: 'rgb(245, 247, 250)',
  390. color: '#606266'
  391. }"
  392. >
  393. <el-table-column align="center" label="序号">
  394. <template slot-scope="scope">
  395. {{scope.$index+1}}
  396. </template>
  397. </el-table-column>
  398. <el-table-column align="center" label="名称">
  399. <template slot-scope="scope">
  400. {{scope.row.name}}
  401. </template>
  402. </el-table-column>
  403. <el-table-column align="center" label="规格">
  404. <template slot-scope="scope">
  405. {{scope.row.specification_name}}
  406. </template>
  407. </el-table-column>
  408. <el-table-column align="center" label="数量">
  409. <template slot-scope="scope">
  410. {{scope.row.count}}
  411. </template>
  412. </el-table-column>
  413. </el-table>
  414. </span>
  415. <span slot="footer" class="dialog-footer">
  416. <el-button @click="startdialogVisible = false">取 消</el-button>
  417. <el-button type="primary" @click="startdialogVisible = false">确 定</el-button>
  418. </span>
  419. </el-dialog>
  420. </div>
  421. </template>
  422. <script>
  423. import { GetAllZone,saveDialysisSetting,getDialysisSetting,getDialysisParameter,getDialysisParameterGoodList } from '@/api/dialysis'
  424. import { uParseTime } from "@/utils/tools";
  425. import {getRemindPrintList,saveRemindPrint} from '@/api/schedule'
  426. import { getDataConfig } from '@/utils/data'
  427. import store from "@/store";
  428. const moment = require('moment')
  429. export default {
  430. components: {
  431. },
  432. data() {
  433. return {
  434. query:{
  435. total:"",
  436. schedule_date:"",
  437. schedule_type:0,
  438. partition_id:0,
  439. page:1,
  440. limit:100,
  441. keywords:"",
  442. good_type:0,
  443. ids:"",
  444. },
  445. schedulType: 0,
  446. schedulArr: [
  447. { value: 0, label: '全部' },
  448. { value: 1, label: '上午' },
  449. { value: 2, label: '下午' },
  450. { value: 3, label: '晚上' }
  451. ],
  452. selected_date: "",
  453. partitionArr: [],
  454. goodList:[
  455. { id: 0, name: '全部' },
  456. { id: 1, name: '已出库' },
  457. { id: 2, name: '未出库' },
  458. ],
  459. partitionType: 0,
  460. goodType:0,
  461. tableData: [{
  462. date: '2016-05-03',
  463. name: '王小虎',
  464. address: '上海市普陀区金沙江路 1518 弄'
  465. }
  466. ],
  467. search_input: '',
  468. searchAction: '',
  469. allGoodInfo:[],
  470. list:[],
  471. new_list:[],
  472. good_types: [],
  473. arrKey:[],
  474. arrList:[],
  475. total:0,
  476. dialogVisible:false,
  477. predialysisConditionOptions:[],
  478. predialysis_condition:false,
  479. device_number:false,
  480. device_type:false,
  481. name:false,
  482. admission_number:false,
  483. dialysis_no:false,
  484. weight_befor:false,
  485. dry_weight:false,
  486. blood_pressure:false,
  487. ultrafiltration_volume:false,
  488. internal_fistula:false,
  489. blood_flow_volume:false,
  490. anticoagulant:false,
  491. sealing_fluid_dispose:false,
  492. mode_id:false,
  493. dialysis_time:false,
  494. dialysis_dialyszers:false,
  495. dialysis_irrigation:false,
  496. gaijiliang:false,
  497. kalium:false,
  498. displace_liqui_value:false,
  499. bicarbonate:false,
  500. glucose:false,
  501. dialyzer_perfusion_apparatus:false,
  502. sodium:false,
  503. calcium:false,
  504. blood_access:false,
  505. displace_liqui_part:false,
  506. blood_access_option:[],
  507. startdialogVisible:false,
  508. schedule_type:0,
  509. partion_type:0,
  510. tableList:[],
  511. dialysisSett:{},
  512. partitionArrOne:[],
  513. dialogVisibleOne: false,
  514. prescription_status: false,
  515. week: false,
  516. name: false,
  517. zone_name: false,
  518. classes: false,
  519. number: false,
  520. mode: false,
  521. dialyzers: false,
  522. perfusion_apparatus: false,
  523. anticoagulant: false,
  524. anticoagulant_zongliang: false,
  525. doctor_advice: false,
  526. displace_liqui_part_option:[],
  527. ids:"",
  528. form: {
  529. id: 0,
  530. prescription_status: '',
  531. week: '',
  532. name: '',
  533. zone: '',
  534. classes: '',
  535. number: '',
  536. mode: '',
  537. dialyzers: '',
  538. perfusion_apparatus: '',
  539. anticoagulant: '',
  540. anticoagulant_zongliang: '',
  541. doctor_advice: ''
  542. },
  543. pickerOptions:{ //禁用当前日期之前的日期
  544. disabledDate(v) {
  545. //Date.now()是javascript中的内置函数,它返回自1970年1月1日00:00:00 UTC以来经过的毫秒数。
  546. return v.getTime() < new Date().getTime() - 86400000;
  547. },
  548. },
  549. partition_id:0,
  550. zoneList:[],
  551. org_id:0,
  552. }
  553. },
  554. open(){
  555. },
  556. created() {
  557. this.org_id = this.$store.getters.xt_user.org.id
  558. this.blood_access_option = getDataConfig('hemodialysis', 'vascular_access_desc')
  559. this.displace_liqui_part_option = this.$store.getters.displace_liqui
  560. var filedList = store.getters.xt_user.fileds
  561. var newArr = [
  562. {value:999999,filed_name_cn:"姓名"},
  563. {value:888888,filed_name_cn:"透析号"},
  564. {value:777777,filed_name_cn:"透析机号"}
  565. ]
  566. for (let i = 0; i < filedList.length; i++) {
  567. if (filedList[i].module == 1 && filedList[i].is_show == 1) {
  568. newArr.push(filedList[i])
  569. }
  570. if (filedList[i].module == 3 && filedList[i].is_show == 1 &&(filedList[i].filed_name_cn == "干体重" || filedList[i].filed_name_cn == "透前称重" || filedList[i].filed_name_cn == "收缩压" || filedList[i].filed_name_cn == "舒张压" )) {
  571. newArr.push(filedList[i])
  572. }
  573. this.predialysisConditionOptions = newArr
  574. }
  575. let date = uParseTime(new Date(), "{y}-{m}-{d}")
  576. var newDate = new Date();
  577. var y = newDate.getFullYear();
  578. var m = newDate.getMonth() + 1;
  579. var d = newDate.getDate();
  580. var schedule_date =
  581. y + "-" + (m < 10 ? "0" + m : m) + "-" + (d < 10 ? "0" + d : d);
  582. this.selected_date = date
  583. this.query.schedule_date = schedule_date
  584. this.query.schedule_type = 0
  585. this.query.partition_id = 0
  586. this.query.page = 1
  587. this.getAllZone()
  588. },
  589. methods: {
  590. getlist(){
  591. var str = ""
  592. if(this.partition_id==0){
  593. str = this.zoneList.join(",")
  594. }
  595. if(this.partition_id!=0){
  596. str = this.partition_id.join(",")
  597. }
  598. this.query.partition_id = ""
  599. this.query.partition_id = str
  600. getDialysisParameter(this.query).then(response=>{
  601. if(response.data.state == 1){
  602. var list = response.data.data.list
  603. if(list!=null &&list.length>0){
  604. for(let i=0;i<list.length;i++){
  605. list[i].sort = 0
  606. list[i].sort = list[i].device_number.sort
  607. }
  608. }
  609. list.sort(this.compare('sort'))
  610. for(let i=0;i<list.length;i++){
  611. list[i].advice_spc =""
  612. for(let j=0;j<list[i].advice.length;j++){
  613. if((list[i].advice[j].advice_name).indexOf("促红")!=-1){
  614. list[i].advice_spc+= (list[i].advice[j].single_dose + "iu"+"/"+ list[i].advice[j].prescribing_number_unit)+","
  615. }
  616. }
  617. }
  618. console.log("listwowowowowowo日本",this.list)
  619. this.list = list
  620. this.total = response.data.data.total
  621. this.dialysisSett = response.data.data.dialysisSett
  622. // console.log("设置",this.dialysisSett)
  623. }
  624. })
  625. },
  626. compare(p) { //这是比较函数
  627. return function (m, n) {
  628. var a = m[p];
  629. var b = n[p];
  630. return a - b; //升序
  631. }
  632. },
  633. handleSizeChange(val) {
  634. this.query.limit = val;
  635. this.getlist();
  636. },
  637. handleCurrentChange(val) {
  638. this.query.page = val;
  639. this.getlist();
  640. },
  641. calCount(query_warehouseout_info) {
  642. let total = 0
  643. var array = []
  644. array = query_warehouseout_info
  645. for (let i = 0; i < array.length; i++) {
  646. total = total + array[i].count
  647. }
  648. return total
  649. },
  650. getGoodUserInfo(good_type_id,good_user,last_good_user) {
  651. var arrlist =[]
  652. if (good_user != null && good_user.length > 0) {
  653. let desc = ""
  654. for (let b = 0; b < good_user.length; b++){
  655. if(good_type_id == good_user[b].good_type_id)
  656. desc = desc + "\n" + good_user[b].info.specification_name +"*" +good_user[b].count
  657. }
  658. arrlist.push(desc)
  659. return desc
  660. }
  661. return ""
  662. // else if (good_user != null && good_user.length <= 0) {
  663. // if (last_good_user != null && last_good_user.length > 0) {
  664. // let desc = ""
  665. // for (let b = 0; b < last_good_user.length; b++){
  666. // if(good_type_id == last_good_user[b].good_type_id)
  667. // desc = desc+ "\n" + last_good_user[b].info.specification_name +"*" +last_good_user[b].count
  668. // }
  669. // console.log(desc)
  670. //
  671. // return desc
  672. //
  673. // }
  674. // return ""
  675. // }
  676. },
  677. selectSchedulType(scheduleType) {
  678. this.schedulType = scheduleType
  679. this.query.schedule_type = scheduleType
  680. this.query.page = 1
  681. this.getlist()
  682. },
  683. selectPartitionType(partitionType) {
  684. // this.partitionType = partitionType
  685. this.query.partition_id = partitionType
  686. this.query.page = 1
  687. this.getlist()
  688. },
  689. selectGoodType(goodType){
  690. this.goodType = goodType
  691. this.query.good_type = goodType
  692. this.getlist()
  693. },
  694. getAllZone: function() {
  695. GetAllZone().then(response => {
  696. if (response.data.state == 0) {
  697. this.$message.error(response.data.msg)
  698. return false
  699. } else {
  700. for(let i=0;i<response.data.data.zone.length;i++){
  701. this.partitionArrOne.push(response.data.data.zone[i])
  702. this.zoneList.push(response.data.data.zone[i].id)
  703. }
  704. this.partitionArr = response.data.data.zone
  705. console.log("全部中",this.partitionArrOne)
  706. this.partitionArr.unshift({ id: 0, name: '全部' })
  707. this.getlist()
  708. }
  709. })
  710. },
  711. statistics() {
  712. this.tableList = []
  713. var params = {
  714. schedule_type:this.schedule_type,
  715. partion_type:this.partitionType,
  716. selected_date:this.query.schedule_date,
  717. }
  718. var timeStamp = Date.parse(this.query.schedule_date)
  719. var arrDateOne = (timeStamp/1000) -28800
  720. console.log("时间搓",arrDateOne)
  721. let dateone = moment().format('YYYY-MM-DD')//获取标准时间 //Tue Aug 16 2022 15:06:24 GMT+0800 (中国标准时间)
  722. //方式一
  723. let timeStampOne = Date.parse(dateone)
  724. var arrDateTwo = (timeStampOne/1000)-28800
  725. console.log("时间搓2222",arrDateTwo)
  726. getDialysisParameterGoodList(params).then(response=>{
  727. if(response.data.state == 1){
  728. this.startdialogVisible = true
  729. var list = response.data.data.list
  730. var anticoagulantList = []
  731. if(arrDateOne > arrDateTwo){
  732. console.log("简单阿凡达2332322332")
  733. if(list!=null && list.length>0){
  734. for(let i=0;i<list.length;i++){
  735. list[i].dialysis_dialyszers_arr = []
  736. list[i].dialyzer_perfusion_apparatus_arr = []
  737. list[i].dialysis_irrigation_arr = []
  738. list[i].dialysis_strainer_arr =[]
  739. if(list[i].dialysis_solution.dialysis_dialyszers!=""){
  740. list[i].dialysis_dialyszers_arr = list[i].dialysis_solution.dialysis_dialyszers.split(",")
  741. }
  742. if(list[i].dialysis_solution.dialyzer_perfusion_apparatus!=""){
  743. list[i].dialyzer_perfusion_apparatus_arr = list[i].dialysis_solution.dialyzer_perfusion_apparatus.split(",")
  744. }
  745. if(list[i].dialysis_solution.dialysis_irrigation!=""){
  746. list[i].dialysis_irrigation_arr = list[i].dialysis_solution.dialysis_irrigation.split(",")
  747. }
  748. if(list[i].dialysis_solution.dialysis_strainer!=""){
  749. list[i].dialysis_strainer_arr = list[i].dialysis_solution.dialysis_strainer.split(",")
  750. }
  751. if(list[i].dialysis_solution.anticoagulant == 1){
  752. anticoagulantList.push(list[i].dialysis_solution)
  753. }
  754. if(list[i].dialysis_solution.anticoagulant == 2){
  755. anticoagulantList.push(list[i].dialysis_solution)
  756. }
  757. if(list[i].dialysis_solution.anticoagulant == 3){
  758. anticoagulantList.push(list[i].dialysis_solution)
  759. }
  760. if(list[i].dialysis_solution.anticoagulant == 4){
  761. anticoagulantList.push(list[i].dialysis_solution)
  762. }
  763. if(list[i].dialysis_solution.anticoagulant == 5){
  764. anticoagulantList.push(list[i].dialysis_solution)
  765. }
  766. if(list[i].dialysis_solution.anticoagulant == 6){
  767. anticoagulantList.push(list[i].dialysis_solution)
  768. }
  769. if(list[i].dialysis_solution.anticoagulant == 7){
  770. anticoagulantList.push(list[i].dialysis_solution)
  771. }
  772. if(list[i].dialysis_solution.anticoagulant == 8){
  773. anticoagulantList.push(list[i].dialysis_solution)
  774. }
  775. if(list[i].dialysis_solution.anticoagulant == 9){
  776. anticoagulantList.push(list[i].dialysis_solution)
  777. }
  778. if(list[i].dialysis_solution.anticoagulant == 10){
  779. anticoagulantList.push(list[i].dialysis_solution)
  780. }
  781. if(list[i].dialysis_solution.anticoagulant == 11){
  782. anticoagulantList.push(list[i].dialysis_solution)
  783. }
  784. if(list[i].dialysis_solution.anticoagulant == 12){
  785. anticoagulantList.push(list[i].dialysis_solution)
  786. }
  787. if(list[i].dialysis_solution.anticoagulant == 13){
  788. anticoagulantList.push(list[i].dialysis_solution)
  789. }
  790. }
  791. }
  792. }
  793. if(arrDateOne <= arrDateTwo){
  794. console.log("简哈哈哈发232我")
  795. if(list!=null && list.length>0){
  796. for(let i=0;i<list.length;i++){
  797. list[i].dialysis_dialyszers_arr = []
  798. list[i].dialyzer_perfusion_apparatus_arr = []
  799. list[i].dialysis_irrigation_arr = []
  800. list[i].dialysis_strainer_arr =[]
  801. if(list[i].dialysis_prescription.dialysis_dialyszers!=""){
  802. list[i].dialysis_dialyszers_arr = list[i].dialysis_prescription.dialysis_dialyszers.split(",")
  803. }
  804. if(list[i].dialysis_prescription.dialyzer_perfusion_apparatus!=""){
  805. list[i].dialyzer_perfusion_apparatus_arr = list[i].dialysis_prescription.dialyzer_perfusion_apparatus.split(",")
  806. }
  807. if(list[i].dialysis_prescription.dialysis_irrigation!=""){
  808. list[i].dialysis_irrigation_arr = list[i].dialysis_prescription.dialysis_irrigation.split(",")
  809. }
  810. console.log("list[i].dialysis_prescription.dialysis_strainer",list[i].dialysis_prescription.dialysis_strainer)
  811. if(list[i].dialysis_prescription.dialysis_strainer!=""){
  812. list[i].dialysis_strainer_arr = list[i].dialysis_prescription.dialysis_strainer.split(",")
  813. }
  814. if(list[i].dialysis_prescription.anticoagulant == 1){
  815. anticoagulantList.push(list[i].dialysis_prescription)
  816. }
  817. if(list[i].dialysis_prescription.anticoagulant == 2){
  818. anticoagulantList.push(list[i].dialysis_prescription)
  819. }
  820. if(list[i].dialysis_prescription.anticoagulant == 3){
  821. anticoagulantList.push(list[i].dialysis_prescription)
  822. }
  823. if(list[i].dialysis_prescription.anticoagulant == 4){
  824. anticoagulantList.push(list[i].dialysis_prescription)
  825. }
  826. if(list[i].dialysis_prescription.anticoagulant == 5){
  827. anticoagulantList.push(list[i].dialysis_prescription)
  828. }
  829. if(list[i].dialysis_prescription.anticoagulant == 6){
  830. anticoagulantList.push(list[i].dialysis_prescription)
  831. }
  832. if(list[i].dialysis_prescription.anticoagulant == 7){
  833. anticoagulantList.push(list[i].dialysis_prescription)
  834. }
  835. if(list[i].dialysis_prescription.anticoagulant == 8){
  836. anticoagulantList.push(list[i].dialysis_prescription)
  837. }
  838. if(list[i].dialysis_prescription.anticoagulant == 9){
  839. anticoagulantList.push(list[i].dialysis_prescription)
  840. }
  841. if(list[i].dialysis_prescription.anticoagulant == 10){
  842. anticoagulantList.push(list[i].dialysis_prescription)
  843. }
  844. if(list[i].dialysis_prescription.anticoagulant == 11){
  845. anticoagulantList.push(list[i].dialysis_prescription)
  846. }
  847. if(list[i].dialysis_prescription.anticoagulant == 12){
  848. anticoagulantList.push(list[i].dialysis_prescription)
  849. }
  850. if(list[i].dialysis_prescription.anticoagulant == 13){
  851. anticoagulantList.push(list[i].dialysis_prescription)
  852. }
  853. }
  854. }
  855. }
  856. console.log("listoope2233232",list)
  857. // var NewAllList=[]
  858. // for(let i=0;i<list.length;i++){
  859. // if(list[i].dialysis_machine_name =="OCI150"){
  860. // NewAllList.push(list[i])
  861. // }
  862. // }
  863. // console.log("NewAllList",NewAllList)
  864. this.tableList = []
  865. if(anticoagulantList!=null && anticoagulantList.length > 0){
  866. let dataInfoOne = {}
  867. anticoagulantList.forEach((item, index) => {
  868. let { anticoagulant } = item
  869. if (!dataInfoOne[anticoagulant]) {
  870. dataInfoOne[anticoagulant] = {
  871. anticoagulant:item.anticoagulant,
  872. name: "抗凝剂",
  873. specification_name:this.getAnticoagualnt(item.anticoagulant),
  874. count:0,
  875. child:[]
  876. }
  877. }
  878. })
  879. let hisarr = Object.values(dataInfoOne)
  880. if(hisarr!=null && hisarr.length > 0){
  881. for(let i=0;i<anticoagulantList.length;i++){
  882. for(let j=0;j<hisarr.length;j++){
  883. if(anticoagulantList[i].anticoagulant == hisarr[j].anticoagulant){
  884. hisarr[j].child.push(anticoagulantList[i])
  885. }
  886. }
  887. }
  888. }
  889. for(let i=0;i<hisarr.length;i++){
  890. hisarr[i].count = hisarr[i].child.length
  891. this.tableList.push(hisarr[i])
  892. }
  893. console.log("hisarr",hisarr)
  894. }
  895. var dialysisDialyszersArr = []
  896. var dialyzerPerfusionApparaArr = []
  897. var dialysisIrrigationArr = []
  898. var dialysisStrainerArr = []
  899. for(let i=0;i<list.length;i++){
  900. for(let j=0;j<list[i].dialysis_dialyszers_arr.length;j++){
  901. dialysisDialyszersArr.push(list[i].dialysis_dialyszers_arr[j])
  902. }
  903. for(let z=0;z<list[i].dialyzer_perfusion_apparatus_arr.length;z++){
  904. dialyzerPerfusionApparaArr.push(list[i].dialyzer_perfusion_apparatus_arr[z])
  905. }
  906. for(let y=0;y<list[i].dialysis_irrigation_arr.length;y++){
  907. dialysisIrrigationArr.push(list[i].dialysis_irrigation_arr[y])
  908. }
  909. for(let p=0;p<list[i].dialysis_strainer_arr.length;p++){
  910. dialysisStrainerArr.push(list[i].dialysis_strainer_arr[p])
  911. }
  912. }
  913. console.log("dialysisDialyszersArrooo2oo2o2o2o2",dialysisStrainerArr)
  914. let obj = {}
  915. let objOne = {}
  916. let objTwo = {}
  917. let objThree = {}
  918. for(let i = 0 ; i < dialysisDialyszersArr.length; i++){
  919. if(obj[dialysisDialyszersArr[i]]){
  920. obj[dialysisDialyszersArr[i]] +=1
  921. }else{
  922. obj[dialysisDialyszersArr[i]] = 1
  923. }
  924. }
  925. let Arr = [];
  926. for (let i in obj) {
  927. let a = {};
  928. a[i] = obj[i];
  929. a.name = "透析器"
  930. a.count = obj[i]
  931. a.specification_name = i
  932. Arr.push(a);
  933. }
  934. for(let i=0;i<dialyzerPerfusionApparaArr.length;i++){
  935. if(objOne[dialyzerPerfusionApparaArr[i]]){
  936. objOne[dialyzerPerfusionApparaArr[i]] +=1
  937. }else{
  938. objOne[dialyzerPerfusionApparaArr[i]] = 1
  939. }
  940. }
  941. for (let i in objOne) {
  942. let a = {};
  943. a[i] = objOne[i];
  944. a.name = "透析器/灌流器"
  945. a.count = objOne[i]
  946. a.specification_name = i
  947. Arr.push(a);
  948. }
  949. for(let i=0;i<dialysisIrrigationArr.length;i++){
  950. if(objTwo[dialysisIrrigationArr[i]]){
  951. objTwo[dialysisIrrigationArr[i]] +=1
  952. }else{
  953. objTwo[dialysisIrrigationArr[i]] = 1
  954. }
  955. }
  956. for (let i in objTwo) {
  957. let a = {};
  958. a[i] = objTwo[i];
  959. a.name = "灌流器"
  960. a.count = objTwo[i]
  961. a.specification_name = i
  962. Arr.push(a);
  963. }
  964. console.log("newa",Arr)
  965. for (let i in objThree) {
  966. let a = {};
  967. a[i] = objThree[i];
  968. a.name = "滤过器"
  969. a.count = objThree[i]
  970. a.specification_name = i
  971. Arr.push(a);
  972. }
  973. for(let i=0;i<dialysisStrainerArr.length;i++){
  974. if(objThree[dialysisStrainerArr[i]]){
  975. objThree[dialysisStrainerArr[i]] +=1
  976. }else{
  977. objThree[dialysisStrainerArr[i]] = 1
  978. }
  979. }
  980. for (let i in objThree) {
  981. let a = {};
  982. a[i] = objThree[i];
  983. a.name = "滤过器"
  984. a.count = objThree[i]
  985. a.specification_name = i
  986. Arr.push(a);
  987. }
  988. console.log("Arrowowwwwwwwwwww",Arr)
  989. if(Arr.length >0){
  990. for(let i=0;i<Arr.length;i++){
  991. this.tableList.push(Arr[i])
  992. }
  993. }
  994. }
  995. })
  996. },
  997. getModeName(id){
  998. var mode_name =""
  999. if(id == 1){
  1000. mode_name = "HD"
  1001. }
  1002. if(id == 2){
  1003. mode_name = "HDF"
  1004. }
  1005. if(id == 3){
  1006. mode_name = "HD+HP"
  1007. }
  1008. if(id == 4){
  1009. mode_name = "HP"
  1010. }
  1011. if(id == 5){
  1012. mode_name = "HF"
  1013. }
  1014. if(id == 6){
  1015. mode_name = "SCUF"
  1016. }
  1017. if(id == 7){
  1018. mode_name = "IUF"
  1019. }
  1020. if(id == 8){
  1021. mode_name = "HFHD"
  1022. }
  1023. if(id == 9){
  1024. mode_name = "HFHD+HP"
  1025. }
  1026. if(id == 10){
  1027. mode_name = "PHF"
  1028. }
  1029. if(id ==11){
  1030. mode_name ="HFR"
  1031. }
  1032. if(id ==12){
  1033. mode_name ="HDF+HP"
  1034. }
  1035. if(id ==25){
  1036. mode_name ="HD高通"
  1037. }
  1038. if(id ==31){
  1039. mode_name ="HPD"
  1040. }
  1041. if(id ==32){
  1042. mode_name ="HDP"
  1043. }
  1044. if(id ==33){
  1045. mode_name ="HFD"
  1046. }
  1047. if(id ==34){
  1048. mode_name ="HDF100"
  1049. }
  1050. if(id ==35){
  1051. mode_name ="HDF600"
  1052. }
  1053. if(id ==36){
  1054. mode_name ="HDF800"
  1055. }
  1056. if(id ==37){
  1057. mode_name ="HDF1000"
  1058. }
  1059. return mode_name
  1060. },
  1061. getAnticoagulantName(id){
  1062. var name = ""
  1063. if(id ==1){
  1064. name ="无肝素"
  1065. }
  1066. if(id == 2){
  1067. name ="普通肝素"
  1068. }
  1069. if(id ==3){
  1070. name ="低分子肝素"
  1071. }
  1072. if(id == 6){
  1073. name ="低分子肝素钙"
  1074. }
  1075. if(id == 7){
  1076. name ="低分子肝素钠"
  1077. }
  1078. return name
  1079. },
  1080. handleScheduleDateChange(val) {
  1081. this.query.schedule_date = val
  1082. this.query.page = 1
  1083. this.getlist()
  1084. },
  1085. search() {
  1086. this.query.page = 1
  1087. this.getlist()
  1088. },
  1089. exportList(){
  1090. import('@/vendor/Export2Excel').then(excel => {
  1091. if(this.list!=null && this.list.length > 0){
  1092. console.log("hhhahhah",this.list)
  1093. for(let i=0;i<this.list.length;i++){
  1094. this.list[i].index = i+1
  1095. this.list[i].mode_name = this.getModeName(this.list[i].mode_id)
  1096. this.list[i].device_number_one = this.list[i].device_number.zone.name + this.list[i].device_number.number
  1097. this.list[i].patient_name = this.list[i].patient.name
  1098. this.list[i].dialysis_no = this.list[i].patient.dialysis_no
  1099. this.list[i].admission_number = this.list[i].xt_receive_treatment_asses.admission_number
  1100. this.list[i].weight_before = this.list[i].assessment_befor_dislysis.weight_before?this.list[i].assessment_befor_dislysis.weight_before:"",
  1101. this.list[i].dry_weight = this.list[i].assessment_befor_dislysis.dry_weight?this.list[i].assessment_befor_dislysis.dry_weight:""
  1102. this.list[i].blood_pressure = this.list[i].assessment_befor_dislysis.systolic_blood_pressure?this.list[i].assessment_befor_dislysis.systolic_blood_pressure:"" + "/" + this.list[i].assessment_befor_dislysis.diastolic_blood_pressure? this.list[i].assessment_befor_dislysis.diastolic_blood_pressure:""
  1103. if(this.list[i].blood_pressure == 0){
  1104. this.list[i].blood_pressure = ""
  1105. }
  1106. this.list[i].ultrafiltration_volume = this.list[i].dialysis_solution.target_ultrafiltration?this.list[i].dialysis_solution.target_ultrafiltration:""
  1107. this.list[i].anticoagulant_one=""
  1108. this.list[i].anticoagulant_one = (this.getAnticoagualnt(this.list[i].dialysis_solution.anticoagulant)) + "(" + (this.list[i].dialysis_solution.anticoagulant_shouji) +")" + "("+(this.list[i].dialysis_solution.anticoagulant_weichi) +")"+"("+(this.list[i].dialysis_solution.anticoagulant_zongliang)+")"
  1109. this.list[i].dialysis_time = this.list[i].dialysis_solution.dialysis_duration_hour?this.list[i].dialysis_solution.dialysis_duration_hour:"" + "时"+ this.list[i].dialysis_solution.dialysis_duration_minute?this.list[i].dialysis_solution.dialysis_duration_minute:"" + "分"
  1110. if(this.list[i].dialysis_time == 0){
  1111. this.list[i].dialysis_time = ""
  1112. }
  1113. this.list[i].device_type = this.list[i].assessment_befor_dislysis.machine_type
  1114. this.list[i].dialyzer_perfusion_apparatus = this.list[i].dialysis_solution.dialyzer_perfusion_apparatus
  1115. this.list[i].dialysis_dialyszers = this.list[i].dialysis_solution.dialysis_dialyszers
  1116. this.list[i].dialysis_irrigation = this.list[i].dialysis_solution.dialysis_irrigation
  1117. this.list[i].displace_liqui_part = this.getDisplaceLiquiPart(this.list[i].dialysis_solution.displace_liqui_part)
  1118. this.list[i].displace_liqui_value = this.list[i].dialysis_solution.displace_liqui_value? this.list[i].dialysis_solution.displace_liqui_value:""
  1119. this.list[i].kalium = this.list[i].dialysis_solution.kalium?this.list[i].dialysis_solution.kalium:""
  1120. this.list[i].sodium = this.list[i].dialysis_solution.sodium?this.list[i].dialysis_solution.sodium:""
  1121. this.list[i].calcium = this.list[i].dialysis_solution.calcium?this.list[i].dialysis_solution.calcium:""
  1122. this.list[i].blood_access = this.getBloodAccessOption(this.list[i].dialysis_solution.blood_access)
  1123. this.list[i].sealing_fluid_dispose =this.list[i].xt_assesment_after_dislysis.sealing_fluid_dispose
  1124. this.list[i].glucose = this.list[i].dialysis_solution.glucose?this.list[i].dialysis_solution.glucose:""
  1125. this.list[i].blood_flow_volume = this.list[i].dialysis_solution.blood_flow_volume?this.list[i].dialysis_solution.blood_flow_volume:""
  1126. this.list[i].bicarbonate = this.list[i].dialysis_solution.bicarbonate? this.list[i].dialysis_solution.bicarbonate:""
  1127. this.list[i].count =0
  1128. if(this.getBloodAccessOption(this.list[i].dialysis_solution.blood_access).indexOf("导管")!=-1){
  1129. this.list[i].count =1
  1130. }
  1131. }
  1132. }
  1133. console.log("list23323232322323wode",this.list)
  1134. var arr= []
  1135. var arrTwo = []
  1136. arr.push('序号')
  1137. arrTwo.push("index")
  1138. if(this.dialysisSett.device_number == 1){
  1139. arr.push("透析机号")
  1140. arrTwo.push("device_number_one")
  1141. }
  1142. if(this.dialysisSett.name == 1){
  1143. arr.push("姓名")
  1144. arrTwo.push("patient_name")
  1145. }
  1146. arr.push("透析模式")
  1147. arrTwo.push("mode_name")
  1148. if(this.dialysisSett.dialysis_no == 1){
  1149. arr.push("透析号")
  1150. arrTwo.push("dialysis_no")
  1151. }
  1152. if(this.dialysisSett.admission_number == 1){
  1153. arr.push("住院(门诊)号")
  1154. arrTwo.push("admission_number")
  1155. }
  1156. if(this.dialysisSett.weight_befor == 1){
  1157. arr.push("透前体重")
  1158. arrTwo.push("weight_before")
  1159. }
  1160. if(this.dialysisSett.dry_weight == 1){
  1161. arr.push("干体重")
  1162. arrTwo.push("dry_weight")
  1163. }
  1164. if(this.dialysisSett.blood_pressure == 1){
  1165. arr.push("透前血压")
  1166. arrTwo.push("blood_pressure")
  1167. }
  1168. if(this.dialysisSett.ultrafiltration_volume == 1){
  1169. arr.push("目标脱水量")
  1170. arrTwo.push("ultrafiltration_volume")
  1171. }
  1172. if(this.dialysisSett.anticoagulant == 1){
  1173. arr.push("抗凝剂(首剂)(维持)(总量)")
  1174. arrTwo.push("anticoagulant_one")
  1175. }
  1176. if(this.dialysisSett.dialysis_time == 1){
  1177. arr.push("透析时长")
  1178. arrTwo.push("dialysis_time")
  1179. }
  1180. if(this.dialysisSett.device_type == 1){
  1181. arr.push("设备型号")
  1182. arrTwo.push("device_type")
  1183. }
  1184. if(this.dialysisSett.dialyzer_perfusion_apparatus == 1){
  1185. arr.push("透析器/灌流器")
  1186. arrTwo.push("dialyzer_perfusion_apparatus")
  1187. }
  1188. if(this.dialysisSett.dialysis_dialyszers == 1){
  1189. arr.push("透析器")
  1190. arrTwo.push("dialysis_dialyszers")
  1191. }
  1192. if(this.dialysisSett.dialysis_irrigation == 1){
  1193. arr.push("灌流器")
  1194. arrTwo.push("dialysis_irrigation")
  1195. }
  1196. if(this.dialysisSett.displace_liqui_part == 1){
  1197. arr.push("置换液")
  1198. arrTwo.push("displace_liqui_part")
  1199. }
  1200. if(this.dialysisSett.displace_liqui_value == 1){
  1201. arr.push("置换液总量")
  1202. arrTwo.push("displace_liqui_value")
  1203. }
  1204. if(this.dialysisSett.kalium == 1){
  1205. arr.push("钾")
  1206. arrTwo.push("kalium")
  1207. }
  1208. if(this.dialysisSett.sodium == 1){
  1209. arr.push("钠")
  1210. arrTwo.push("sodium")
  1211. }
  1212. if(this.dialysisSett.calcium == 1){
  1213. arr.push("钙")
  1214. arrTwo.push("calcium")
  1215. }
  1216. if(this.dialysisSett.bicarbonate == 1){
  1217. arr.push("碳酸氢盐")
  1218. arrTwo.push("bicarbonate")
  1219. }
  1220. if(this.dialysisSett.blood_access == 1){
  1221. arr.push("血管通路")
  1222. arrTwo.push("blood_access")
  1223. }
  1224. if(this.dialysisSett.sealing_fluid_dispose == 1){
  1225. arr.push("封管液")
  1226. arrTwo.push("sealing_fluid_dispose")
  1227. }
  1228. if(this.dialysisSett.glucose == 1){
  1229. arr.push("葡萄糖")
  1230. arrTwo.push("glucose")
  1231. }
  1232. if(this.dialysisSett.blood_flow_volume == 1){
  1233. arr.push("血流量")
  1234. arrTwo.push("blood_flow_volume")
  1235. }
  1236. arr.push("封管液")
  1237. arrTwo.push("count")
  1238. arr.push("促红")
  1239. arrTwo.push("advice_spc")
  1240. const tHeader = arr
  1241. const filterVal = arrTwo
  1242. const data = this.formatJson(filterVal, this.list)
  1243. console.log("DATWOWOWOWO",data)
  1244. excel.export_json_to_excel({
  1245. header: tHeader,
  1246. data,
  1247. filename: '透析参数查询'
  1248. })
  1249. this.downloadLoading = false
  1250. })
  1251. },
  1252. formatJson(filterVal, jsonData) {
  1253. return jsonData.map(v => filterVal.map(j => v[j]));
  1254. },
  1255. exportListOne(){
  1256. import('@/vendor/Export2Excel').then(excel => {
  1257. if(this.tableList!=null && this.tableList.length > 0){
  1258. for(let i=0;i<this.tableList.length;i++){
  1259. this.tableList[i].index = i+1
  1260. }
  1261. }
  1262. const tHeader = ['序号','名称','规格','数量']
  1263. const filterVal = ['index', 'name','specification_name','count']
  1264. const data = this.formatJson(filterVal, this.tableList)
  1265. excel.export_json_to_excel({
  1266. header: tHeader,
  1267. data,
  1268. filename: '透析参数统计'
  1269. })
  1270. this.downloadLoading = false
  1271. })
  1272. },
  1273. toDialog(){
  1274. getDialysisSetting().then(response=>{
  1275. if(response.data.state == 1){
  1276. this.dialogVisible = true
  1277. var dialysisSett = response.data.data.dialysisSett
  1278. if(dialysisSett!=undefined){
  1279. if(dialysisSett.device_number == 1){
  1280. this.device_number = true
  1281. }else{
  1282. this.device_number = false
  1283. }
  1284. if(dialysisSett.device_type == 1){
  1285. this.device_type = true
  1286. }else{
  1287. this.device_type = false
  1288. }
  1289. if(dialysisSett.name == 1){
  1290. this.name = true
  1291. }else{
  1292. this.name = false
  1293. }
  1294. if(dialysisSett.admission_number == 1){
  1295. this.admission_number = true
  1296. }else{
  1297. this.admission_number = false
  1298. }
  1299. if(dialysisSett.dialysis_no == 1){
  1300. this.dialysis_no = true
  1301. }else{
  1302. this.dialysis_no = false
  1303. }
  1304. if(dialysisSett.weight_befor == 1){
  1305. this.weight_befor = true
  1306. }else{
  1307. this.weight_befor = false
  1308. }
  1309. if(dialysisSett.dry_weight == 1){
  1310. this.dry_weight = true
  1311. }else{
  1312. this.dry_weight = false
  1313. }
  1314. if(dialysisSett.blood_pressure == 1){
  1315. this.blood_pressure = true
  1316. }else{
  1317. this.blood_pressure = false
  1318. }
  1319. if(dialysisSett.ultrafiltration_volume == 1){
  1320. this.ultrafiltration_volume = true
  1321. }else{
  1322. this.ultrafiltration_volume = false
  1323. }
  1324. if(dialysisSett.internal_fistula == 1){
  1325. this.internal_fistula = true
  1326. }else{
  1327. this.internal_fistula = false
  1328. }
  1329. if(dialysisSett.blood_flow_volume == 1){
  1330. this.blood_flow_volume = true
  1331. }else{
  1332. this.blood_flow_volume = false
  1333. }
  1334. if(dialysisSett.anticoagulant == 1){
  1335. this.anticoagulant = true
  1336. }else{
  1337. this.anticoagulant = false
  1338. }
  1339. if(dialysisSett.sealing_fluid_dispose == 1){
  1340. this.sealing_fluid_dispose = true
  1341. }else{
  1342. this.sealing_fluid_dispose = false
  1343. }
  1344. if(dialysisSett.mode_id == 1){
  1345. this.mode_id = true
  1346. }else{
  1347. this.mode_id = false
  1348. }
  1349. if(dialysisSett.dialysis_time == 1){
  1350. this.dialysis_time = true
  1351. }else{
  1352. this.dialysis_time = false
  1353. }
  1354. if(dialysisSett.dialysis_dialyszers == 1){
  1355. this.dialysis_dialyszers = true
  1356. }else{
  1357. this.dialysis_dialyszers = false
  1358. }
  1359. if(dialysisSett.dialysis_irrigation == 1){
  1360. this.dialysis_irrigation = true
  1361. }else{
  1362. this.dialysis_irrigation = false
  1363. }
  1364. if(dialysisSett.gaijiliang ==1){
  1365. this.gaijiliang =true
  1366. }else{
  1367. this.gaijiliang = false
  1368. }
  1369. if(dialysisSett.kalium == 1){
  1370. this.kalium =true
  1371. }else{
  1372. this.kalium = false
  1373. }
  1374. if(dialysisSett.displace_liqui_value == 1){
  1375. this.displace_liqui_value = true
  1376. }else{
  1377. this.displace_liqui_value = false
  1378. }
  1379. if(dialysisSett.bicarbonate == 1){
  1380. this.bicarbonate =true
  1381. }else{
  1382. this.bicarbonate = false
  1383. }
  1384. if(dialysisSett.glucose == 1){
  1385. this.glucose =true
  1386. }else{
  1387. this.glucose = false
  1388. }
  1389. if(dialysisSett.sodium == 1){
  1390. this.sodium = true
  1391. }else{
  1392. this.sodium = false
  1393. }
  1394. if(dialysisSett.calcium == 1){
  1395. this.calcium = true
  1396. }else{
  1397. this.calcium = false
  1398. }
  1399. if(dialysisSett.blood_access == 1){
  1400. this.blood_access = true
  1401. }else{
  1402. this.blood_access = false
  1403. }
  1404. if(dialysisSett.dialyzer_perfusion_apparatus == 1){
  1405. this.dialyzer_perfusion_apparatus = true
  1406. }else{
  1407. this.dialyzer_perfusion_apparatus = false
  1408. }
  1409. if(dialysisSett.displace_liqui_part == 1){
  1410. this.displace_liqui_part = true
  1411. }else{
  1412. this.displace_liqui_part = false
  1413. }
  1414. }
  1415. }
  1416. })
  1417. },
  1418. saveDialysisSetting(){
  1419. var device_number_set = 0
  1420. var device_type_set = 0
  1421. var name_set = 0
  1422. var admission_number_set = 0
  1423. var dialysis_no_set = 0
  1424. var weight_befor_set = 0
  1425. var dry_weight_set = 0
  1426. var blood_pressure_set = 0
  1427. var ultrafiltration_volume_set= 0
  1428. var internal_fistula_set = 0
  1429. var blood_flow_volume_set = 0
  1430. var anticoagulant_set = 0
  1431. var sealing_fluid_dispose_set = 0
  1432. var mode_id_set =0
  1433. var dialysis_time_set =0
  1434. var dialysis_dialyszers_set =0
  1435. var dialysis_irrigation_set =0
  1436. var gaijiliang_set = 0
  1437. var kalium_set = 0
  1438. var displace_liqui_value_set =0
  1439. var bicarbonate_set =0
  1440. var glucose_set = 0
  1441. var sodium_set = 0
  1442. var calcium_set =0
  1443. var blood_access_set =0
  1444. var dialyzer_perfusion_apparatus_set =0
  1445. var displace_liqui_part_set =0
  1446. if(this.sodium == false){
  1447. sodium_set = 2
  1448. }
  1449. if(this.sodium == true){
  1450. sodium_set = 1
  1451. }
  1452. if(this.calcium ==false){
  1453. calcium_set = 2
  1454. }
  1455. if(this.calcium == true){
  1456. calcium_set = 1
  1457. }
  1458. if(this.blood_access ==false){
  1459. blood_access_set = 2
  1460. }
  1461. if(this.blood_access == true){
  1462. blood_access_set = 1
  1463. }
  1464. if(this.dialyzer_perfusion_apparatus == false){
  1465. dialyzer_perfusion_apparatus_set = 2
  1466. }
  1467. if(this.dialyzer_perfusion_apparatus == true){
  1468. dialyzer_perfusion_apparatus_set =1
  1469. }
  1470. if(this.displace_liqui_part == false){
  1471. displace_liqui_part_set = 2
  1472. }
  1473. if(this.displace_liqui_part == true){
  1474. displace_liqui_part_set = 1
  1475. }
  1476. if(this.device_number == false){
  1477. device_number_set = 2
  1478. }
  1479. if(this.device_number == true){
  1480. device_number_set = 1
  1481. }
  1482. if(this.device_type == false){
  1483. device_type_set = 2
  1484. }
  1485. if(this.device_type == true){
  1486. device_type_set = 1
  1487. }
  1488. if(this.name == false){
  1489. name_set = 2
  1490. }
  1491. if(this.name == true){
  1492. name_set = 1
  1493. }
  1494. if(this.admission_number == false){
  1495. admission_number_set = 2
  1496. }
  1497. if(this.admission_number== true){
  1498. admission_number_set = 1
  1499. }
  1500. if(this.dialysis_no == false){
  1501. dialysis_no_set = 2
  1502. }
  1503. if(this.dialysis_no == true){
  1504. dialysis_no_set = 1
  1505. }
  1506. if(this.weight_befor == false){
  1507. weight_befor_set = 2
  1508. }
  1509. if(this.weight_befor == true){
  1510. weight_befor_set = 1
  1511. }
  1512. if(this.dry_weight == false){
  1513. dry_weight_set = 2
  1514. }
  1515. if(this.dry_weight == true){
  1516. dry_weight_set = 1
  1517. }
  1518. if(this.blood_pressure == false){
  1519. blood_pressure_set = 2
  1520. }
  1521. if(this.blood_pressure == true){
  1522. blood_pressure_set = 1
  1523. }
  1524. if(this.ultrafiltration_volume == false){
  1525. ultrafiltration_volume_set = 2
  1526. }
  1527. if(this.ultrafiltration_volume == true){
  1528. ultrafiltration_volume_set = 1
  1529. }
  1530. if(this.internal_fistula == false){
  1531. internal_fistula_set = 2
  1532. }
  1533. if(this.internal_fistula == true){
  1534. internal_fistula_set= 1
  1535. }
  1536. if(this.blood_flow_volume == false){
  1537. blood_flow_volume_set = 2
  1538. }
  1539. if(this.blood_flow_volume == true){
  1540. blood_flow_volume_set = 1
  1541. }
  1542. if(this.anticoagulant == false){
  1543. anticoagulant_set = 2
  1544. }
  1545. if(this.anticoagulant == true){
  1546. anticoagulant_set = 1
  1547. }
  1548. if(this.sealing_fluid_dispose == false){
  1549. sealing_fluid_dispose_set = 2
  1550. }
  1551. if(this.sealing_fluid_dispose == true){
  1552. sealing_fluid_dispose_set = 1
  1553. }
  1554. if(this.mode_id == false){
  1555. mode_id_set = 2
  1556. }
  1557. if(this.mode_id == true){
  1558. mode_id_set = 1
  1559. }
  1560. if(this.dialysis_time == false){
  1561. dialysis_time_set = 2
  1562. }
  1563. if(this.dialysis_time == true){
  1564. dialysis_time_set = 1
  1565. }
  1566. if(this.dialysis_dialyszers == false){
  1567. dialysis_dialyszers_set = 2
  1568. }
  1569. if(this.dialysis_dialyszers == true){
  1570. dialysis_dialyszers_set = 1
  1571. }
  1572. if(this.dialysis_irrigation == false){
  1573. dialysis_irrigation_set = 2
  1574. }
  1575. if(this.dialysis_irrigation == true){
  1576. dialysis_irrigation_set = 1
  1577. }
  1578. if(this.gaijiliang == false){
  1579. this.gaijiliang = 2
  1580. }
  1581. if(this.gaijiliang == true){
  1582. this.gaijiliang = 1
  1583. }
  1584. if(this.kalium == false){
  1585. kalium_set = 2
  1586. }
  1587. if(this.kalium == true){
  1588. kalium_set = 1
  1589. }
  1590. if(this.displace_liqui_value == false){
  1591. displace_liqui_value_set = 2
  1592. }
  1593. if(this.displace_liqui_value == true){
  1594. displace_liqui_value_set = 1
  1595. }
  1596. if(this.bicarbonate == false){
  1597. bicarbonate_set = 2
  1598. }
  1599. if(this.bicarbonate == true){
  1600. bicarbonate_set = 1
  1601. }
  1602. if(this.glucose == false){
  1603. glucose_set = 2
  1604. }
  1605. if(this.glucose == true){
  1606. glucose_set = 1
  1607. }
  1608. var params = {
  1609. device_number_set:device_number_set,
  1610. device_type_set:device_type_set,
  1611. name_set:name_set,
  1612. admission_number_set:admission_number_set,
  1613. dialysis_no_set:dialysis_no_set,
  1614. weight_befor_set:weight_befor_set,
  1615. dry_weight_set:dry_weight_set,
  1616. blood_pressure_set:blood_pressure_set,
  1617. ultrafiltration_volume_set:ultrafiltration_volume_set,
  1618. internal_fistula_set:internal_fistula_set,
  1619. blood_flow_volume_set:blood_flow_volume_set,
  1620. anticoagulant_set:anticoagulant_set,
  1621. sealing_fluid_dispose_set:sealing_fluid_dispose_set,
  1622. mode_id_set:mode_id_set,
  1623. dialysis_time_set:dialysis_time_set,
  1624. dialysis_dialyszers_set:dialysis_dialyszers_set,
  1625. dialysis_irrigation_set:dialysis_irrigation_set,
  1626. gaijiliang_set:gaijiliang_set,
  1627. kalium_set:kalium_set,
  1628. displace_liqui_value_set:displace_liqui_value_set,
  1629. bicarbonate_set:bicarbonate_set,
  1630. glucose_set:glucose_set,
  1631. sodium_set:sodium_set,
  1632. calcium_set:calcium_set,
  1633. blood_access_set:blood_access_set,
  1634. dialyzer_perfusion_apparatus_set:dialyzer_perfusion_apparatus_set,
  1635. displace_liqui_part_set:displace_liqui_part_set,
  1636. }
  1637. saveDialysisSetting(params).then(response=>{
  1638. if(response.data.state == 1){
  1639. var dialysisSetting = response.data.data.dialysisSetting
  1640. this.$message.success("保存成功!")
  1641. this.dialogVisible = false
  1642. this.getlist()
  1643. }
  1644. })
  1645. },
  1646. getAnticoagualnt(id){
  1647. var name = ""
  1648. if(id == 1){
  1649. name = "无肝素"
  1650. }
  1651. if(id == 2){
  1652. name = "普通肝素"
  1653. }
  1654. if(id == 3){
  1655. name ="低分子肝素"
  1656. }
  1657. if(id == 4){
  1658. name ="阿加曲班"
  1659. }
  1660. if(id == 5){
  1661. name ="枸橼酸钠"
  1662. }
  1663. if(id == 6){
  1664. name ="低分子肝素钙"
  1665. }
  1666. if(id == 7){
  1667. name ="低分子肝素钠"
  1668. }
  1669. if(id == 8){
  1670. name ="依诺肝素"
  1671. }
  1672. if(id == 9){
  1673. name ="达肝素"
  1674. }
  1675. if(id == 10){
  1676. name ="体外抗凝"
  1677. }
  1678. if(id == 11){
  1679. name ="那屈肝素"
  1680. }
  1681. if(id == 12){
  1682. name ="无抗凝剂"
  1683. }
  1684. if(id == 13){
  1685. name ="那屈肝素钙"
  1686. }
  1687. return name
  1688. },
  1689. getBloodAccessOption(id){
  1690. var name = ""
  1691. for(let i=0;i<this.blood_access_option.length;i++){
  1692. if(id == this.blood_access_option[i].id){
  1693. name = this.blood_access_option[i].name
  1694. }
  1695. }
  1696. return name
  1697. },
  1698. toSign(){
  1699. this.$router.push({path: '/dialysis/consumable/dialysis/print?schedule_type='+this.query.schedule_type+"&partion_id="+this.query.partition_id+"&schedule_date="+this.query.schedule_date+"&keyword="+this.query.keywords+"&page="+this.query.page+"&limit="+this.query.limit})
  1700. },
  1701. printAction(){
  1702. this.getRemindPrintList()
  1703. this.dialogVisibleOne = true
  1704. },
  1705. getRemindPrintList() {
  1706. getRemindPrintList().then(response => {
  1707. if (response.data.state == 1) {
  1708. var list = response.data.data.list
  1709. console.log('list222332', list)
  1710. if (list.anticoagulant == 1) {
  1711. // console.log('进来22222')
  1712. this.anticoagulant = true
  1713. }
  1714. if (list.anticoagulant == 2) {
  1715. this.anticoagulant = false
  1716. }
  1717. if (list.anticoagulant_zongliang == 1) {
  1718. this.anticoagulant_zongliang = true
  1719. }
  1720. if (list.anticoagulant_zongliang == 2) {
  1721. this.anticoagulant_zongliang = false
  1722. }
  1723. if (list.classes == 1) {
  1724. this.classes = true
  1725. }
  1726. if (list.classes == 2) {
  1727. this.classes = false
  1728. }
  1729. if (list.dialyzers == 1) {
  1730. this.dialyzers = true
  1731. }
  1732. if (list.dialyzers == 2) {
  1733. this.dialyzers = false
  1734. }
  1735. if (list.doctor_advice == 1) {
  1736. this.doctor_advice = true
  1737. }
  1738. if (list.doctor_advice == 2) {
  1739. this.doctor_advice = false
  1740. }
  1741. if (list.name == 1) {
  1742. this.name = true
  1743. }
  1744. if (list.name == 2) {
  1745. this.name = false
  1746. }
  1747. if (list.number == 1) {
  1748. this.number = true
  1749. }
  1750. if (list.number == 2) {
  1751. this.number = false
  1752. }
  1753. if (list.perfusion_apparatus == 1) {
  1754. this.perfusion_apparatus = true
  1755. }
  1756. if (list.perfusion_apparatus == 2) {
  1757. this.perfusion_apparatus = false
  1758. }
  1759. if (list.prescription_status == 1) {
  1760. this.prescription_status = true
  1761. }
  1762. if (list.prescription_status == 2) {
  1763. this.prescription_status = false
  1764. }
  1765. if (list.week == 1) {
  1766. this.week = true
  1767. }
  1768. if (list.week == 2) {
  1769. this.week = false
  1770. }
  1771. if (list.zone == 1) {
  1772. this.zone_name = true
  1773. }
  1774. if (list.zone == 2) {
  1775. this.zone_name = false
  1776. }
  1777. if (list.mode == 1) {
  1778. this.mode = true
  1779. }
  1780. if (list.mode == 2) {
  1781. this.mode = false
  1782. }
  1783. this.form.id = list.id
  1784. }
  1785. })
  1786. },
  1787. saveRemindPrint() {
  1788. if (this.perfusion_apparatus == true) {
  1789. // console.log('3333')
  1790. this.form.perfusion_apparatus = 1
  1791. }
  1792. if (this.perfusion_apparatus == false) {
  1793. this.form.perfusion_apparatus = 2
  1794. }
  1795. if (this.prescription_status == true) {
  1796. this.form.prescription_status = 1
  1797. }
  1798. if (this.prescription_status == false) {
  1799. this.form.prescription_status = 2
  1800. }
  1801. if (this.week == true) {
  1802. this.form.week = 1
  1803. }
  1804. if (this.week == false) {
  1805. this.form.week = 2
  1806. }
  1807. if (this.name == true) {
  1808. this.form.name = 1
  1809. }
  1810. if (this.name == false) {
  1811. this.form.name = 2
  1812. }
  1813. if (this.zone_name == true) {
  1814. this.form.zone = 1
  1815. }
  1816. if (this.zone_name == false) {
  1817. this.form.zone = 2
  1818. }
  1819. if (this.classes == true) {
  1820. this.form.classes = 1
  1821. }
  1822. if (this.classes == false) {
  1823. this.form.classes = 2
  1824. }
  1825. if (this.number == true) {
  1826. this.form.number = 1
  1827. }
  1828. if (this.number == false) {
  1829. this.form.number = 2
  1830. }
  1831. if (this.mode == true) {
  1832. this.form.mode = 1
  1833. }
  1834. if (this.mode == false) {
  1835. this.form.mode = 2
  1836. }
  1837. if (this.dialyzers == true) {
  1838. this.form.dialyzers = 1
  1839. }
  1840. if (this.dialyzers == false) {
  1841. this.form.dialyzers = 2
  1842. }
  1843. if (this.anticoagulant == true) {
  1844. this.form.anticoagulant = 1
  1845. }
  1846. if (this.anticoagulant == false) {
  1847. this.form.anticoagulant = 2
  1848. }
  1849. if (this.anticoagulant_zongliang == true) {
  1850. this.form.anticoagulant_zongliang = 1
  1851. }
  1852. if (this.anticoagulant_zongliang == false) {
  1853. this.form.anticoagulant_zongliang = 2
  1854. }
  1855. if (this.doctor_advice == true) {
  1856. this.form.doctor_advice = 1
  1857. }
  1858. if (this.doctor_advice == false) {
  1859. this.form.doctor_advice = 2
  1860. }
  1861. // console.log('555555555', this.form.prescription_status)
  1862. var params = {
  1863. id: this.form.id,
  1864. prescription_status: this.form.prescription_status,
  1865. week: this.form.week,
  1866. name: this.form.name,
  1867. zone: this.form.zone,
  1868. classes: this.form.classes,
  1869. number: this.form.number,
  1870. mode: this.form.mode,
  1871. dialyzers: this.form.dialyzers,
  1872. perfusion_apparatus: this.form.perfusion_apparatus,
  1873. anticoagulant: this.form.anticoagulant,
  1874. anticoagulant_zongliang: this.form.anticoagulant_zongliang,
  1875. doctor_advice: this.form.doctor_advice
  1876. }
  1877. // console.log('params', params)
  1878. saveRemindPrint(params).then(response => {
  1879. if (response.data.state == 1) {
  1880. var settting = response.data.data.setting
  1881. this.$message.success('保存成功')
  1882. this.dialogVisibleOne = false
  1883. this.getRemindPrintList()
  1884. }
  1885. })
  1886. },
  1887. toPrint(){
  1888. this.$router.push({path: '/dialysis/consumable/dialysis/parameter/print?schedule_type='+this.query.schedule_type+"&partion_id="+this.query.partition_id+"&schedule_date="+this.query.schedule_date+"&keyword="+this.query.keywords+"&page="+this.query.page+"&limit="+this.query.limit+"&ids="+this.ids})
  1889. },
  1890. toPrintOne(){
  1891. this.$router.push({path:"/dialysis/consumable/dialysis/count/print?schedule_type="+this.schedule_type+"&partion_type="+this.partion_type+"&schedule_date="+this.query.schedule_date})
  1892. },
  1893. handleSelectionChange(val){
  1894. var arr = []
  1895. for(let i=0;i<val.length;i++){
  1896. arr.push(val[i].id)
  1897. }
  1898. this.ids = arr.join(",")
  1899. },
  1900. changeScheduleType(){
  1901. this.tableList = []
  1902. this.statistics()
  1903. },
  1904. changePartionType(){
  1905. this.tableList = []
  1906. this.statistics()
  1907. },
  1908. getDisplaceLiquiPart(id){
  1909. var name = ""
  1910. for(let i=0;i<this.displace_liqui_part_option.length;i++){
  1911. if(id == this.displace_liqui_part_option[i].id){
  1912. name = this.displace_liqui_part_option[i].name
  1913. }
  1914. }
  1915. return name
  1916. }
  1917. }
  1918. }
  1919. </script>
  1920. <style lang="scss" scoped>
  1921. .page_consumables {
  1922. .clearfix:after {
  1923. content: none;
  1924. }
  1925. }
  1926. </style>