血透系统PC前端

home.vue 155KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377
  1. <template>
  2. <div class="main-contain">
  3. <div class="position">
  4. <bread-crumb :crumbs='crumbs'></bread-crumb>
  5. </div>
  6. <div class="app-container">
  7. <el-container>
  8. <div style="width:24%">
  9. <el-row>
  10. <el-col :span="24">
  11. <span class="zone">分&nbsp;&nbsp;&nbsp;&nbsp;区:</span>
  12. <el-select v-model="forms.zone_id" placeholder="请选择" class="a" @change="changeBedNumber" style="width:125px">
  13. <el-option
  14. v-for="item in bedZone"
  15. :key="item.id"
  16. :label="item.name"
  17. :value="item.id"
  18. >
  19. </el-option>
  20. </el-select>
  21. </el-col>
  22. </el-row>
  23. <el-row>
  24. <el-col>
  25. <span class="zone">班&nbsp;&nbsp;&nbsp;&nbsp;次:</span>
  26. <el-select v-model="forms.class_id" placeholder="请选择" class="a" @change="changeClassId" style="width:125px">
  27. <el-option
  28. v-for="item in Classes"
  29. :key="item.id"
  30. :label="item.name"
  31. :value="item.id">
  32. </el-option>
  33. </el-select>
  34. </el-col>
  35. </el-row>
  36. <el-row>
  37. <el-col>
  38. <span>设备类型:</span>
  39. <el-select v-model="forms.device_type" placeholder="请选择" class="a" @change="changeDeviceId" style="width:110px">
  40. <el-option
  41. v-for="item in DeviceTypeType"
  42. :key="item.id"
  43. :label="item.name"
  44. :value="item.id">
  45. </el-option>
  46. </el-select>
  47. </el-col>
  48. </el-row>
  49. <el-row>
  50. <el-table
  51. ref="singleTable"
  52. :data="tableDatatwo"
  53. highlight-current-row
  54. border
  55. @current-change="handleCurrentChange"
  56. height="1050"
  57. >
  58. <el-table-column
  59. prop="date"
  60. label="设备名称"
  61. width="90"
  62. align="center">
  63. <template slot-scope="scope">
  64. {{scope.row.device_name}}
  65. </template>
  66. </el-table-column>
  67. <el-table-column
  68. prop="name"
  69. label="设备型号"
  70. width="90"
  71. align="center">
  72. <template slot-scope="scope">
  73. {{scope.row.unit_type}}
  74. </template>
  75. </el-table-column>
  76. <el-table-column
  77. prop="address"
  78. label="床位号"
  79. align="center"
  80. widwid="90">
  81. <template slot-scope="scope">
  82. {{scope.row.bed_number}}
  83. </template>
  84. </el-table-column>
  85. </el-table>
  86. </el-row>
  87. </div>
  88. <el-main>
  89. <div class="main">
  90. <div class="newButtonOne">
  91. <el-button
  92. size="small"
  93. @click="clickQuery()"
  94. >
  95. 综合查询
  96. </el-button>
  97. </div>
  98. <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
  99. <el-tab-pane label="基本信息" name="first">
  100. <div class="disinfectOne">
  101. <el-row>
  102. <div class="b">
  103. <el-button size="small" @click="UpdateMachine()">修改</el-button>
  104. </div>
  105. </el-row>
  106. <el-row>
  107. <el-form :model="form" ref="form" :rules="rules">
  108. <el-row>
  109. <el-col :span="7">
  110. <el-form-item label="序列号:" required prop="serial_number">
  111. <el-input style="width:150px" v-model="form.serial_number"></el-input>
  112. </el-form-item>
  113. </el-col>
  114. <el-col :span="7">
  115. <el-form-item label="设备类型:" required prop="devicetype">
  116. <el-select style="width:150px" v-model="form.devicetype" :disabled="true">
  117. <el-option v-for="item in this.DeviceTypes" :key="item.id" :label="item.name" :value="item.id" ></el-option>
  118. </el-select>
  119. </el-form-item>
  120. </el-col>
  121. <el-col :span="7">
  122. <el-form-item label="机位号:">
  123. <el-select style="width:150px" v-model="form.bed_number" :disabled="true">
  124. <el-option v-for="item in this.Number" :key="item.id" :label="item.number" :value="item.id"></el-option>
  125. </el-select>
  126. </el-form-item>
  127. </el-col>
  128. </el-row>
  129. <el-row>
  130. <el-col :span="7">
  131. <el-form-item label="设备名称:" required prop="device_name">
  132. <el-input style="width:150px" v-model="form.device_name"></el-input>
  133. </el-form-item>
  134. </el-col>
  135. <el-col :span="7">
  136. <el-form-item label="生产厂家:">
  137. <el-input style="width:150px" v-model="form.manufacture_factory"></el-input>
  138. </el-form-item>
  139. </el-col>
  140. <el-col :span="7">
  141. <el-form-item label="维修厂家:">
  142. <el-input style="width:150px" v-model="form.service_manufacturer"></el-input>
  143. </el-form-item>
  144. </el-col>
  145. </el-row>
  146. <el-row>
  147. <el-col :span="7">
  148. <el-form-item label="设备型号:" required prop="unit_type">
  149. <el-input style="width:150px" v-model="form.unit_type"></el-input>
  150. </el-form-item>
  151. </el-col>
  152. <el-col :span="7">
  153. <el-form-item label="使用科室:">
  154. <el-input style="width:150px" v-model="form.use_section"></el-input>
  155. </el-form-item>
  156. </el-col>
  157. <el-col :span="7">
  158. <el-form-item label="科室编号:">
  159. <el-input style="width:150px" v-model="form.section_number"></el-input>
  160. </el-form-item>
  161. </el-col>
  162. </el-row>
  163. <el-row>
  164. <el-col :span="7">
  165. <el-form-item label="购买日期:">
  166. <el-date-picker
  167. v-model="form.buy_date"
  168. prefix-icon="none"
  169. type="date"
  170. placeholder="请选择"
  171. format="yyyy-MM-dd"
  172. value-format="yyyy-MM-dd"
  173. style="width:150px">
  174. </el-date-picker>
  175. </el-form-item>
  176. </el-col>
  177. <el-col :span="7">
  178. <el-form-item label="安装日期:">
  179. <el-date-picker
  180. v-model="form.install_date"
  181. prefix-icon="none"
  182. type="date"
  183. placeholder="请选择"
  184. format="yyyy-MM-dd"
  185. value-format="yyyy-MM-dd"
  186. style="width:150px">
  187. </el-date-picker>
  188. </el-form-item>
  189. </el-col>
  190. <el-col :span="7">
  191. <el-form-item label="启用日期:">
  192. <el-date-picker
  193. v-model="form.start_date"
  194. prefix-icon="none"
  195. type="date"
  196. placeholder="请选择"
  197. format="yyyy-MM-dd"
  198. value-format="yyyy-MM-dd"
  199. style="width:150px">
  200. </el-date-picker>
  201. </el-form-item>
  202. </el-col>
  203. <el-col :span="7">
  204. <el-form-item label="维修工程师:">
  205. <el-input style="width:150px" v-model="form.maintenance_engineer"></el-input>
  206. </el-form-item>
  207. </el-col>
  208. <el-col :span="7">
  209. <el-form-item label="联系电话:">
  210. <el-input style="width:150px" v-model="form.telephone"></el-input>
  211. </el-form-item>
  212. </el-col>
  213. <el-col :span="7">
  214. <el-form-item label="保修期限:">
  215. <el-input style="width:150px" v-model="form.guarantee_date"></el-input>
  216. </el-form-item>
  217. </el-col>
  218. </el-row>
  219. <el-row>
  220. <el-col :span="7">
  221. <el-form-item label="机器状态:">
  222. <el-select style="width:150px" v-model="form.machine_status">
  223. <el-option v-for="item in machineStatus" :key="item.id" :label="item.name" :value="item.id"></el-option>
  224. </el-select>
  225. </el-form-item>
  226. </el-col>
  227. <el-col :span="7">
  228. <el-form-item label="初次使用次数:">
  229. <el-input v-model="form.user_total" style="width:150px"></el-input>
  230. </el-form-item>
  231. </el-col>
  232. <el-col :span="7">
  233. <el-form-item label="备注:">
  234. <el-input style="width:150px" v-model="form.remarks"></el-input>
  235. </el-form-item>
  236. </el-col>
  237. </el-row>
  238. <el-row>
  239. <el-col :span="7">
  240. <el-form-item label="报废日期:">
  241. <el-date-picker
  242. v-model="form.rubbish_date"
  243. prefix-icon="none"
  244. type="date"
  245. placeholder="请选择"
  246. format="yyyy-MM-dd"
  247. value-format="yyyy-MM-dd"
  248. style="width:135px">
  249. </el-date-picker>
  250. </el-form-item>
  251. </el-col>
  252. <el-col :span="7">
  253. <el-form-item label="报废原因:">
  254. <el-select style="width:150px" v-model="form.rubbish_reason">
  255. <el-option v-for="item in this.DisCardResion" :key="item.id" :label="item.name" :value="item.id"></el-option>
  256. </el-select>
  257. </el-form-item>
  258. </el-col>
  259. <el-col :span="7">
  260. <el-form-item label="使用年限(年):">
  261. <el-input style="width:150px" v-model="form.user_year"></el-input>
  262. </el-form-item>
  263. </el-col>
  264. </el-row>
  265. <el-row>
  266. <el-col :span="7">
  267. <el-form-item label="工作时长:">
  268. <el-input style="width:150px" v-model="form.work_time"></el-input>
  269. </el-form-item>
  270. </el-col>
  271. </el-row>
  272. <el-row>
  273. <el-form-item label="治疗模式:">
  274. <el-checkbox-group v-model="form.treat_mode" @change="handleCheckedCitiesChange">
  275. <el-checkbox v-for="city in cities" :label="city" :key="city">{{city}}</el-checkbox>
  276. </el-checkbox-group>
  277. </el-form-item>
  278. </el-row>
  279. <el-row>
  280. <el-col>
  281. <el-checkbox :indeterminate="isIndeterminate" v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
  282. </el-col>
  283. </el-row>
  284. <el-row>
  285. <div class="but">
  286. <el-col :span="12">
  287. <el-button size="medium" v-show="cancelShow" @click="cleanMainchine">取消</el-button>
  288. </el-col>
  289. <el-col :span="8">
  290. <el-button type="primary" size="medium" v-show="confirmShow" @click="UpdateMachineInfo('form')">保存</el-button>
  291. </el-col>
  292. </div>
  293. </el-row>
  294. </el-form>
  295. </el-row>
  296. </div>
  297. </el-tab-pane>
  298. <el-tab-pane label="消毒计划" name="second">
  299. <div class="disinfect">
  300. <div class="newButton">
  301. <el-button
  302. size="small"
  303. @click="addPlan"
  304. >
  305. 新增计划
  306. </el-button>
  307. </div>
  308. <el-tabs v-model="activeNameTwo" @tab-click="handleClick">
  309. <el-tab-pane label="当前设备计划列表" name="first">
  310. <el-row>
  311. <el-col :span="2">
  312. <el-checkbox style="width: 30px" @change="changeCheckOne" v-model="checkAllStatus">全选</el-checkbox>
  313. </el-col>
  314. <el-col :span="2">
  315. <el-button size="small" @click="openDeleteMahcine">批量删除</el-button>
  316. </el-col>
  317. </el-row>
  318. <el-row>
  319. <el-table
  320. ref="multipleTable"
  321. @selection-change="handleSelectionChangeOne"
  322. :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
  323. :data="planData"
  324. border
  325. fit
  326. highlight-current-row
  327. style="width: 100%;margin-top: 10px;"
  328. >
  329. <el-table-column align="center" type="selection" width="55"></el-table-column>
  330. <el-table-column label="时间" align="center" >
  331. <template slot-scope="scope">
  332. {{scope.row.time}}
  333. </template>
  334. </el-table-column>
  335. <el-table-column label="班次" align="center" >
  336. <template slot-scope="scope">
  337. {{scope.row.classtime}}
  338. </template>
  339. </el-table-column>
  340. <el-table-column label="机表消毒方式" align="center" min-width="110px" >
  341. <template slot-scope="scope">
  342. {{scope.row.way}}
  343. </template>
  344. </el-table-column>
  345. <el-table-column label="机表消毒液" align="center" min-width="110px" >
  346. <template slot-scope="scope">
  347. {{scope.row.machine_disinfectant}}
  348. </template>
  349. </el-table-column>
  350. <el-table-column label="液路消毒方式" align="center" min-width="110px" >
  351. <template slot-scope="scope">
  352. {{scope.row.disinfectan_way}}
  353. </template>
  354. </el-table-column>
  355. <el-table-column label="液路消毒液" align="center" min-width="110px" >
  356. <template slot-scope="scope">
  357. {{scope.row.disinfectant}}
  358. </template>
  359. </el-table-column>
  360. <el-table-column label="消毒时长/min" align="center" min-width="110px" >
  361. <template slot-scope="scope">
  362. {{scope.row.disinfec_time}}
  363. </template>
  364. </el-table-column>
  365. <el-table-column label="操作" align="center" min-width="120px">
  366. <template slot-scope="scope">
  367. <el-tooltip class="item" effect="dark" content="编辑" placement="top">
  368. <el-button
  369. size="mini"
  370. type="primary"
  371. icon="el-icon-edit-outline"
  372. @click="EditMachine(scope.row.id, scope.$index)"
  373. ></el-button>
  374. </el-tooltip>
  375. <el-tooltip class="item" effect="dark" content="删除" placement="top">
  376. <el-button
  377. size="mini"
  378. type="primary"
  379. icon="el-icon-delete"
  380. @click="openDeleteMahcine(scope.row, scope.$index)"
  381. ></el-button>
  382. </el-tooltip>
  383. </template>
  384. </el-table-column>
  385. </el-table>
  386. </el-row>
  387. </el-tab-pane>
  388. <el-tab-pane label="按机型列表" name="second">
  389. <el-row>
  390. <el-col :span="2">
  391. <el-checkbox style="width: 30px" @change="changeCheck" v-model="checkAllStatusOne">全选</el-checkbox>
  392. </el-col>
  393. <el-col :span="2">
  394. <el-button size="small" @click="openDeleteMahcineOne">批量删除</el-button>
  395. </el-col>
  396. </el-row>
  397. <el-row>
  398. <el-table
  399. ref="multipleTableOne"
  400. @selection-change="handleSelectionChange"
  401. :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
  402. :data="tableData"
  403. border
  404. fit
  405. highlight-current-row
  406. style="width: 100%;margin-top: 10px;"
  407. >
  408. <el-table-column align="center" type="selection" width="55"></el-table-column>
  409. <el-table-column label="型号" align="center" min-width="70px">
  410. <template slot-scope="scope">
  411. {{scope.row.equitment_name}}
  412. </template>
  413. </el-table-column>
  414. <el-table-column label="时间" align="center" min-width="70px" >
  415. <template slot-scope="scope">
  416. {{scope.row.time}}
  417. </template>
  418. </el-table-column>
  419. <el-table-column label="班次" align="center" min-width="70px" >
  420. <template slot-scope="scope">
  421. {{scope.row.classtime}}
  422. </template>
  423. </el-table-column>
  424. <el-table-column label="基表消毒方式" align="center" min-width="110px" >
  425. <template slot-scope="scope">
  426. {{scope.row.way}}
  427. </template>
  428. </el-table-column>
  429. <el-table-column label="基表消毒液" align="center" min-width="110px" >
  430. <template slot-scope="scope">
  431. {{scope.row.machine_disinfectant}}
  432. </template>
  433. </el-table-column>
  434. <el-table-column label="液路消毒方式" align="center" min-width="110px" >
  435. <template slot-scope="scope">
  436. {{scope.row.disinfectant}}
  437. </template>
  438. </el-table-column>
  439. <el-table-column label="液路消毒液" align="center" min-width="110px" >
  440. <template slot-scope="scope">
  441. {{scope.row.disinfectan_way}}
  442. </template>
  443. </el-table-column>
  444. <el-table-column label="消毒时长/min" align="center" min-width="120px" >
  445. <template slot-scope="scope">
  446. {{scope.row.disinfec_time}}
  447. </template>
  448. </el-table-column>
  449. <el-table-column label="操作" align="center" min-width="130px">
  450. <template slot-scope="scope">
  451. <el-tooltip class="item" effect="dark" content="编辑" placement="top">
  452. <el-button
  453. size="mini"
  454. type="primary"
  455. icon="el-icon-edit-outline"
  456. @click="EditMachine(scope.row.id, scope.$index)"
  457. ></el-button>
  458. </el-tooltip>
  459. <el-tooltip class="item" effect="dark" content="删除" placement="top">
  460. <el-button
  461. size="mini"
  462. type="primary"
  463. icon="el-icon-delete"
  464. @click="openDeleteMahcineOne(scope.row, scope.$index)"
  465. ></el-button>
  466. </el-tooltip>
  467. </template>
  468. </el-table-column>
  469. </el-table>
  470. </el-row>
  471. </el-tab-pane>
  472. </el-tabs>
  473. </div>
  474. </el-tab-pane>
  475. <el-tab-pane label="使用登记" name="third">
  476. <el-tabs v-model="activeNameThree" @tab-click="handleClick">
  477. <el-tab-pane label="新增使用登记" name="first">
  478. <el-form :model="userform" ref="userform" :rules="userRules">
  479. <el-row>
  480. <el-col :span="8">
  481. <el-form-item label="日期:">
  482. <el-date-picker
  483. v-model="userform.date"
  484. prefix-icon="none"
  485. type="date"
  486. placeholder="请选择"
  487. format="yyyy-MM-dd"
  488. value-format="yyyy-MM-dd"
  489. style="width:150px">
  490. </el-date-picker>
  491. </el-form-item>
  492. </el-col>
  493. <el-col :span="8">
  494. <el-form-item label="班次:" required prop="classtype">
  495. <el-select v-model="userform.classtype" placeholder="请选择" class="a" @change="ChangeClass">
  496. <el-option
  497. v-for="item in classType"
  498. :key="item.id"
  499. :label="item.name"
  500. :value="item.id"
  501. style="width:100px">
  502. </el-option>
  503. </el-select>
  504. </el-form-item>
  505. </el-col>
  506. <el-col :span="8">
  507. <el-form-item label="分区:" required prop="zone">
  508. <el-select v-model="userform.zone" placeholder="请选择" class="a">
  509. <el-option
  510. v-for="item in bedNumber"
  511. :key="item.id"
  512. :label="item.zone_name"
  513. :value="item.id">
  514. </el-option>
  515. </el-select>
  516. </el-form-item>
  517. </el-col>
  518. </el-row>
  519. <el-row>
  520. <el-col :span="8">
  521. <el-form-item label="床位号:" required prop="bed_number">
  522. <el-select style="width:150px" v-model="userform.bed_number">
  523. <el-option v-for="item in this.bedNumber" :key="item.id" :label="item.number" :value="item.id"></el-option>
  524. </el-select>
  525. </el-form-item>
  526. </el-col>
  527. <el-col :span="8">
  528. <el-form-item label="患者:" required prop ="patient_name">
  529. <el-select style="width:150px" v-model="userform.patient_name" >
  530. <el-option v-for="item in this.patientName" :key="item.patient_id" :label="item.name" :value="item.patient_id"></el-option>
  531. </el-select>
  532. </el-form-item>
  533. </el-col>
  534. <el-col :span="8">
  535. <el-form-item label="传染病:">
  536. <el-input style="width:180px" v-model="userform.contagion"></el-input>
  537. </el-form-item>
  538. </el-col>
  539. </el-row>
  540. <el-row>
  541. <el-col :span="8">
  542. <el-form-item label="透析方式:">
  543. <el-select v-model="userform.dialysis_mode" placeholder="请选择" class="a">
  544. <el-option
  545. v-for="item in treatmode"
  546. :key="item.id"
  547. :label="item.name"
  548. :value="item.id">
  549. </el-option>
  550. </el-select>
  551. </el-form-item>
  552. </el-col>
  553. <el-col :span="8">
  554. <el-form-item label="上机时间:">
  555. <el-date-picker
  556. type="datetime"
  557. format="yyyy-MM-dd HH:mm"
  558. value-format="yyyy-MM-dd HH:mm"
  559. placeholder="选择时间"
  560. v-model="userform.start_time"
  561. style="width:200px;"
  562. ></el-date-picker>
  563. </el-form-item>
  564. </el-col>
  565. <el-col :span="8">
  566. <el-form-item label="下机时间:">
  567. <el-date-picker
  568. type="datetime"
  569. format="yyyy-MM-dd HH:mm"
  570. value-format="yyyy-MM-dd HH:mm"
  571. placeholder="选择时间"
  572. v-model="userform.end_time"
  573. style="width:200px;"
  574. ></el-date-picker>
  575. </el-form-item>
  576. </el-col>
  577. </el-row>
  578. <el-row>
  579. <el-col :span="8">
  580. <el-form-item label="透析时长:">
  581. <el-input style="width:180px" v-model="userform.dialysis_time"></el-input>
  582. </el-form-item>
  583. </el-col>
  584. <el-col :span="8">
  585. <el-form-item label="实际超滤量:">
  586. <el-input style="width:180px" v-model="userform.hyperfiltratio"></el-input>
  587. </el-form-item>
  588. </el-col>
  589. <el-col :span="8">
  590. <el-form-item label="体重减少:">
  591. <el-input style="width:180px" v-model="userform.weight_loss"></el-input>
  592. </el-form-item>
  593. </el-col>
  594. </el-row>
  595. <el-row>
  596. <el-col :span="8">
  597. <el-form-item label="预警值:">
  598. <el-input style="width:180px" v-model="userform.warning_value"></el-input>
  599. </el-form-item>
  600. </el-col>
  601. <el-col :span="8">
  602. <el-form-item label="使用次数:">
  603. <el-input style="width:180px" v-model="userform.user_total"></el-input>
  604. </el-form-item>
  605. </el-col>
  606. <el-col :span="8">
  607. <el-form-item label="运行:">
  608. <el-radio-group v-model="userform.run">
  609. <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in runOption" :key="index">{{gender.name}}</el-radio>
  610. </el-radio-group>
  611. </el-form-item>
  612. </el-col>
  613. </el-row>
  614. <el-row>
  615. <el-col>
  616. <el-form-item label="故障发生阶段:">
  617. <!-- <el-radio-group v-model="userform.failure_stage">
  618. <el-radio v-for="item in faultPhase" :label="item.label" :value="item.value" :key="item.value">{{item.label}}</el-radio>
  619. </el-radio-group> -->
  620. <el-radio-group v-model="userform.failure_stage">
  621. <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in faultPhase" :key="index">{{gender.name}}</el-radio>
  622. </el-radio-group>
  623. </el-form-item>
  624. </el-col>
  625. </el-row>
  626. <el-row>
  627. <el-col :span="24">
  628. <el-form-item label="故障描述:">
  629. <el-input style="width:800px" v-model="userform.fault_description"></el-input>
  630. </el-form-item>
  631. </el-col>
  632. </el-row>
  633. <el-row>
  634. <el-col :span="24">
  635. <el-form-item class="stoppage" label="故障提示信息及代码:">
  636. <el-input style="width:700px" v-model="userform.code_information"></el-input>
  637. </el-form-item>
  638. </el-col>
  639. </el-row>
  640. <el-row>
  641. <el-form-item label="机器消毒:"></el-form-item>
  642. </el-row>
  643. <el-row>
  644. <el-col :span="2">
  645. <el-form-item label="①机表"></el-form-item>
  646. </el-col>
  647. <el-col :span="8">
  648. <el-form-item label="消毒方式:" required prop="disinfect_type">
  649. <el-select v-model="userform.disinfect_type" placeholder="请选择" >
  650. <el-option
  651. v-for="item in disinfectType"
  652. :key="item.id"
  653. :label="item.name"
  654. :value="item.id"
  655. style="width:150px">
  656. </el-option>
  657. </el-select>
  658. </el-form-item>
  659. </el-col>
  660. <el-col :span="8">
  661. <el-form-item label="消毒液:" required prop="disinfectant_type">
  662. <el-select v-model="userform.disinfectant_type" placeholder="请选择" >
  663. <el-option
  664. v-for="item in disinfectantType"
  665. :key="item.id"
  666. :label="item.name"
  667. :value="item.id"
  668. style="width:150px">
  669. </el-option>
  670. </el-select>
  671. </el-form-item>
  672. </el-col>
  673. </el-row>
  674. <el-row>
  675. <el-col :span="8">
  676. <el-form-item label="消毒状态:" required prop="disinfection">
  677. <el-select v-model="userform.disinfection" placeholder="请选择" >
  678. <el-option
  679. v-for="item in disinfection"
  680. :key="item.id"
  681. :label="item.name"
  682. :value="item.id"
  683. style="width:100px">
  684. </el-option>
  685. </el-select>
  686. </el-form-item>
  687. </el-col>
  688. <el-col :span="8">
  689. <el-form-item label="运行:">
  690. <el-radio-group v-model="userform.machine_run">
  691. <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in runOptions" :key="index">{{gender.name}}</el-radio>
  692. </el-radio-group>
  693. </el-form-item>
  694. </el-col>
  695. </el-row>
  696. <el-row>
  697. <el-col :span="2">
  698. <el-form-item label="②液路"></el-form-item>
  699. </el-col>
  700. <el-col :span="8">
  701. <el-form-item label="消毒方式:" required prop="fluid_path">
  702. <el-select v-model="userform.fluid_path" placeholder="请选择" >
  703. <el-option
  704. v-for="item in sterilizeType"
  705. :key="item.id"
  706. :label="item.name"
  707. :value="item.id"
  708. style="width:135px">
  709. </el-option>
  710. </el-select>
  711. </el-form-item>
  712. </el-col>
  713. <el-col :span="8">
  714. <el-form-item label="消毒液:" required prop="disinfectant">
  715. <el-select v-model="userform.disinfectant" placeholder="请选择" >
  716. <el-option
  717. v-for="item in fluidPathType"
  718. :key="item.id"
  719. :label="item.name"
  720. :value="item.id"
  721. style="width:100px">
  722. </el-option>
  723. </el-select>
  724. </el-form-item>
  725. </el-col>
  726. </el-row>
  727. <el-row>
  728. <el-col :span="8">
  729. <el-form-item label="消毒状态:" required prop="disinfection_status">
  730. <el-select v-model="userform.disinfection_status" placeholder="请选择" >
  731. <el-option
  732. v-for="item in disinfection"
  733. :key="item.id"
  734. :label="item.name"
  735. :value="item.id"
  736. style="width:100px">
  737. </el-option>
  738. </el-select>
  739. </el-form-item>
  740. </el-col>
  741. <el-col :span="8">
  742. <el-form-item label="消毒液残留:">
  743. <el-radio-group v-model="userform.disinfection_residue">
  744. <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in Disinfectant" :key="index">{{gender.name}}</el-radio>
  745. </el-radio-group>
  746. </el-form-item>
  747. </el-col>
  748. </el-row>
  749. <el-row>
  750. <el-col :span="8">
  751. <el-form-item label="消毒时长:">
  752. <el-input style="width:135px" v-model="userform.longtime"></el-input>分钟
  753. </el-form-item>
  754. </el-col>
  755. <el-col :span="8">
  756. <el-form-item label="开始消毒时间:">
  757. <el-date-picker
  758. type="datetime"
  759. format="yyyy-MM-dd HH:mm"
  760. value-format="yyyy-MM-dd HH:mm"
  761. placeholder="选择时间"
  762. v-model="userform.starttime"
  763. style="width:200px;"
  764. ></el-date-picker>
  765. </el-form-item>
  766. </el-col>
  767. <el-col :span="8">
  768. <el-form-item label="结束消毒时间:">
  769. <el-date-picker
  770. type="datetime"
  771. format="yyyy-MM-dd HH:mm"
  772. value-format="yyyy-MM-dd HH:mm"
  773. placeholder="选择时间"
  774. v-model="userform.endtime"
  775. style="width:200px;"
  776. ></el-date-picker>
  777. </el-form-item>
  778. </el-col>
  779. </el-row>
  780. <el-row>
  781. <el-col :span="3">
  782. <el-form-item label="透析机消毒液:"></el-form-item>
  783. </el-col>
  784. <el-col :span="2">
  785. <el-checkbox v-model="userform.dialysis_checked">更换</el-checkbox>
  786. </el-col>
  787. <el-col :span="8">
  788. <el-form-item label="名称:">
  789. <el-select v-model="userform.dialysis_name" placeholder="请选择" >
  790. <el-option
  791. v-for="item in names"
  792. :key="item.id"
  793. :label="item.name"
  794. :value="item.id"
  795. style="width:200px">
  796. </el-option>
  797. </el-select>
  798. </el-form-item>
  799. </el-col>
  800. <el-col :span="6">
  801. <el-form-item label="规格:">
  802. <el-input style="width:100px" v-model="userform.norms"></el-input>桶
  803. </el-form-item>
  804. </el-col>
  805. </el-row>
  806. <el-row>
  807. <el-col>
  808. <el-form-item label="浓度:">
  809. <el-radio-group v-model="userform.dialysis_concentration">
  810. <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in potency" :key="index">{{gender.name}}</el-radio>
  811. </el-radio-group>
  812. <!-- <span style="color:red">您已一个月未更换,请注意检测</span> -->
  813. </el-form-item>
  814. </el-col>
  815. </el-row>
  816. <el-row>
  817. <el-col :span="3">
  818. <el-form-item label="细菌过滤器:"></el-form-item>
  819. </el-col>
  820. <el-col :span="2">
  821. <el-checkbox v-model="userform.germ_checked">更换</el-checkbox>
  822. </el-col>
  823. <el-col :span="8">
  824. <el-form-item label="名称:">
  825. <el-select v-model="userform.germ_name" placeholder="请选择" >
  826. <el-option
  827. v-for="item in germs"
  828. :key="item.id"
  829. :label="item.name"
  830. :value="item.id"
  831. style="width:200px">
  832. </el-option>
  833. </el-select>
  834. </el-form-item>
  835. </el-col>
  836. <el-col :span="6">
  837. <el-form-item label="数量:">
  838. <el-input style="width:100px" v-model="userform.germ_number"></el-input>支
  839. </el-form-item>
  840. </el-col>
  841. </el-row>
  842. <el-row>
  843. <el-col :span="3">
  844. <el-form-item label="空气滤网清洁:"></el-form-item>
  845. </el-col>
  846. <el-col :span="10">
  847. <el-checkbox v-model="userform.clean">清洁:</el-checkbox>
  848. <!-- <span style="color:red">您已一个月未清洁,请检查</span> -->
  849. </el-col>
  850. <el-col :span="10">
  851. <el-form-item label="签名:" required prop="sign_name">
  852. <el-select v-model="userform.sign_name" placeholder="请选择" >
  853. <el-option
  854. v-for="item in autograph"
  855. :key="item.id"
  856. :label="item.user_name"
  857. :value="item.id"
  858. style="width:100px">
  859. </el-option>
  860. </el-select>
  861. </el-form-item>
  862. </el-col>
  863. </el-row>
  864. <el-row>
  865. <div class="elbutton">
  866. <el-col :span="6">
  867. <el-button>取消</el-button>
  868. </el-col>
  869. <el-col :span="2">
  870. <el-button @click="SaveInformation('userform')">保存</el-button>
  871. </el-col>
  872. </div>
  873. </el-row>
  874. </el-form>
  875. </el-tab-pane>
  876. <el-tab-pane label="使用登记列表" name="second">
  877. <user-form></user-form>
  878. </el-tab-pane>
  879. </el-tabs>
  880. </el-tab-pane>
  881. <el-tab-pane label="质量控制" name="fourth">
  882. <el-tabs v-model="activeNameSix" @tab-click="handleClick">
  883. <el-tab-pane label="新增质量控制" name="first">
  884. <span>细菌培养</span>
  885. <el-form :model="qualityForm" ref="qualityForm" :rules="qualitRules">
  886. <el-row>
  887. <el-col :span="8">
  888. <el-form-item label="取样日期:">
  889. <el-date-picker
  890. v-model="qualityForm.date"
  891. prefix-icon="none"
  892. type="date"
  893. placeholder="请选择"
  894. format="yyyy-MM-dd"
  895. value-format="yyyy-MM-dd"
  896. style="width:150px">
  897. </el-date-picker>
  898. </el-form-item>
  899. </el-col>
  900. <el-col :span="8">
  901. <el-form-item label="取样标本:">
  902. <el-select style="width:130px" v-model="qualityForm.specimen" @change="changeSpecimen">
  903. <el-option v-for="item in samplingSpecimen" :key="item.id" :label="item.name" :value="item.id"></el-option>
  904. </el-select>
  905. </el-form-item>
  906. </el-col>
  907. <el-col :span="8">
  908. <el-form-item label="A浓缩液批号:">
  909. <el-input style="width:130px" v-model="qualityForm.concentrate_noa" :disabled="disable"></el-input>
  910. </el-form-item>
  911. </el-col>
  912. </el-row>
  913. <el-row>
  914. <el-col :span="8">
  915. <el-form-item label="B浓缩液批号">
  916. <el-input style="width:130px" v-model="qualityForm.concentrate_nob" :disabled="diableTwo"></el-input>
  917. </el-form-item>
  918. </el-col>
  919. <el-col :span="8">
  920. <el-form-item label="采样部位:">
  921. <el-select style="width:130px" v-model="qualityForm.sampling_locationa">
  922. <el-option v-for="item in samplingLocation" :key="item.id" :label="item.name" :value="item.id"></el-option>
  923. </el-select>
  924. </el-form-item>
  925. </el-col>
  926. <el-col :span="8">
  927. <el-form-item label="检测单位:" required prop="detection_unit">
  928. <el-input style="width:180px" v-model="qualityForm.detection_unit"></el-input>
  929. </el-form-item>
  930. </el-col>
  931. </el-row>
  932. <el-row>
  933. <el-col :span="8">
  934. <el-form-item label="取样者:" required prop="sampler">
  935. <el-select style="width:130px" v-model="qualityForm.sampler">
  936. <el-option v-for="item in sampling" :key="item.addmin_user_id" :label="item.user_name" :value="item.admin_user_id"></el-option>
  937. </el-select>
  938. </el-form-item>
  939. </el-col>
  940. <el-col :span="8">
  941. <el-form-item label="出报告日期:">
  942. <el-date-picker
  943. v-model="qualityForm.reporting_date"
  944. prefix-icon="none"
  945. type="date"
  946. placeholder="请选择"
  947. format="yyyy-MM-dd"
  948. value-format="yyyy-MM-dd"
  949. style="width:150px">
  950. </el-date-picker>
  951. </el-form-item>
  952. </el-col>
  953. </el-row>
  954. <el-row>
  955. <el-col :span="24">
  956. <el-form-item label="检测结果:(cfu/ml)">
  957. <el-input
  958. type="textarea"
  959. :rows="2"
  960. placeholder="请输入内容"
  961. style="width:800px"
  962. v-model="qualityForm.detection_result"
  963. >
  964. </el-input>
  965. </el-form-item>
  966. </el-col>
  967. </el-row>
  968. <el-row>
  969. <el-col :span="24">
  970. <span style="color:#FF9900">注:细菌检测应每个月一次,要求细菌数<100cfu/ml</span>
  971. </el-col>
  972. </el-row>
  973. <el-row>
  974. <div class="clearn">
  975. <el-col :span="4">
  976. <el-button @click="cleanSaveBacteria">取消</el-button>
  977. </el-col>
  978. <el-col :span="4">
  979. <el-button @click="SaveBacteria('qualityForm')">保存</el-button>
  980. </el-col>
  981. </div>
  982. </el-row>
  983. </el-form>
  984. <el-divider></el-divider>
  985. <span>内毒素检测</span>
  986. <el-form ref="qualityFormTwo" :model="qualityFormTwo" :rules="diaRules">
  987. <el-row>
  988. <el-col :span="8">
  989. <el-form-item label="取样日期:">
  990. <el-date-picker
  991. v-model="qualityFormTwo.sampling_date"
  992. prefix-icon="none"
  993. type="date"
  994. placeholder="请选择"
  995. format="yyyy-MM-dd"
  996. value-format="yyyy-MM-dd"
  997. style="width:150px">
  998. </el-date-picker>
  999. </el-form-item>
  1000. </el-col>
  1001. <el-col :span="8">
  1002. <el-form-item label="取样标本:">
  1003. <el-select style="width:130px" v-model="qualityFormTwo.specimenb" @change="changeSpecimen">
  1004. <el-option v-for="item in samplingSpecimen" :key="item.id" :label="item.name" :value="item.id"></el-option>
  1005. </el-select>
  1006. </el-form-item>
  1007. </el-col>
  1008. <el-col :span="8">
  1009. <el-form-item label="A浓缩液批号:">
  1010. <el-input style="width:130px" v-model="qualityFormTwo.concentrate_noc" :disabled="disable"></el-input>
  1011. </el-form-item>
  1012. </el-col>
  1013. </el-row>
  1014. <el-row>
  1015. <el-col :span="8">
  1016. <el-form-item label="B浓缩液批号:">
  1017. <el-input style="width:130px" v-model ="qualityFormTwo.concentrateb_nod" :disabled="diableTwo"></el-input>
  1018. </el-form-item>
  1019. </el-col>
  1020. <el-col :span="8">
  1021. <el-form-item label="采样部位:">
  1022. <el-select style="width:130px" v-model="qualityFormTwo.sampling_locationb">
  1023. <el-option v-for="item in samplingLocation" :key="item.id" :label="item.name" :value="item.id"></el-option>
  1024. </el-select>
  1025. </el-form-item>
  1026. </el-col>
  1027. <el-col :span="8">
  1028. <el-form-item label="检测单位:" required prop="detection_unit">
  1029. <el-input style="width:180px" v-model ="qualityFormTwo.detection_unit"></el-input>
  1030. </el-form-item>
  1031. </el-col>
  1032. </el-row>
  1033. <el-row>
  1034. <el-col :span="8">
  1035. <el-form-item label="取样者:" required prop="samplerb">
  1036. <el-select style="width:130px" v-model="qualityFormTwo.samplerb">
  1037. <el-option v-for="item in sampling" :key="item.addmin_user_id" :label="item.user_name" :value="item.admin_user_id"></el-option>
  1038. </el-select>
  1039. </el-form-item>
  1040. </el-col>
  1041. <el-col :span="8">
  1042. <el-form-item label="出报告日期:">
  1043. <el-date-picker
  1044. v-model="qualityFormTwo.reporting_dateb"
  1045. prefix-icon="none"
  1046. type="date"
  1047. placeholder="请选择"
  1048. format="yyyy-MM-dd"
  1049. value-format="yyyy-MM-dd"
  1050. style="width:150px">
  1051. </el-date-picker>
  1052. </el-form-item>
  1053. </el-col>
  1054. </el-row>
  1055. <el-row>
  1056. <el-col :span="24">
  1057. <el-form-item label="检测结果:(EU/ml)">
  1058. <el-input
  1059. type="textarea"
  1060. :rows="2"
  1061. placeholder="请输入内容"
  1062. style="width:800px"
  1063. v-model="qualityFormTwo.detection_resultb"
  1064. >
  1065. </el-input>
  1066. </el-form-item>
  1067. </el-col>
  1068. </el-row>
  1069. <el-row>
  1070. <el-col :span="24">
  1071. <span style="color:#FF9900">注:内毒素检测应至少每3个月1次,要求内毒素<0.25EU/ml,每台透析机每年至少检测一次</span>
  1072. </el-col>
  1073. </el-row>
  1074. <el-row>
  1075. <div class="clearn">
  1076. <el-col :span="4">
  1077. <el-button @click="cleanLincomycin">取消</el-button>
  1078. </el-col>
  1079. <el-col :span="4">
  1080. <el-button @click="SaveLincomycin('qualityFormTwo')">保存</el-button>
  1081. </el-col>
  1082. </div>
  1083. </el-row>
  1084. </el-form>
  1085. <el-divider></el-divider>
  1086. <span>透析液离子浓度检测</span>
  1087. <el-form ref="qualityFormThree" :model="qualityFormThree" :rules="ruleThree">
  1088. <el-row>
  1089. <el-col :span="8">
  1090. <el-form-item label="取样日期:">
  1091. <el-date-picker
  1092. v-model="qualityFormThree.dateb"
  1093. prefix-icon="none"
  1094. type="date"
  1095. placeholder="请选择"
  1096. format="yyyy-MM-dd"
  1097. value-format="yyyy-MM-dd"
  1098. style="width:150px">
  1099. </el-date-picker>
  1100. </el-form-item>
  1101. </el-col>
  1102. <el-col :span="8">
  1103. <el-form-item label="取样者:" required prop="samplerc">
  1104. <el-select style="width:130px" v-model="qualityFormThree.samplerc">
  1105. <el-option v-for="item in sampling" :key="item.addmin_user_id" :label="item.user_name" :value="item.admin_user_id"></el-option>
  1106. </el-select>
  1107. </el-form-item>
  1108. </el-col>
  1109. <el-col :span="8">
  1110. <el-form-item label="检测单位:" required prop="detection_unit">
  1111. <el-input style="width:180px" v-model ="qualityFormThree.detection_unit"></el-input>
  1112. </el-form-item>
  1113. </el-col>
  1114. </el-row>
  1115. <el-row>
  1116. <el-col :span="8">
  1117. <el-form-item label="A浓缩液批号:">
  1118. <el-input style="width:130px" v-model="qualityFormThree.concentrate_nof"></el-input>
  1119. </el-form-item>
  1120. </el-col>
  1121. <el-col :span="8">
  1122. <el-form-item label="B浓缩液批号:">
  1123. <el-input style="width:130px" v-model="qualityFormThree.concentrate_nog"></el-input>
  1124. </el-form-item>
  1125. </el-col>
  1126. <el-col :span="8">
  1127. <el-form-item label="出报告日期:">
  1128. <el-date-picker
  1129. v-model="qualityFormThree.date_reportc"
  1130. prefix-icon="none"
  1131. type="date"
  1132. placeholder="请选择"
  1133. format="yyyy-MM-dd"
  1134. value-format="yyyy-MM-dd"
  1135. style="width:150px">
  1136. </el-date-picker>
  1137. </el-form-item>
  1138. </el-col>
  1139. </el-row>
  1140. <el-row>
  1141. <el-col :span="8">
  1142. <el-form-item label="实际Na+(mmol/L):">
  1143. <el-input style="width:100px" v-model="qualityFormThree.actual_na"></el-input>
  1144. </el-form-item>
  1145. </el-col>
  1146. <el-col :span="8">
  1147. <el-form-item label="配方Na+(mmol/L):">
  1148. <el-input style="width:100px" v-model="qualityFormThree.actual_pna"></el-input>
  1149. </el-form-item>
  1150. </el-col>
  1151. <el-col :span="8">
  1152. <el-form-item label="K+ (mmol/L):">
  1153. <el-input style="width:100px" v-model="qualityFormThree.actual_k"></el-input>
  1154. </el-form-item>
  1155. </el-col>
  1156. </el-row>
  1157. <el-row>
  1158. <el-col :span="8">
  1159. <el-form-item label="Ca2+(mmol/L):">
  1160. <el-input style="width:100px" v-model="qualityFormThree.actual_ca"></el-input>
  1161. </el-form-item>
  1162. </el-col>
  1163. <el-col :span="8">
  1164. <el-form-item label="CI-(mmol/L):">
  1165. <el-input style="width:100px" v-model="qualityFormThree.actual_ci"></el-input>
  1166. </el-form-item>
  1167. </el-col>
  1168. <el-col :span="8">
  1169. <el-form-item label="HCO3-(mmol/L):">
  1170. <el-input style="width:100px" v-model="qualityFormThree.actual_hco"></el-input>
  1171. </el-form-item>
  1172. </el-col>
  1173. </el-row>
  1174. <el-row>
  1175. <el-col :span="8">
  1176. <el-form-item label="Mg2+(mmol/L):">
  1177. <el-input style="width:100px" v-model="qualityFormThree.actual_mg"></el-input>
  1178. </el-form-item>
  1179. </el-col>
  1180. <el-col :span="8">
  1181. <el-form-item label="PH:">
  1182. <el-input style="width:100px" v-model="qualityFormThree.actual_ph"></el-input>
  1183. </el-form-item>
  1184. </el-col>
  1185. </el-row>
  1186. <el-row>
  1187. <div></div>
  1188. </el-row>
  1189. <el-row>
  1190. <el-col :span="24">
  1191. <el-form-item label="备注:">
  1192. <el-input
  1193. type="textarea"
  1194. :rows="2"
  1195. placeholder="请输入内容"
  1196. style="width:500px"
  1197. v-model="qualityFormThree.remakes"
  1198. >
  1199. </el-input>
  1200. </el-form-item>
  1201. </el-col>
  1202. </el-row>
  1203. <el-row>
  1204. <div class="clearn">
  1205. <el-col :span="4">
  1206. <el-button @click="cleanQuality">取消</el-button>
  1207. </el-col>
  1208. <el-col :span="4">
  1209. <el-button @click="SaveQualityControl('qualityFormThree')">保存</el-button>
  1210. </el-col>
  1211. </div>
  1212. </el-row>
  1213. </el-form>
  1214. </el-tab-pane>
  1215. <el-tab-pane label="质量控制列表" name="second">
  1216. <quality-form ref="child"></quality-form>
  1217. </el-tab-pane>
  1218. </el-tabs>
  1219. </el-tab-pane>
  1220. <el-tab-pane label="维修维护" name="five">
  1221. <el-tabs v-model="activeNameFive" @tab-click="handleClick">
  1222. <el-tab-pane label="新增维修维护" name="first">
  1223. <el-form :model="guaForm" ref="guaForm" :rules="repirRules">
  1224. <el-row>
  1225. <el-col :span="8">
  1226. <el-form-item label="保修日期:" required prop="guarantee_date">
  1227. <el-date-picker
  1228. v-model="guaForm.guarantee_date"
  1229. prefix-icon="none"
  1230. type="date"
  1231. placeholder="请选择"
  1232. format="yyyy-MM-dd"
  1233. value-format="yyyy-MM-dd"
  1234. style="width:150px">
  1235. </el-date-picker>
  1236. </el-form-item>
  1237. </el-col>
  1238. <el-col :span="8">
  1239. <el-form-item label="出发时间:">
  1240. <el-date-picker
  1241. type="datetime"
  1242. format="yyyy-MM-dd HH:mm"
  1243. value-format="yyyy-MM-dd HH:mm"
  1244. placeholder="选择时间"
  1245. v-model="guaForm.start_time"
  1246. style="width:200px;">
  1247. </el-date-picker>
  1248. </el-form-item>
  1249. </el-col>
  1250. </el-row>
  1251. <el-row>
  1252. <el-col :span="8">
  1253. <el-form-item label="到达时间:">
  1254. <!-- <el-date-picker
  1255. v-model="guaForm.arrive_time"
  1256. prefix-icon="none"
  1257. type="date"
  1258. placeholder="请选择"
  1259. format="yyyy-MM-dd"
  1260. value-format="yyyy-MM-dd"
  1261. style="width:150px">
  1262. </el-date-picker> -->
  1263. <el-date-picker
  1264. type="datetime"
  1265. format="yyyy-MM-dd HH:mm"
  1266. value-format="yyyy-MM-dd HH:mm"
  1267. placeholder="选择时间"
  1268. v-model="guaForm.arrive_time"
  1269. style="width:200px;">
  1270. </el-date-picker>
  1271. </el-form-item>
  1272. </el-col>
  1273. <el-col :span="8">
  1274. <el-form-item label="完成时间:">
  1275. <!-- <el-date-picker
  1276. v-model="guaForm.finish_time"
  1277. prefix-icon="none"
  1278. type="date"
  1279. placeholder="请选择"
  1280. format="yyyy-MM-dd"
  1281. value-format="yyyy-MM-dd"
  1282. style="width:150px">
  1283. </el-date-picker> -->
  1284. <el-date-picker
  1285. type="datetime"
  1286. format="yyyy-MM-dd HH:mm"
  1287. value-format="yyyy-MM-dd HH:mm"
  1288. placeholder="选择时间"
  1289. v-model="guaForm.finish_time"
  1290. style="width:200px;">
  1291. </el-date-picker>
  1292. </el-form-item>
  1293. </el-col>
  1294. <el-col :span="8">
  1295. <el-form-item label="总路程:(公里)">
  1296. <el-input style="width:200px" v-model = "guaForm.total_distance"></el-input>
  1297. </el-form-item>
  1298. </el-col>
  1299. </el-row>
  1300. <el-row>
  1301. <el-col :span="24">
  1302. <el-form-item label="故障发生阶段">
  1303. <el-radio-group v-model="guaForm.failure_stage">
  1304. <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in faultPhase" :key="index">{{gender.name}}</el-radio>
  1305. </el-radio-group>
  1306. </el-form-item>
  1307. </el-col>
  1308. </el-row>
  1309. <el-row>
  1310. <el-col :span="24">
  1311. <el-form-item label="故障提示信息及代码">
  1312. <el-input
  1313. type="textarea"
  1314. :rows="2"
  1315. placeholder="请输入内容"
  1316. v-model="guaForm.code_information"
  1317. style="width:500px">
  1318. </el-input>
  1319. </el-form-item>
  1320. </el-col>
  1321. </el-row>
  1322. <el-row>
  1323. <el-col :span="8">
  1324. <el-form-item label="故障描述:" required prop="fault_description">
  1325. <el-input
  1326. type="textarea"
  1327. :rows="2"
  1328. placeholder="请输入内容"
  1329. v-model="guaForm.fault_description"
  1330. style="width:300px">
  1331. </el-input>
  1332. </el-form-item>
  1333. </el-col>
  1334. <el-col :span="8">
  1335. <el-form-item label="原因分析:">
  1336. <el-input
  1337. type="textarea"
  1338. :rows="2"
  1339. placeholder="请输入内容"
  1340. v-model="guaForm.cause_analysis"
  1341. style="width:300px">
  1342. </el-input>
  1343. </el-form-item>
  1344. </el-col>
  1345. <el-col :span="8">
  1346. <el-form-item label="处理过程:">
  1347. <el-input
  1348. type="textarea"
  1349. :rows="2"
  1350. placeholder="请输入内容"
  1351. v-model="guaForm.treatment_process"
  1352. style="width:300px">
  1353. </el-input>
  1354. </el-form-item>
  1355. </el-col>
  1356. </el-row>
  1357. <el-row>
  1358. <el-col :span="24">
  1359. <el-form-item label="上传图片:">
  1360. <el-upload
  1361. :data="uploadFileData"
  1362. class="upload-demo"
  1363. action="https://upload.qiniup.com"
  1364. :on-success="handleSuccess"
  1365. :before-upload="beforeUploadFile"
  1366. multiple
  1367. :on-preview="handlePreview"
  1368. :limit="1"
  1369. :on-exceed="handleExceed">
  1370. <el-button size="small" type="primary">上传图片</el-button>
  1371. </el-upload>
  1372. </el-form-item>
  1373. </el-col>
  1374. </el-row>
  1375. <el-row>
  1376. <el-col :span="20">
  1377. <el-form-item label="故障是否排除:">
  1378. <el-radio-group v-model="guaForm.exclude">
  1379. <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in breakDown" :key="index">{{gender.name}}</el-radio>
  1380. </el-radio-group>
  1381. </el-form-item>
  1382. </el-col>
  1383. </el-row>
  1384. <el-row>
  1385. <el-col :span="20">
  1386. <el-form-item label="原因:">
  1387. <el-input
  1388. type="textarea"
  1389. :rows="2"
  1390. placeholder="请输入内容"
  1391. v-model="guaForm.reason"
  1392. style="width:300px">
  1393. </el-input>
  1394. </el-form-item>
  1395. </el-col>
  1396. </el-row>
  1397. <el-row>
  1398. <div class="clearn">
  1399. <el-col :span="4">
  1400. <el-button>取消</el-button>
  1401. </el-col>
  1402. <el-col :span="4">
  1403. <el-button @click="SaveRepair('guaForm')">保存</el-button>
  1404. </el-col>
  1405. </div>
  1406. </el-row>
  1407. </el-form>
  1408. </el-tab-pane>
  1409. <el-tab-pane label="维修维护列表" name="second">
  1410. <repair-form ref="child"></repair-form>
  1411. </el-tab-pane>
  1412. </el-tabs>
  1413. </el-tab-pane>
  1414. </el-tabs>
  1415. </div>
  1416. </el-main>
  1417. </el-container>
  1418. </el-container>
  1419. </el-container>
  1420. <!-- 新增计划 -->
  1421. <plan-form ref="planForm" :equimentid="equimentid" v-on:getAllPlan="getAllPlan" v-on:getAllPlanDetail="getAllPlanDetail"></plan-form>
  1422. <!-- <edit-machine-form ref="editmachineform" :planid="planid" ></edit-machine-form> -->
  1423. <!-- 综合查询 -->
  1424. <multiple-form ref="multipleform"></multiple-form>
  1425. <!-- 编辑消毒计划 -->
  1426. <el-dialog title="编辑消毒计划" :visible.sync="dialogVisible" width="50%" center>
  1427. <el-form :model="machineform" ref="machineform">
  1428. <el-row>
  1429. <el-col :span="10">
  1430. <el-form-item label="设备型号:">
  1431. <el-select style="width:135px" v-model="machineform.device_type">
  1432. <el-option
  1433. v-for="item in this.DeviceType"
  1434. :key="item.id"
  1435. :label="item.equitment_name"
  1436. :value="item.id"
  1437. ></el-option>
  1438. </el-select>
  1439. </el-form-item>
  1440. </el-col>
  1441. <el-col :span="10">
  1442. <el-form-item label="消毒时长:">
  1443. <el-input style="width:135px" v-model="machineform.disinfec_time"></el-input>
  1444. <span>分钟</span>
  1445. </el-form-item>
  1446. </el-col>
  1447. </el-row>
  1448. <el-row>
  1449. <el-col :span="10">
  1450. <el-form-item label="时间:">
  1451. <el-select
  1452. v-model="machineform.time"
  1453. placeholder="请选择时间"
  1454. style="width: 140px;"
  1455. >
  1456. <el-option
  1457. v-for="item in this.timeType"
  1458. :key="item.id"
  1459. :label="item.name"
  1460. :value="item.id"
  1461. ></el-option>
  1462. </el-select>
  1463. </el-form-item>
  1464. </el-col>
  1465. <el-col :span="10">
  1466. <el-form-item label="班次:">
  1467. <el-select
  1468. v-model="machineform.class_time"
  1469. placeholder="请选择时间"
  1470. style="width: 140px;"
  1471. >
  1472. <el-option
  1473. v-for="item in this.classType"
  1474. :key="item.id"
  1475. :label="item.name"
  1476. :value="item.id"
  1477. ></el-option>
  1478. </el-select>
  1479. </el-form-item>
  1480. </el-col>
  1481. </el-row>
  1482. <el-row>
  1483. <el-col :span="10">
  1484. <el-form-item label="机表消毒方式:">
  1485. <el-select style="width:135px" v-model="machineform.way">
  1486. <el-option
  1487. v-for="item in this.disinfectType"
  1488. :key="item.id"
  1489. :label="item.name"
  1490. :value="item.id"
  1491. ></el-option>
  1492. </el-select>
  1493. </el-form-item>
  1494. </el-col>
  1495. <el-col :span="10">
  1496. <el-form-item label="机表消毒液:">
  1497. <el-select
  1498. style="width:135px"
  1499. v-model="machineform.machine_disinfectant"
  1500. >
  1501. <el-option
  1502. v-for="item in this.disinfectantType"
  1503. :key="item.id"
  1504. :label="item.name"
  1505. :value="item.id"
  1506. ></el-option>
  1507. </el-select>
  1508. </el-form-item>
  1509. </el-col>
  1510. </el-row>
  1511. <el-row>
  1512. <el-col :span="10">
  1513. <el-form-item label="液路消毒方式:">
  1514. <el-select style="width:135px" v-model="machineform.disinfectant_way">
  1515. <el-option
  1516. v-for="item in this.sterilizeType"
  1517. :key="item.id"
  1518. :label="item.name"
  1519. :value="item.id"
  1520. ></el-option>
  1521. </el-select>
  1522. </el-form-item>
  1523. </el-col>
  1524. <el-col :span="10">
  1525. <el-form-item label="液路消毒液:">
  1526. <el-select style="width:135px" v-model="machineform.disinfectant">
  1527. <el-option
  1528. v-for="item in this.fluidPathType"
  1529. :key="item.id"
  1530. :label="item.name"
  1531. :value="item.id"
  1532. ></el-option>
  1533. </el-select>
  1534. </el-form-item>
  1535. </el-col>
  1536. </el-row>
  1537. </el-form>
  1538. <span slot="footer" class="dialog-footer">
  1539. <el-button @click="dialogVisible = false">取 消</el-button>
  1540. <el-button type="primary" @click="UpdatePlanInfo('machineform')">保存</el-button>
  1541. </span>
  1542. </el-dialog>
  1543. </div>
  1544. </div>
  1545. </template>
  1546. <script>
  1547. import BreadCrumb from '../components/bread-crumb'
  1548. import { getAllSubregion, getAllMachine, getMachineDetailById,
  1549. UpdateMachineInfo, getAllPlan, getAllPlanDetail, DeletePlans,
  1550. getAllEquimentName, EditPlanDetail, UpdatePlanInfo, SaveInformation, getPatientInfo,
  1551. ChangeClass, getAllOrganization, getUserRegister, SaveQualityControl, getOrgName, SaveRepair, SaveBacteria, SaveLincomycin,getAutoData } from '@/api/manage'
  1552. import { uParseTime } from '@/utils/tools'
  1553. import { getToken } from '@/api/qiniu'
  1554. import PlanForm from './components/PlanForm'
  1555. import EditMachineForm from './components/EditMachineForm'
  1556. import MultipleForm from './components/MultipleForm'
  1557. import UserForm from './components/UserForm'
  1558. import QualityForm from './components/QualityForm'
  1559. import RepairForm from './components/RepairForm'
  1560. import { parseTime } from '@/utils'
  1561. import { getFileExtension } from '@/utils/tools'
  1562. const cityOptions = ['HD', 'HDF', 'HD+HP', 'HP', 'HF', 'SCUF', 'IUF','HFHD', 'HFHD+HP', 'PHF', 'HFR', 'HDF+HP', 'CRRT', '腹水回收']
  1563. const moment = require('moment')
  1564. export default {
  1565. name: 'home',
  1566. components: {
  1567. BreadCrumb,
  1568. PlanForm,
  1569. EditMachineForm,
  1570. MultipleForm,
  1571. UserForm,
  1572. QualityForm,
  1573. RepairForm
  1574. },
  1575. data() {
  1576. return {
  1577. crumbs: [
  1578. { path: false, name: '设备管理详情页' }
  1579. ],
  1580. tableData: [],
  1581. tableDatatwo: [],
  1582. planData: [],
  1583. DeviceTypeType: [
  1584. { id: 0, name: '全部' },
  1585. { id: 1, name: '透析机' },
  1586. { id: 2, name: '水处理机' },
  1587. { id: 3, name: '其他' }
  1588. ],
  1589. bedNumber: [],
  1590. Number: [],
  1591. form: {
  1592. id: '',
  1593. serial_number: '',
  1594. devicetype: '',
  1595. bed_number: '',
  1596. device_name: '',
  1597. manufacture_factory: '',
  1598. service_manufacturer: '',
  1599. unit_type: '',
  1600. use_section: '',
  1601. section_number: '',
  1602. buy_date: '',
  1603. install_date: '',
  1604. start_date: '',
  1605. maintenance_engineer: '',
  1606. telephone: '',
  1607. guarantee_date: '',
  1608. machine_status: '',
  1609. user_total: '',
  1610. remarks: '',
  1611. rubbish_date: '',
  1612. rubbish_reason: '',
  1613. user_year: '',
  1614. work_time: '',
  1615. treat_mode: [],
  1616. treat_type: [] // 治疗模式
  1617. },
  1618. activeName: 'first',
  1619. activeNameTwo: 'first',
  1620. activeNameThree: 'first',
  1621. activeNameSix: 'first',
  1622. activeNameFive: 'first',
  1623. machineStatus: [
  1624. { id: 1, name: '使用机' },
  1625. { id: 2, name: '备用机' },
  1626. { id: 3, name: '急诊机' },
  1627. { id: 4, name: '报废机' }
  1628. ],
  1629. DisCardResion: [
  1630. { id: 0, name: "请选择" },
  1631. { id: 1, name: '超期限报废' },
  1632. { id: 2, name: '故障报废' },
  1633. { id: 3, name: '核定报废' }
  1634. ],
  1635. DeviceTypes: [
  1636. { id: 1, name: '透析机' },
  1637. { id: 2, name: '水处理机' },
  1638. { id: 3, name: '其他' }
  1639. ],
  1640. Classes: [
  1641. { id: 0, name: '全部' },
  1642. { id: 1, name: '上午' },
  1643. { id: 2, name: '下午' },
  1644. { id: 3, name: '晚上' }
  1645. ],
  1646. names: [
  1647. { id: 0, name: '请选择' },
  1648. { id: 1, name: '20%柠檬酸' },
  1649. { id: 2, name: '50%柠檬酸' },
  1650. { id: 3, name: '次氯酸钠' }
  1651. ],
  1652. germs: [
  1653. { id: 0, name:"请选择" },
  1654. { id: 1, name: '费森细菌过滤器' },
  1655. { id: 2, name: '日机装细菌过滤器' },
  1656. { id: 3, name: '贝朗机细菌过滤器' },
  1657. { id: 4, name: '东丽机细菌过滤器' }
  1658. ],
  1659. autograph: [],
  1660. bedZone: [],
  1661. forms: {
  1662. zone_id: '', // 分区号
  1663. class_id: '', // 班次
  1664. device_type: '', // 设备类型
  1665. date: ''
  1666. },
  1667. currentRow: null,
  1668. cancelShow: false,
  1669. confirmShow: false,
  1670. isIndeterminate: true,
  1671. checkAll: false,
  1672. cities: cityOptions,
  1673. rules: {
  1674. serial_number: [{ required: true, message: '请填写序列号' }],
  1675. device_name: [{ required: true, message: '请填写序列号' }],
  1676. devicetype: [{ required: true, message: '请填写设备类型' }],
  1677. unit_type: [{ required: true, message: '请填写设备型号' }]
  1678. },
  1679. qualitRules: {
  1680. detection_unit: [{ required: true, message: '请填写检测单位' }],
  1681. sampler: [{ required: true, message: '请填写取样者' }],
  1682. },
  1683. diaRules:{
  1684. detection_unit: [{ required: true, message: '请填写检测单位' }],
  1685. samplerb: [{ required: true, message: '请填写取样者' }],
  1686. },
  1687. repirRules: {
  1688. guarantee_date: [{ required: true, message: '请填写保修日期' }],
  1689. fault_description: [{ required: true, message: '请填写故障描述' }]
  1690. },
  1691. ruleThree:{
  1692. detection_unit: [{ required: true, message: '请填写检测单位' }],
  1693. samplerc: [{ required: true, message: '请填写取样者' }]
  1694. },
  1695. userRules:{
  1696. zone: [{required:true,message:"请填写分区"}],
  1697. bed_number: [{required:true,message:"请填写床位号"}],
  1698. patient_name: [{required:true,message:"请填写患者"}],
  1699. disinfect_type: [{required:true,message:"请填写消毒方式"}],
  1700. disinfectant_type: [{required:true,message:"请填写消毒液"}],
  1701. disinfection:[{required:true,message:"请填写消毒状态"}],
  1702. fluid_path:[{required:true,message:"请填写消毒方式"}],
  1703. disinfectant:[{required:true,message:"请填写消毒液"}],
  1704. disinfection_status:[{required:true,message:"消毒状态"}],
  1705. sign_name:[{required:true,message:"请填写签名"}]
  1706. },
  1707. runOption: [
  1708. { id: 1, name: '正常' },
  1709. { id: 2, name: '故障' }
  1710. ],
  1711. runOptions: [
  1712. { id: 1, name: '达标' },
  1713. { id: 2, name: '未达标' }
  1714. ],
  1715. faultPhase: [
  1716. { id: 1, name: '开机启动' },
  1717. { id: 2, name: '自检' },
  1718. { id: 3, name: '准备' },
  1719. { id: 4, name: '治疗' },
  1720. { id: 5, name: '消毒' }
  1721. ],
  1722. Disinfectant: [
  1723. { id: 1, name: '有' },
  1724. { id: 2, name: '无' }
  1725. ],
  1726. potency: [
  1727. { id: 1, name: '达标' },
  1728. { id: 2, name: '未达标' }
  1729. ],
  1730. sampling: [],
  1731. DeviceType: [],
  1732. equimentid: 0,
  1733. checkAllStatus: false,
  1734. checkAllStatusOne: false,
  1735. selectMachines: [],
  1736. selectMachinesOne: [],
  1737. machineIndex: -1,
  1738. planid: 0,
  1739. machineform: {
  1740. id: '',
  1741. device_type: '',
  1742. disinfec_time: '',
  1743. time: '',
  1744. class_time: '',
  1745. way: '',
  1746. machine_disinfectant: '',
  1747. disinfectant_way: '',
  1748. disinfectant: ''
  1749. },
  1750. dialogVisible: false,
  1751. timeType: [
  1752. { id: 1, name: '周一' },
  1753. { id: 2, name: '周二' },
  1754. { id: 3, name: '周三' },
  1755. { id: 4, name: '周四' },
  1756. { id: 5, name: '周五' },
  1757. { id: 6, name: '周六' },
  1758. { id: 7, name: '周日' }
  1759. ],
  1760. classType: [
  1761. { id: 0, name: '请选择' },
  1762. { id: 1, name: '上午' },
  1763. { id: 2, name: '下午' },
  1764. { id: 3, name: '晚上' }
  1765. ],
  1766. // 基表消毒方式
  1767. disinfectType:
  1768. [
  1769. { id: 0, name: '/' },
  1770. { id: 1, name: '擦拭' },
  1771. { id: 2, name: '化学消毒' }
  1772. ],
  1773. // 基表消毒液
  1774. disinfectantType: [
  1775. { id: 0, name: '/' },
  1776. { id: 1, name: '0.22%季铵盐' },
  1777. { id: 2, name: '500mg/l含氯消毒剂' },
  1778. { id: 3, name: '1000mg/l含氯消毒剂' },
  1779. { id: 4, name: '1500mg/l含氯消毒剂' }
  1780. ],
  1781. // 夜路消毒方式
  1782. sterilizeType: [
  1783. { id: 0, name: '/' },
  1784. { id: 1, name: '热化学消毒' },
  1785. { id: 2, name: '化学消毒 + 除钙' },
  1786. { id: 3, name: '热化学消毒 + 除钙' },
  1787. { id: 4, name: '热消毒' },
  1788. { id: 5, name: '化学消毒' },
  1789. { id: 6, name: '除钙' },
  1790. { id: 7, name: '清洗' }
  1791. ],
  1792. // 夜路消毒液
  1793. fluidPathType: [
  1794. { id: 0, name: '/' },
  1795. { id: 1, name: '20%柠檬酸' },
  1796. { id: 2, name: '25%柠檬酸' },
  1797. { id: 3, name: '50%柠檬酸' },
  1798. { id: 4, name: '50%柠檬酸 + 5%次氯酸钠' },
  1799. { id: 5, name: '20%柠檬酸 + 10%冰醋酸' },
  1800. { id: 6, name: '0.2%过氧化乙酸' },
  1801. { id: 7, name: '10%冰醋酸' },
  1802. { id: 8, name: '50%冰醋酸' },
  1803. { id: 9, name: '5%次氯酸钠' }
  1804. ],
  1805. userform: {
  1806. date: moment(new Date()).format('YYYY-MM-DD'), // 日期
  1807. classtype: '', // 班次
  1808. zone: '', // 分区
  1809. bed_number: '', // 床位号
  1810. patient_name: '', // 患者
  1811. contagion: '', // 传染病
  1812. dialysis_mode: '', // 透析方式
  1813. start_time: '', // 上机时间
  1814. end_time: '', // 下机时间
  1815. dialysis_time: '', // 透析时长
  1816. hyperfiltratio: '', // 实际超滤量
  1817. weight_loss: '', // 体重减少
  1818. warning_value: '', // 预警值
  1819. user_total: '', // 使用次数
  1820. run: 1, // 运行
  1821. failure_stage: '', // 故事发生阶段
  1822. fault_description: '', // 故障描述
  1823. code_information: '', // 故障提示及代码
  1824. // 机器消毒
  1825. disinfect_type: 1, // 消毒方式
  1826. disinfectant_type: 2, // 消毒液
  1827. disinfection: 1, // 消毒状态
  1828. machine_run: 1, // 运行
  1829. // 液路
  1830. fluid_path: 3, // 消毒方式
  1831. disinfectant: 3, // 消毒液
  1832. disinfection_status: 1, // 消毒状态
  1833. disinfection_residue: 1, // 消毒液残留
  1834. longtime: '', // 消毒时长
  1835. starttime: '', // 开始消毒时间
  1836. endtime: '', // 结束消毒时间
  1837. dialysis_checked: '', // 更换
  1838. dialysis_name: '', // 名称
  1839. norms: '', // 规格
  1840. dialysis_concentration: 1, // 浓度
  1841. germ_checked: '', // 更换
  1842. germ_name: '', // 名称
  1843. germ_number: '', // 数量
  1844. clean: '', // 清洁
  1845. sign_name: ''// 签名
  1846. },
  1847. treatmentmodes: [
  1848. { id: 1, name: 'HD' },
  1849. { id: 2, name: 'HDF' },
  1850. { id: 3, name: 'HD+HP' },
  1851. { id: 4, name: 'HP' },
  1852. { id: 5, name: 'HF' },
  1853. { id: 6, name: 'SCUF' },
  1854. { id: 7, name: 'IUF' },
  1855. { id: 8, name: 'HFHD+HP' },
  1856. { id: 9, name: 'HFR' },
  1857. { id: 10, name: 'HDF+HP' },
  1858. { id: 11, name: 'GRRT' },
  1859. { id: 12, name: '腹水回收' }
  1860. ],
  1861. treatmode: [
  1862. { id: 0, name: '请选择' },
  1863. { id: 1, name: 'HD' },
  1864. { id: 2, name: 'HDF' },
  1865. { id: 3, name: 'HD + HP' },
  1866. { id: 4, name: 'HP' },
  1867. { id: 5, name: 'HF' },
  1868. { id: 6, name: 'SCUF' },
  1869. { id: 7, name: 'IUF' },
  1870. { id: 8, name: 'HFHD' },
  1871. { id: 9, name: 'HFHD+HP' },
  1872. { id: 10, name: 'PHF' },
  1873. { id: 11, name: 'HFR' },
  1874. { id: 12, name: 'HDF+HP' },
  1875. { id: 13, name: 'CRRT' },
  1876. { id: 14, name: '腹水回输' },
  1877. { id: 15, name: 'HD前置换' },
  1878. { id: 16, name: 'HD后置换' },
  1879. { id: 17, name: 'HDF前置换' },
  1880. { id: 18, name: 'HDF后置换' }
  1881. ],
  1882. disinfection: [
  1883. { id: 1, name: '已消毒' },
  1884. { id: 2, name: '未消毒' },
  1885. { id: 3, name: '消毒未完成' }
  1886. ],
  1887. patientName: [],
  1888. start: '',
  1889. end: '',
  1890. // 细菌培养
  1891. qualityForm: {
  1892. date: moment(new Date()).format('YYYY-MM-DD'), // 取样日期
  1893. specimen: '', // 取样标本
  1894. concentrate_noa: '', // 浓A
  1895. concentrate_nob: '', // 浓B,
  1896. sampling_locationa: '', // 采样部位
  1897. detection_unit: '', // 检测单位
  1898. sampler: '', // 取样者
  1899. reporting_date: '', // 报告日期
  1900. detection_result: '', // 检测结果
  1901. },
  1902. qualityFormTwo:{
  1903. // 内毒素检测
  1904. detection_unit: '', // 检测单位
  1905. sampling_date: moment(new Date()).format('YYYY-MM-DD'), // 取样日期
  1906. specimenb: '', // 取样标本
  1907. concentrate_noc: '', // A浓缩液批号
  1908. concentrateb_nod: '', // B浓
  1909. sampling_locationb: '', // 采样部位
  1910. samplerb: '', // 取样者
  1911. reporting_dateb: '', // 出报告日期
  1912. detection_resultb: '', // 检测结果
  1913. },
  1914. qualityFormThree:{
  1915. detection_unit: '', // 检测单位
  1916. // 透析液离子浓度检测
  1917. dateb: moment(new Date()).format('YYYY-MM-DD'), // 取样日期
  1918. samplerc: '', // 取样者
  1919. concentrate_nof: '', // A浓
  1920. concentrate_nog: '', // B浓
  1921. date_reportc: '', // 出报告日期
  1922. actual_na: '',
  1923. actual_pna: '',
  1924. actual_k: '',
  1925. actual_ca: '',
  1926. actual_ci: '',
  1927. actual_hco: '',
  1928. actual_mg: '',
  1929. actual_ph: '',
  1930. remakes: ''
  1931. },
  1932. disable: false,
  1933. diableTwo: false,
  1934. samplingSpecimen: [
  1935. { id: 0, name: '请选择' },
  1936. { id: 1, name: '透析液' },
  1937. { id: 2, name: 'A浓缩液' },
  1938. { id: 3, name: 'B浓缩液' },
  1939. { id: 4, name: '置换液' },
  1940. { id: 5, name: '透析用水' }
  1941. ],
  1942. samplingLocation: [
  1943. { id: 0, name: '请选择' },
  1944. { id: 1, name: '透析液入口' },
  1945. { id: 2, name: '透析液取样口' },
  1946. { id: 3, name: '置换液出口' },
  1947. { id: 4, name: '透析机反渗水入口' }
  1948. ],
  1949. breakDown: [
  1950. { id: 1, name: '是' },
  1951. { id: 2, name: '待观察' },
  1952. { id: 3, name: '未解决' }
  1953. ],
  1954. guaForm: {
  1955. guarantee_date: moment(new Date()).format('YYYY-MM-DD'),
  1956. start_time: '',
  1957. arrive_time: '',
  1958. finish_time: '',
  1959. total_distance: '',
  1960. failure_stage: '',
  1961. fault_description: '',
  1962. cause_analysis: '',
  1963. treatment_process: '',
  1964. images: '',
  1965. exclude: '',
  1966. reason: '',
  1967. code_information: ''
  1968. },
  1969. qiniuDomain: 'https://images.shengws.com/',
  1970. uploadFileData: { token: '', key: '' }
  1971. }
  1972. },
  1973. methods: {
  1974. handleClick(tab, event) {
  1975. console.log(tab, event)
  1976. },
  1977. handleExceed(file) {
  1978. console.log(file)
  1979. },
  1980. handlePreview(file) {
  1981. console.log(file)
  1982. },
  1983. changetreatmentmode(val) {
  1984. const checkedCount = val.length
  1985. this.checkAll = checkedCount === this.treatmentmode.length
  1986. this.isIndeterminate = checkedCount > 0 && checkedCount < this.treatmentmode.length
  1987. },
  1988. handleCheckAllChange(val) {
  1989. this.form.treat_mode = val ? cityOptions : []
  1990. this.isIndeterminate = false
  1991. },
  1992. handleCheckedCitiesChange(value) {
  1993. const checkedCount = value.length
  1994. this.checkAll = checkedCount === this.cities.length
  1995. this.isIndeterminate = checkedCount > 0 && checkedCount < this.cities.length
  1996. },
  1997. // 获取所有分区
  1998. getAllSubregion() {
  1999. getAllSubregion().then(response => {
  2000. var zones = response.data.data.zones
  2001. this.deviceType = zones
  2002. var numbers = response.data.data.numbers
  2003. console.log('分区号是设么', zones)
  2004. var zone = [{ id: 0, name: "全部" }];
  2005. for (let i = 0; i < zones.length; i++) {
  2006. const item = zones[i];
  2007. zone.push({ id: item.id, name: item.name });
  2008. }
  2009. var devicenumber = response.data.data.devicenumber;
  2010. this.bedZone = zone
  2011. this.bedNumber = numbers
  2012. this.Number = devicenumber
  2013. })
  2014. },
  2015. changeBedNumber(val) {
  2016. this.forms.zone_id = val
  2017. this.getAllMachine()
  2018. },
  2019. changeClassId(val) {
  2020. this.forms.class_id = val
  2021. this.getAllMachine()
  2022. },
  2023. changeDeviceId(val) {
  2024. this.forms.device_type = val
  2025. this.getAllMachine()
  2026. },
  2027. getAllMachine() {
  2028. getAllMachine(this.forms.zone_id, this.forms.class_id, this.forms.device_type).then(response => {
  2029. if (response.data.state === 1) {
  2030. var addmahcer = response.data.data.addmahcer
  2031. console.log('设备内容是什么', addmahcer)
  2032. this.tableDatatwo = addmahcer
  2033. var index = this.$route.query.index
  2034. this.$refs.singleTable.setCurrentRow(this.tableDatatwo[index])
  2035. }
  2036. })
  2037. },
  2038. handleCurrentChange(val) {
  2039. this.currentRow = val
  2040. this.$forceUpdate()
  2041. this.getMachineDetailById(val.id)
  2042. this.equimentid = val.id
  2043. this.getAllPlanDetail(val.id)
  2044. this.getPatientInfo(val.id)
  2045. // 获取基本信息
  2046. this.getUserRegister(val.id)
  2047. //病人下机后插入数据
  2048. this.getAutoData(val.id)
  2049. },
  2050. getAutoData(id){
  2051. getAutoData(id).then(response=>{
  2052. if(response.data.state === 1){
  2053. var dialysis = response.data.data.dialysis
  2054. console.log("dialysis",dialysis)
  2055. }
  2056. })
  2057. },
  2058. getMachineDetailById(id) {
  2059. getMachineDetailById(id).then(response => {
  2060. if (response.data.state === 1) {
  2061. var addmacher = response.data.data.addmacher
  2062. console.log('addmacher是什么东西', addmacher)
  2063. var mode = response.data.data.mode
  2064. console.log('mode', mode)
  2065. var zone = response.data.data.zone
  2066. console.log('zone', zone)
  2067. const arr1 = []
  2068. // const cityOptions = ['HD', 'HDF', 'HD+HP', 'HP', 'HF', 'SCUF', 'IUF', 'HFHD+HP', 'HFR', 'HDF+HP', 'GRRT', '腹水回收']
  2069. for (let index = 0; index < mode.length; index++) {
  2070. if (mode[index].treate_mode === 1) {
  2071. mode[index] = 'HD'
  2072. }
  2073. if (mode[index].treate_mode === 2) {
  2074. mode[index] = 'HDF'
  2075. }
  2076. if (mode[index].treate_mode === 3) {
  2077. mode[index] = 'HD+HP'
  2078. }
  2079. if (mode[index].treate_mode === 4) {
  2080. mode[index] = 'HP'
  2081. }
  2082. if (mode[index].treate_mode === 5) {
  2083. mode[index] = 'HF'
  2084. }
  2085. if (mode[index].treate_mode === 6) {
  2086. mode[index] = 'SCUF'
  2087. }
  2088. if (mode[index].treate_mode === 7) {
  2089. mode[index] = 'IUF'
  2090. }
  2091. if (mode[index].treate_mode === 8) {
  2092. mode[index] = 'HFHD'
  2093. }
  2094. if (mode[index].treate_mode === 9) {
  2095. mode[index] = 'HFHD+HP'
  2096. }
  2097. if (mode[index].treate_mode === 10) {
  2098. mode[index] = 'PHF'
  2099. }
  2100. if (mode[index].treate_mode === 11) {
  2101. mode[index] = 'HFR'
  2102. }
  2103. if (mode[index].treate_mode === 12) {
  2104. mode[index] = 'HDF+HP'
  2105. }
  2106. if (mode[index].treate_mode === 13) {
  2107. mode[index] = 'CRRT'
  2108. }
  2109. if (mode[index].treate_mode === 14) {
  2110. mode[index] = '腹水回收'
  2111. }
  2112. arr1.push(mode[index])
  2113. }
  2114. this.form.treat_mode = arr1
  2115. this.form.id = addmacher.id
  2116. this.form.serial_number = addmacher.serial_number
  2117. this.form.devicetype = addmacher.device_type
  2118. this.form.bed_number = addmacher.bed_number
  2119. this.form.device_name = addmacher.device_name
  2120. this.form.manufacture_factory = addmacher.manufacture_factory
  2121. this.form.service_manufacturer = addmacher.service_manufacturer
  2122. this.form.unit_type = addmacher.unit_type
  2123. this.form.use_section = addmacher.use_section
  2124. this.form.section_number = addmacher.section_number
  2125. if (addmacher.buy_date !== 0) {
  2126. this.form.buy_date = uParseTime(addmacher.buy_date, '{y}-{m}-{d}')
  2127. }
  2128. if (addmacher.install_date !== 0) {
  2129. this.form.install_date = uParseTime(addmacher.install_date, '{y}-{m}-{d}')
  2130. }
  2131. if (addmacher.start_date !== 0) {
  2132. this.form.start_date = uParseTime(addmacher.start_date, '{y}-{m}-{d}')
  2133. }
  2134. this.form.maintenance_engineer = addmacher.maintenace_engineer
  2135. this.form.telephone = addmacher.telephone
  2136. this.form.guarantee_date = addmacher.guarantee_date
  2137. this.form.machine_status = addmacher.machine_status
  2138. this.form.user_total = addmacher.user_total
  2139. this.form.remarks = addmacher.remarks
  2140. if (addmacher.rubbish_date !== 0) {
  2141. this.form.rubbish_date = uParseTime(addmacher.rubbish_date, '{y}-{m}-{d}')
  2142. }
  2143. this.form.rubbish_reason = addmacher.rubbish_reason
  2144. this.form.user_year = addmacher.user_year
  2145. this.form.work_time = addmacher.work_time
  2146. }
  2147. })
  2148. },
  2149. UpdateMachine() {
  2150. this.cancelShow = true
  2151. this.confirmShow = true
  2152. },
  2153. UpdateMachineInfo(formName) {
  2154. const arr2 = []
  2155. this.form.treat_mode.map((item, index) => {
  2156. const obj = {}
  2157. obj.id = index + 1
  2158. arr2.push(obj.id)
  2159. })
  2160. console.log("arr2是什么",arr2)
  2161. this.form.treat_type = arr2
  2162. var device_type = this.form.devicetype
  2163. var device_types = parseInt(device_type)
  2164. this.form.devicetype = device_types
  2165. console.log('机号是什么东西', this.form.bed_number)
  2166. if (this.form.rubbish_reason === '') {
  2167. this.form.rubbish_reason = 0
  2168. }
  2169. var rubbish_reason = this.form.rubbish_reason
  2170. var rubbish_reasons = parseInt(rubbish_reason)
  2171. this.form.rubbish_reason = rubbish_reasons
  2172. var machine_status = this.form.machine_status
  2173. var machine_statuss = parseInt(machine_status)
  2174. this.form.machine_status = machine_statuss
  2175. if (this.form.bed_number === '') {
  2176. this.form.bed_number = 0
  2177. }
  2178. var bed_numbers = this.form.bed_number
  2179. var bed_numberss = parseInt(bed_numbers)
  2180. this.form.bed_number = bed_numberss
  2181. console.log('购买日期', this.form.buy_date)
  2182. this.$refs[formName].validate(valid => {
  2183. UpdateMachineInfo(this.form).then(response => {
  2184. if (response.data.state === 1) {
  2185. var addmacher = response.data.data.addmacher
  2186. console.log('addmacher', addmacher)
  2187. this.$message.success('修改成功')
  2188. }
  2189. })
  2190. })
  2191. },
  2192. cleanMainchine(){
  2193. this.form.manufacture_factory = ""
  2194. this.form.service_manufacturer= ""
  2195. this.form.use_section= ""
  2196. this.form.buy_date= ""
  2197. this.form.install_date= ""
  2198. this.form.start_date= ""
  2199. this.form.maintenance_engineer= ""
  2200. this.form.telephone= ""
  2201. this.form.guarantee_date= ""
  2202. this.form.user_total= ""
  2203. this.form.rubbish_date= ""
  2204. this.form.user_year = ""
  2205. this.form.work_time = ""
  2206. this.form.treat_mode = ""
  2207. },
  2208. addPlan() {
  2209. this.$refs.planForm.open()
  2210. },
  2211. changeCheck() {
  2212. this.$refs.multipleTableOne.clearSelection()
  2213. if (this.checkAllStatusOne) {
  2214. this.$refs.multipleTableOne.toggleAllSelection()
  2215. }
  2216. },
  2217. handleSelectionChange(val) {
  2218. this.selectMachinesOne = val
  2219. },
  2220. changeCheckOne() {
  2221. this.$refs.multipleTable.clearSelection()
  2222. if (this.checkAllStatus) {
  2223. this.$refs.multipleTable.toggleAllSelection()
  2224. }
  2225. },
  2226. handleSelectionChangeOne(val) {
  2227. this.selectMachines = val
  2228. },
  2229. changeMachineStatus() {
  2230. },
  2231. getAllPlan() {
  2232. getAllPlan().then(response => {
  2233. if (response.data.state === 1) {
  2234. var plan = response.data.data.plan
  2235. for (let index = 0; index < plan.length; index++) {
  2236. if (plan[index].time === 1) {
  2237. plan[index].time = '周一'
  2238. }
  2239. if (plan[index].time === 2) {
  2240. plan[index].time = '周二'
  2241. }
  2242. if (plan[index].time === 3) {
  2243. plan[index].time = '周三'
  2244. }
  2245. if (plan[index].time === 4) {
  2246. plan[index].time = '周四'
  2247. }
  2248. if (plan[index].time === 5) {
  2249. plan[index].time = '周五'
  2250. }
  2251. if (plan[index].time === 6) {
  2252. plan[index].time = '周六'
  2253. }
  2254. if (plan[index].time === 7) {
  2255. plan[index].time = '周日'
  2256. }
  2257. if (plan[index].classtime === 1) {
  2258. plan[index].classtime = '上午'
  2259. }
  2260. if (plan[index].classtime === 2) {
  2261. plan[index].classtime = '下午'
  2262. }
  2263. if (plan[index].classtime === 3) {
  2264. plan[index].classtime = '晚上'
  2265. }
  2266. if(plan[index].way === 0){
  2267. plan[index].way = "/"
  2268. }
  2269. if (plan[index].way === 1) {
  2270. plan[index].way = '擦拭'
  2271. }
  2272. if (plan[index].way === 2) {
  2273. plan[index].way = '化学消毒'
  2274. }
  2275. if (plan[index].machine_disinfectant === 0) {
  2276. plan[index].machine_disinfectant = '/'
  2277. }
  2278. if (plan[index].machine_disinfectant === 1) {
  2279. plan[index].machine_disinfectant = '0.22%季铵盐'
  2280. }
  2281. if (plan[index].machine_disinfectant === 2) {
  2282. plan[index].machine_disinfectant = '500mg/l含氯消毒剂'
  2283. }
  2284. if (plan[index].machine_disinfectantant === 3) {
  2285. plan[index].machine_disinfectant = '1000mg/l含氯消毒剂'
  2286. }
  2287. if (plan[index].machine_disinfectant === 4) {
  2288. plan[index].machine_disinfectant = '1500mg/l含氯消毒剂'
  2289. }
  2290. if (plan[index].disinfectan_way === 0) {
  2291. plan[index].disinfectan_way = '/'
  2292. }
  2293. if (plan[index].disinfectan_way === 1) {
  2294. plan[index].disinfectan_way = '热化学消毒'
  2295. }
  2296. if (plan[index].disinfectan_way === 2) {
  2297. plan[index].disinfectan_way = '化学消毒 + 除钙'
  2298. }
  2299. if (plan[index].disinfectan_way === 3) {
  2300. plan[index].disinfectan_way = '热化学消毒 + 除钙'
  2301. }
  2302. if (plan[index].disinfectan_way === 4) {
  2303. plan[index].disinfectan_way = '热消毒'
  2304. }
  2305. if (plan[index].disinfectan_way === 5) {
  2306. plan[index].disinfectan_way = '化学消毒'
  2307. }
  2308. if (plan[index].disinfectan_way === 6) {
  2309. plan[index].disinfectan_way = '除钙'
  2310. }
  2311. if (plan[index].disinfectan_way === 7) {
  2312. plan[index].disinfectan_way = '清洗'
  2313. }
  2314. if (plan[index].disinfectant === 0) {
  2315. plan[index].disinfectant = '/'
  2316. }
  2317. if (plan[index].disinfectant === 1) {
  2318. plan[index].disinfectant = '20%柠檬酸'
  2319. }
  2320. if (plan[index].disinfectant === 2) {
  2321. plan[index].disinfectant = '25%柠檬酸'
  2322. }
  2323. if (plan[index].disinfectant === 3) {
  2324. plan[index].disinfectant = '50%柠檬酸'
  2325. }
  2326. if (plan[index].disinfectant === 4) {
  2327. plan[index].disinfectant = '50%柠檬酸 + 5%次氯酸钠'
  2328. }
  2329. if (plan[index].disinfectant === 5) {
  2330. plan[index].disinfectant = '20%柠檬酸 + 10%冰醋酸'
  2331. }
  2332. if (plan[index].disinfectant === 6) {
  2333. plan[index].disinfectant = '0.2%过氧化乙酸'
  2334. }
  2335. if (plan[index].disinfectant === 7) {
  2336. plan[index].disinfectant = '10%冰醋酸'
  2337. }
  2338. if (plan[index].disinfectant === 8) {
  2339. plan[index].disinfectant = '50%冰醋酸'
  2340. }
  2341. if (plan[index].disinfectant === 9) {
  2342. plan[index].disinfectant = '5%次氯酸钠'
  2343. }
  2344. }
  2345. this.tableData = plan
  2346. }
  2347. })
  2348. },
  2349. getAllPlanDetail(id) {
  2350. getAllPlanDetail(id).then(response => {
  2351. if (response.data.state === 1) {
  2352. var plandetail = response.data.data.plandetail
  2353. console.log('plandertail', plandetail)
  2354. for (let index = 0; index < plandetail.length; index++) {
  2355. if (plandetail[index].time === 1) {
  2356. plandetail[index].time = '周一'
  2357. }
  2358. if (plandetail[index].time === 2) {
  2359. plandetail[index].time = '周二'
  2360. }
  2361. if (plandetail[index].time === 3) {
  2362. plandetail[index].time = '周三'
  2363. }
  2364. if (plandetail[index].time === 4) {
  2365. plandetail[index].time = '周四'
  2366. }
  2367. if (plandetail[index].time === 5) {
  2368. plandetail[index].time = '周五'
  2369. }
  2370. if (plandetail[index].time === 6) {
  2371. plandetail[index].time = '周六'
  2372. }
  2373. if (plandetail[index].time === 7) {
  2374. plandetail[index].time = '周日'
  2375. }
  2376. if (plandetail[index].classtime === 1) {
  2377. plandetail[index].classtime = '上午'
  2378. }
  2379. if (plandetail[index].classtime === 2) {
  2380. plandetail[index].classtime = '下午'
  2381. }
  2382. if (plandetail[index].classtime === 3) {
  2383. plandetail[index].classtime = '晚上'
  2384. }
  2385. if (plandetail[index].way === 0) {
  2386. plandetail[index].way = '/'
  2387. }
  2388. if (plandetail[index].way === 1) {
  2389. plandetail[index].way = '擦拭'
  2390. }
  2391. if (plandetail[index].way === 2) {
  2392. plandetail[index].way = '化学消毒'
  2393. }
  2394. if (plandetail[index].machine_disinfectant === 0) {
  2395. plandetail[index].machine_disinfectant = '/'
  2396. }
  2397. if (plandetail[index].machine_disinfectant === 1) {
  2398. plandetail[index].machine_disinfectant = '0.22%季铵盐'
  2399. }
  2400. if (plandetail[index].machine_disinfectant === 2) {
  2401. plandetail[index].machine_disinfectant = '500mg/l含氯消毒剂'
  2402. }
  2403. if (plandetail[index].machine_disinfectantant === 3) {
  2404. plandetail[index].machine_disinfectant = '1000mg/l含氯消毒剂'
  2405. }
  2406. if (plandetail[index].machine_disinfectant === 4) {
  2407. plandetail[index].machine_disinfectant = '1500mg/l含氯消毒剂'
  2408. }
  2409. if (plandetail[index].disinfectan_way === 0) {
  2410. plandetail[index].disinfectan_way = '/'
  2411. }
  2412. if (plandetail[index].disinfectan_way === 1) {
  2413. plandetail[index].disinfectan_way = '热化学消毒'
  2414. }
  2415. if (plandetail[index].disinfectan_way === 2) {
  2416. plandetail[index].disinfectan_way = '化学消毒 + 除钙'
  2417. }
  2418. if (plandetail[index].disinfectan_way === 3) {
  2419. plandetail[index].disinfectan_way = '热化学消毒 + 除钙'
  2420. }
  2421. if (plandetail[index].disinfectan_way === 4) {
  2422. plandetail[index].disinfectan_way = '热消毒'
  2423. }
  2424. if (plandetail[index].disinfectan_way === 5) {
  2425. plandetail[index].disinfectan_way = '化学消毒'
  2426. }
  2427. if (plandetail[index].disinfectan_way === 6) {
  2428. plandetail[index].disinfectan_way = '除钙'
  2429. }
  2430. if (plandetail[index].disinfectan_way === 7) {
  2431. plandetail[index].disinfectan_way = '清洗'
  2432. }
  2433. if (plandetail[index].disinfectant === 0) {
  2434. plandetail[index].disinfectant = '/'
  2435. }
  2436. if (plandetail[index].disinfectant === 1) {
  2437. plandetail[index].disinfectant = '20%柠檬酸'
  2438. }
  2439. if (plandetail[index].disinfectant === 2) {
  2440. plandetail[index].disinfectant = '25%柠檬酸'
  2441. }
  2442. if (plandetail[index].disinfectant === 3) {
  2443. plandetail[index].disinfectant = '50%柠檬酸'
  2444. }
  2445. if (plandetail[index].disinfectant === 4) {
  2446. plandetail[index].disinfectant = '50%柠檬酸 + 5%次氯酸钠'
  2447. }
  2448. if (plandetail[index].disinfectant === 5) {
  2449. plandetail[index].disinfectant = '20%柠檬酸 + 10%冰醋酸'
  2450. }
  2451. if (plandetail[index].disinfectant === 6) {
  2452. plandetail[index].disinfectant = '0.2%过氧化乙酸'
  2453. }
  2454. if (plandetail[index].disinfectant === 7) {
  2455. plandetail[index].disinfectant = '10%冰醋酸'
  2456. }
  2457. if (plandetail[index].disinfectant === 8) {
  2458. plandetail[index].disinfectant = '50%冰醋酸'
  2459. }
  2460. if (plandetail[index].disinfectant === 9) {
  2461. plandetail[index].disinfectant = '5%次氯酸钠'
  2462. }
  2463. }
  2464. this.planData = plandetail
  2465. }
  2466. })
  2467. },
  2468. EditMachine(id, index) {
  2469. this.dialogVisible = true
  2470. EditPlanDetail(id).then(response => {
  2471. if (response.data.state === 1) {
  2472. var plan = response.data.data.plan
  2473. console.log('plan是什么东西', plan)
  2474. this.machineform.id = plan.id
  2475. this.machineform.device_type = plan.device_type
  2476. this.machineform.disinfec_time = plan.disinfec_time
  2477. this.machineform.time = plan.time
  2478. this.machineform.class_time = plan.classtime
  2479. this.machineform.way = plan.way
  2480. this.machineform.machine_disinfectant = plan.machine_disinfectant
  2481. this.machineform.disinfectant_way = plan.disinfectan_way
  2482. this.machineform.disinfectant = plan.disinfectant
  2483. }
  2484. })
  2485. },
  2486. UpdatePlanInfo(formName) {
  2487. var devicetype = this.machineform.device_type
  2488. var devicetypes = parseInt(devicetype)
  2489. this.machineform.device_type = devicetypes
  2490. var disinfectimes = this.machineform.disinfec_time
  2491. var disinfectime = parseInt(disinfectimes)
  2492. this.machineform.disinfec_time = disinfectime
  2493. var times = this.machineform.time
  2494. var time = parseInt(times)
  2495. this.machineform.time = time
  2496. var classtimes = this.machineform.class_time
  2497. var classtime = parseInt(classtimes)
  2498. this.machineform.class_time = classtime
  2499. var ways = this.machineform.way
  2500. var way = parseInt(ways)
  2501. this.machineform.way = way
  2502. var machinedisinfectant = this.machineform.machine_disinfectant
  2503. var machinedisinfectants = parseInt(machinedisinfectant)
  2504. this.machineform.machine_disinfectant = machinedisinfectants
  2505. var disinfectantways = this.machineform.disinfectant_way
  2506. var disinfectantway = parseInt(disinfectantways)
  2507. this.machineform.disinfectant_way = disinfectantway
  2508. var disinfectants = this.machineform.disinfectant
  2509. var disinfectant = parseInt(disinfectants)
  2510. this.machineform.disinfectant = disinfectant
  2511. UpdatePlanInfo(this.machineform).then(response => {
  2512. if (response.data.state == 1) {
  2513. var plan = response.data.data.plan
  2514. this.dialogVisible = false
  2515. this.$message.success('修改成功')
  2516. console.log('this', this.equimentid)
  2517. this.getAllPlanDetail(this.equimentid)
  2518. this.getAllPlan()
  2519. }
  2520. })
  2521. },
  2522. openDeleteMahcine() {
  2523. if (this.selectMachines.length == 0) {
  2524. this.$message.error('请选择要删除的信息')
  2525. return false
  2526. }
  2527. this.$confirm(
  2528. '确认要删除所选记录吗? <br>删除后,信息将无法恢复',
  2529. '删除提示',
  2530. {
  2531. dangerouslyUseHTMLString: true,
  2532. confirmButtonText: '确定',
  2533. cancelButtonText: '取消',
  2534. type: 'warning'
  2535. }
  2536. )
  2537. .then(() => {
  2538. var ids = []
  2539. var idMap = {}
  2540. for (const index in this.selectMachines) {
  2541. ids.push(this.selectMachines[index].id)
  2542. idMap[this.selectMachines[index].id] = this.selectMachines[
  2543. index
  2544. ].id
  2545. }
  2546. DeletePlans({ ids: ids })
  2547. .then(response => {
  2548. if (response.data.state == 1) {
  2549. var msg = response.data.data.msg
  2550. console.log('msg', msg)
  2551. var planDataLength = this.planData.length
  2552. for (let index = planDataLength - 1; index >= 0; index--) {
  2553. if (this.planData[index].id in idMap) {
  2554. this.planData.splice(index, 1)
  2555. }
  2556. }
  2557. var planDataLengths = this.tableData.length
  2558. for (let index = planDataLengths - 1; index >= 0; index--) {
  2559. if (this.tableData[index].id in idMap) {
  2560. this.tableData.splice(index, 1)
  2561. }
  2562. }
  2563. this.$message.success('删除消毒计划成功')
  2564. } else {
  2565. this.$message.error('删除消毒计划失败')
  2566. }
  2567. })
  2568. .catch(e => {})
  2569. })
  2570. .catch(() => {
  2571. return false
  2572. })
  2573. },
  2574. openDeleteMahcineOne() {
  2575. if (this.selectMachinesOne.length == 0) {
  2576. this.$message.error('请选择要删除的信息')
  2577. return false
  2578. }
  2579. this.$confirm(
  2580. '确认要删除所选记录吗? <br>删除后,信息将无法恢复',
  2581. '删除提示',
  2582. {
  2583. dangerouslyUseHTMLString: true,
  2584. confirmButtonText: '确定',
  2585. cancelButtonText: '取消',
  2586. type: 'warning'
  2587. }
  2588. )
  2589. .then(() => {
  2590. var ids = []
  2591. var idMap = {}
  2592. for (const index in this.selectMachinesOne) {
  2593. ids.push(this.selectMachinesOne[index].id)
  2594. idMap[this.selectMachinesOne[index].id] = this.selectMachinesOne[
  2595. index
  2596. ].id
  2597. }
  2598. DeletePlans({ ids: ids })
  2599. .then(response => {
  2600. if (response.data.state == 1) {
  2601. var msg = response.data.data.msg
  2602. console.log('msg', msg)
  2603. var planDataLength = this.tableData.length
  2604. for (let index = planDataLength - 1; index >= 0; index--) {
  2605. if (this.tableData[index].id in idMap) {
  2606. this.tableData.splice(index, 1)
  2607. }
  2608. }
  2609. var planDataLengths = this.planData.length
  2610. for (let index = planDataLengths - 1; index >= 0; index--) {
  2611. if (this.planData[index].id in idMap) {
  2612. this.planData.splice(index, 1)
  2613. }
  2614. }
  2615. this.$message.success('删除消毒计划成功')
  2616. } else {
  2617. this.$message.error('删除消毒计划失败')
  2618. }
  2619. })
  2620. .catch(e => {})
  2621. })
  2622. .catch(() => {
  2623. return false
  2624. })
  2625. },
  2626. getAllEquimentName() {
  2627. getAllEquimentName().then(response => {
  2628. if (response.data.state === 1) {
  2629. var equit = response.data.data.equit
  2630. console.log('equit', equit)
  2631. this.DeviceType = equit
  2632. }
  2633. })
  2634. },
  2635. clickQuery() {
  2636. this.$refs.multipleform.open()
  2637. },
  2638. getPatientInfo(bedid) {
  2639. getPatientInfo(bedid).then(response => {
  2640. if (response.data.state === 1) {
  2641. var schedules = response.data.data.schedules
  2642. console.log('schedules', schedules)
  2643. this.patientName = schedules
  2644. }
  2645. })
  2646. },
  2647. ChangeClass(id) {
  2648. ChangeClass(this.equimentid, id).then(response => {
  2649. if (response.data.state === 1) {
  2650. var patients = response.data.data.patients
  2651. console.log('patients', patients)
  2652. if (patients.is_infectious === 0) {
  2653. this.userform.contagion = ''
  2654. }
  2655. if (patients.is_infectious === 1) {
  2656. this.userform.contagion = '无'
  2657. }
  2658. if (patients.is_infectious === 2) {
  2659. this.userform.contagion = '有'
  2660. }
  2661. this.userform.patient_name = patients.patient_id
  2662. var zone = response.data.data.zone
  2663. console.log('zone==========', zone)
  2664. this.userform.zone = zone.id
  2665. var number = response.data.data.number
  2666. console.log('nubmer', number)
  2667. this.userform.bed_number = number.number
  2668. var order = response.data.data.order
  2669. console.log('orgder', order)
  2670. this.userform.start_time = uParseTime(order.start_time, '{y}-{m}-{d} {h}:{i}')
  2671. this.userform.end_time = uParseTime(order.end_time, '{y}-{m}-{d} {h}:{i}')
  2672. var prescription = response.data.data.prescription
  2673. console.log('prescription', prescription)
  2674. this.userform.dialysis_mode = prescription.mode_id
  2675. var dislysis = response.data.data.dislysis
  2676. console.log('dislysis', dislysis)
  2677. this.userform.dialysis_time = dislysis.actual_treatment_hour + 'h' + dislysis.actual_treatment_minute + 'min'
  2678. this.userform.hyperfiltratio = dislysis.actual_ultrafiltration + 'L'
  2679. this.userform.weight_loss = dislysis.weight_loss + 'kg'
  2680. }
  2681. })
  2682. },
  2683. getTimes(time) {
  2684. return uParseTime(time, '{y}-{m}-{d} {h}:{i}')
  2685. },
  2686. SaveInformation(formName) {
  2687. var classtypes = this.userform.classtype
  2688. var classtype = parseInt(classtypes)
  2689. this.userform.classtype = classtype
  2690. var zone = this.userform.zone
  2691. var zones = parseInt(zone)
  2692. this.userform.zone = zones
  2693. var bednumber = this.userform.bed_number
  2694. var bednumbers = parseInt(bednumber)
  2695. this.userform.bed_number = bednumbers
  2696. var patientName = this.userform.patient_name
  2697. var patient_name = parseInt(patientName)
  2698. this.userform.patient_name = patient_name
  2699. var dialysismode = this.userform.dialysis_mode
  2700. var dialysis_mode = parseInt(dialysismode)
  2701. this.userform.dialysis_mode = dialysis_mode
  2702. if (this.userform.failure_stage === '') {
  2703. this.userform.failure_stage = 0
  2704. }
  2705. if(this.userform.dialysis_checked === ''){
  2706. this.userform.dialysis_checked = 0
  2707. }
  2708. if (this.userform.dialysis_checked === true) {
  2709. this.userform.dialysis_checked = 1
  2710. }
  2711. if (this.userform.dialysis_checked === false) {
  2712. this.userform.dialysis_checked = 0
  2713. }
  2714. if(this.userform.germ_checked === ""){
  2715. this.userform.germ_checked = 0
  2716. }
  2717. if (this.userform.germ_checked === true) {
  2718. this.userform.germ_checked = 1
  2719. }
  2720. if (this.userform.germ_checked === false) {
  2721. this.userform.germ_checked = 0
  2722. }
  2723. if (this.userform.dialysis_name === '') {
  2724. this.userform.dialysis_name = 0
  2725. }
  2726. var dialysis_name = this.userform.dialysis_name
  2727. var dialysis = parseInt(dialysis_name)
  2728. this.userform.dialysis_name = dialysis
  2729. if (this.userform.germ_name === ''){
  2730. this.userform.germ_name = 0
  2731. }
  2732. var germname = this.userform.germ_name
  2733. var germames = parseInt(germname)
  2734. this.userform.germ_name = germames
  2735. if(this.userform.clean === ""){
  2736. this.userform.clean = 0
  2737. }
  2738. if (this.userform.clean === true) {
  2739. this.userform.clean = 1
  2740. }
  2741. if (this.userform.clean === false) {
  2742. this.userform.clean = 0
  2743. }
  2744. this.userform.starttime = this.getTimes(this.userform.starttime)
  2745. this.userform.endtime = this.getTimes(this.userform.endtime)
  2746. this.$refs[formName].validate((valid) => {
  2747. if (valid) {
  2748. SaveInformation(this.equimentid, this.userform).then(response => {
  2749. if (response.data.state === 1) {
  2750. var information = response.data.data.information
  2751. console.log('information', information)
  2752. this.$message.success('添加成功')
  2753. // this.$refs.child.getInformationData()
  2754. }
  2755. })
  2756. }
  2757. })
  2758. },
  2759. // changStartTime(val) {
  2760. // this.userform.starttime = val
  2761. // },
  2762. // changeEndTime(val) {
  2763. // this.userform.endtime = val
  2764. // console.log('val', val)
  2765. // console.log('开始时间', this.userform.starttime)
  2766. // console.log('呵呵', this.formatDuring(val))
  2767. // },
  2768. // formatDuring(mss) {
  2769. // const days = parseInt(mss / (1000 * 60 * 60 * 24)) // 得到天数
  2770. // const hours = parseInt((mss % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)) // 得到小时
  2771. // const minutes = parseInt((mss % (1000 * 60 * 60)) / (1000 * 60)) // 得到分钟数
  2772. // const seconds = (mss % (1000 * 60)) / 1000 // 得到秒数
  2773. // const str1 = hours < 10 ? ('0' + hours) : hours
  2774. // console.log('str1', str1)
  2775. // const str2 = minutes < 10 ? ('0' + minutes) : minutes
  2776. // return str1 + ':' + str2
  2777. // },
  2778. // 获取签名
  2779. getAllOrganization() {
  2780. getAllOrganization().then(response => {
  2781. if (response.data.state === 1) {
  2782. var approle = response.data.data.approle
  2783. this.autograph = approle
  2784. this.sampling = approle
  2785. }
  2786. })
  2787. },
  2788. getUserRegister(id) {
  2789. getUserRegister(id).then(response => {
  2790. if (response.data.state === 1) {
  2791. var information = response.data.data.information
  2792. console.log('information', information)
  2793. var role = response.data.data.role
  2794. console.log('role', role)
  2795. this.userform.date = information.date
  2796. if (information.class === 1) {
  2797. this.userform.classtype = '上午'
  2798. }
  2799. if (information.class === 2) {
  2800. this.userform.classtype = '下午'
  2801. }
  2802. if (information.class === 3) {
  2803. this.userform.classtype = '晚上'
  2804. }
  2805. this.userform.zone = information.zone
  2806. this.userform.bed_number = information.bed_number
  2807. this.userform.patient_name = information.name
  2808. this.userform.contagion = information.contagion
  2809. this.userform.dialysis_mode = information.dialysis_mode
  2810. this.userform.start_time = uParseTime(information.start_time, '{y}-{m}-{d} {h}:{i}')
  2811. this.userform.end_time = uParseTime(information.end_time, '{y}-{m}-{d} {h}:{i}')
  2812. this.userform.dialysis_time = information.dialysis_hour
  2813. this.userform.hyperfiltratio = information.hyperfiltratio
  2814. this.userform.weight_loss = information.weight_loss
  2815. this.userform.warning_value = information.warning_value
  2816. this.userform.user_total = information.user_total
  2817. this.userform.run = information.move
  2818. this.userform.failure_stage = information.failure_stage
  2819. this.userform.fault_description = information.fault_description
  2820. this.userform.code_information = information.code_information
  2821. if (information.disinfect_type === 1) {
  2822. this.userform.disinfect_type = '擦拭'
  2823. }
  2824. if (information.disinfect_type === 2) {
  2825. this.userform.disinfect_type = '化学消毒'
  2826. }
  2827. if (information.disinfectant_type === 1) {
  2828. this.userform.disinfectant_type = '0.22%季铵盐'
  2829. }
  2830. if (information.disinfectant_type === 2) {
  2831. this.userform.disinfectant_type = '500mg/l含氯消毒剂'
  2832. }
  2833. if (information.disinfectant_type === 3) {
  2834. this.userform.disinfectant_type = '1000mg/l含氯消毒剂'
  2835. }
  2836. if (information.disinfectant_type === 4) {
  2837. this.userform.disinfectant_type = '1500mg/l含氯消毒剂'
  2838. }
  2839. if (information.disinfection === 1) {
  2840. this.userform.disinfection = '已消毒'
  2841. }
  2842. if (information.disinfection === 2) {
  2843. this.userform.disinfection = '未消毒'
  2844. }
  2845. if (information.disinfection === 3) {
  2846. this.userform.disinfection = '消毒未完成'
  2847. }
  2848. this.userform.machine_run = information.machine_run
  2849. if (information.fluid_path === 1) {
  2850. this.userform.fluid_path = '热化学消毒'
  2851. }
  2852. if (information.fluid_path === 2) {
  2853. this.userform.fluid_path = '化学消毒 + 除钙'
  2854. }
  2855. if (information.fluid_path === 3) {
  2856. this.userform.fluid_path = '热化学消毒 + 除钙'
  2857. }
  2858. if (information.fluid_path === 4) {
  2859. this.userform.fluid_path = '热消毒'
  2860. }
  2861. if (information.fluid_path === 5) {
  2862. this.userform.fluid_path = '化学消毒'
  2863. }
  2864. if (information.fluid_path === 6) {
  2865. this.userform.fluid_path = '除钙'
  2866. }
  2867. if (information.fluid_path === 7) {
  2868. this.userform.fluid_path = '清洗'
  2869. }
  2870. if (information.disinfectant === 1) {
  2871. this.userform.disinfectant = '20%柠檬酸'
  2872. }
  2873. if (information.disinfectant === 2) {
  2874. this.userform.disinfectant = '25%柠檬酸'
  2875. }
  2876. if (information.disinfectant === 3) {
  2877. this.userform.disinfectant = '50%柠檬酸'
  2878. }
  2879. if (information.disinfectant === 4) {
  2880. this.userform.disinfectant = '50%柠檬酸 + 5%次氯酸钠'
  2881. }
  2882. if (information.disinfectant === 5) {
  2883. this.userform.disinfectant = '20%柠檬酸 + 10%冰醋酸'
  2884. }
  2885. if (information.disinfectant === 6) {
  2886. this.userform.disinfectant = '0.2%过氧化乙酸'
  2887. }
  2888. if (information.disinfectant === 7) {
  2889. this.userform.disinfectant = '10%冰醋酸'
  2890. }
  2891. if (information.disinfectant === 8) {
  2892. this.userform.disinfectant = '50%冰醋酸'
  2893. }
  2894. if (information.disinfectant === 9) {
  2895. this.userform.disinfectant = '5%次氯酸钠'
  2896. }
  2897. if (information.disinfection_status === 1) {
  2898. this.userform.disinfectant = '已消毒'
  2899. }
  2900. if (information.disinfection_status === 2) {
  2901. this.userform.disinfectant = '未消毒'
  2902. }
  2903. if (information.disinfection_status === 3) {
  2904. this.userform.disinfectant = '消毒未完成'
  2905. }
  2906. this.userform.disinfection_residue = information.disinfection_residue
  2907. this.userform.longtime = information.long_time
  2908. this.userform.starttime = uParseTime(information.disinfec_startime, '{y}-{m}-{d} {h}:{i}')
  2909. this.userform.endtime = uParseTime(information.disinfec_endtime, '{y}-{m}-{d} {h}:{i}')
  2910. if (information.dialysis_checked === 1) {
  2911. this.userform.dialysis_checked = true
  2912. }
  2913. if (information.dialysis_checked === 2) {
  2914. this.userform.dialysis_checked = false
  2915. }
  2916. if (information.dialysis_name === 1) {
  2917. this.userform.dialysis_name = '20%柠檬酸'
  2918. }
  2919. if (information.dialysis_name === 2) {
  2920. this.userform.dialysis_name = '50%柠檬酸'
  2921. }
  2922. if (information.dialysis_name === 3) {
  2923. this.userform.dialysis_name = '次氯酸钠'
  2924. }
  2925. this.userform.norms = information.norms
  2926. this.userform.dialysis_concentration = information.dialysis_concentration
  2927. if (information.germ_checked === 1) {
  2928. this.userform.germ_checked = true
  2929. }
  2930. if (information.germs_checked === 0) {
  2931. this.userform.germ_checked = false
  2932. }
  2933. if (information.germ_name === 1) {
  2934. this.userform.germ_name = '费森细菌过滤器'
  2935. }
  2936. if (information.germ_name === 2) {
  2937. this.userform.germ_name = '日机装细菌过滤器'
  2938. }
  2939. if (information.germ_name === 3) {
  2940. this.userform.germ_name = '贝朗机细菌过滤器'
  2941. }
  2942. if (information.germ_name === 4) {
  2943. this.userform.germ_name = '东丽机细菌过滤器'
  2944. }
  2945. this.userform.germ_number = information.germ_number
  2946. if (information.clean === 1) {
  2947. this.userform.clean = true
  2948. }
  2949. if (information.clean === 0) {
  2950. this.userform.clean = false
  2951. }
  2952. this.userform.sign_name = role.user_name
  2953. }
  2954. })
  2955. },
  2956. getOrgName() {
  2957. getOrgName().then(response => {
  2958. if (response.data.state === 1) {
  2959. var org = response.data.data.org
  2960. console.log('org', org)
  2961. this.qualityForm.detection_unit = org.org_name
  2962. this.qualityFormTwo.detection_unit = org.org_name
  2963. this.qualityFormThree.detection_unit = org.org_name
  2964. }
  2965. })
  2966. },
  2967. SaveBacteria(formName) {
  2968. if (this.qualityForm.specimen === '') {
  2969. this.qualityForm.specimen = 0
  2970. }
  2971. var specimen = this.qualityForm.specimen
  2972. var specimens = parseInt(specimen)
  2973. this.qualityForm.specimen = specimens
  2974. if (this.qualityForm.sampling_locationa === '') {
  2975. this.qualityForm.sampling_locationa = 0
  2976. }
  2977. var samplinglocationa = this.qualityForm.sampling_locationa
  2978. var samplinglocationas = parseInt(samplinglocationa)
  2979. this.qualityForm.sampling_locationa = samplinglocationas
  2980. this.$refs[formName].validate(response => {
  2981. SaveBacteria(this.equimentid, this.qualityForm).then(response => {
  2982. if (response.data.state === 1) {
  2983. var culture = response.data.data.culture
  2984. this.$message.success('保存成功')
  2985. this.qualityForm.specimen = '',
  2986. this.qualityForm.concentrate_noa = '',
  2987. this.qualityForm.concentrate_nob = '',
  2988. this.qualityForm.sampling_locationa = '',
  2989. this.qualityForm.sampler = ''
  2990. this.qualityForm.reporting_date = ''
  2991. this.qualityForm.detection_result = ''
  2992. this.$refs.child.getAllQulityInfo()
  2993. }
  2994. })
  2995. })
  2996. },
  2997. cleanSaveBacteria() {
  2998. this.qualityForm.specimen = '',
  2999. this.qualityForm.concentrate_noa = '',
  3000. this.qualityForm.concentrate_nob = '',
  3001. this.qualityForm.sampling_locationa = '',
  3002. this.qualityForm.sampler = ''
  3003. this.qualityForm.reporting_date = ''
  3004. this.qualityForm.detection_result = ''
  3005. },
  3006. SaveLincomycin(formName) {
  3007. this.$refs[formName].validate((valid) => {
  3008. if (valid) {
  3009. SaveLincomycin(this.equimentid, this.qualityFormTwo).then(response => {
  3010. if (response.data.state === 1) {
  3011. var dialysate = response.data.data.dialysate
  3012. console.log('dialysate', dialysate)
  3013. this.$message.success('保存成功')
  3014. this.qualityFormTwo.specimenb = ""
  3015. this.qualityFormTwo.concentrate_noc = ""
  3016. this.qualityFormTwo.concentrateb_nod = ""
  3017. this.qualityFormTwo.sampling_locationb = ""
  3018. this.qualityFormTwo.samplerb = ""
  3019. this.qualityFormTwo.reporting_dateb = ""
  3020. this.qualityFormTwo.detection_resultb = ""
  3021. this.$refs.child.getAllQulityInfo()
  3022. }
  3023. })
  3024. }
  3025. })
  3026. },
  3027. cleanLincomycin(){
  3028. this.qualityFormTwo.specimenb = ""
  3029. this.qualityFormTwo.concentrate_noc = ""
  3030. this.qualityFormTwo.concentrateb_nod = ""
  3031. this.qualityFormTwo.sampling_locationb = ""
  3032. this.qualityFormTwo.samplerb = ""
  3033. this.qualityFormTwo.reporting_dateb = ""
  3034. this.qualityFormTwo.detection_resultb = ""
  3035. },
  3036. SaveQualityControl(formName) {
  3037. this.$refs[formName].validate((valid) => {
  3038. if (valid) {
  3039. SaveQualityControl(this.equimentid, this.qualityFormThree).then(response => {
  3040. if (response.data.state === 1) {
  3041. var ion = response.data.data.ion
  3042. console.log('ion', ion)
  3043. this.$message.success('保存成功')
  3044. this.$refs.child.getAllQulityInfo()
  3045. this.qualityFormThree.samplerc = ""
  3046. this.qualityFormThree.concentrate_nof = ""
  3047. this.qualityFormThree.concentrate_nog = ""
  3048. this.qualityFormThree.date_reportc = ""
  3049. this.qualityFormThree.actual_na = ""
  3050. this.qualityFormThree.actual_pna = ""
  3051. this.qualityFormThree.actual_k = ""
  3052. this.qualityFormThree.actual_ca = ""
  3053. this.qualityFormThree.actual_ci = ""
  3054. this.qualityFormThree.actual_hco = ""
  3055. this.qualityFormThree.actual_mg = ""
  3056. this.qualityFormThree.actual_ph = ""
  3057. this.qualityFormThree.remakes = ""
  3058. }
  3059. })
  3060. }
  3061. })
  3062. },
  3063. cleanQuality(){
  3064. this.qualityFormThree.samplerc = ""
  3065. this.qualityFormThree.concentrate_nof = ""
  3066. this.qualityFormThree.concentrate_nog = ""
  3067. this.qualityFormThree.date_reportc = ""
  3068. this.qualityFormThree.actual_na = ""
  3069. this.qualityFormThree.actual_pna = ""
  3070. this.qualityFormThree.actual_k = ""
  3071. this.qualityFormThree.actual_ca = ""
  3072. this.qualityFormThree.actual_ci = ""
  3073. this.qualityFormThree.actual_hco = ""
  3074. this.qualityFormThree.actual_mg = ""
  3075. this.qualityFormThree.actual_ph = ""
  3076. this.qualityFormThree.remakes = ""
  3077. },
  3078. changeSpecimen(val) {
  3079. if (val === 0) {
  3080. this.disable = false
  3081. this.diableTwo = false
  3082. }
  3083. if (val === 1) {
  3084. this.disable = false
  3085. this.diableTwo = false
  3086. }
  3087. if (val === 2) {
  3088. this.qualityForm.concentrate_nob = ""
  3089. this.qualityFormTwo.concentrateb_nod = ""
  3090. this.diableTwo = true
  3091. this.disable = false
  3092. }
  3093. if (val === 3) {
  3094. this.qualityForm.concentrate_noa = ""
  3095. this.qualityFormTwo.concentrate_noc = ""
  3096. this.disable = true
  3097. this.diableTwo = false
  3098. }
  3099. if (val === 4) {
  3100. this.disable = false
  3101. this.diableTwo = false
  3102. }
  3103. if (val === 5) {
  3104. this.disable = false
  3105. this.diableTwo = false
  3106. }
  3107. },
  3108. handleSuccess(res, file, fileList) {
  3109. this.guaForm.images = this.qiniuDomain + res.url
  3110. console.log('图片上传', this.guaForm.images)
  3111. },
  3112. beforeUploadFile(file) {
  3113. const isLt2M = file.size / 1024 / 1024 <= 2048
  3114. console.log('视频大小', file.size / 1024 / 1024)
  3115. console.log('isLt2M是什么', isLt2M)
  3116. if (!isLt2M) {
  3117. this.$message.error('上传视频大小不能超过 2G!')
  3118. return false
  3119. }
  3120. var date = new Date()
  3121. var ext = getFileExtension(file.name)
  3122. var key = date.getFullYear() + (date.getMonth() + 1) + date.getDate() + date.getHours() + date.getMinutes() + date.getSeconds() + '_o_' + file.uid + '.' + ext
  3123. const _self = this
  3124. return new Promise((resolve, reject) => {
  3125. getToken().then(response => {
  3126. const token = response.data.data.uptoken
  3127. console.log('token2是什么?', token)
  3128. _self._data.uploadFileData.token = token
  3129. _self._data.uploadFileData.key = key
  3130. resolve(true)
  3131. }).catch(err => {
  3132. reject(false)
  3133. })
  3134. })
  3135. },
  3136. getTime(value, temp) {
  3137. if (value != undefined) {
  3138. return parseTime(value, temp)
  3139. }
  3140. return ''
  3141. },
  3142. SaveRepair(formName) {
  3143. this.$refs[formName].validate((valid) => {
  3144. if (valid) {
  3145. SaveRepair(this.equimentid, this.guaForm).then(response => {
  3146. if (response.data.state === 1) {
  3147. var repair = response.data.data.repair
  3148. console.log('reqair', repair)
  3149. this.$message.success('保存成功')
  3150. this.$refs.child.getAllRepair()
  3151. }
  3152. })
  3153. }
  3154. })
  3155. }
  3156. },
  3157. created() {
  3158. this.getAllSubregion()
  3159. this.getAllMachine()
  3160. var index = this.$route.query.index
  3161. // var id = this.$route.query.id
  3162. // console.log('id是什么', id)
  3163. // this.equimentid = id
  3164. this.getAllPlan()
  3165. this.getAllEquimentName()
  3166. this.getAllOrganization()
  3167. this.getOrgName()
  3168. }
  3169. }
  3170. </script>
  3171. <style lang="scss" scoped>
  3172. .zone{
  3173. // margin-left: 30px;
  3174. text-align: left;
  3175. }
  3176. .disinfect{
  3177. position: relative;
  3178. .newButton{
  3179. position: absolute;
  3180. right: 0;
  3181. top:0;
  3182. z-index: 9;
  3183. }
  3184. }
  3185. .disinfectOne{
  3186. position: relative;
  3187. .newButtonOne{
  3188. position: absolute;
  3189. right: 0;
  3190. top: -10;
  3191. z-index: 18;
  3192. }
  3193. }
  3194. .but{
  3195. width: 200px;
  3196. height: 50px;
  3197. // border: solid 1px red;
  3198. margin-left: 800px;
  3199. }
  3200. .clearn{
  3201. width: 460px;
  3202. height: 50px;
  3203. // border:solid 1px red;
  3204. margin-left:780px;
  3205. }
  3206. </style>
  3207. <style lang="scss">
  3208. .a{
  3209. .el-input{
  3210. margin-bottom: 10px;
  3211. }
  3212. }
  3213. .b{
  3214. .el-button{
  3215. margin-left: 850px;
  3216. margin-bottom: 10px;
  3217. }
  3218. }
  3219. .stoppage{
  3220. .el-form-item__label{
  3221. width:190px;
  3222. }
  3223. }
  3224. .main{
  3225. position: relative;
  3226. .newButtonOne{
  3227. position:absolute;
  3228. right: 0;
  3229. z-index: 2;
  3230. }
  3231. }
  3232. .elbutton{
  3233. // border: solid 1px red;
  3234. height: 50px;
  3235. width: 400px;
  3236. margin-left: 750px;
  3237. }
  3238. // .el-form-item__label {
  3239. // width: 130px;
  3240. // font-size: 14px;
  3241. // }
  3242. .el-form-item__error {
  3243. margin-left: 130px;
  3244. }
  3245. </style>