UserForm.vue 96KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713
  1. <template>
  2. <div id="user-form">
  3. <el-row class="c">
  4. <el-col :span="12">
  5. <span class="machineClass">日期查询:</span>
  6. <el-date-picker
  7. v-model="form.start_time"
  8. prefix-icon="none"
  9. type="date"
  10. placeholder="请选择"
  11. format="yyyy-MM-dd"
  12. value-format="yyyy-MM-dd"
  13. style="width:130px"
  14. ></el-date-picker
  15. >-
  16. <el-date-picker
  17. v-model="form.end_time"
  18. prefix-icon="none"
  19. type="date"
  20. placeholder="请选择"
  21. format="yyyy-MM-dd"
  22. value-format="yyyy-MM-dd"
  23. style="width:130px"
  24. ></el-date-picker>
  25. </el-col>
  26. <el-col :span="5">
  27. <span class="machineClass">分区:</span>
  28. <el-select style="width:110px" v-model="form.zone" @change="changeBed">
  29. <el-option
  30. v-for="item in this.zones"
  31. :key="item.id"
  32. :label="item.name"
  33. :value="item.id"
  34. ></el-option>
  35. </el-select>
  36. </el-col>
  37. <el-col :span="5">
  38. <span class="machineClass">机位号:</span>
  39. <el-select style="width:110px" v-model="form.bed">
  40. <el-option
  41. v-for="item in this.bedNumberTwo"
  42. :key="item.id"
  43. :label="item.number"
  44. :value="item.id"
  45. ></el-option>
  46. </el-select>
  47. </el-col>
  48. <el-col :span="2">
  49. <el-button type="primary" @click="queryInfo()">查询</el-button>
  50. </el-col>
  51. </el-row>
  52. <el-row :span="24" style="display: flex;align-items: center;">
  53. <el-col :span="2">
  54. <el-checkbox
  55. :indeterminate="isIndeterminate"
  56. v-model="checkAllStatus"
  57. @change="changeCheck"
  58. >全选</el-checkbox
  59. >
  60. </el-col>
  61. <el-col :span="3">
  62. <el-button size="small" @click="BatchDelete">批量删除</el-button>
  63. </el-col>
  64. <el-col :span="6">
  65. <el-button type="primary" @click="exportlist">导出</el-button>
  66. <el-button type="primary" @click="printCard">打印</el-button>
  67. </el-col>
  68. </el-row>
  69. <el-row>
  70. <el-table
  71. ref="multipleTable"
  72. @selection-change="handleSelectionChange"
  73. :row-style="{ color: '#303133' }"
  74. :header-cell-style="{
  75. backgroundColor: 'rgb(245, 247, 250)',
  76. color: '#606266'
  77. }"
  78. :data="tableData"
  79. border
  80. fit
  81. highlight-current-row
  82. style="width: 100%;margin-top: 10px;"
  83. >
  84. <el-table-column
  85. align="center"
  86. type="selection"
  87. width="55"
  88. ></el-table-column>
  89. <el-table-column label="机号" align="center" width="50">
  90. <template slot-scope="scope">{{ scope.row.bed }}</template>
  91. </el-table-column>
  92. <el-table-column label="日期" align="center" width="100">
  93. <template slot-scope="scope">{{ getTime(scope.row.date) }}</template>
  94. </el-table-column>
  95. <el-table-column label="班次" align="center" min-width="110px">
  96. <template slot-scope="scope">{{ scope.row.class }}</template>
  97. </el-table-column>
  98. <el-table-column label="患者" align="center" min-width="110px">
  99. <template slot-scope="scope">{{ scope.row.name }}</template>
  100. </el-table-column>
  101. <el-table-column label="透析方式" align="center" min-width="90px">
  102. <template slot-scope="scope">{{ scope.row.dialysis_mode }}</template>
  103. </el-table-column>
  104. <el-table-column label="使用次数" align="center" min-width="110px">
  105. <template slot-scope="scope">{{ scope.row.user_total }}</template>
  106. </el-table-column>
  107. <el-table-column label="运行" align="center" min-width="110px">
  108. <template slot-scope="scope">{{ scope.row.move }}</template>
  109. </el-table-column>
  110. <el-table-column label="机表(床单元、床旁桌)消毒" align="center" min-width="110px">
  111. <el-table-column label="消毒方式" align="center" min-width="110px">
  112. <template slot-scope="scope">{{
  113. scope.row.disinfect_type
  114. }}</template>
  115. </el-table-column>
  116. <el-table-column label="消毒液" align="center" min-width="110px">
  117. <template slot-scope="scope">{{
  118. scope.row.disinfectant_type
  119. }}</template>
  120. </el-table-column>
  121. <el-table-column label="消毒状态" align="center" min-width="110px">
  122. <template slot-scope="scope">{{ scope.row.disinfection }}</template>
  123. </el-table-column>
  124. <el-table-column label="消毒液浓度" align="center" min-width="110px">
  125. <template slot-scope="scope">{{
  126. scope.row.dialysis_concentration
  127. }}</template>
  128. </el-table-column>
  129. </el-table-column>
  130. <el-table-column label="液路消毒" align="center" min-width="110px">
  131. <el-table-column label="消毒方式" align="center" min-width="110px">
  132. <template slot-scope="scope">{{ scope.row.fluid_path }}</template>
  133. </el-table-column>
  134. <el-table-column label="消毒液" align="center" min-width="110px">
  135. <template slot-scope="scope">{{ scope.row.disinfectant }}</template>
  136. </el-table-column>
  137. <el-table-column
  138. label="开始消毒时间"
  139. align="center"
  140. min-width="110px"
  141. >
  142. <template slot-scope="scope">
  143. {{ getTimesTwo(scope.row.disinfec_startime) }}
  144. </template>
  145. </el-table-column>
  146. <el-table-column
  147. label="结束消毒时间"
  148. align="center"
  149. min-width="110px"
  150. >
  151. <template slot-scope="scope">{{
  152. getTimesTwo(scope.row.disinfec_endtime)
  153. }}</template>
  154. </el-table-column>
  155. <el-table-column
  156. label="消毒时长/min"
  157. align="center"
  158. min-width="110px"
  159. >
  160. <template slot-scope="scope">{{ scope.row.long_time }}</template>
  161. </el-table-column>
  162. <el-table-column label="消毒状态" align="center" min-width="110px">
  163. <template slot-scope="scope">{{
  164. scope.row.disinfection_status
  165. }}</template>
  166. </el-table-column>
  167. <el-table-column label="消毒液残留" align="center" min-width="110px">
  168. <template slot-scope="scope">{{
  169. scope.row.disinfection_residue
  170. }}</template>
  171. </el-table-column>
  172. </el-table-column>
  173. <el-table-column
  174. label="透析机消毒液(更换)"
  175. align="center"
  176. min-width="110px"
  177. >
  178. <template slot-scope="scope">{{
  179. scope.row.dialysis_checked
  180. }}</template>
  181. </el-table-column>
  182. <el-table-column
  183. label="细菌过滤器(更换)"
  184. align="center"
  185. min-width="110px"
  186. >
  187. <template slot-scope="scope">{{ scope.row.germ_checked }}</template>
  188. </el-table-column>
  189. <el-table-column label="空气滤网" align="center" min-width="110px">
  190. <template slot-scope="scope">{{ scope.row.clean }}</template>
  191. </el-table-column>
  192. <el-table-column label="签名" align="center" min-width="110px">
  193. <template slot-scope="scope">{{ scope.row.user_name }}</template>
  194. </el-table-column>
  195. <el-table-column label="操作" align="center" fixed="right" min-width="150px">
  196. <template slot-scope="scope">
  197. <el-tooltip
  198. class="item"
  199. effect="dark"
  200. content="编辑"
  201. placement="top"
  202. >
  203. <el-button
  204. size="mini"
  205. type="primary"
  206. icon="el-icon-edit-outline"
  207. @click="
  208. EditUser(scope.row.id, scope.row.patient_id, scope.$index)
  209. "
  210. ></el-button>
  211. </el-tooltip>
  212. <el-tooltip
  213. class="item"
  214. effect="dark"
  215. content="删除"
  216. placement="top"
  217. >
  218. <el-button
  219. size="mini"
  220. type="danger"
  221. icon="el-icon-delete"
  222. @click="DeleteUserLogin(scope.row.id, scope.$index)"
  223. ></el-button>
  224. </el-tooltip>
  225. </template>
  226. </el-table-column>
  227. </el-table>
  228. <el-pagination
  229. @size-change="handleSizeChange"
  230. @current-change="handleCurrentChange"
  231. :page-sizes="[10, 20, 30,50,100,200,500,1000,2000,5000,10000]"
  232. :page-size="10"
  233. background
  234. style="margin-top:20px;float: right"
  235. layout="total, sizes, prev, pager, next, jumper"
  236. :total="total"
  237. ></el-pagination>
  238. </el-row>
  239. <el-dialog
  240. title="使用登记"
  241. :visible.sync="dialogVisible"
  242. width="75%"
  243. center
  244. >
  245. <el-form :model="userform" ref="userform">
  246. <el-row>
  247. <el-col :span="8">
  248. <el-form-item label="日期:">
  249. <el-date-picker
  250. v-model="userform.spling_date"
  251. prefix-icon="none"
  252. type="date"
  253. placeholder="请选择"
  254. format="yyyy-MM-dd"
  255. value-format="yyyy-MM-dd"
  256. style="width:150px"
  257. ></el-date-picker>
  258. </el-form-item>
  259. </el-col>
  260. <el-col :span="8">
  261. <el-form-item label="班次:">
  262. <el-select
  263. v-model="userform.classtype"
  264. placeholder="请选择"
  265. class="a"
  266. style="width:150px"
  267. >
  268. <el-option
  269. v-for="item in classType"
  270. :key="item.id"
  271. :label="item.name"
  272. :value="item.id"
  273. style="width:100px"
  274. ></el-option>
  275. </el-select>
  276. </el-form-item>
  277. </el-col>
  278. <el-col :span="8">
  279. <el-form-item label="分区:">
  280. <el-select
  281. v-model="userform.zone"
  282. placeholder="请选择"
  283. class="a"
  284. style="width:150px"
  285. >
  286. <el-option
  287. v-for="item in zones"
  288. :key="item.id"
  289. :label="item.name"
  290. :value="item.id"
  291. ></el-option>
  292. </el-select>
  293. </el-form-item>
  294. </el-col>
  295. </el-row>
  296. <el-row>
  297. <el-col :span="8">
  298. <el-form-item label="床位号:">
  299. <el-select style="width:150px" v-model="userform.bed_number">
  300. <el-option
  301. v-for="item in this.bedNumber"
  302. :key="item.id"
  303. :label="item.number"
  304. :value="item.id"
  305. ></el-option>
  306. </el-select>
  307. </el-form-item>
  308. </el-col>
  309. <el-col :span="8">
  310. <el-form-item label="患者:">
  311. <el-autocomplete
  312. popper-class="my-autocomplete"
  313. v-model="userform.patient_name"
  314. :fetch-suggestions="querySearchAsync"
  315. placeholder="请输入内容"
  316. @select="handleSelect"
  317. style="width:150px"
  318. >
  319. <i class="el-icon-search el-input__icon" slot="suffix"></i>
  320. <template slot-scope="{ item }">
  321. <span class="addr">{{ item.name }}</span>
  322. </template>
  323. </el-autocomplete>
  324. </el-form-item>
  325. </el-col>
  326. <el-col :span="8">
  327. <el-form-item label="传染病:">
  328. <el-input
  329. v-model="userform.contagion"
  330. :disabled="true"
  331. style="width:150px"
  332. ></el-input>
  333. </el-form-item>
  334. </el-col>
  335. </el-row>
  336. <el-row>
  337. <el-col :span="8">
  338. <el-form-item label="透析方式:">
  339. <el-select
  340. v-model="userform.dialysis_mode"
  341. placeholder="请选择"
  342. class="a"
  343. style="width:150px"
  344. >
  345. <el-option
  346. v-for="item in treatmode"
  347. :key="item.id"
  348. :label="item.name"
  349. :value="item.id"
  350. ></el-option>
  351. </el-select>
  352. </el-form-item>
  353. </el-col>
  354. <el-col :span="8">
  355. <el-form-item label="上机时间:">
  356. <el-date-picker
  357. type="datetime"
  358. format="yyyy-MM-dd HH:mm"
  359. value-format="yyyy-MM-dd HH:mm"
  360. placeholder="选择时间"
  361. v-model="userform.start_time"
  362. ></el-date-picker>
  363. </el-form-item>
  364. </el-col>
  365. <el-col :span="8">
  366. <el-form-item label="下机时间:">
  367. <el-date-picker
  368. type="datetime"
  369. format="yyyy-MM-dd HH:mm"
  370. value-format="yyyy-MM-dd HH:mm"
  371. placeholder="选择时间"
  372. v-model="userform.end_time"
  373. ></el-date-picker>
  374. </el-form-item>
  375. </el-col>
  376. </el-row>
  377. <el-row>
  378. <el-col :span="8">
  379. <el-form-item label="透析时长:">
  380. <el-input
  381. style="width:150px"
  382. v-model="userform.dialysis_time"
  383. ></el-input>
  384. </el-form-item>
  385. </el-col>
  386. <el-col :span="8">
  387. <el-form-item label="实际超滤量:">
  388. <el-input
  389. style="width:150px"
  390. v-model="userform.hyperfiltratio"
  391. ></el-input>
  392. </el-form-item>
  393. </el-col>
  394. <el-col :span="8">
  395. <el-form-item label="体重减少:">
  396. <el-input
  397. style="width:150px"
  398. v-model="userform.weight_loss"
  399. ></el-input>
  400. </el-form-item>
  401. </el-col>
  402. </el-row>
  403. <el-row>
  404. <el-col :span="8">
  405. <el-form-item label="预警值:">
  406. <el-input
  407. style="width:150px"
  408. v-model="userform.warning_value"
  409. ></el-input>
  410. </el-form-item>
  411. </el-col>
  412. <el-col :span="8">
  413. <el-form-item label="使用次数:">
  414. <el-input
  415. style="width:150px"
  416. v-model="userform.user_total"
  417. ></el-input>
  418. </el-form-item>
  419. </el-col>
  420. <el-col :span="8">
  421. <el-form-item label="运行:">
  422. <el-radio-group v-model="userform.run" @change="changeRun">
  423. <el-radio
  424. :label="gender.id"
  425. :value="gender.id"
  426. v-for="(gender, index) in runOption"
  427. :key="index"
  428. >{{ gender.name }}</el-radio
  429. >
  430. </el-radio-group>
  431. </el-form-item>
  432. </el-col>
  433. </el-row>
  434. <el-row>
  435. <el-col>
  436. <el-form-item label="故障发生阶段:">
  437. <el-radio-group v-model="userform.failure_stage" :disabled="four">
  438. <el-radio
  439. :label="gender.id"
  440. :value="gender.id"
  441. v-for="(gender, index) in faultPhase"
  442. :key="index"
  443. >{{ gender.name }}</el-radio
  444. >
  445. </el-radio-group>
  446. </el-form-item>
  447. </el-col>
  448. </el-row>
  449. <el-row>
  450. <el-col :span="24">
  451. <el-form-item label="故障描述:">
  452. <el-input
  453. style="width:600px"
  454. v-model="userform.fault_description"
  455. ></el-input>
  456. </el-form-item>
  457. </el-col>
  458. </el-row>
  459. <el-row>
  460. <el-col :span="24">
  461. <el-form-item class="stoppage" label="故障提示信息及代码:">
  462. <el-input
  463. style="width:600px"
  464. v-model="userform.code_information"
  465. ></el-input>
  466. </el-form-item>
  467. </el-col>
  468. </el-row>
  469. <el-row>
  470. <el-form-item label="机器消毒:"></el-form-item>
  471. </el-row>
  472. <el-row>
  473. <el-col :span="2">
  474. <el-form-item label="①机表(床单元、床旁桌)"></el-form-item>
  475. </el-col>
  476. <el-col :span="8">
  477. <el-form-item label="消毒方式:" style="width:200px">
  478. <el-select
  479. v-model="userform.disinfect_type"
  480. placeholder="请选择"
  481. style="width:230px"
  482. >
  483. <el-option
  484. v-for="item in disinfectType"
  485. :key="item.id"
  486. :label="item.name"
  487. :value="item.id"
  488. ></el-option>
  489. </el-select>
  490. </el-form-item>
  491. </el-col>
  492. <el-col :span="8">
  493. <el-form-item label="消毒液:">
  494. <el-select
  495. v-model="userform.disinfectant_type"
  496. placeholder="请选择"
  497. style="width:230px"
  498. >
  499. <el-option
  500. v-for="item in disinfectantType"
  501. :key="item.id"
  502. :label="item.name"
  503. :value="item.id"
  504. ></el-option>
  505. </el-select>
  506. </el-form-item>
  507. </el-col>
  508. </el-row>
  509. <el-row>
  510. <el-col :span="2" style="visibility: hidden;">
  511. <el-form-item label="②液路"></el-form-item>
  512. </el-col>
  513. <el-col :span="8">
  514. <el-form-item label="消毒状态:">
  515. <el-select
  516. v-model="userform.disinfection"
  517. placeholder="请选择"
  518. style="width:230px"
  519. >
  520. <el-option
  521. v-for="item in disinfection"
  522. :key="item.id"
  523. :label="item.name"
  524. :value="item.id"
  525. ></el-option>
  526. </el-select>
  527. </el-form-item>
  528. </el-col>
  529. <el-col :span="8">
  530. <el-form-item label="运行:">
  531. <el-radio-group v-model="userform.machine_run">
  532. <el-radio
  533. :label="gender.id"
  534. :value="gender.id"
  535. v-for="(gender, index) in runOptions"
  536. :key="index"
  537. >{{ gender.name }}</el-radio
  538. >
  539. </el-radio-group>
  540. </el-form-item>
  541. </el-col>
  542. </el-row>
  543. <el-row>
  544. <el-col :span="2">
  545. <el-form-item label="②液路"></el-form-item>
  546. </el-col>
  547. <el-col :span="8">
  548. <el-form-item label="消毒方式:">
  549. <el-select
  550. v-model="userform.fluid_path"
  551. placeholder="请选择"
  552. style="width:230px"
  553. >
  554. <el-option
  555. v-for="item in sterilizeType"
  556. :key="item.id"
  557. :label="item.name"
  558. :value="item.id"
  559. ></el-option>
  560. </el-select>
  561. </el-form-item>
  562. </el-col>
  563. <el-col :span="8">
  564. <el-form-item label="消毒液:">
  565. <el-select
  566. v-model="userform.disinfectant"
  567. placeholder="请选择"
  568. style="width:230px"
  569. >
  570. <el-option
  571. v-for="item in fluidPathType"
  572. :key="item.id"
  573. :label="item.name"
  574. :value="item.id"
  575. ></el-option>
  576. </el-select>
  577. </el-form-item>
  578. </el-col>
  579. </el-row>
  580. <el-row>
  581. <el-col :span="2" style="visibility: hidden;">
  582. <el-form-item label="②液路"></el-form-item>
  583. </el-col>
  584. <el-col :span="8">
  585. <el-form-item label="消毒状态:">
  586. <el-select
  587. v-model="userform.disinfection_status"
  588. placeholder="请选择"
  589. style="width:230px"
  590. >
  591. <el-option
  592. v-for="item in disinfection"
  593. :key="item.id"
  594. :label="item.name"
  595. :value="item.id"
  596. ></el-option>
  597. </el-select>
  598. </el-form-item>
  599. </el-col>
  600. <el-col :span="8">
  601. <el-form-item label="消毒液残留:">
  602. <el-radio-group v-model="userform.disinfection_residue">
  603. <el-radio
  604. :label="gender.id"
  605. :value="gender.id"
  606. v-for="(gender, index) in Disinfectant"
  607. :key="index"
  608. >{{ gender.name }}</el-radio
  609. >
  610. </el-radio-group>
  611. </el-form-item>
  612. </el-col>
  613. </el-row>
  614. <el-row>
  615. <el-col :span="8">
  616. <el-form-item label="消毒时长:">
  617. <el-input
  618. style="width:140px"
  619. v-model="userform.longtime"
  620. ></el-input
  621. >分钟
  622. </el-form-item>
  623. </el-col>
  624. <el-col :span="8">
  625. <el-form-item label="开始消毒时间:">
  626. <el-date-picker
  627. type="datetime"
  628. format="yyyy-MM-dd HH:mm"
  629. value-format="yyyy-MM-dd HH:mm"
  630. placeholder="选择时间"
  631. v-model="userform.starttime"
  632. ></el-date-picker>
  633. </el-form-item>
  634. </el-col>
  635. <el-col :span="8">
  636. <el-form-item label="结束消毒时间:">
  637. <el-date-picker
  638. type="datetime"
  639. format="yyyy-MM-dd HH:mm"
  640. value-format="yyyy-MM-dd HH:mm"
  641. placeholder="选择时间"
  642. v-model="userform.endtime"
  643. ></el-date-picker>
  644. </el-form-item>
  645. </el-col>
  646. </el-row>
  647. <el-row>
  648. <el-col :span="8">
  649. <el-form-item
  650. label="透析机消毒液:"
  651. style="display:flex;align-items:center"
  652. >
  653. <el-checkbox v-model="userform.dialysis_checked"
  654. >更换</el-checkbox
  655. >
  656. </el-form-item>
  657. </el-col>
  658. <el-col :span="8">
  659. <el-form-item label="名称:">
  660. <el-select
  661. v-model="userform.dialysis_name"
  662. placeholder="请选择"
  663. style="width:150px"
  664. >
  665. <el-option
  666. v-for="item in names"
  667. :key="item.id"
  668. :label="item.name"
  669. :value="item.id"
  670. style="width:200px"
  671. ></el-option>
  672. </el-select>
  673. </el-form-item>
  674. </el-col>
  675. <el-col :span="8">
  676. <el-form-item label="规格:">
  677. <el-input style="width:150px" v-model="userform.norms"></el-input
  678. >桶
  679. </el-form-item>
  680. <span style="color:red" v-show="showone"
  681. >您已一个月未更换,请注意检测</span
  682. >
  683. </el-col>
  684. </el-row>
  685. <el-row>
  686. <el-col>
  687. <el-form-item label="浓度:">
  688. <el-radio-group v-model="userform.dialysis_concentration">
  689. <el-radio
  690. :label="gender.id"
  691. :value="gender.id"
  692. v-for="(gender, index) in potency"
  693. :key="index"
  694. >{{ gender.name }}</el-radio
  695. >
  696. </el-radio-group>
  697. </el-form-item>
  698. </el-col>
  699. </el-row>
  700. <el-row>
  701. <el-col :span="8">
  702. <el-form-item
  703. label="细菌过滤器:"
  704. style="display:flex;align-items:center"
  705. >
  706. <el-checkbox v-model="userform.germ_checked">更换</el-checkbox>
  707. <span style="color:red" v-show="showone"
  708. >您已三个月未更换,请注意检测</span
  709. >
  710. </el-form-item>
  711. </el-col>
  712. <el-col :span="8">
  713. <el-form-item label="名称:">
  714. <el-select
  715. v-model="userform.germ_name"
  716. placeholder="请选择"
  717. style="width:150px"
  718. >
  719. <el-option
  720. v-for="item in germs"
  721. :key="item.id"
  722. :label="item.name"
  723. :value="item.id"
  724. style="width:150px"
  725. ></el-option>
  726. </el-select>
  727. </el-form-item>
  728. </el-col>
  729. <el-col :span="8">
  730. <el-form-item label="数量:">
  731. <el-input
  732. style="width:150px"
  733. v-model="userform.germ_number"
  734. ></el-input
  735. >支
  736. </el-form-item>
  737. </el-col>
  738. </el-row>
  739. <el-row>
  740. <el-col :span="8">
  741. <el-form-item
  742. label="空气滤网清洁:"
  743. style="display:flex;align-items:center"
  744. >
  745. <el-checkbox v-model="userform.clean">清洁:</el-checkbox>
  746. <span style="color:red" v-show="showone"
  747. >您已一个月未清洁,请检查</span
  748. >
  749. </el-form-item>
  750. </el-col>
  751. <el-col :span="8">
  752. <el-form-item label="签名:">
  753. <el-select
  754. v-model="userform.sign_name"
  755. placeholder="请选择"
  756. style="width:185px"
  757. >
  758. <el-option
  759. v-for="item in autograph"
  760. :key="item.admin_user_id"
  761. :label="item.user_name"
  762. :value="item.admin_user_id"
  763. style="width:185px"
  764. ></el-option>
  765. </el-select>
  766. </el-form-item>
  767. </el-col>
  768. </el-row>
  769. </el-form>
  770. <span slot="footer" class="dialog-footer">
  771. <el-button @click="dialogVisible = false">取 消</el-button>
  772. <el-button type="primary" @click="UpdateForm('userform')"
  773. >保存</el-button
  774. >
  775. </span>
  776. </el-dialog>
  777. <div hidden="hidden">
  778. <div id="print-card-info" v-show="hiddenShow">
  779. <div>
  780. <div class="print_main_content">
  781. <div class="order_title">设备使用记录清单</div>
  782. </div>
  783. <div>
  784. <div class="printClass" v-if="org_id!=10340">打印日期:{{ nowTime }}</div>
  785. <table
  786. border="1"
  787. style="width:100%"
  788. cellspacing="0"
  789. cellpadding="0"
  790. class="tableClass"
  791. >
  792. <tr>
  793. <td
  794. :rowspan="2"
  795. style="text-align:center;min-width:40px; font-size:15px;"
  796. >
  797. 机号
  798. </td>
  799. <td
  800. :rowspan="2"
  801. style="text-align:center;min-width:40px;font-size:15px"
  802. >
  803. 日期
  804. </td>
  805. <td
  806. :rowspan="2"
  807. style="text-align:center;min-width:40px;font-size:15px"
  808. >
  809. 班次
  810. </td>
  811. <td
  812. :rowspan="2"
  813. style="text-align:center;min-width:40px;font-size:15px"
  814. >
  815. 患者
  816. </td>
  817. <td
  818. :rowspan="2"
  819. style="text-align:center;min-width:40px;font-size:15px"
  820. >
  821. 透析方式
  822. </td>
  823. <td
  824. v-if="org_id!=10495 && org_id!=0"
  825. :rowspan="2"
  826. style="text-align:center;min-width:40px;font-size:15px"
  827. >
  828. 使用次数
  829. </td>
  830. <td
  831. :rowspan="2"
  832. style="text-align:center;width:60px;font-size:15px"
  833. >
  834. 运行
  835. </td>
  836. <td
  837. :colspan="4"
  838. style="text-align:center;font-size:15px"
  839. >
  840. 机表(床单元、床旁桌)消毒
  841. </td>
  842. <td
  843. :colspan="7"
  844. style="text-align:center;font-size:15px"
  845. >
  846. 液路消毒
  847. </td>
  848. <td
  849. :rowspan="2"
  850. style="text-align:center;min-width:40px;font-size:15px"
  851. v-if="org_id!=0&&org_id!=10060&& org_id!=10340 && org_id!=0 && org_id!=10495"
  852. >
  853. 透析机消毒液(更换)
  854. </td>
  855. <td
  856. :rowspan="2"
  857. style="text-align:center;width:80px;font-size:15px"
  858. v-if="org_id!=0&&org_id!=10060&& org_id!=10340 && org_id!=10495 && org_id!=0"
  859. >
  860. 细菌过滤器(更换)
  861. </td>
  862. <td
  863. :rowspan="2"
  864. style="text-align:center;width:80px;font-size:15px"
  865. v-if="org_id!=0&&org_id!=10060&& org_id!=10340"
  866. >
  867. 空气滤网
  868. </td>
  869. <td
  870. :rowspan="2"
  871. style="text-align:center;width:80px;font-size:15px"
  872. >
  873. 签名
  874. </td>
  875. </tr>
  876. <tr>
  877. <td style="text-align:center;min-width:40px;font-size:15px">
  878. 消毒方式
  879. </td>
  880. <td style="text-align:center;min-width:40px;font-size:15px">
  881. 消毒液
  882. </td>
  883. <td style="text-align:center;min-width:40px;font-size:15px">
  884. 消毒状态
  885. </td>
  886. <td style="text-align:center;min-width:40px;font-size:15px">
  887. 消毒液浓度
  888. </td>
  889. <td style="text-align:center;min-width:40px;font-size:15px">
  890. 消毒方式
  891. </td>
  892. <td style="text-align:center;min-width:40px;font-size:15px">
  893. 消毒液
  894. </td>
  895. <td style="text-align:center;min-width:40px;font-size:15px">
  896. 开始消毒时间
  897. </td>
  898. <td style="text-align:center;min-width:40px;font-size:15px">
  899. 消毒时长/min
  900. </td>
  901. <td style="text-align:center;min-width:40px;font-size:15px">
  902. 结束消毒时间
  903. </td>
  904. <td style="text-align:center;min-width:40px;font-size:15px">
  905. 消毒状态
  906. </td>
  907. <td style="text-align:center;min-width:40px;font-size:15px">
  908. 消毒液残留
  909. </td>
  910. </tr>
  911. <tr v-for="item in this.tableData" :key="item.id">
  912. <td style="text-align:center;font-size:15px;height:30px">
  913. {{ item.bed }}
  914. </td>
  915. <td style="text-align:center;font-size:15px;height:30px">
  916. {{ getTimeTwo(item.date) }}
  917. </td>
  918. <td style="text-align:center;font-size:15px;height:30px">
  919. {{ item.class }}
  920. </td>
  921. <td style="text-align:center;font-size:15px;height:30px">
  922. {{ item.name }}
  923. </td>
  924. <td style="text-align:center;font-size:15px;height:30px">
  925. {{ item.dialysis_mode }}
  926. </td>
  927. <td style="text-align:center;font-size:15px;height:30px" v-if="org_id!=10495 && org_id!=0">
  928. {{ item.user_total }}
  929. </td>
  930. <td style="text-align:center;font-size:15px;height:30px">
  931. {{ item.move }}
  932. </td>
  933. <td style="text-align:center;font-size:15px;height:30px">
  934. {{ item.disinfect_type }}
  935. </td>
  936. <td style="text-align:center;font-size:15px;height:30px">
  937. {{ item.disinfectant_type }}
  938. </td>
  939. <td style="text-align:center;font-size:15px;height:30px">
  940. {{ item.disinfection }}
  941. </td>
  942. <td style="text-align:center;font-size:15px;height:30px">
  943. {{ item.dialysis_concentration }}
  944. </td>
  945. <td style="text-align:center;font-size:15px;height:30px">
  946. {{ item.fluid_path }}
  947. </td>
  948. <td style="text-align:center;font-size:15px;height:30px">
  949. {{ item.disinfectant }}
  950. </td>
  951. <td style="text-align:center;font-size:15px;height:30px">
  952. {{ getTimesTwo(item.disinfec_startime) }}
  953. </td>
  954. <td style="text-align:center;font-size:15px;height:30px">
  955. {{ item.long_time }}
  956. </td>
  957. <td style="text-align:center;font-size:15px;height:30px">
  958. {{ getTimesTwo(item.disinfec_endtime) }}
  959. </td>
  960. <td style="text-align:center;font-size:15px;height:30px">
  961. {{ item.disinfection_status }}
  962. </td>
  963. <td style="text-align:center;font-size:15px;height:30px">
  964. {{ item.disinfection_residue }}
  965. </td>
  966. <td style="text-align:center;font-size:15px;height:30px"
  967. v-if="org_id!=0&&org_id!=10060 && org_id!=10340">
  968. {{item.dialysis_checked }}
  969. </td>
  970. <td style="text-align:center;font-size:15px;height:30px"
  971. v-if="org_id!=0&&org_id!=10060&& org_id!=10340">
  972. {{item.germ_checked }}
  973. </td>
  974. <td style="text-align:center;font-size:15px;height:30px"
  975. v-if="org_id!=0&&org_id!=10060&& org_id!=10340">
  976. {{item.clean}}
  977. </td>
  978. <td style="text-align:center;font-size:15px;height:30px">
  979. <!-- {{ item.user_name }} -->
  980. <span v-if="setAdminUserES(item.admin_user_id?item.admin_user_id:item.admin_user_id) == ''">
  981. {{ item.user_name }}
  982. </span>
  983. <span v-else>
  984. <img style="height:30px;" :src="setAdminUserES(item.admin_user_id?item.admin_user_id:item.admin_user_id)" alt="" srcset="">
  985. </span>
  986. </td>
  987. </tr>
  988. </table>
  989. </div>
  990. </div>
  991. </div>
  992. </div>
  993. </div>
  994. </template>
  995. <script>
  996. import {
  997. getAllSubregion,
  998. getInformationData,
  999. getAllOrganization,
  1000. EditUser,
  1001. DeleteUserform,
  1002. UpdateForm,
  1003. queryInfo,
  1004. getUserForm,
  1005. getBedForm,
  1006. getPatientDetail,
  1007. DeleteUserLogin
  1008. } from "@/api/manage";
  1009. import { uParseTime } from "@/utils/tools";
  1010. import { PostSearch } from "@/api/patient";
  1011. import { changeBed } from "@/api/manage";
  1012. // eslint-disable-next-line no-unused-vars
  1013. import print from "print-js";
  1014. const moment = require("moment");
  1015. export default {
  1016. name: "UserForm",
  1017. props: {
  1018. userdata: Number
  1019. },
  1020. data() {
  1021. return {
  1022. nowTime: moment(new Date()).format("YYYY-MM-DD HH:MM:SS"),
  1023. tableData: [],
  1024. value: "",
  1025. zones: [],
  1026. bedNumber: [],
  1027. patientName: [],
  1028. isIndeterminate: false,
  1029. dialogVisible: false,
  1030. checkAllStatus: false,
  1031. form: {
  1032. zone: "",
  1033. bed: "",
  1034. start_time: "",
  1035. end_time: ""
  1036. },
  1037. checkAll: false,
  1038. limit: 10,
  1039. page: 1,
  1040. total: 0,
  1041. value: "",
  1042. classType: [
  1043. { id: 1, name: "上午" },
  1044. { id: 2, name: "下午" },
  1045. { id: 3, name: "晚上" }
  1046. ],
  1047. treatmode: [
  1048. { id: 0, name: "请选择" },
  1049. { id: 1, name: "HD" },
  1050. { id: 2, name: "HDF" },
  1051. { id: 3, name: "HD + HP" },
  1052. { id: 4, name: "HP" },
  1053. { id: 5, name: "HF" },
  1054. { id: 6, name: "SCUF" },
  1055. { id: 7, name: "IUF" },
  1056. { id: 8, name: "HFHD" },
  1057. { id: 9, name: "HFHD+HP" },
  1058. { id: 10, name: "PHF" },
  1059. { id: 11, name: "HFR" },
  1060. { id: 12, name: "HDF+HP" },
  1061. { id: 13, name: "CRRT" },
  1062. { id: 14, name: "腹水回输" },
  1063. { id: 15, name: "HD前置换" },
  1064. { id: 16, name: "HD后置换" },
  1065. { id: 17, name: "HDF前置换" },
  1066. { id: 18, name: "HDF后置换" },
  1067. { id:19, name:"IUF+HD"},
  1068. { id:20, name:"UF"},
  1069. { id:21, name:"HD+"},
  1070. { id:22, name:"血浆胆红素吸附+HDF"},
  1071. { id:23, name:"血浆胆红素吸附"},
  1072. { id:24, name:"I-HDF"},
  1073. { id:25, name:"HD高通"},
  1074. { id:26, name:"CVVH"},
  1075. { id:27, name:"CVVHD"},
  1076. { id:28, name:"CVVHDF"},
  1077. { id:29, name:"PE"},
  1078. ],
  1079. // 基表消毒方式
  1080. disinfectType: [
  1081. { id: 0, name: "请选择" },
  1082. { id: 1, name: "擦拭" },
  1083. { id: 2, name: "化学消毒" }
  1084. ],
  1085. // 基表消毒液
  1086. disinfectantType: [
  1087. { id: 0, name: "请选择" },
  1088. { id: 1, name: "0.22%季铵盐" },
  1089. { id: 2, name: "500mg/l含氯消毒剂" },
  1090. { id: 3, name: "1000mg/l含氯消毒剂" },
  1091. { id: 4, name: "1500mg/l含氯消毒剂" },
  1092. { id: 5, name: "消毒湿巾" },
  1093. { id: 6, name: "1.85g/L季铵盐" }
  1094. ],
  1095. // 夜路消毒方式
  1096. sterilizeType: [
  1097. { id: 0, name: "请选择" },
  1098. { id: 1, name: "热化学消毒" },
  1099. { id: 2, name: "化学消毒 + 除钙" },
  1100. { id: 3, name: "热化学消毒 + 除钙" },
  1101. { id: 4, name: "热消毒" },
  1102. { id: 5, name: "化学消毒" },
  1103. { id: 6, name: "除钙" },
  1104. { id: 7, name: "清洗" }
  1105. ],
  1106. // 夜路消毒液
  1107. fluidPathType: [
  1108. { id: 0, name: "请选择" },
  1109. { id: 1, name: "20%柠檬酸" },
  1110. { id: 2, name: "25%柠檬酸" },
  1111. { id: 3, name: "50%柠檬酸" },
  1112. { id: 4, name: "50%柠檬酸 + 5%次氯酸钠" },
  1113. { id: 5, name: "20%柠檬酸 + 10%冰醋酸" },
  1114. { id: 6, name: "0.2%过氧化乙酸" },
  1115. { id: 7, name: "10%冰醋酸" },
  1116. { id: 8, name: "50%冰醋酸" },
  1117. { id: 9, name: "5%次氯酸钠" },
  1118. { id: 10,name:"25%的柠檬酸+5%次氯酸钠"},
  1119. ],
  1120. runOption: [{ id: 1, name: "正常" }, { id: 2, name: "故障" }],
  1121. runOptions: [{ id: 1, name: "达标" }, { id: 2, name: "未达标" }],
  1122. faultPhase: [
  1123. { id: 1, name: "开机启动" },
  1124. { id: 2, name: "自检" },
  1125. { id: 3, name: "准备" },
  1126. { id: 4, name: "治疗" },
  1127. { id: 5, name: "消毒" }
  1128. ],
  1129. Disinfectant: [{ id: 1, name: "有" }, { id: 2, name: "无" }],
  1130. potency: [{ id: 1, name: "达标" }, { id: 2, name: "未达标" }],
  1131. disinfection: [
  1132. { id: 1, name: "已消毒" },
  1133. { id: 2, name: "未消毒" },
  1134. { id: 3, name: "消毒未完成" }
  1135. ],
  1136. names: [
  1137. { id: 0, name: "请选择" },
  1138. { id: 1, name: "20%柠檬酸" },
  1139. { id: 2, name: "50%柠檬酸" },
  1140. { id: 3, name: "次氯酸钠" }
  1141. ],
  1142. germs: [
  1143. { id: 0, name: "请选择" },
  1144. { id: 1, name: "费森细菌过滤器" },
  1145. { id: 2, name: "日机装细菌过滤器" },
  1146. { id: 3, name: "贝朗机细菌过滤器" },
  1147. { id: 4, name: "东丽机细菌过滤器" },
  1148. {id:5,name:"山外山细菌过滤器"},
  1149. {id:6,name:"尼普洛细菌过滤器"},
  1150. {id:7,name:"威高细菌过滤器"},
  1151. {id:8,name:"宝莱特细菌过滤器"}
  1152. ],
  1153. autograph: [],
  1154. selectCulture: [],
  1155. userform: {
  1156. id: "",
  1157. spling_date: "", // 日期
  1158. classtype: "", // 班次
  1159. zone: "", // 分区
  1160. bed_number: "", // 床位号
  1161. patient_name: "", // 患者
  1162. contagion: "", // 传染病
  1163. dialysis_mode: "", // 透析方式
  1164. start_time: "", // 上机时间
  1165. end_time: "", // 下机时间
  1166. dialysis_time: "", // 透析时长
  1167. hyperfiltratio: "", // 实际超滤量
  1168. weight_loss: "", // 体重减少
  1169. warning_value: "", // 预警值
  1170. user_total: "", // 使用次数
  1171. run: 1, // 运行
  1172. failure_stage: "", // 故事发生阶段
  1173. fault_description: "", // 故障描述
  1174. code_information: "", // 故障提示及代码
  1175. // 机器消毒
  1176. disinfect_type: 1, // 消毒方式
  1177. disinfectant_type: 2, // 消毒液
  1178. disinfection: 1, // 消毒状态
  1179. machine_run: 1, // 运行
  1180. // 液路
  1181. fluid_path: 3, // 消毒方式
  1182. disinfectant: 3, // 消毒液
  1183. disinfection_status: 1, // 消毒状态
  1184. disinfection_residue: 1, // 消毒液残留
  1185. longtime: "", // 消毒时长
  1186. starttime: "", // 开始消毒时间
  1187. endtime: "", // 结束消毒时间
  1188. dialysis_checked: "", // 更换
  1189. dialysis_name: "", // 名称
  1190. norms: "", // 规格
  1191. dialysis_concentration: 1, // 浓度
  1192. germ_checked: "", // 更换
  1193. germ_name: "", // 名称
  1194. germ_number: "", // 数量
  1195. clean: "", // 清洁
  1196. sign_name: "", // 签名
  1197. patient_id: "",
  1198. equiment_id: ""
  1199. },
  1200. hiddenShow: false,
  1201. searchArray: [],
  1202. bed: "",
  1203. bedNumberTwo: [],
  1204. four: true,
  1205. showone: false,
  1206. org_id:0,
  1207. operators: [],
  1208. operatorMaps:{},
  1209. };
  1210. },
  1211. methods: {
  1212. handleSelectionChange(val) {
  1213. this.selectCulture = val;
  1214. },
  1215. changeCheck() {
  1216. this.$refs.multipleTable.clearSelection();
  1217. if (this.checkAllStatus) {
  1218. this.$refs.multipleTable.toggleAllSelection();
  1219. }
  1220. },
  1221. getAllSubregion() {
  1222. getAllSubregion().then(response => {
  1223. if (response.data.state === 1) {
  1224. var zones = response.data.data.zones;
  1225. var zone = [{ id: 0, name: "全部" }];
  1226. for (let i = 0; i < zones.length; i++) {
  1227. const item = zones[i];
  1228. zone.push({ id: item.id, name: item.name });
  1229. }
  1230. this.zones = zone;
  1231. var numbers = response.data.data.numbers;
  1232. var number = [{ id: 0, number: "全部" }];
  1233. for (let index = 0; index < numbers.length; index++) {
  1234. const item = numbers[index];
  1235. number.push({ id: item.id, number: item.number });
  1236. }
  1237. this.bedNumberTwo = []
  1238. this.bedNumberTwo = number
  1239. this.bedNumber = number;
  1240. }
  1241. });
  1242. },
  1243. getInformationData() {
  1244. getInformationData(this.limit, this.page).then(response => {
  1245. if (response.data.state === 1) {
  1246. var information = response.data.data.information;
  1247. // console.log('information是什么', information)
  1248. for (let index = 0; index < information.length; index++) {
  1249. if (information[index].class === 1) {
  1250. information[index].class = "上午";
  1251. }
  1252. if (information[index].class === 2) {
  1253. information[index].class = "下午";
  1254. }
  1255. if (information[index].class === 3) {
  1256. information[index].class = "晚上";
  1257. }
  1258. if (information[index].dialysis_mode === 1) {
  1259. information[index].dialysis_mode = "HD";
  1260. }
  1261. if (information[index].dialysis_mode === 2) {
  1262. information[index].dialysis_mode = "HDF";
  1263. }
  1264. if (information[index].dialysis_mode === 3) {
  1265. information[index].dialysis_mode = "HD + HP";
  1266. }
  1267. if (information[index].dialysis_mode === 4) {
  1268. information[index].dialysis_mode = "HP";
  1269. }
  1270. if (information[index].dialysis_mode === 5) {
  1271. information[index].dialysis_mode = "HF";
  1272. }
  1273. if (information[index].dialysis_mode === 6) {
  1274. information[index].dialysis_mode = "SCUF";
  1275. }
  1276. if (information[index].dialysis_mode === 7) {
  1277. information[index].dialysis_mode = "IUF";
  1278. }
  1279. if (information[index].dialysis_mode === 8) {
  1280. information[index].dialysis_mode = "HFHD";
  1281. }
  1282. if (information[index].dialysis_mode === 9) {
  1283. information[index].dialysis_mode = "HFHD+HP";
  1284. }
  1285. if (information[index].dialysis_mode === 10) {
  1286. information[index].dialysis_mode = "PHF";
  1287. }
  1288. if (information[index].dialysis_mode === 11) {
  1289. information[index].dialysis_mode = "HFR";
  1290. }
  1291. if (information[index].dialysis_mode === 12) {
  1292. information[index].dialysis_mode = "HDF+HP";
  1293. }
  1294. if (information[index].dialysis_mode === 13) {
  1295. information[index].dialysis_mode = "CRRT";
  1296. }
  1297. if (information[index].dialysis_mode === 14) {
  1298. information[index].dialysis_mode = "腹水回输";
  1299. }
  1300. if (information[index].dialysis_mode === 15) {
  1301. information[index].dialysis_mode = "HD前置换";
  1302. }
  1303. if (information[index].dialysis_mode === 16) {
  1304. information[index].dialysis_mode = "HD后置换";
  1305. }
  1306. if (information[index].dialysis_mode === 17) {
  1307. information[index].dialysis_mode = "HDF前置换";
  1308. }
  1309. if (information[index].dialysis_mode === 18) {
  1310. information[index].dialysis_mode = "HDF后置换";
  1311. }
  1312. if (information[index].dialysis_mode === 19) {
  1313. information[index].dialysis_mode = "IUF+HD";
  1314. }
  1315. if (information[index].dialysis_mode === 20) {
  1316. information[index].dialysis_mode = "UF";
  1317. }
  1318. if (information[index].dialysis_mode === 21) {
  1319. information[index].dialysis_mode = "HD+";
  1320. }
  1321. if (information[index].dialysis_mode === 22) {
  1322. information[index].dialysis_mode = "血浆胆红素吸附+HDF";
  1323. }
  1324. if (information[index].dialysis_mode === 23) {
  1325. information[index].dialysis_mode = "血浆胆红素吸附";
  1326. }
  1327. if (information[index].dialysis_mode === 24) {
  1328. information[index].dialysis_mode = "I-HDF";
  1329. }
  1330. if (information[index].dialysis_mode === 25) {
  1331. information[index].dialysis_mode = "HD高通";
  1332. }
  1333. if (information[index].dialysis_mode === 26) {
  1334. information[index].dialysis_mode = "CVVH";
  1335. }
  1336. if (information[index].dialysis_mode === 27) {
  1337. information[index].dialysis_mode = "CVVHD";
  1338. }
  1339. if (information[index].dialysis_mode === 28) {
  1340. information[index].dialysis_mode = "CVVHDF";
  1341. }
  1342. if (information[index].dialysis_mode === 29) {
  1343. information[index].dialysis_mode = "PE";
  1344. }
  1345. if (information[index].move === 0) {
  1346. information[index].move = "";
  1347. }
  1348. if (information[index].move === 1) {
  1349. information[index].move = "正常";
  1350. }
  1351. if (information[index].move === 2) {
  1352. information[index].move = "故障";
  1353. }
  1354. if (information[index].disinfect_type === 0) {
  1355. information[index].disinfect_type = "/";
  1356. }
  1357. if (information[index].disinfect_type === 1) {
  1358. information[index].disinfect_type = "擦拭";
  1359. }
  1360. if (information[index].disinfect_type === 2) {
  1361. information[index].disinfect_type = "化学消毒";
  1362. }
  1363. if (information[index].disinfectant_type === 0) {
  1364. information[index].disinfectant_type = "/";
  1365. }
  1366. if (information[index].disinfectant_type === 1) {
  1367. information[index].disinfectant_type = "0.22%季铵盐";
  1368. }
  1369. if (information[index].disinfectant_type === 2) {
  1370. information[index].disinfectant_type = "500mg/l含氯消毒剂";
  1371. }
  1372. if (information[index].disinfectant_type === 3) {
  1373. information[index].disinfectant_type = "1000mg/l含氯消毒剂";
  1374. }
  1375. if (information[index].disinfectant_type === 4) {
  1376. information[index].disinfectant_type = "1500mg/l含氯消毒剂";
  1377. }
  1378. if (information[index].disinfectant_type === 5) {
  1379. information[index].disinfectant_type = "消毒湿巾";
  1380. }
  1381. if (information[index].disinfectant_type === 6) {
  1382. information[index].disinfectant_type = "1.85g/L季铵盐";
  1383. }
  1384. if (information[index].disinfection === 1) {
  1385. information[index].disinfection = "已消毒";
  1386. }
  1387. if (information[index].disinfection === 2) {
  1388. information[index].disinfection = "未消毒";
  1389. }
  1390. if (information[index].disinfection === 3) {
  1391. information[index].disinfection = "消毒未完成";
  1392. }
  1393. // eslint-disable-next-line eqeqeq
  1394. if (information[index].dialysis_concentration == 0) {
  1395. information[index].dialysis_concentration = "";
  1396. }
  1397. if (information[index].dialysis_concentration === 1) {
  1398. information[index].dialysis_concentration = "达标";
  1399. }
  1400. if (information[index].dialysis_concentration === 2) {
  1401. information[index].dialysis_concentration = "未达标";
  1402. }
  1403. if (information[index].fluid_path === 0) {
  1404. information[index].fluid_path = "/";
  1405. }
  1406. if (information[index].fluid_path === 1) {
  1407. information[index].fluid_path = "热化学消毒";
  1408. }
  1409. if (information[index].fluid_path === 2) {
  1410. information[index].fluid_path = "化学消毒 + 除钙";
  1411. }
  1412. if (information[index].fluid_path === 3) {
  1413. information[index].fluid_path = "热化学消毒 + 除钙";
  1414. }
  1415. if (information[index].fluid_path === 4) {
  1416. information[index].fluid_path = "热消毒";
  1417. }
  1418. if (information[index].fluid_path === 5) {
  1419. information[index].fluid_path = "化学消毒";
  1420. }
  1421. if (information[index].fluid_path === 6) {
  1422. information[index].fluid_path = "除钙";
  1423. }
  1424. if (information[index].fluid_path === 7) {
  1425. information[index].fluid_path = "清洗";
  1426. }
  1427. if (information[index].disinfectant === 0) {
  1428. information[index].disinfectant = "/";
  1429. }
  1430. if (information[index].disinfectant === 1) {
  1431. information[index].disinfectant = "20%柠檬酸";
  1432. }
  1433. if (information[index].disinfectant === 2) {
  1434. information[index].disinfectant = "25%柠檬酸";
  1435. }
  1436. if (information[index].disinfectant === 3) {
  1437. information[index].disinfectant = "50%柠檬酸";
  1438. }
  1439. if (information[index].disinfectant === 4) {
  1440. information[index].disinfectant = "50%柠檬酸 + 5%次氯酸钠";
  1441. }
  1442. if (information[index].disinfectant === 5) {
  1443. information[index].disinfectant = "20%柠檬酸 + 10%冰醋酸";
  1444. }
  1445. if (information[index].disinfectant === 6) {
  1446. information[index].disinfectant = "0.2%过氧化乙酸";
  1447. }
  1448. if (information[index].disinfectant === 7) {
  1449. information[index].disinfectant = "10%冰醋酸";
  1450. }
  1451. if (information[index].disinfectant === 8) {
  1452. information[index].disinfectant = "50%冰醋酸";
  1453. }
  1454. if (information[index].disinfectant === 9) {
  1455. information[index].disinfectant = "5%次氯酸钠";
  1456. }
  1457. if (information[index].disinfectant === 10) {
  1458. information[index].disinfectant = "25%的柠檬酸+5%次氯酸钠";
  1459. }
  1460. if (information[index].disinfection_status === 0) {
  1461. information[index].disinfection_status = "";
  1462. }
  1463. if (information[index].disinfection_status === 1) {
  1464. information[index].disinfection_status = "已消毒";
  1465. }
  1466. if (information[index].disinfection_status === 2) {
  1467. information[index].disinfection_status = "未消毒";
  1468. }
  1469. if (information[index].disinfection_status === 3) {
  1470. information[index].disinfection_status = "消毒未完成";
  1471. }
  1472. if (information[index].disinfection_residue === 1) {
  1473. information[index].disinfection_residue = "有残留";
  1474. }
  1475. if (information[index].disinfection_residue === 2) {
  1476. information[index].disinfection_residue = "无残留";
  1477. }
  1478. if (information[index].dialysis_checked === 1) {
  1479. information[index].dialysis_checked = "√";
  1480. }
  1481. if (information[index].dialysis_checked === 0) {
  1482. information[index].dialysis_checked = "";
  1483. }
  1484. if (information[index].dialysis_checked === 2) {
  1485. information[index].dialysis_checked = "";
  1486. }
  1487. if (information[index].germ_checked === 1) {
  1488. information[index].germ_checked = "√";
  1489. }
  1490. if (information[index].germ_checked === 2) {
  1491. information[index].germ_checked = "";
  1492. }
  1493. if (information[index].germ_checked === 0) {
  1494. information[index].germ_checked = "";
  1495. }
  1496. if (information[index].clean === 1) {
  1497. information[index].clean = "√";
  1498. }
  1499. if (information[index].clean === 0) {
  1500. information[index].clean = "";
  1501. }
  1502. if (information[index].clean === 2) {
  1503. information[index].clean = "";
  1504. }
  1505. }
  1506. // var total = response.data.data.total
  1507. // console.log('total', total)
  1508. // this.tableData = information
  1509. // this.total = total
  1510. }
  1511. });
  1512. },
  1513. handleSizeChange(limit) {
  1514. this.limit = limit;
  1515. //this.queryInfo();
  1516. this.getUserForm(this.value);
  1517. },
  1518. handleCurrentChange(page) {
  1519. this.page = page;
  1520. // this.queryInfo();
  1521. this.getUserForm(this.value);
  1522. },
  1523. getTime(time) {
  1524. return uParseTime(time, "{y}-{m}-{d}");
  1525. },
  1526. getTimeTwo(time) {
  1527. return uParseTime(time, "{m}-{d}");
  1528. },
  1529. getTimes(time) {
  1530. if (time < 0) {
  1531. return "";
  1532. }
  1533. if (time === 0) {
  1534. return "";
  1535. } else {
  1536. return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
  1537. }
  1538. },
  1539. getTimesTwo(time) {
  1540. if (time < 0) {
  1541. return "";
  1542. }
  1543. if (time === 0) {
  1544. return "";
  1545. } else {
  1546. return uParseTime(time, "{y}-{m}-{d} {h}:{i}");
  1547. }
  1548. },
  1549. // 获取签名
  1550. getAllOrganization() {
  1551. getAllOrganization().then(response => {
  1552. if (response.data.state === 1) {
  1553. var approle = response.data.data.approle;
  1554. this.autograph = approle;
  1555. this.operators = response.data.data.operators
  1556. if (this.operators.length > 0) {
  1557. var operatorsLen = this.operators.length;
  1558. for (var index = 0; index < operatorsLen; index++) {
  1559. this.$set(
  1560. this.operatorMaps,
  1561. this.operators[index].id,
  1562. this.operators[index]
  1563. );
  1564. }
  1565. }
  1566. }
  1567. });
  1568. },
  1569. EditUser(id, patientid) {
  1570. EditUser(id, patientid).then(response => {
  1571. if (response.data.state === 1) {
  1572. this.dialogVisible = true;
  1573. var device = response.data.data.device;
  1574. console.log("使用登记详情22222222222",device)
  1575. var patients = response.data.data.patients;
  1576. var count = response.data.data.count
  1577. var macher = response.data.data.macher
  1578. if(macher.user_total == ''){
  1579. macher.user_total = 0
  1580. }
  1581. // var totals = count[0].Total + parseInt(macher.user_total)
  1582. this.userform.id = device.id;
  1583. this.userform.spling_date = uParseTime(
  1584. device.date,
  1585. "{y}-{m}-{d}"
  1586. );
  1587. this.userform.patient_id = device.patient_id;
  1588. this.userform.classtype = device.class;
  1589. this.userform.zone = device.zone;
  1590. this.userform.bed_number = device.bed_number;
  1591. this.userform.contagion = device.contagion;
  1592. this.userform.patient_name = patients.name;
  1593. this.userform.dialysis_mode = device.dialysis_mode;
  1594. this.userform.start_time = this.updateTimes(device.start_time);
  1595. this.userform.end_time = this.updateTimes(device.end_time);
  1596. this.userform.dialysis_hour = device.dialysis_hour;
  1597. this.userform.hyperfiltratio = device.hyperfiltratio;
  1598. this.userform.weight_loss = device.weight_loss;
  1599. this.userform.warning_value = device.warning_value;
  1600. this.userform.run = device.move;
  1601. this.userform.failure_stage = device.failure_stage;
  1602. this.userform.fault_description = device.fault_description;
  1603. this.userform.code_information = device.code_information;
  1604. this.userform.disinfect_type = device.disinfect_type;
  1605. this.userform.disinfectant_type = device.disinfectant_type;
  1606. this.userform.disinfection = device.disinfection;
  1607. this.userform.machine_run = device.machine_run;
  1608. this.userform.fluid_path = device.fluid_path;
  1609. this.userform.disinfectant = device.disinfectant;
  1610. this.userform.disinfection_status = device.disinfection_status;
  1611. this.userform.disinfection_residue = device.disinfection_residue;
  1612. this.userform.longtime = device.long_time;
  1613. this.userform.dialysis_time = device.dialysis_hour;
  1614. this.userform.starttime = this.updateTimes(device.disinfec_startime);
  1615. this.userform.endtime = this.updateTimes(device.disinfec_endtime);
  1616. this.userform.equiment_id = device.equiment_id;
  1617. if (device.dialysis_checked === 1) {
  1618. this.userform.dialysis_checked = true;
  1619. }
  1620. if (device.dialysis_checked === 0) {
  1621. this.userform.dialysis_checked = false;
  1622. }
  1623. if (device.dialysis_checked === 2) {
  1624. this.userform.dialysis_checked = false;
  1625. }
  1626. this.userform.dialysis_name = device.dialysis_name;
  1627. this.userform.norms = device.norms;
  1628. this.userform.dialysis_concentration = device.dialysis_concentration;
  1629. if (device.germ_checked === 1) {
  1630. this.userform.germ_checked = true;
  1631. }
  1632. if (device.germ_checked === 0) {
  1633. this.userform.germ_checked = false;
  1634. }
  1635. if (device.germ_checked === 2) {
  1636. this.userform.germ_checked = false;
  1637. }
  1638. this.userform.germ_name = device.germ_name;
  1639. this.userform.germ_number = device.germ_number;
  1640. if (device.clean === 1) {
  1641. this.userform.clean = true;
  1642. }
  1643. if (device.clean === 0) {
  1644. this.userform.clean = false;
  1645. }
  1646. if (device.clean === 2) {
  1647. this.userform.clean = false;
  1648. }
  1649. this.userform.sign_name = device.sign_name;
  1650. if (device.disinfection === 0) {
  1651. this.userform.disinfection = "";
  1652. }
  1653. this.userform.user_total = device.user_total.toString()
  1654. }
  1655. });
  1656. },
  1657. getTimestamp(time) {
  1658. // 把时间日期转成时间戳
  1659. return new Date(time).getTime() / 1000;
  1660. },
  1661. BatchDelete() {
  1662. if (this.selectCulture.length == 0) {
  1663. this.$message.error("请选择要删除的信息");
  1664. return false;
  1665. }
  1666. this.$confirm(
  1667. "确认要删除所选记录吗? <br>删除后,该信息将无法恢复",
  1668. "删除提示",
  1669. {
  1670. dangerouslyUseHTMLString: true,
  1671. confirmButtonText: "确定",
  1672. cancelButtonText: "取消",
  1673. type: "warning"
  1674. }
  1675. ).then(() => {
  1676. var ids = [];
  1677. var idMap = {};
  1678. for (const index in this.selectCulture) {
  1679. ids.push(this.selectCulture[index].id);
  1680. idMap[this.selectCulture[index].id] = this.selectCulture[index].id;
  1681. }
  1682. DeleteUserform({ ids: ids }).then(response => {
  1683. if (response.data.state === 1) {
  1684. var msg = response.data.data.msg;
  1685. var planDataLength = this.tableData.length;
  1686. for (let index = planDataLength - 1; index >= 0; index--) {
  1687. if (this.tableData[index].id in idMap) {
  1688. this.tableData.splice(index, 1);
  1689. }
  1690. }
  1691. this.$message.success("删除成功");
  1692. }
  1693. });
  1694. });
  1695. },
  1696. updateTimes(time) {
  1697. if (time < 0) {
  1698. return "";
  1699. } else {
  1700. return uParseTime(time, "{y}-{m}-{d} {h}:{i}");
  1701. }
  1702. },
  1703. UpdateForm(formName) {
  1704. if (this.userform.dialysis_checked === "") {
  1705. this.userform.dialysis_checked = 0;
  1706. }
  1707. // eslint-disable-next-line no-empty
  1708. if (this.userform.dialysis_checked === true) {
  1709. this.userform.dialysis_checked = 1;
  1710. }
  1711. if (this.userform.dialysis_checked === false) {
  1712. this.userform.dialysis_checked = 2;
  1713. }
  1714. if (this.userform.germ_checked === "") {
  1715. this.userform.germ_checked = 0;
  1716. }
  1717. if (this.userform.germ_checked === true) {
  1718. this.userform.germ_checked = 1;
  1719. }
  1720. if (this.userform.germ_checked === false) {
  1721. this.userform.germ_checked = 2;
  1722. }
  1723. if (this.userform.clean === "") {
  1724. this.userform.clean = 0;
  1725. }
  1726. if (this.userform.clean === true) {
  1727. this.userform.clean = 1;
  1728. }
  1729. if (this.userform.clean === false) {
  1730. this.userform.clean = 2;
  1731. }
  1732. if (this.userform.start_time == "") {
  1733. this.userform.start_time = "0";
  1734. }
  1735. // eslint-disable-next-line eqeqeq
  1736. if (this.userform.end_time == "") {
  1737. this.userform.end_time = "0";
  1738. }
  1739. // eslint-disable-next-line eqeqeq
  1740. if (this.userform.starttime == "") {
  1741. this.userform.starttime = "0";
  1742. }
  1743. // eslint-disable-next-line eqeqeq
  1744. if (this.userform.endtime == "") {
  1745. this.userform.endtime = "0";
  1746. }
  1747. if (this.userform.disinfection === "") {
  1748. this.userform.disinfection = 0;
  1749. }
  1750. var status = this.userform.disinfection;
  1751. var statu = parseInt(status);
  1752. this.userform.disinfection = statu;
  1753. var hyperfiltratio = this.userform.hyperfiltratio;
  1754. var hyperfiltratios = parseFloat(hyperfiltratio);
  1755. this.userform.hyperfiltratio = hyperfiltratios;
  1756. var weightloss = this.userform.weight_loss;
  1757. var weidht = parseFloat(weightloss);
  1758. this.userform.weight_loss = weidht;
  1759. this.$refs[formName].validate(valid => {
  1760. if (valid) {
  1761. console.log("hhhh23233323",this.userform)
  1762. UpdateForm(this.userform).then(response => {
  1763. if (response.data.state === 1) {
  1764. var information = response.data.data.information;
  1765. this.dialogVisible = false;
  1766. this.$message.success("修改成功");
  1767. // this.getInformationData();
  1768. this.$forceUpdate();
  1769. }
  1770. });
  1771. }
  1772. });
  1773. },
  1774. queryInfo() {
  1775. queryInfo(
  1776. this.form.zone,
  1777. this.form.bed,
  1778. this.form.start_time,
  1779. this.form.end_time,
  1780. this.limit,
  1781. this.page
  1782. ).then(response => {
  1783. if (response.data.state === 1) {
  1784. var information = response.data.data.infor;
  1785. // console.log("information", information);
  1786. for (let index = 0; index < information.length; index++) {
  1787. if (information[index].class === 0) {
  1788. information[index].class = "";
  1789. }
  1790. if (information[index].class === 1) {
  1791. information[index].class = "上午";
  1792. }
  1793. if (information[index].class === 2) {
  1794. information[index].class = "下午";
  1795. }
  1796. if (information[index].class === 3) {
  1797. information[index].class = "晚上";
  1798. }
  1799. if (information[index].dialysis_mode === 0) {
  1800. information[index].dialysis_mode = "";
  1801. }
  1802. if (information[index].dialysis_mode === 1) {
  1803. information[index].dialysis_mode = "HD";
  1804. }
  1805. if (information[index].dialysis_mode === 2) {
  1806. information[index].dialysis_mode = "HDF";
  1807. }
  1808. if (information[index].dialysis_mode === 3) {
  1809. information[index].dialysis_mode = "HD + HP";
  1810. }
  1811. if (information[index].dialysis_mode === 4) {
  1812. information[index].dialysis_mode = "HP";
  1813. }
  1814. if (information[index].dialysis_mode === 5) {
  1815. information[index].dialysis_mode = "HF";
  1816. }
  1817. if (information[index].dialysis_mode === 6) {
  1818. information[index].dialysis_mode = "SCUF";
  1819. }
  1820. if (information[index].dialysis_mode === 7) {
  1821. information[index].dialysis_mode = "IUF";
  1822. }
  1823. if (information[index].dialysis_mode === 8) {
  1824. information[index].dialysis_mode = "HFHD";
  1825. }
  1826. if (information[index].dialysis_mode === 9) {
  1827. information[index].dialysis_mode = "HFHD+HP";
  1828. }
  1829. if (information[index].dialysis_mode === 10) {
  1830. information[index].dialysis_mode = "PHF";
  1831. }
  1832. if (information[index].dialysis_mode === 11) {
  1833. information[index].dialysis_mode = "HFR";
  1834. }
  1835. if (information[index].dialysis_mode === 12) {
  1836. information[index].dialysis_mode = "HDF+HP";
  1837. }
  1838. if (information[index].dialysis_mode === 13) {
  1839. information[index].dialysis_mode = "CRRT";
  1840. }
  1841. if (information[index].dialysis_mode === 14) {
  1842. information[index].dialysis_mode = "腹水回输";
  1843. }
  1844. if (information[index].dialysis_mode === 15) {
  1845. information[index].dialysis_mode = "HD前置换";
  1846. }
  1847. if (information[index].dialysis_mode === 16) {
  1848. information[index].dialysis_mode = "HD后置换";
  1849. }
  1850. if (information[index].dialysis_mode === 17) {
  1851. information[index].dialysis_mode = "HDF前置换";
  1852. }
  1853. if (information[index].dialysis_mode === 18) {
  1854. information[index].dialysis_mode = "HDF后置换";
  1855. }
  1856. if (information[index].dialysis_mode === 19) {
  1857. information[index].dialysis_mode = "IUF+HD";
  1858. }
  1859. if (information[index].dialysis_mode === 20) {
  1860. information[index].dialysis_mode = "UF";
  1861. }
  1862. if (information[index].dialysis_mode === 21) {
  1863. information[index].dialysis_mode = "HD+";
  1864. }
  1865. if (information[index].dialysis_mode === 22) {
  1866. information[index].dialysis_mode = "血浆胆红素吸附+HDF";
  1867. }
  1868. if (information[index].dialysis_mode === 23) {
  1869. information[index].dialysis_mode = "血浆胆红素吸附";
  1870. }
  1871. if (information[index].dialysis_mode === 24) {
  1872. information[index].dialysis_mode = "I-HDF";
  1873. }
  1874. if (information[index].dialysis_mode === 25) {
  1875. information[index].dialysis_mode = "HD高通";
  1876. }
  1877. if (information[index].dialysis_mode === 26) {
  1878. information[index].dialysis_mode = "CVVH";
  1879. }
  1880. if (information[index].dialysis_mode === 27) {
  1881. information[index].dialysis_mode = "CVVHD";
  1882. }
  1883. if (information[index].dialysis_mode === 28) {
  1884. information[index].dialysis_mode = "CVVHDF";
  1885. }
  1886. if (information[index].dialysis_mode === 29) {
  1887. information[index].dialysis_mode = "PE";
  1888. }
  1889. if (information[index].move === 0) {
  1890. information[index].move = "";
  1891. }
  1892. if (information[index].move === 1) {
  1893. information[index].move = "正常";
  1894. }
  1895. if (information[index].move === 2) {
  1896. information[index].move = "故障";
  1897. }
  1898. if (information[index].disinfect_type === 0) {
  1899. information[index].disinfect_type = "/";
  1900. }
  1901. if (information[index].disinfect_type === 1) {
  1902. information[index].disinfect_type = "擦拭";
  1903. }
  1904. if (information[index].disinfect_type === 2) {
  1905. information[index].disinfect_type = "化学消毒";
  1906. }
  1907. if (information[index].disinfectant_type === 0) {
  1908. information[index].disinfectant_type = "/";
  1909. }
  1910. if (information[index].disinfectant_type === 1) {
  1911. information[index].disinfectant_type = "0.22%季铵盐";
  1912. }
  1913. if (information[index].disinfectant_type === 2) {
  1914. information[index].disinfectant_type = "500mg/l含氯消毒剂";
  1915. }
  1916. if (information[index].disinfectant_type === 3) {
  1917. information[index].disinfectant_type = "1000mg/l含氯消毒剂";
  1918. }
  1919. if (information[index].disinfectant_type === 4) {
  1920. information[index].disinfectant_type = "1500mg/l含氯消毒剂";
  1921. }
  1922. if (information[index].disinfectant_type === 5) {
  1923. information[index].disinfectant_type = "消毒湿巾";
  1924. }
  1925. if (information[index].disinfectant_type === 6) {
  1926. information[index].disinfectant_type = "1.85g/L季铵盐";
  1927. }
  1928. if (information[index].disinfection === 0) {
  1929. information[index].disinfection = "";
  1930. }
  1931. if (information[index].disinfection === 1) {
  1932. information[index].disinfection = "已消毒";
  1933. }
  1934. if (information[index].disinfection === 2) {
  1935. information[index].disinfection = "未消毒";
  1936. }
  1937. if (information[index].disinfection === 3) {
  1938. information[index].disinfection = "消毒未完成";
  1939. }
  1940. if (information[index].dialysis_concentration === 0) {
  1941. information[index].dialysis_concentration = "";
  1942. }
  1943. if (information[index].dialysis_concentration === 1) {
  1944. information[index].dialysis_concentration = "达标";
  1945. }
  1946. if (information[index].dialysis_concentration === 2) {
  1947. information[index].dialysis_concentration = "未达标";
  1948. }
  1949. if (information[index].fluid_path === 0) {
  1950. information[index].fluid_path = "/";
  1951. }
  1952. if (information[index].fluid_path === 1) {
  1953. information[index].fluid_path = "热化学消毒";
  1954. }
  1955. if (information[index].fluid_path === 2) {
  1956. information[index].fluid_path = "化学消毒 + 除钙";
  1957. }
  1958. if (information[index].fluid_path === 3) {
  1959. information[index].fluid_path = "热化学消毒 + 除钙";
  1960. }
  1961. if (information[index].fluid_path === 4) {
  1962. information[index].fluid_path = "热消毒";
  1963. }
  1964. if (information[index].fluid_path === 5) {
  1965. information[index].fluid_path = "化学消毒";
  1966. }
  1967. if (information[index].fluid_path === 6) {
  1968. information[index].fluid_path = "除钙";
  1969. }
  1970. if (information[index].fluid_path === 7) {
  1971. information[index].fluid_path = "清洗";
  1972. }
  1973. if (information[index].disinfectant === 0) {
  1974. information[index].disinfectant = "/";
  1975. }
  1976. if (information[index].disinfectant === 1) {
  1977. information[index].disinfectant = "20%柠檬酸";
  1978. }
  1979. if (information[index].disinfectant === 2) {
  1980. information[index].disinfectant = "25%柠檬酸";
  1981. }
  1982. if (information[index].disinfectant === 3) {
  1983. information[index].disinfectant = "50%柠檬酸";
  1984. }
  1985. if (information[index].disinfectant === 4) {
  1986. information[index].disinfectant = "50%柠檬酸 + 5%次氯酸钠";
  1987. }
  1988. if (information[index].disinfectant === 5) {
  1989. information[index].disinfectant = "20%柠檬酸 + 10%冰醋酸";
  1990. }
  1991. if (information[index].disinfectant === 6) {
  1992. information[index].disinfectant = "0.2%过氧化乙酸";
  1993. }
  1994. if (information[index].disinfectant === 7) {
  1995. information[index].disinfectant = "10%冰醋酸";
  1996. }
  1997. if (information[index].disinfectant === 8) {
  1998. information[index].disinfectant = "50%冰醋酸";
  1999. }
  2000. if (information[index].disinfectant === 9) {
  2001. information[index].disinfectant = "5%次氯酸钠";
  2002. }
  2003. if (information[index].disinfectant === 10) {
  2004. information[index].disinfectant = "25%的柠檬酸+5%次氯酸钠";
  2005. }
  2006. if (information[index].disinfection_status === 1) {
  2007. information[index].disinfection_status = "已消毒";
  2008. }
  2009. if (information[index].disinfection_status === 2) {
  2010. information[index].disinfection_status = "未消毒";
  2011. }
  2012. if (information[index].disinfection_status === 3) {
  2013. information[index].disinfection_status = "消毒未完成";
  2014. }
  2015. if (information[index].disinfection_residue === 0) {
  2016. information[index].disinfection_residue = "";
  2017. }
  2018. if (information[index].disinfection_residue === 1) {
  2019. information[index].disinfection_residue = "有残留";
  2020. }
  2021. if (information[index].disinfection_residue === 2) {
  2022. information[index].disinfection_residue = "无残留";
  2023. }
  2024. if (information[index].dialysis_checked === 1) {
  2025. information[index].dialysis_checked = "√";
  2026. }
  2027. if (information[index].dialysis_checked === 0) {
  2028. information[index].dialysis_checked = "";
  2029. }
  2030. if (information[index].dialysis_checked === 2) {
  2031. information[index].dialysis_checked = "";
  2032. }
  2033. if (information[index].germ_checked === 1) {
  2034. information[index].germ_checked = "√";
  2035. }
  2036. if (information[index].germ_checked === 0) {
  2037. information[index].germ_checked = "";
  2038. }
  2039. if (information[index].germ_checked === 2) {
  2040. information[index].germ_checked = "";
  2041. }
  2042. if (information[index].clean === 1) {
  2043. information[index].clean = "√";
  2044. }
  2045. if (information[index].clean === 0) {
  2046. information[index].clean = "";
  2047. }
  2048. if (information[index].clean === 2) {
  2049. information[index].clean = "";
  2050. }
  2051. }
  2052. this.tableData = information;
  2053. var total = response.data.data.total;
  2054. // console.log('total是什么', total)
  2055. this.total = total;
  2056. }
  2057. });
  2058. },
  2059. printCard() {
  2060. this.hiddenShow = true;
  2061. var ptime = Math.round(new Date().getTime() / 1000);
  2062. this.print_time = uParseTime(ptime, "{y}年{m}月{d}日");
  2063. const style =
  2064. "@media print { .print_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 20px 0;font-size:15px } .print_main_content .order_title { text-align: center; font-size: 15px; line-height: 50px;} .print_main_content table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px;font-size:15px } .print_main_content table tbody tr td { border: 1px solid; text-align: center; padding: 10px 8px;font-size:15px } .td_proj_title { font-size: 15px; line-height: 25px;} .td_proj_content { font-size: 15px; line-height: 25px; } .td_align_left { text-align: left; } .print_footnote_panel { font-size: 15px; line-height: 40px; } .print_footnote_panel .proj { display: inline-block; width: 49%; } .print_footnote_panel .proj}";
  2065. setTimeout(() => {
  2066. printJS({
  2067. printable: "print-card-info",
  2068. type: "html",
  2069. style: style,
  2070. scanStyles: false
  2071. });
  2072. }, 1);
  2073. },
  2074. querySearchAsync(keyword, cb) {
  2075. let key = "";
  2076. if (keyword != undefined) {
  2077. key = keyword;
  2078. }
  2079. let searchArray = [];
  2080. PostSearch(key).then(response => {
  2081. if (response.data.state == 1) {
  2082. searchArray = response.data.data.patient;
  2083. cb(searchArray);
  2084. } else {
  2085. this.$message.error(response.data.msg);
  2086. cb([]);
  2087. }
  2088. });
  2089. },
  2090. getUserForm(id) {
  2091. getUserForm(id, this.limit, this.page).then(response => {
  2092. if (response.data.state === 1) {
  2093. var information = response.data.data.information;
  2094. console.log("information",information)
  2095. var addmacher = response.data.data.addmacher;
  2096. console.log("addmacher",addmacher)
  2097. for (let index = 0; index < information.length; index++) {
  2098. if(information[index].class === 0){
  2099. information[index].class = "";
  2100. }
  2101. if (information[index].class === 1) {
  2102. information[index].class = "上午";
  2103. }
  2104. if (information[index].class === 2) {
  2105. information[index].class = "下午";
  2106. }
  2107. if (information[index].class === 3) {
  2108. information[index].class = "晚上";
  2109. }
  2110. if (information[index].dialysis_mode === 0) {
  2111. information[index].dialysis_mode = "";
  2112. }
  2113. if (information[index].dialysis_mode === 1) {
  2114. information[index].dialysis_mode = "HD";
  2115. }
  2116. if (information[index].dialysis_mode === 2) {
  2117. information[index].dialysis_mode = "HDF";
  2118. }
  2119. if (information[index].dialysis_mode === 3) {
  2120. information[index].dialysis_mode = "HD + HP";
  2121. }
  2122. if (information[index].dialysis_mode === 4) {
  2123. information[index].dialysis_mode = "HP";
  2124. }
  2125. if (information[index].dialysis_mode === 5) {
  2126. information[index].dialysis_mode = "HF";
  2127. }
  2128. if (information[index].dialysis_mode === 6) {
  2129. information[index].dialysis_mode = "SCUF";
  2130. }
  2131. if (information[index].dialysis_mode === 7) {
  2132. information[index].dialysis_mode = "IUF";
  2133. }
  2134. if (information[index].dialysis_mode === 8) {
  2135. information[index].dialysis_mode = "HFHD";
  2136. }
  2137. if (information[index].dialysis_mode === 9) {
  2138. information[index].dialysis_mode = "HFHD+HP";
  2139. }
  2140. if (information[index].dialysis_mode === 10) {
  2141. information[index].dialysis_mode = "PHF";
  2142. }
  2143. if (information[index].dialysis_mode === 11) {
  2144. information[index].dialysis_mode = "HFR";
  2145. }
  2146. if (information[index].dialysis_mode === 12) {
  2147. information[index].dialysis_mode = "HDF+HP";
  2148. }
  2149. if (information[index].dialysis_mode === 13) {
  2150. information[index].dialysis_mode = "CRRT";
  2151. }
  2152. if (information[index].dialysis_mode === 14) {
  2153. information[index].dialysis_mode = "腹水回输";
  2154. }
  2155. if (information[index].dialysis_mode === 15) {
  2156. information[index].dialysis_mode = "HD前置换";
  2157. }
  2158. if (information[index].dialysis_mode === 16) {
  2159. information[index].dialysis_mode = "HD后置换";
  2160. }
  2161. if (information[index].dialysis_mode === 17) {
  2162. information[index].dialysis_mode = "HDF前置换";
  2163. }
  2164. if (information[index].dialysis_mode === 18) {
  2165. information[index].dialysis_mode = "HDF后置换";
  2166. }
  2167. if (information[index].dialysis_mode === 19) {
  2168. information[index].dialysis_mode = "IUF+HD";
  2169. }
  2170. if (information[index].dialysis_mode === 20) {
  2171. information[index].dialysis_mode = "UF";
  2172. }
  2173. if (information[index].dialysis_mode === 21) {
  2174. information[index].dialysis_mode = "HD+";
  2175. }
  2176. if (information[index].dialysis_mode === 22) {
  2177. information[index].dialysis_mode = "血浆胆红素吸附+HDF";
  2178. }
  2179. if (information[index].dialysis_mode === 23) {
  2180. information[index].dialysis_mode = "血浆胆红素吸附";
  2181. }
  2182. if (information[index].dialysis_mode === 24) {
  2183. information[index].dialysis_mode = "I-HDF";
  2184. }
  2185. if (information[index].dialysis_mode === 25) {
  2186. information[index].dialysis_mode = "HD高通";
  2187. }
  2188. if (information[index].dialysis_mode === 26) {
  2189. information[index].dialysis_mode = "CVVH";
  2190. }
  2191. if (information[index].dialysis_mode === 27) {
  2192. information[index].dialysis_mode = "CVVHD";
  2193. }
  2194. if (information[index].dialysis_mode === 28) {
  2195. information[index].dialysis_mode = "CVVHDF";
  2196. }
  2197. if (information[index].dialysis_mode === 29) {
  2198. information[index].dialysis_mode = "PE";
  2199. }
  2200. if (information[index].move === 0) {
  2201. information[index].move = "";
  2202. }
  2203. if (information[index].move === 1) {
  2204. information[index].move = "正常";
  2205. }
  2206. if (information[index].move === 2) {
  2207. information[index].move = "故障";
  2208. }
  2209. if (information[index].disinfect_type === 0) {
  2210. information[index].disinfect_type = "/";
  2211. }
  2212. if (information[index].disinfect_type === 1) {
  2213. information[index].disinfect_type = "擦拭";
  2214. }
  2215. if (information[index].disinfect_type === 2) {
  2216. information[index].disinfect_type = "化学消毒";
  2217. }
  2218. if (information[index].disinfectant_type === 0) {
  2219. information[index].disinfectant_type = "/";
  2220. }
  2221. if (information[index].disinfectant_type === 1) {
  2222. information[index].disinfectant_type = "0.22%季铵盐";
  2223. }
  2224. if (information[index].disinfectant_type === 2) {
  2225. information[index].disinfectant_type = "500mg/l含氯消毒剂";
  2226. }
  2227. if (information[index].disinfectant_type === 3) {
  2228. information[index].disinfectant_type = "1000mg/l含氯消毒剂";
  2229. }
  2230. if (information[index].disinfectant_type === 4) {
  2231. information[index].disinfectant_type = "1500mg/l含氯消毒剂";
  2232. }
  2233. if (information[index].disinfectant_type === 5) {
  2234. information[index].disinfectant_type = "消毒湿巾";
  2235. }
  2236. if (information[index].disinfectant_type === 6) {
  2237. information[index].disinfectant_type = "1.85g/L季铵盐";
  2238. }
  2239. if (information[index].disinfection === 0) {
  2240. information[index].disinfection = "";
  2241. }
  2242. if (information[index].disinfection === 1) {
  2243. information[index].disinfection = "已消毒";
  2244. }
  2245. if (information[index].disinfection === 2) {
  2246. information[index].disinfection = "未消毒";
  2247. }
  2248. if (information[index].disinfection === 3) {
  2249. information[index].disinfection = "消毒未完成";
  2250. }
  2251. if (information[index].dialysis_concentration === 0) {
  2252. information[index].dialysis_concentration = "";
  2253. }
  2254. if (information[index].dialysis_concentration === 1) {
  2255. information[index].dialysis_concentration = "达标";
  2256. }
  2257. if (information[index].dialysis_concentration === 2) {
  2258. information[index].dialysis_concentration = "未达标";
  2259. }
  2260. if (information[index].fluid_path === 0) {
  2261. information[index].fluid_path = "/";
  2262. }
  2263. if (information[index].fluid_path === 1) {
  2264. information[index].fluid_path = "热化学消毒";
  2265. }
  2266. if (information[index].fluid_path === 2) {
  2267. information[index].fluid_path = "化学消毒 + 除钙";
  2268. }
  2269. if (information[index].fluid_path === 3) {
  2270. information[index].fluid_path = "热化学消毒 + 除钙";
  2271. }
  2272. if (information[index].fluid_path === 4) {
  2273. information[index].fluid_path = "热消毒";
  2274. }
  2275. if (information[index].fluid_path === 5) {
  2276. information[index].fluid_path = "化学消毒";
  2277. }
  2278. if (information[index].fluid_path === 6) {
  2279. information[index].fluid_path = "除钙";
  2280. }
  2281. if (information[index].fluid_path === 7) {
  2282. information[index].fluid_path = "清洗";
  2283. }
  2284. if (information[index].disinfectant === 0) {
  2285. information[index].disinfectant = "/";
  2286. }
  2287. if (information[index].disinfectant === 1) {
  2288. information[index].disinfectant = "20%柠檬酸";
  2289. }
  2290. if (information[index].disinfectant === 2) {
  2291. information[index].disinfectant = "25%柠檬酸";
  2292. }
  2293. if (information[index].disinfectant === 3) {
  2294. information[index].disinfectant = "50%柠檬酸";
  2295. }
  2296. if (information[index].disinfectant === 4) {
  2297. information[index].disinfectant = "50%柠檬酸 + 5%次氯酸钠";
  2298. }
  2299. if (information[index].disinfectant === 5) {
  2300. information[index].disinfectant = "20%柠檬酸 + 10%冰醋酸";
  2301. }
  2302. if (information[index].disinfectant === 6) {
  2303. information[index].disinfectant = "0.2%过氧化乙酸";
  2304. }
  2305. if (information[index].disinfectant === 7) {
  2306. information[index].disinfectant = "10%冰醋酸";
  2307. }
  2308. if (information[index].disinfectant === 8) {
  2309. information[index].disinfectant = "50%冰醋酸";
  2310. }
  2311. if (information[index].disinfectant === 9) {
  2312. information[index].disinfectant = "5%次氯酸钠";
  2313. }
  2314. if (information[index].disinfectant === 10) {
  2315. information[index].disinfectant = "25%的柠檬酸+5%次氯酸钠";
  2316. }
  2317. if (information[index].disinfection_status === 0) {
  2318. information[index].disinfection_status = "";
  2319. }
  2320. if (information[index].disinfection_status === 1) {
  2321. information[index].disinfection_status = "已消毒";
  2322. }
  2323. if (information[index].disinfection_status === 2) {
  2324. information[index].disinfection_status = "未消毒";
  2325. }
  2326. if (information[index].disinfection_status === 3) {
  2327. information[index].disinfection_status = "消毒未完成";
  2328. }
  2329. if (information[index].disinfection_residue === 0) {
  2330. information[index].disinfection_residue = "";
  2331. }
  2332. if (information[index].disinfection_residue === 1) {
  2333. information[index].disinfection_residue = "有残留";
  2334. }
  2335. if (information[index].disinfection_residue === 2) {
  2336. information[index].disinfection_residue = "无残留";
  2337. }
  2338. if (information[index].dialysis_checked === 1) {
  2339. information[index].dialysis_checked = "√";
  2340. }
  2341. if (information[index].dialysis_checked === 0) {
  2342. information[index].dialysis_checked = "";
  2343. }
  2344. if (information[index].dialysis_checked === 2) {
  2345. information[index].dialysis_checked = "";
  2346. }
  2347. if (information[index].germ_checked === 1) {
  2348. information[index].germ_checked = "√";
  2349. }
  2350. if (information[index].germ_checked === 0) {
  2351. information[index].germ_checked = "";
  2352. }
  2353. if (information[index].germ_checked === 2) {
  2354. information[index].germ_checked = "";
  2355. }
  2356. if (information[index].clean === 1) {
  2357. information[index].clean = "√";
  2358. }
  2359. if (information[index].clean === 0) {
  2360. information[index].clean = "";
  2361. }
  2362. if (information[index].clean === 2) {
  2363. information[index].clean = "";
  2364. }
  2365. }
  2366. var total = response.data.data.total;
  2367. console.log("total", total);
  2368. this.tableData = information;
  2369. this.total = total;
  2370. }
  2371. });
  2372. },
  2373. getBedForm(id) {
  2374. getBedForm(id).then(response => {
  2375. if (response.data.state === 1) {
  2376. var addmacher = response.data.data.addmacher;
  2377. var number = response.data.data.number;
  2378. console.log("number", number);
  2379. //改动
  2380. this.form.zone = number[0].zone_id;
  2381. this.form.bed = addmacher.bed_id;
  2382. var bed = [{ id: 0, number: "全部" }];
  2383. for (let i = 0; i < number.length; i++) {
  2384. const item = number[i];
  2385. bed.push({ id: item.id, number: item.number });
  2386. }
  2387. this.bedNumberTwo = []
  2388. this.bedNumberTwo = bed;
  2389. console.log("this233232322323233232",this.bedNumberTwo)
  2390. }
  2391. });
  2392. },
  2393. // eslint-disable-next-line no-dupe-keys
  2394. querySearchAsync(keyword, cb) {
  2395. let key = "";
  2396. if (keyword != undefined) {
  2397. key = keyword;
  2398. }
  2399. let searchArray = [];
  2400. PostSearch(key).then(response => {
  2401. if (response.data.state == 1) {
  2402. searchArray = response.data.data.patient;
  2403. cb(searchArray);
  2404. }
  2405. });
  2406. return searchArray;
  2407. },
  2408. createFilter(queryString) {
  2409. return searchArray => {
  2410. return (
  2411. searchArray.id.toLowerCase().indexOf(queryString.toLowerCase()) === 0
  2412. );
  2413. };
  2414. },
  2415. handleSelect(item) {
  2416. this.userform.patient_id = item.id;
  2417. this.userform.patient_name = item.name;
  2418. // eslint-disable-next-line no-undef
  2419. this.userform.contagion = "";
  2420. getPatientDetail(item.id).then(response => {
  2421. // eslint-disable-next-line eqeqeq
  2422. if (response.data.state == 1) {
  2423. var patient = response.data.data.patient;
  2424. // console.log('patient', patient)
  2425. // eslint-disable-next-line no-undef
  2426. if (patient.is_infectious === 0) {
  2427. this.userform.contagion = "";
  2428. }
  2429. // eslint-disable-next-line no-undef
  2430. if (patient.is_infectious === 1) {
  2431. this.userform.contagion = "无";
  2432. }
  2433. // eslint-disable-next-line no-undef
  2434. if (patient.is_infectious === 2) {
  2435. this.userform.contagion = "有";
  2436. }
  2437. }
  2438. });
  2439. },
  2440. changeBed(id) {
  2441. // eslint-disable-next-line no-undef
  2442. changeBed(id).then(response => {
  2443. if (response.data.state === 1) {
  2444. var bed = response.data.data.bed;
  2445. if (bed.length !== 0) {
  2446. this.form.bed = "";
  2447. this.bedNumberTwo = []
  2448. this.bedNumberTwo = bed;
  2449. }else{
  2450. this.form.bed = ""
  2451. this.bedNumberTwo = []
  2452. this.getAllSubregion()
  2453. }
  2454. }
  2455. });
  2456. },
  2457. changeRun(val) {
  2458. // eslint-disable-next-line eqeqeq
  2459. if (val == 1) {
  2460. this.four = true;
  2461. this.userform.failure_stage = "";
  2462. }
  2463. // eslint-disable-next-line eqeqeq
  2464. if (val == 2) {
  2465. this.four = false;
  2466. }
  2467. },
  2468. DeleteUserLogin(id, index) {
  2469. this.$confirm(
  2470. "确认要删除所选记录吗? <br>删除后,信息将无法恢复",
  2471. "删除提示",
  2472. {
  2473. dangerouslyUseHTMLString: true,
  2474. confirmButtonText: "确定",
  2475. cancelButtonText: "取消",
  2476. type: "warning"
  2477. }
  2478. ).then(() => {
  2479. // eslint-disable-next-line no-undef
  2480. DeleteUserLogin(id, index).then(response => {
  2481. if (response.data.state === 1) {
  2482. var msg = response.data.data.msg;
  2483. this.tableData.splice(index, 1);
  2484. }
  2485. });
  2486. });
  2487. },
  2488. exportlist: function() {
  2489. for(let i=0;i<this.tableData.length;i++){
  2490. this.tableData[i].index = i+1
  2491. this.tableData[i].record_date_str = this.getTime(this.tableData[i].date)
  2492. this.tableData[i].disinfec_startime_str = this.getTimesTwo(this.tableData[i].disinfec_startime)
  2493. this.tableData[i].disinfec_endtime_str = this.getTimesTwo(this.tableData[i].disinfec_endtime)
  2494. }
  2495. import('@/vendor/Export2Excel').then(excel => {
  2496. const multiHeader = [['序号', '机号','日期','班次','患者','透析方式','使用次数','运行','机表(床单元、床旁桌)消毒)','','','','液路消毒','','','','','','','透析机消毒液(更换)','细菌过滤器(更换)','空气滤网','签名' ]]
  2497. const header = ['', '','','','','','','','消毒方式','消毒液','消毒状态','消毒液浓度','消毒方式','消毒液','开始消毒时间','结束消毒时间','消毒时长/min','消毒状态','消毒液残留','','','','']
  2498. const merges = ['A1:A2', 'B1:B2','C1:C2','D1:D2','E1:E2','G1:G2','H1:H2','I1:L1','M1:S1','T1:T2','U1:U2','V1:V2','W1:W2']
  2499. const filterVal = ['index','bed','record_date_str','class','name','dialysis_mode','user_total','move','disinfect_type','disinfectant_type','disinfection','dialysis_concentration','fluid_path','disinfectant','disinfec_startime_str','disinfec_endtime_str','long_time','disinfection_status','disinfection_residue','dialysis_checked','germ_checked','clean','user_name']
  2500. const data = this.formatJson(filterVal, this.tableData)
  2501. const filename = '透析机使用登记'
  2502. console.log("rwwwwwwwwwww",this.tableData)
  2503. excel.export_json_to_excel({
  2504. multiHeader,
  2505. header,
  2506. merges,
  2507. data,
  2508. filename
  2509. })
  2510. })
  2511. },
  2512. formatJson(filterVal, jsonData) {
  2513. return jsonData.map(v => filterVal.map(j => v[j]));
  2514. },
  2515. setAdminUserES(id) {
  2516. if (id === 0) {
  2517. return ''
  2518. }
  2519. var user_name = ""
  2520. for(let i=0;i<this.operators.length;i++){
  2521. if(id == this.operators[i].admin_user_id){
  2522. user_name = this.operators[i].url
  2523. }
  2524. }
  2525. return user_name
  2526. },
  2527. },
  2528. created() {
  2529. this.getAllSubregion();
  2530. // this.getInformationData();
  2531. this.getAllOrganization();
  2532. this.org_id = this.$store.getters.xt_user.template_info.org_id;
  2533. },
  2534. watch: {
  2535. userdata(newvalue, oldvalue) {
  2536. console.log("newVlaue233333333333333333333",newvalue)
  2537. this.getUserForm(newvalue);
  2538. this.getBedForm(newvalue);
  2539. this.value = newvalue;
  2540. }
  2541. }
  2542. };
  2543. </script>
  2544. <style scoped>
  2545. .a {
  2546. /* .el-col-2 {
  2547. width: 8.33333%;
  2548. margin-bottom: 20px;
  2549. } */
  2550. }
  2551. .print_main_content {
  2552. background-color: white;
  2553. width: 960px;
  2554. margin: 0 auto;
  2555. padding: 0 0 20px 0;
  2556. }
  2557. .tableClass {
  2558. font-size: 10px;
  2559. font-weight: none;
  2560. }
  2561. .printClass {
  2562. width: 100%;
  2563. text-align: right;
  2564. }
  2565. </style>
  2566. <style lang="scss">
  2567. .machineClass {
  2568. font-size: 14px;
  2569. color: #606266;
  2570. }
  2571. .c {
  2572. margin-bottom: 10px;
  2573. .el-input--prefix .el-input__inner {
  2574. margin-left: 15px;
  2575. }
  2576. }
  2577. #user-form {
  2578. .el-dialog__footer {
  2579. text-align: right;
  2580. }
  2581. .el-input--prefix .el-input__inner {
  2582. // padding-left: 15px;
  2583. }
  2584. .el-input--prefix .el-input__inner {
  2585. padding-right: 15px;
  2586. }
  2587. }
  2588. </style>