dialysisParameter.vue 74KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065
  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. if(list[i].dialysis_prescription.dialysis_strainer!=""){
  811. list[i].dialysis_strainer_arr = list[i].dialysis_prescription.dialysis_strainer.split(",")
  812. }
  813. if(list[i].dialysis_prescription.anticoagulant == 1){
  814. anticoagulantList.push(list[i].dialysis_prescription)
  815. }
  816. if(list[i].dialysis_prescription.anticoagulant == 2){
  817. anticoagulantList.push(list[i].dialysis_prescription)
  818. }
  819. if(list[i].dialysis_prescription.anticoagulant == 3){
  820. anticoagulantList.push(list[i].dialysis_prescription)
  821. }
  822. if(list[i].dialysis_prescription.anticoagulant == 4){
  823. anticoagulantList.push(list[i].dialysis_prescription)
  824. }
  825. if(list[i].dialysis_prescription.anticoagulant == 5){
  826. anticoagulantList.push(list[i].dialysis_prescription)
  827. }
  828. if(list[i].dialysis_prescription.anticoagulant == 6){
  829. anticoagulantList.push(list[i].dialysis_prescription)
  830. }
  831. if(list[i].dialysis_prescription.anticoagulant == 7){
  832. anticoagulantList.push(list[i].dialysis_prescription)
  833. }
  834. if(list[i].dialysis_prescription.anticoagulant == 8){
  835. anticoagulantList.push(list[i].dialysis_prescription)
  836. }
  837. if(list[i].dialysis_prescription.anticoagulant == 9){
  838. anticoagulantList.push(list[i].dialysis_prescription)
  839. }
  840. if(list[i].dialysis_prescription.anticoagulant == 10){
  841. anticoagulantList.push(list[i].dialysis_prescription)
  842. }
  843. if(list[i].dialysis_prescription.anticoagulant == 11){
  844. anticoagulantList.push(list[i].dialysis_prescription)
  845. }
  846. if(list[i].dialysis_prescription.anticoagulant == 12){
  847. anticoagulantList.push(list[i].dialysis_prescription)
  848. }
  849. if(list[i].dialysis_prescription.anticoagulant == 13){
  850. anticoagulantList.push(list[i].dialysis_prescription)
  851. }
  852. }
  853. }
  854. }
  855. console.log("listoope2233232",list)
  856. var NewAllList=[]
  857. for(let i=0;i<list.length;i++){
  858. if(list[i].dialysis_machine_name =="OCI18M"){
  859. NewAllList.push(list[i])
  860. }
  861. }
  862. console.log("NewAllList",NewAllList)
  863. this.tableList = []
  864. if(anticoagulantList!=null && anticoagulantList.length > 0){
  865. let dataInfoOne = {}
  866. anticoagulantList.forEach((item, index) => {
  867. let { anticoagulant } = item
  868. if (!dataInfoOne[anticoagulant]) {
  869. dataInfoOne[anticoagulant] = {
  870. anticoagulant:item.anticoagulant,
  871. name: "抗凝剂",
  872. specification_name:this.getAnticoagualnt(item.anticoagulant),
  873. count:0,
  874. child:[]
  875. }
  876. }
  877. })
  878. let hisarr = Object.values(dataInfoOne)
  879. if(hisarr!=null && hisarr.length > 0){
  880. for(let i=0;i<anticoagulantList.length;i++){
  881. for(let j=0;j<hisarr.length;j++){
  882. if(anticoagulantList[i].anticoagulant == hisarr[j].anticoagulant){
  883. hisarr[j].child.push(anticoagulantList[i])
  884. }
  885. }
  886. }
  887. }
  888. for(let i=0;i<hisarr.length;i++){
  889. hisarr[i].count = hisarr[i].child.length
  890. this.tableList.push(hisarr[i])
  891. }
  892. console.log("hisarr",hisarr)
  893. }
  894. var dialysisDialyszersArr = []
  895. var dialyzerPerfusionApparaArr = []
  896. var dialysisIrrigationArr = []
  897. var dialysisStrainerArr = []
  898. for(let i=0;i<list.length;i++){
  899. for(let j=0;j<list[i].dialysis_dialyszers_arr.length;j++){
  900. dialysisDialyszersArr.push(list[i].dialysis_dialyszers_arr[j])
  901. }
  902. for(let z=0;z<list[i].dialyzer_perfusion_apparatus_arr.length;z++){
  903. dialyzerPerfusionApparaArr.push(list[i].dialyzer_perfusion_apparatus_arr[z])
  904. }
  905. for(let y=0;y<list[i].dialysis_irrigation_arr.length;y++){
  906. dialysisIrrigationArr.push(list[i].dialysis_irrigation_arr[y])
  907. }
  908. for(let p=0;p<list[i].dialysis_strainer_arr.length;p++){
  909. dialysisStrainerArr.push(list[i].dialysis_strainer_arr[p])
  910. }
  911. }
  912. console.log("dialysisDialyszersArrooo2oo2o2o2o2",dialysisDialyszersArr)
  913. let obj = {}
  914. let objOne = {}
  915. let objTwo = {}
  916. let objThree = {}
  917. for(let i = 0 ; i < dialysisDialyszersArr.length; i++){
  918. if(obj[dialysisDialyszersArr[i]]){
  919. obj[dialysisDialyszersArr[i]] +=1
  920. }else{
  921. obj[dialysisDialyszersArr[i]] = 1
  922. }
  923. }
  924. let Arr = [];
  925. for (let i in obj) {
  926. let a = {};
  927. a[i] = obj[i];
  928. a.name = "透析器"
  929. a.count = obj[i]
  930. a.specification_name = i
  931. Arr.push(a);
  932. }
  933. for(let i=0;i<dialyzerPerfusionApparaArr.length;i++){
  934. if(objOne[dialyzerPerfusionApparaArr[i]]){
  935. objOne[dialyzerPerfusionApparaArr[i]] +=1
  936. }else{
  937. objOne[dialyzerPerfusionApparaArr[i]] = 1
  938. }
  939. }
  940. for (let i in objOne) {
  941. let a = {};
  942. a[i] = objOne[i];
  943. a.name = "透析器/灌流器"
  944. a.count = objOne[i]
  945. a.specification_name = i
  946. Arr.push(a);
  947. }
  948. for(let i=0;i<dialysisIrrigationArr.length;i++){
  949. if(objTwo[dialysisIrrigationArr[i]]){
  950. objTwo[dialysisIrrigationArr[i]] +=1
  951. }else{
  952. objTwo[dialysisIrrigationArr[i]] = 1
  953. }
  954. }
  955. for (let i in objTwo) {
  956. let a = {};
  957. a[i] = objTwo[i];
  958. a.name = "灌流器"
  959. a.count = objTwo[i]
  960. a.specification_name = i
  961. Arr.push(a);
  962. }
  963. console.log("newa",Arr)
  964. for (let i in objThree) {
  965. let a = {};
  966. a[i] = objThree[i];
  967. a.name = "滤过器"
  968. a.count = objThree[i]
  969. a.specification_name = i
  970. Arr.push(a);
  971. }
  972. for(let i=0;i<dialysisStrainerArr.length;i++){
  973. if(objThree[dialysisStrainerArr[i]]){
  974. objThree[dialysisStrainerArr[i]] +=1
  975. }else{
  976. objThree[dialysisStrainerArr[i]] = 1
  977. }
  978. }
  979. for (let i in objThree) {
  980. let a = {};
  981. a[i] = objThree[i];
  982. a.name = "滤过器"
  983. a.count = objThree[i]
  984. a.specification_name = i
  985. Arr.push(a);
  986. }
  987. console.log("Arrowowwwwwwwwwww",Arr)
  988. if(Arr.length >0){
  989. for(let i=0;i<Arr.length;i++){
  990. this.tableList.push(Arr[i])
  991. }
  992. }
  993. }
  994. })
  995. },
  996. getModeName(id){
  997. var mode_name =""
  998. if(id == 1){
  999. mode_name = "HD"
  1000. }
  1001. if(id == 2){
  1002. mode_name = "HDF"
  1003. }
  1004. if(id == 3){
  1005. mode_name = "HD+HP"
  1006. }
  1007. if(id == 4){
  1008. mode_name = "HP"
  1009. }
  1010. if(id == 5){
  1011. mode_name = "HF"
  1012. }
  1013. if(id == 6){
  1014. mode_name = "SCUF"
  1015. }
  1016. if(id == 7){
  1017. mode_name = "IUF"
  1018. }
  1019. if(id == 8){
  1020. mode_name = "HFHD"
  1021. }
  1022. if(id == 9){
  1023. mode_name = "HFHD+HP"
  1024. }
  1025. if(id == 10){
  1026. mode_name = "PHF"
  1027. }
  1028. if(id ==11){
  1029. mode_name ="HFR"
  1030. }
  1031. if(id ==12){
  1032. mode_name ="HDF+HP"
  1033. }
  1034. if(id ==25){
  1035. mode_name ="HD高通"
  1036. }
  1037. if(id ==31){
  1038. mode_name ="HPD"
  1039. }
  1040. if(id ==32){
  1041. mode_name ="HDP"
  1042. }
  1043. if(id ==33){
  1044. mode_name ="HFD"
  1045. }
  1046. if(id ==34){
  1047. mode_name ="HDF100"
  1048. }
  1049. if(id ==35){
  1050. mode_name ="HDF600"
  1051. }
  1052. if(id ==36){
  1053. mode_name ="HDF800"
  1054. }
  1055. if(id ==37){
  1056. mode_name ="HDF1000"
  1057. }
  1058. return mode_name
  1059. },
  1060. getAnticoagulantName(id){
  1061. var name = ""
  1062. if(id ==1){
  1063. name ="无肝素"
  1064. }
  1065. if(id == 2){
  1066. name ="普通肝素"
  1067. }
  1068. if(id ==3){
  1069. name ="低分子肝素"
  1070. }
  1071. if(id == 6){
  1072. name ="低分子肝素钙"
  1073. }
  1074. if(id == 7){
  1075. name ="低分子肝素钠"
  1076. }
  1077. return name
  1078. },
  1079. handleScheduleDateChange(val) {
  1080. this.query.schedule_date = val
  1081. this.query.page = 1
  1082. this.getlist()
  1083. },
  1084. search() {
  1085. this.query.page = 1
  1086. this.getlist()
  1087. },
  1088. exportList(){
  1089. import('@/vendor/Export2Excel').then(excel => {
  1090. if(this.list!=null && this.list.length > 0){
  1091. console.log("hhhahhah",this.list)
  1092. for(let i=0;i<this.list.length;i++){
  1093. this.list[i].index = i+1
  1094. this.list[i].mode_name = this.getModeName(this.list[i].mode_id)
  1095. this.list[i].device_number_one = this.list[i].device_number.zone.name + this.list[i].device_number.number
  1096. this.list[i].patient_name = this.list[i].patient.name
  1097. this.list[i].dialysis_no = this.list[i].patient.dialysis_no
  1098. this.list[i].admission_number = this.list[i].xt_receive_treatment_asses.admission_number
  1099. this.list[i].weight_before = this.list[i].assessment_befor_dislysis.weight_before?this.list[i].assessment_befor_dislysis.weight_before:"",
  1100. this.list[i].dry_weight = this.list[i].assessment_befor_dislysis.dry_weight?this.list[i].assessment_befor_dislysis.dry_weight:""
  1101. 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:""
  1102. if(this.list[i].blood_pressure == 0){
  1103. this.list[i].blood_pressure = ""
  1104. }
  1105. this.list[i].ultrafiltration_volume = this.list[i].dialysis_solution.target_ultrafiltration?this.list[i].dialysis_solution.target_ultrafiltration:""
  1106. this.list[i].anticoagulant_one=""
  1107. 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)+")"
  1108. 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:"" + "分"
  1109. if(this.list[i].dialysis_time == 0){
  1110. this.list[i].dialysis_time = ""
  1111. }
  1112. this.list[i].device_type = this.list[i].assessment_befor_dislysis.machine_type
  1113. this.list[i].dialyzer_perfusion_apparatus = this.list[i].dialysis_solution.dialyzer_perfusion_apparatus
  1114. this.list[i].dialysis_dialyszers = this.list[i].dialysis_solution.dialysis_dialyszers
  1115. this.list[i].dialysis_irrigation = this.list[i].dialysis_solution.dialysis_irrigation
  1116. this.list[i].displace_liqui_part = this.getDisplaceLiquiPart(this.list[i].dialysis_solution.displace_liqui_part)
  1117. this.list[i].displace_liqui_value = this.list[i].dialysis_solution.displace_liqui_value? this.list[i].dialysis_solution.displace_liqui_value:""
  1118. this.list[i].kalium = this.list[i].dialysis_solution.kalium?this.list[i].dialysis_solution.kalium:""
  1119. this.list[i].sodium = this.list[i].dialysis_solution.sodium?this.list[i].dialysis_solution.sodium:""
  1120. this.list[i].calcium = this.list[i].dialysis_solution.calcium?this.list[i].dialysis_solution.calcium:""
  1121. this.list[i].blood_access = this.getBloodAccessOption(this.list[i].dialysis_solution.blood_access)
  1122. this.list[i].sealing_fluid_dispose =this.list[i].xt_assesment_after_dislysis.sealing_fluid_dispose
  1123. this.list[i].glucose = this.list[i].dialysis_solution.glucose?this.list[i].dialysis_solution.glucose:""
  1124. this.list[i].blood_flow_volume = this.list[i].dialysis_solution.blood_flow_volume?this.list[i].dialysis_solution.blood_flow_volume:""
  1125. this.list[i].bicarbonate = this.list[i].dialysis_solution.bicarbonate? this.list[i].dialysis_solution.bicarbonate:""
  1126. this.list[i].count =0
  1127. if(this.getBloodAccessOption(this.list[i].dialysis_solution.blood_access).indexOf("导管")!=-1){
  1128. this.list[i].count =1
  1129. }
  1130. }
  1131. }
  1132. console.log("list23323232322323wode",this.list)
  1133. var arr= []
  1134. var arrTwo = []
  1135. arr.push('序号')
  1136. arrTwo.push("index")
  1137. if(this.dialysisSett.device_number == 1){
  1138. arr.push("透析机号")
  1139. arrTwo.push("device_number_one")
  1140. }
  1141. if(this.dialysisSett.name == 1){
  1142. arr.push("姓名")
  1143. arrTwo.push("patient_name")
  1144. }
  1145. arr.push("透析模式")
  1146. arrTwo.push("mode_name")
  1147. if(this.dialysisSett.dialysis_no == 1){
  1148. arr.push("透析号")
  1149. arrTwo.push("dialysis_no")
  1150. }
  1151. if(this.dialysisSett.admission_number == 1){
  1152. arr.push("住院(门诊)号")
  1153. arrTwo.push("admission_number")
  1154. }
  1155. if(this.dialysisSett.weight_befor == 1){
  1156. arr.push("透前体重")
  1157. arrTwo.push("weight_before")
  1158. }
  1159. if(this.dialysisSett.dry_weight == 1){
  1160. arr.push("干体重")
  1161. arrTwo.push("dry_weight")
  1162. }
  1163. if(this.dialysisSett.blood_pressure == 1){
  1164. arr.push("透前血压")
  1165. arrTwo.push("blood_pressure")
  1166. }
  1167. if(this.dialysisSett.ultrafiltration_volume == 1){
  1168. arr.push("目标脱水量")
  1169. arrTwo.push("ultrafiltration_volume")
  1170. }
  1171. if(this.dialysisSett.anticoagulant == 1){
  1172. arr.push("抗凝剂(首剂)(维持)(总量)")
  1173. arrTwo.push("anticoagulant_one")
  1174. }
  1175. if(this.dialysisSett.dialysis_time == 1){
  1176. arr.push("透析时长")
  1177. arrTwo.push("dialysis_time")
  1178. }
  1179. if(this.dialysisSett.device_type == 1){
  1180. arr.push("设备型号")
  1181. arrTwo.push("device_type")
  1182. }
  1183. if(this.dialysisSett.dialyzer_perfusion_apparatus == 1){
  1184. arr.push("透析器/灌流器")
  1185. arrTwo.push("dialyzer_perfusion_apparatus")
  1186. }
  1187. if(this.dialysisSett.dialysis_dialyszers == 1){
  1188. arr.push("透析器")
  1189. arrTwo.push("dialysis_dialyszers")
  1190. }
  1191. if(this.dialysisSett.dialysis_irrigation == 1){
  1192. arr.push("灌流器")
  1193. arrTwo.push("dialysis_irrigation")
  1194. }
  1195. if(this.dialysisSett.displace_liqui_part == 1){
  1196. arr.push("置换液")
  1197. arrTwo.push("displace_liqui_part")
  1198. }
  1199. if(this.dialysisSett.displace_liqui_value == 1){
  1200. arr.push("置换液总量")
  1201. arrTwo.push("displace_liqui_value")
  1202. }
  1203. if(this.dialysisSett.kalium == 1){
  1204. arr.push("钾")
  1205. arrTwo.push("kalium")
  1206. }
  1207. if(this.dialysisSett.sodium == 1){
  1208. arr.push("钠")
  1209. arrTwo.push("sodium")
  1210. }
  1211. if(this.dialysisSett.calcium == 1){
  1212. arr.push("钙")
  1213. arrTwo.push("calcium")
  1214. }
  1215. if(this.dialysisSett.bicarbonate == 1){
  1216. arr.push("碳酸氢盐")
  1217. arrTwo.push("bicarbonate")
  1218. }
  1219. if(this.dialysisSett.blood_access == 1){
  1220. arr.push("血管通路")
  1221. arrTwo.push("blood_access")
  1222. }
  1223. if(this.dialysisSett.sealing_fluid_dispose == 1){
  1224. arr.push("封管液")
  1225. arrTwo.push("sealing_fluid_dispose")
  1226. }
  1227. if(this.dialysisSett.glucose == 1){
  1228. arr.push("葡萄糖")
  1229. arrTwo.push("glucose")
  1230. }
  1231. if(this.dialysisSett.blood_flow_volume == 1){
  1232. arr.push("血流量")
  1233. arrTwo.push("blood_flow_volume")
  1234. }
  1235. arr.push("封管液")
  1236. arrTwo.push("count")
  1237. arr.push("促红")
  1238. arrTwo.push("advice_spc")
  1239. const tHeader = arr
  1240. const filterVal = arrTwo
  1241. const data = this.formatJson(filterVal, this.list)
  1242. console.log("DATWOWOWOWO",data)
  1243. excel.export_json_to_excel({
  1244. header: tHeader,
  1245. data,
  1246. filename: '透析参数查询'
  1247. })
  1248. this.downloadLoading = false
  1249. })
  1250. },
  1251. formatJson(filterVal, jsonData) {
  1252. return jsonData.map(v => filterVal.map(j => v[j]));
  1253. },
  1254. exportListOne(){
  1255. import('@/vendor/Export2Excel').then(excel => {
  1256. if(this.tableList!=null && this.tableList.length > 0){
  1257. for(let i=0;i<this.tableList.length;i++){
  1258. this.tableList[i].index = i+1
  1259. }
  1260. }
  1261. const tHeader = ['序号','名称','规格','数量']
  1262. const filterVal = ['index', 'name','specification_name','count']
  1263. const data = this.formatJson(filterVal, this.tableList)
  1264. excel.export_json_to_excel({
  1265. header: tHeader,
  1266. data,
  1267. filename: '透析参数统计'
  1268. })
  1269. this.downloadLoading = false
  1270. })
  1271. },
  1272. toDialog(){
  1273. getDialysisSetting().then(response=>{
  1274. if(response.data.state == 1){
  1275. this.dialogVisible = true
  1276. var dialysisSett = response.data.data.dialysisSett
  1277. if(dialysisSett!=undefined){
  1278. if(dialysisSett.device_number == 1){
  1279. this.device_number = true
  1280. }else{
  1281. this.device_number = false
  1282. }
  1283. if(dialysisSett.device_type == 1){
  1284. this.device_type = true
  1285. }else{
  1286. this.device_type = false
  1287. }
  1288. if(dialysisSett.name == 1){
  1289. this.name = true
  1290. }else{
  1291. this.name = false
  1292. }
  1293. if(dialysisSett.admission_number == 1){
  1294. this.admission_number = true
  1295. }else{
  1296. this.admission_number = false
  1297. }
  1298. if(dialysisSett.dialysis_no == 1){
  1299. this.dialysis_no = true
  1300. }else{
  1301. this.dialysis_no = false
  1302. }
  1303. if(dialysisSett.weight_befor == 1){
  1304. this.weight_befor = true
  1305. }else{
  1306. this.weight_befor = false
  1307. }
  1308. if(dialysisSett.dry_weight == 1){
  1309. this.dry_weight = true
  1310. }else{
  1311. this.dry_weight = false
  1312. }
  1313. if(dialysisSett.blood_pressure == 1){
  1314. this.blood_pressure = true
  1315. }else{
  1316. this.blood_pressure = false
  1317. }
  1318. if(dialysisSett.ultrafiltration_volume == 1){
  1319. this.ultrafiltration_volume = true
  1320. }else{
  1321. this.ultrafiltration_volume = false
  1322. }
  1323. if(dialysisSett.internal_fistula == 1){
  1324. this.internal_fistula = true
  1325. }else{
  1326. this.internal_fistula = false
  1327. }
  1328. if(dialysisSett.blood_flow_volume == 1){
  1329. this.blood_flow_volume = true
  1330. }else{
  1331. this.blood_flow_volume = false
  1332. }
  1333. if(dialysisSett.anticoagulant == 1){
  1334. this.anticoagulant = true
  1335. }else{
  1336. this.anticoagulant = false
  1337. }
  1338. if(dialysisSett.sealing_fluid_dispose == 1){
  1339. this.sealing_fluid_dispose = true
  1340. }else{
  1341. this.sealing_fluid_dispose = false
  1342. }
  1343. if(dialysisSett.mode_id == 1){
  1344. this.mode_id = true
  1345. }else{
  1346. this.mode_id = false
  1347. }
  1348. if(dialysisSett.dialysis_time == 1){
  1349. this.dialysis_time = true
  1350. }else{
  1351. this.dialysis_time = false
  1352. }
  1353. if(dialysisSett.dialysis_dialyszers == 1){
  1354. this.dialysis_dialyszers = true
  1355. }else{
  1356. this.dialysis_dialyszers = false
  1357. }
  1358. if(dialysisSett.dialysis_irrigation == 1){
  1359. this.dialysis_irrigation = true
  1360. }else{
  1361. this.dialysis_irrigation = false
  1362. }
  1363. if(dialysisSett.gaijiliang ==1){
  1364. this.gaijiliang =true
  1365. }else{
  1366. this.gaijiliang = false
  1367. }
  1368. if(dialysisSett.kalium == 1){
  1369. this.kalium =true
  1370. }else{
  1371. this.kalium = false
  1372. }
  1373. if(dialysisSett.displace_liqui_value == 1){
  1374. this.displace_liqui_value = true
  1375. }else{
  1376. this.displace_liqui_value = false
  1377. }
  1378. if(dialysisSett.bicarbonate == 1){
  1379. this.bicarbonate =true
  1380. }else{
  1381. this.bicarbonate = false
  1382. }
  1383. if(dialysisSett.glucose == 1){
  1384. this.glucose =true
  1385. }else{
  1386. this.glucose = false
  1387. }
  1388. if(dialysisSett.sodium == 1){
  1389. this.sodium = true
  1390. }else{
  1391. this.sodium = false
  1392. }
  1393. if(dialysisSett.calcium == 1){
  1394. this.calcium = true
  1395. }else{
  1396. this.calcium = false
  1397. }
  1398. if(dialysisSett.blood_access == 1){
  1399. this.blood_access = true
  1400. }else{
  1401. this.blood_access = false
  1402. }
  1403. if(dialysisSett.dialyzer_perfusion_apparatus == 1){
  1404. this.dialyzer_perfusion_apparatus = true
  1405. }else{
  1406. this.dialyzer_perfusion_apparatus = false
  1407. }
  1408. if(dialysisSett.displace_liqui_part == 1){
  1409. this.displace_liqui_part = true
  1410. }else{
  1411. this.displace_liqui_part = false
  1412. }
  1413. }
  1414. }
  1415. })
  1416. },
  1417. saveDialysisSetting(){
  1418. var device_number_set = 0
  1419. var device_type_set = 0
  1420. var name_set = 0
  1421. var admission_number_set = 0
  1422. var dialysis_no_set = 0
  1423. var weight_befor_set = 0
  1424. var dry_weight_set = 0
  1425. var blood_pressure_set = 0
  1426. var ultrafiltration_volume_set= 0
  1427. var internal_fistula_set = 0
  1428. var blood_flow_volume_set = 0
  1429. var anticoagulant_set = 0
  1430. var sealing_fluid_dispose_set = 0
  1431. var mode_id_set =0
  1432. var dialysis_time_set =0
  1433. var dialysis_dialyszers_set =0
  1434. var dialysis_irrigation_set =0
  1435. var gaijiliang_set = 0
  1436. var kalium_set = 0
  1437. var displace_liqui_value_set =0
  1438. var bicarbonate_set =0
  1439. var glucose_set = 0
  1440. var sodium_set = 0
  1441. var calcium_set =0
  1442. var blood_access_set =0
  1443. var dialyzer_perfusion_apparatus_set =0
  1444. var displace_liqui_part_set =0
  1445. if(this.sodium == false){
  1446. sodium_set = 2
  1447. }
  1448. if(this.sodium == true){
  1449. sodium_set = 1
  1450. }
  1451. if(this.calcium ==false){
  1452. calcium_set = 2
  1453. }
  1454. if(this.calcium == true){
  1455. calcium_set = 1
  1456. }
  1457. if(this.blood_access ==false){
  1458. blood_access_set = 2
  1459. }
  1460. if(this.blood_access == true){
  1461. blood_access_set = 1
  1462. }
  1463. if(this.dialyzer_perfusion_apparatus == false){
  1464. dialyzer_perfusion_apparatus_set = 2
  1465. }
  1466. if(this.dialyzer_perfusion_apparatus == true){
  1467. dialyzer_perfusion_apparatus_set =1
  1468. }
  1469. if(this.displace_liqui_part == false){
  1470. displace_liqui_part_set = 2
  1471. }
  1472. if(this.displace_liqui_part == true){
  1473. displace_liqui_part_set = 1
  1474. }
  1475. if(this.device_number == false){
  1476. device_number_set = 2
  1477. }
  1478. if(this.device_number == true){
  1479. device_number_set = 1
  1480. }
  1481. if(this.device_type == false){
  1482. device_type_set = 2
  1483. }
  1484. if(this.device_type == true){
  1485. device_type_set = 1
  1486. }
  1487. if(this.name == false){
  1488. name_set = 2
  1489. }
  1490. if(this.name == true){
  1491. name_set = 1
  1492. }
  1493. if(this.admission_number == false){
  1494. admission_number_set = 2
  1495. }
  1496. if(this.admission_number== true){
  1497. admission_number_set = 1
  1498. }
  1499. if(this.dialysis_no == false){
  1500. dialysis_no_set = 2
  1501. }
  1502. if(this.dialysis_no == true){
  1503. dialysis_no_set = 1
  1504. }
  1505. if(this.weight_befor == false){
  1506. weight_befor_set = 2
  1507. }
  1508. if(this.weight_befor == true){
  1509. weight_befor_set = 1
  1510. }
  1511. if(this.dry_weight == false){
  1512. dry_weight_set = 2
  1513. }
  1514. if(this.dry_weight == true){
  1515. dry_weight_set = 1
  1516. }
  1517. if(this.blood_pressure == false){
  1518. blood_pressure_set = 2
  1519. }
  1520. if(this.blood_pressure == true){
  1521. blood_pressure_set = 1
  1522. }
  1523. if(this.ultrafiltration_volume == false){
  1524. ultrafiltration_volume_set = 2
  1525. }
  1526. if(this.ultrafiltration_volume == true){
  1527. ultrafiltration_volume_set = 1
  1528. }
  1529. if(this.internal_fistula == false){
  1530. internal_fistula_set = 2
  1531. }
  1532. if(this.internal_fistula == true){
  1533. internal_fistula_set= 1
  1534. }
  1535. if(this.blood_flow_volume == false){
  1536. blood_flow_volume_set = 2
  1537. }
  1538. if(this.blood_flow_volume == true){
  1539. blood_flow_volume_set = 1
  1540. }
  1541. if(this.anticoagulant == false){
  1542. anticoagulant_set = 2
  1543. }
  1544. if(this.anticoagulant == true){
  1545. anticoagulant_set = 1
  1546. }
  1547. if(this.sealing_fluid_dispose == false){
  1548. sealing_fluid_dispose_set = 2
  1549. }
  1550. if(this.sealing_fluid_dispose == true){
  1551. sealing_fluid_dispose_set = 1
  1552. }
  1553. if(this.mode_id == false){
  1554. mode_id_set = 2
  1555. }
  1556. if(this.mode_id == true){
  1557. mode_id_set = 1
  1558. }
  1559. if(this.dialysis_time == false){
  1560. dialysis_time_set = 2
  1561. }
  1562. if(this.dialysis_time == true){
  1563. dialysis_time_set = 1
  1564. }
  1565. if(this.dialysis_dialyszers == false){
  1566. dialysis_dialyszers_set = 2
  1567. }
  1568. if(this.dialysis_dialyszers == true){
  1569. dialysis_dialyszers_set = 1
  1570. }
  1571. if(this.dialysis_irrigation == false){
  1572. dialysis_irrigation_set = 2
  1573. }
  1574. if(this.dialysis_irrigation == true){
  1575. dialysis_irrigation_set = 1
  1576. }
  1577. if(this.gaijiliang == false){
  1578. this.gaijiliang = 2
  1579. }
  1580. if(this.gaijiliang == true){
  1581. this.gaijiliang = 1
  1582. }
  1583. if(this.kalium == false){
  1584. kalium_set = 2
  1585. }
  1586. if(this.kalium == true){
  1587. kalium_set = 1
  1588. }
  1589. if(this.displace_liqui_value == false){
  1590. displace_liqui_value_set = 2
  1591. }
  1592. if(this.displace_liqui_value == true){
  1593. displace_liqui_value_set = 1
  1594. }
  1595. if(this.bicarbonate == false){
  1596. bicarbonate_set = 2
  1597. }
  1598. if(this.bicarbonate == true){
  1599. bicarbonate_set = 1
  1600. }
  1601. if(this.glucose == false){
  1602. glucose_set = 2
  1603. }
  1604. if(this.glucose == true){
  1605. glucose_set = 1
  1606. }
  1607. var params = {
  1608. device_number_set:device_number_set,
  1609. device_type_set:device_type_set,
  1610. name_set:name_set,
  1611. admission_number_set:admission_number_set,
  1612. dialysis_no_set:dialysis_no_set,
  1613. weight_befor_set:weight_befor_set,
  1614. dry_weight_set:dry_weight_set,
  1615. blood_pressure_set:blood_pressure_set,
  1616. ultrafiltration_volume_set:ultrafiltration_volume_set,
  1617. internal_fistula_set:internal_fistula_set,
  1618. blood_flow_volume_set:blood_flow_volume_set,
  1619. anticoagulant_set:anticoagulant_set,
  1620. sealing_fluid_dispose_set:sealing_fluid_dispose_set,
  1621. mode_id_set:mode_id_set,
  1622. dialysis_time_set:dialysis_time_set,
  1623. dialysis_dialyszers_set:dialysis_dialyszers_set,
  1624. dialysis_irrigation_set:dialysis_irrigation_set,
  1625. gaijiliang_set:gaijiliang_set,
  1626. kalium_set:kalium_set,
  1627. displace_liqui_value_set:displace_liqui_value_set,
  1628. bicarbonate_set:bicarbonate_set,
  1629. glucose_set:glucose_set,
  1630. sodium_set:sodium_set,
  1631. calcium_set:calcium_set,
  1632. blood_access_set:blood_access_set,
  1633. dialyzer_perfusion_apparatus_set:dialyzer_perfusion_apparatus_set,
  1634. displace_liqui_part_set:displace_liqui_part_set,
  1635. }
  1636. saveDialysisSetting(params).then(response=>{
  1637. if(response.data.state == 1){
  1638. var dialysisSetting = response.data.data.dialysisSetting
  1639. this.$message.success("保存成功!")
  1640. this.dialogVisible = false
  1641. this.getlist()
  1642. }
  1643. })
  1644. },
  1645. getAnticoagualnt(id){
  1646. var name = ""
  1647. if(id == 1){
  1648. name = "无肝素"
  1649. }
  1650. if(id == 2){
  1651. name = "普通肝素"
  1652. }
  1653. if(id == 3){
  1654. name ="低分子肝素"
  1655. }
  1656. if(id == 4){
  1657. name ="阿加曲班"
  1658. }
  1659. if(id == 5){
  1660. name ="枸橼酸钠"
  1661. }
  1662. if(id == 6){
  1663. name ="低分子肝素钙"
  1664. }
  1665. if(id == 7){
  1666. name ="低分子肝素钠"
  1667. }
  1668. if(id == 8){
  1669. name ="依诺肝素"
  1670. }
  1671. if(id == 9){
  1672. name ="达肝素"
  1673. }
  1674. if(id == 10){
  1675. name ="体外抗凝"
  1676. }
  1677. if(id == 11){
  1678. name ="那屈肝素"
  1679. }
  1680. if(id == 12){
  1681. name ="无抗凝剂"
  1682. }
  1683. if(id == 13){
  1684. name ="那屈肝素钙"
  1685. }
  1686. return name
  1687. },
  1688. getBloodAccessOption(id){
  1689. var name = ""
  1690. for(let i=0;i<this.blood_access_option.length;i++){
  1691. if(id == this.blood_access_option[i].id){
  1692. name = this.blood_access_option[i].name
  1693. }
  1694. }
  1695. return name
  1696. },
  1697. toSign(){
  1698. 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})
  1699. },
  1700. printAction(){
  1701. this.getRemindPrintList()
  1702. this.dialogVisibleOne = true
  1703. },
  1704. getRemindPrintList() {
  1705. getRemindPrintList().then(response => {
  1706. if (response.data.state == 1) {
  1707. var list = response.data.data.list
  1708. console.log('list222332', list)
  1709. if (list.anticoagulant == 1) {
  1710. // console.log('进来22222')
  1711. this.anticoagulant = true
  1712. }
  1713. if (list.anticoagulant == 2) {
  1714. this.anticoagulant = false
  1715. }
  1716. if (list.anticoagulant_zongliang == 1) {
  1717. this.anticoagulant_zongliang = true
  1718. }
  1719. if (list.anticoagulant_zongliang == 2) {
  1720. this.anticoagulant_zongliang = false
  1721. }
  1722. if (list.classes == 1) {
  1723. this.classes = true
  1724. }
  1725. if (list.classes == 2) {
  1726. this.classes = false
  1727. }
  1728. if (list.dialyzers == 1) {
  1729. this.dialyzers = true
  1730. }
  1731. if (list.dialyzers == 2) {
  1732. this.dialyzers = false
  1733. }
  1734. if (list.doctor_advice == 1) {
  1735. this.doctor_advice = true
  1736. }
  1737. if (list.doctor_advice == 2) {
  1738. this.doctor_advice = false
  1739. }
  1740. if (list.name == 1) {
  1741. this.name = true
  1742. }
  1743. if (list.name == 2) {
  1744. this.name = false
  1745. }
  1746. if (list.number == 1) {
  1747. this.number = true
  1748. }
  1749. if (list.number == 2) {
  1750. this.number = false
  1751. }
  1752. if (list.perfusion_apparatus == 1) {
  1753. this.perfusion_apparatus = true
  1754. }
  1755. if (list.perfusion_apparatus == 2) {
  1756. this.perfusion_apparatus = false
  1757. }
  1758. if (list.prescription_status == 1) {
  1759. this.prescription_status = true
  1760. }
  1761. if (list.prescription_status == 2) {
  1762. this.prescription_status = false
  1763. }
  1764. if (list.week == 1) {
  1765. this.week = true
  1766. }
  1767. if (list.week == 2) {
  1768. this.week = false
  1769. }
  1770. if (list.zone == 1) {
  1771. this.zone_name = true
  1772. }
  1773. if (list.zone == 2) {
  1774. this.zone_name = false
  1775. }
  1776. if (list.mode == 1) {
  1777. this.mode = true
  1778. }
  1779. if (list.mode == 2) {
  1780. this.mode = false
  1781. }
  1782. this.form.id = list.id
  1783. }
  1784. })
  1785. },
  1786. saveRemindPrint() {
  1787. if (this.perfusion_apparatus == true) {
  1788. // console.log('3333')
  1789. this.form.perfusion_apparatus = 1
  1790. }
  1791. if (this.perfusion_apparatus == false) {
  1792. this.form.perfusion_apparatus = 2
  1793. }
  1794. if (this.prescription_status == true) {
  1795. this.form.prescription_status = 1
  1796. }
  1797. if (this.prescription_status == false) {
  1798. this.form.prescription_status = 2
  1799. }
  1800. if (this.week == true) {
  1801. this.form.week = 1
  1802. }
  1803. if (this.week == false) {
  1804. this.form.week = 2
  1805. }
  1806. if (this.name == true) {
  1807. this.form.name = 1
  1808. }
  1809. if (this.name == false) {
  1810. this.form.name = 2
  1811. }
  1812. if (this.zone_name == true) {
  1813. this.form.zone = 1
  1814. }
  1815. if (this.zone_name == false) {
  1816. this.form.zone = 2
  1817. }
  1818. if (this.classes == true) {
  1819. this.form.classes = 1
  1820. }
  1821. if (this.classes == false) {
  1822. this.form.classes = 2
  1823. }
  1824. if (this.number == true) {
  1825. this.form.number = 1
  1826. }
  1827. if (this.number == false) {
  1828. this.form.number = 2
  1829. }
  1830. if (this.mode == true) {
  1831. this.form.mode = 1
  1832. }
  1833. if (this.mode == false) {
  1834. this.form.mode = 2
  1835. }
  1836. if (this.dialyzers == true) {
  1837. this.form.dialyzers = 1
  1838. }
  1839. if (this.dialyzers == false) {
  1840. this.form.dialyzers = 2
  1841. }
  1842. if (this.anticoagulant == true) {
  1843. this.form.anticoagulant = 1
  1844. }
  1845. if (this.anticoagulant == false) {
  1846. this.form.anticoagulant = 2
  1847. }
  1848. if (this.anticoagulant_zongliang == true) {
  1849. this.form.anticoagulant_zongliang = 1
  1850. }
  1851. if (this.anticoagulant_zongliang == false) {
  1852. this.form.anticoagulant_zongliang = 2
  1853. }
  1854. if (this.doctor_advice == true) {
  1855. this.form.doctor_advice = 1
  1856. }
  1857. if (this.doctor_advice == false) {
  1858. this.form.doctor_advice = 2
  1859. }
  1860. // console.log('555555555', this.form.prescription_status)
  1861. var params = {
  1862. id: this.form.id,
  1863. prescription_status: this.form.prescription_status,
  1864. week: this.form.week,
  1865. name: this.form.name,
  1866. zone: this.form.zone,
  1867. classes: this.form.classes,
  1868. number: this.form.number,
  1869. mode: this.form.mode,
  1870. dialyzers: this.form.dialyzers,
  1871. perfusion_apparatus: this.form.perfusion_apparatus,
  1872. anticoagulant: this.form.anticoagulant,
  1873. anticoagulant_zongliang: this.form.anticoagulant_zongliang,
  1874. doctor_advice: this.form.doctor_advice
  1875. }
  1876. // console.log('params', params)
  1877. saveRemindPrint(params).then(response => {
  1878. if (response.data.state == 1) {
  1879. var settting = response.data.data.setting
  1880. this.$message.success('保存成功')
  1881. this.dialogVisibleOne = false
  1882. this.getRemindPrintList()
  1883. }
  1884. })
  1885. },
  1886. toPrint(){
  1887. 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})
  1888. },
  1889. toPrintOne(){
  1890. 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})
  1891. },
  1892. handleSelectionChange(val){
  1893. var arr = []
  1894. for(let i=0;i<val.length;i++){
  1895. arr.push(val[i].id)
  1896. }
  1897. this.ids = arr.join(",")
  1898. },
  1899. changeScheduleType(){
  1900. this.tableList = []
  1901. this.statistics()
  1902. },
  1903. changePartionType(){
  1904. this.tableList = []
  1905. this.statistics()
  1906. },
  1907. getDisplaceLiquiPart(id){
  1908. var name = ""
  1909. for(let i=0;i<this.displace_liqui_part_option.length;i++){
  1910. if(id == this.displace_liqui_part_option[i].id){
  1911. name = this.displace_liqui_part_option[i].name
  1912. }
  1913. }
  1914. return name
  1915. }
  1916. }
  1917. }
  1918. </script>
  1919. <style lang="scss" scoped>
  1920. .page_consumables {
  1921. .clearfix:after {
  1922. content: none;
  1923. }
  1924. }
  1925. </style>