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

UserForm.vue 84KB

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