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

UserForm.vue 85KB

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