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

dialysisParameter.vue 61KB

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