血透系统PC前端

UserForm.vue 78KB

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