血透系统PC前端

UserForm.vue 80KB

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