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

UserForm.vue 89KB

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