QualityForm.vue 132KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075
  1. <template>
  2. <div id="quality-form">
  3. <el-row class="row">
  4. <el-col :span="4">
  5. <span class="machineClass">机号:</span>
  6. <el-select style="width:100px" v-model="forms.bed">
  7. <el-option
  8. v-for="item in this.bedNumber"
  9. :key="item.id"
  10. :label="item.number"
  11. :value="item.id"
  12. ></el-option>
  13. </el-select>
  14. </el-col>
  15. <el-col :span="6">
  16. <span class="machineClass">取样标本:</span>
  17. <el-select
  18. style="width:130px"
  19. v-model="forms.sename"
  20. @change="changeTable"
  21. >
  22. <el-option
  23. v-for="item in this.tableTypes"
  24. :key="item.id"
  25. :label="item.name"
  26. :value="item.id"
  27. ></el-option>
  28. </el-select>
  29. </el-col>
  30. <el-col :span="11">
  31. <span class="machineClass">日期查询:</span>
  32. <el-date-picker
  33. v-model="forms.start_time"
  34. prefix-icon="none"
  35. type="date"
  36. placeholder="请选择"
  37. format="yyyy-MM-dd"
  38. value-format="yyyy-MM-dd"
  39. style="width:150px"
  40. ></el-date-picker
  41. >-
  42. <el-date-picker
  43. v-model="forms.end_time"
  44. prefix-icon="none"
  45. type="date"
  46. placeholder="请选择"
  47. format="yyyy-MM-dd"
  48. value-format="yyyy-MM-dd"
  49. style="width:150px"
  50. ></el-date-picker>
  51. </el-col>
  52. <el-col :span="2">
  53. <el-button type="primary" @click="queryTable()">查询</el-button>
  54. </el-col>
  55. <!-- <el-col :span="2">
  56. <el-button>打印</el-button>
  57. </el-col>-->
  58. </el-row>
  59. <el-row style="display: flex;align-items: center;">
  60. <el-col :span="2">
  61. <el-checkbox v-model="checkAllStatus" @change="changeCheck">全选</el-checkbox>
  62. </el-col>
  63. <el-col :span="3">
  64. <el-button size="small" @click="BatchDelete" v-show="show"
  65. >批量删除</el-button
  66. >
  67. <el-button size="small" @click="BatchDeleteOne" v-show="showOne"
  68. >批量删除</el-button
  69. >
  70. <el-button size="small" @click="BatchDeleteTwo" v-show="showTwo"
  71. >批量删除</el-button
  72. >
  73. </el-col>
  74. </el-row>
  75. <el-row>
  76. <!-- 细菌培养表 -->
  77. <el-table
  78. ref="multipleTable"
  79. @selection-change="handleSelectionChange"
  80. :row-style="{ color: '#303133' }"
  81. :header-cell-style="{
  82. backgroundColor: 'rgb(245, 247, 250)',
  83. color: '#606266'
  84. }"
  85. :data="tableData"
  86. border
  87. fit
  88. highlight-current-row
  89. style="width: 100%;margin-top: 10px;"
  90. v-show="show"
  91. >
  92. <el-table-column
  93. align="center"
  94. type="selection"
  95. width="55"
  96. ></el-table-column>
  97. <el-table-column prop="date" label="机号" width="80" align="center">
  98. <template slot-scope="scope">{{ scope.row.bed }}</template>
  99. </el-table-column>
  100. <el-table-column
  101. prop="name"
  102. label="取样日期"
  103. width="100"
  104. align="center"
  105. >
  106. <template slot-scope="scope">
  107. {{ getTime(scope.row.speling_date) }}
  108. </template>
  109. </el-table-column>
  110. <el-table-column
  111. prop="address"
  112. label="取样标本"
  113. width="100"
  114. align="center"
  115. >
  116. <template slot-scope="scope">{{ scope.row.specimen }}</template>
  117. </el-table-column>
  118. <el-table-column
  119. prop="address"
  120. label="A浓缩液批号"
  121. width="80"
  122. align="center"
  123. >
  124. <template slot-scope="scope">
  125. {{ scope.row.concentrate_noa }}
  126. </template>
  127. </el-table-column>
  128. <el-table-column
  129. prop="address"
  130. label="B浓缩液批号"
  131. width="80"
  132. align="center"
  133. >
  134. <template slot-scope="scope">
  135. {{ scope.row.concentrate_nob }}
  136. </template>
  137. </el-table-column>
  138. <el-table-column
  139. prop="address"
  140. label="采样部位"
  141. width="100"
  142. align="center"
  143. >
  144. <template slot-scope="scope">
  145. {{ scope.row.sampling_locationa }}
  146. </template>
  147. </el-table-column>
  148. <el-table-column
  149. prop="address"
  150. label="检测单位"
  151. width="100"
  152. align="center"
  153. >
  154. <template slot-scope="scope">{{ scope.row.detection_unit }}</template>
  155. </el-table-column>
  156. <el-table-column
  157. prop="address"
  158. label="取样者"
  159. width="80"
  160. align="center"
  161. >
  162. <template slot-scope="scope">{{ scope.row.user_name }}</template>
  163. </el-table-column>
  164. <el-table-column
  165. prop="address"
  166. label="出报告日期"
  167. width="110"
  168. align="center"
  169. >
  170. <template slot-scope="scope">
  171. {{ getTime(scope.row.reporting_date) }}
  172. </template>
  173. </el-table-column>
  174. <el-table-column
  175. prop="address"
  176. label="顺序号"
  177. width="110"
  178. align="center"
  179. >
  180. <template slot-scope="scope">
  181. {{scope.row.sort}}
  182. </template>
  183. </el-table-column>
  184. <el-table-column
  185. prop="address"
  186. label="检查合格"
  187. width="110"
  188. align="center"
  189. >
  190. <template slot-scope="scope">
  191. <span v-if="scope.row.pass_examination == 1">是</span>
  192. <span v-if="scope.row.pass_examination == 2">否</span>
  193. </template>
  194. </el-table-column>
  195. <el-table-column
  196. prop="address"
  197. label="修改标志"
  198. width="110"
  199. align="center"
  200. >
  201. <template slot-scope="scope">
  202. <span v-if="scope.row.modifications == 1">正常</span>
  203. <span v-if="scope.row.modifications == 2">撤消</span>
  204. </template>
  205. </el-table-column>
  206. <el-table-column
  207. prop="address"
  208. label="检测结果(cfu/ml)"
  209. width="140"
  210. align="center"
  211. >
  212. <template slot-scope="scope">
  213. {{ scope.row.detection_result }}
  214. </template>
  215. </el-table-column>
  216. <el-table-column label="操作" align="center" min-width="150px">
  217. <template slot-scope="scope">
  218. <el-tooltip
  219. class="item"
  220. effect="dark"
  221. content="编辑"
  222. placement="top"
  223. >
  224. <el-button
  225. size="mini"
  226. type="primary"
  227. icon="el-icon-edit-outline"
  228. @click="
  229. EditCulture(scope.row.id, scope.row.sampler, scope.$index)
  230. "
  231. ></el-button>
  232. </el-tooltip>
  233. <el-tooltip
  234. class="item"
  235. effect="dark"
  236. content="删除"
  237. placement="top"
  238. >
  239. <el-button
  240. size="mini"
  241. type="danger"
  242. icon="el-icon-delete"
  243. @click="DeleteCultrues(scope.row.id, scope.$index)"
  244. ></el-button>
  245. </el-tooltip>
  246. </template>
  247. </el-table-column>
  248. </el-table>
  249. <!-- 内霉素检测表字段 -->
  250. <el-table
  251. ref="multipleTableOne"
  252. @selection-change="handleSelectionChangeOne"
  253. :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
  254. :data="table"
  255. border
  256. fit
  257. highlight-current-row
  258. style="width: 100%;margin-top: 10px;"
  259. v-show="showOne"
  260. >
  261. <el-table-column
  262. align="center"
  263. type="selection"
  264. width="55"
  265. ></el-table-column>
  266. <el-table-column prop="date" label="机号" width="80" align="center">
  267. <template slot-scope="scope">{{ scope.row.bed }}</template>
  268. </el-table-column>
  269. <el-table-column
  270. prop="name"
  271. label="取样日期"
  272. width="100"
  273. align="center"
  274. >
  275. <template slot-scope="scope">
  276. {{ getTime(scope.row.sampling_date) }}
  277. </template>
  278. </el-table-column>
  279. <el-table-column
  280. prop="address"
  281. label="取样标本"
  282. width="100"
  283. align="center"
  284. >
  285. <template slot-scope="scope">{{ scope.row.specimenb }}</template>
  286. </el-table-column>
  287. <el-table-column
  288. prop="address"
  289. label="A浓缩液批号"
  290. width="80"
  291. align="center"
  292. >
  293. <template slot-scope="scope">
  294. {{ scope.row.concentrate_noc }}
  295. </template>
  296. </el-table-column>
  297. <el-table-column
  298. prop="address"
  299. label="B浓缩液批号"
  300. width="80"
  301. align="center"
  302. >
  303. <template slot-scope="scope">
  304. {{ scope.row.concentrateb_nod }}
  305. </template>
  306. </el-table-column>
  307. <el-table-column
  308. prop="address"
  309. label="采样部位"
  310. width="100"
  311. align="center"
  312. >
  313. <template slot-scope="scope">
  314. {{ scope.row.sampling_locationb }}
  315. </template>
  316. </el-table-column>
  317. <el-table-column
  318. prop="address"
  319. label="检测单位"
  320. width="100"
  321. align="center"
  322. >
  323. <template slot-scope="scope">{{ scope.row.detection_unit }}</template>
  324. </el-table-column>
  325. <el-table-column
  326. prop="address"
  327. label="取样者"
  328. width="80"
  329. align="center"
  330. >
  331. <template slot-scope="scope">{{ scope.row.user_name }}</template>
  332. </el-table-column>
  333. <el-table-column
  334. prop="address"
  335. label="出报告日期"
  336. width="110"
  337. align="center"
  338. >
  339. <template slot-scope="scope">
  340. {{ getTime(scope.row.reporting_dateb) }}
  341. </template>
  342. </el-table-column>
  343. <el-table-column
  344. prop="address"
  345. label="顺序号"
  346. width="110"
  347. align="center"
  348. >
  349. <template slot-scope="scope">
  350. {{scope.row.sort}}
  351. </template>
  352. </el-table-column>
  353. <el-table-column
  354. prop="address"
  355. label="检查合格"
  356. width="110"
  357. align="center"
  358. >
  359. <template slot-scope="scope">
  360. <span v-if="scope.row.pass_examination == 1">是</span>
  361. <span v-if="scope.row.pass_examination == 2">否</span>
  362. </template>
  363. </el-table-column>
  364. <el-table-column
  365. prop="address"
  366. label="修改标志"
  367. width="110"
  368. align="center"
  369. >
  370. <template slot-scope="scope">
  371. <span v-if="scope.row.modifications == 1">正常</span>
  372. <span v-if="scope.row.modifications == 2">撤消</span>
  373. </template>
  374. </el-table-column>
  375. <el-table-column
  376. prop="address"
  377. label="检测结果(cfu/ml)"
  378. width="100"
  379. align="center"
  380. >
  381. <template slot-scope="scope">
  382. {{ scope.row.detection_resultb }}
  383. </template>
  384. </el-table-column>
  385. <el-table-column label="操作" align="center" min-width="150px">
  386. <template slot-scope="scope">
  387. <el-tooltip
  388. class="item"
  389. effect="dark"
  390. content="编辑"
  391. placement="top"
  392. >
  393. <el-button
  394. size="mini"
  395. type="primary"
  396. icon="el-icon-edit-outline"
  397. @click="EditDialyState(scope.row.id, scope.$index)"
  398. ></el-button>
  399. </el-tooltip>
  400. <el-tooltip
  401. class="item"
  402. effect="dark"
  403. content="删除"
  404. placement="top"
  405. >
  406. <el-button
  407. size="mini"
  408. type="danger"
  409. icon="el-icon-delete"
  410. @click="DeleteDialystates(scope.row.id, scope.$index)"
  411. ></el-button>
  412. </el-tooltip>
  413. </template>
  414. </el-table-column>
  415. </el-table>
  416. <!-- 透析液离子浓度检测 -->
  417. <el-table
  418. ref="multipleTableTwo"
  419. @selection-change="handleSelectionChangeTwo"
  420. :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
  421. :data="tableDatas"
  422. border
  423. fit
  424. highlight-current-row
  425. style="width: 100%;margin-top: 10px;"
  426. v-show="showTwo"
  427. >
  428. <el-table-column
  429. align="center"
  430. type="selection"
  431. width="55"
  432. ></el-table-column>
  433. <el-table-column prop="date" label="机号" width="80" align="center">
  434. <template slot-scope="scope">{{ scope.row.bed }}</template>
  435. </el-table-column>
  436. <el-table-column prop="name" label="取样日期" width="80" align="center">
  437. <template slot-scope="scope">
  438. {{ getTime(scope.row.sampling_date) }}
  439. </template>
  440. </el-table-column>
  441. <el-table-column
  442. prop="address"
  443. label="取样者"
  444. width="80"
  445. align="center"
  446. >
  447. <template slot-scope="scope">{{ scope.row.user_name }}</template>
  448. </el-table-column>
  449. <el-table-column
  450. prop="address"
  451. label="检测单位"
  452. width="80"
  453. align="center"
  454. >
  455. <template slot-scope="scope">{{ scope.row.detection_unit }}</template>
  456. </el-table-column>
  457. <el-table-column
  458. prop="address"
  459. label="A浓缩液批号"
  460. width="80"
  461. align="center"
  462. >
  463. <template slot-scope="scope">
  464. {{ scope.row.concentrate_nof }}
  465. </template>
  466. </el-table-column>
  467. <el-table-column
  468. prop="address"
  469. label="B浓缩液批号"
  470. width="80"
  471. align="center"
  472. >
  473. <template slot-scope="scope">
  474. {{ scope.row.concentrate_nog }}
  475. </template>
  476. </el-table-column>
  477. <el-table-column
  478. prop="address"
  479. label="出报告日期"
  480. width="80"
  481. align="center"
  482. >
  483. <template slot-scope="scope">
  484. {{ getTime(scope.row.date_reportc) }}
  485. </template>
  486. </el-table-column>
  487. <el-table-column
  488. prop="address"
  489. label="顺序号"
  490. width="110"
  491. align="center"
  492. >
  493. <template slot-scope="scope">
  494. {{scope.row.sort}}
  495. </template>
  496. </el-table-column>
  497. <el-table-column
  498. prop="address"
  499. label="检查合格"
  500. width="110"
  501. align="center"
  502. >
  503. <template slot-scope="scope">
  504. <span v-if="scope.row.pass_examination == 1">是</span>
  505. <span v-if="scope.row.pass_examination == 2">否</span>
  506. </template>
  507. </el-table-column>
  508. <el-table-column
  509. prop="address"
  510. label="修改标志"
  511. width="110"
  512. align="center"
  513. >
  514. <template slot-scope="scope">
  515. <span v-if="scope.row.modifications == 1">正常</span>
  516. <span v-if="scope.row.modifications == 2">撤消</span>
  517. </template>
  518. </el-table-column>
  519. <el-table-column
  520. prop="address"
  521. label="检测结果"
  522. width="80"
  523. align="center"
  524. >
  525. <el-table-column
  526. prop="address"
  527. label="实际Na⁺(mmol/L)"
  528. width="80"
  529. align="center"
  530. >
  531. <template slot-scope="scope">{{ scope.row.actual_na }}</template>
  532. </el-table-column>
  533. <el-table-column
  534. prop="address"
  535. label="配方Na⁺(mmol/L)"
  536. width="90"
  537. align="center"
  538. >
  539. <template slot-scope="scope">{{ scope.row.actual_pna }}</template>
  540. </el-table-column>
  541. <el-table-column
  542. prop="address"
  543. label="K⁺(mmol/L)"
  544. width="80"
  545. align="center"
  546. >
  547. <template slot-scope="scope">{{ scope.row.actual_k }}</template>
  548. </el-table-column>
  549. <el-table-column
  550. prop="address"
  551. label="Ca2⁺(mmol/L)"
  552. width="80"
  553. align="center"
  554. >
  555. <template slot-scope="scope">{{ scope.row.actual_ca }}</template>
  556. </el-table-column>
  557. <el-table-column
  558. prop="address"
  559. label="Cl¯(mmol/L)"
  560. width="80"
  561. align="center"
  562. >
  563. <template slot-scope="scope">{{ scope.row.actual_ci }}</template>
  564. </el-table-column>
  565. <el-table-column
  566. prop="address"
  567. label="HCO3¯(mmol/L)"
  568. width="80"
  569. align="center"
  570. >
  571. <template slot-scope="scope">{{ scope.row.actual_hco }}</template>
  572. </el-table-column>
  573. <el-table-column
  574. prop="address"
  575. label="Mg2⁺(mmol/L)"
  576. width="80"
  577. align="center"
  578. >
  579. <template slot-scope="scope">{{ scope.row.actual_mg }}</template>
  580. </el-table-column>
  581. <el-table-column
  582. prop="address"
  583. label="PH(mmol/L)"
  584. width="80"
  585. align="center"
  586. >
  587. <template slot-scope="scope">{{ scope.row.actual_ph }}</template>
  588. </el-table-column>
  589. </el-table-column>
  590. <el-table-column prop="address" label="备注" width="80" align="center">
  591. <template slot-scope="scope">{{ scope.row.remakes }}</template>
  592. </el-table-column>
  593. <el-table-column label="操作" align="center" min-width="150px">
  594. <template slot-scope="scope">
  595. <el-tooltip
  596. class="item"
  597. effect="dark"
  598. content="编辑"
  599. placement="top"
  600. >
  601. <el-button
  602. size="mini"
  603. type="primary"
  604. icon="el-icon-edit-outline"
  605. @click="EditIon(scope.row.id, scope.$index)"
  606. ></el-button>
  607. </el-tooltip>
  608. <el-tooltip
  609. class="item"
  610. effect="dark"
  611. content="删除"
  612. placement="top"
  613. >
  614. <el-button
  615. size="mini"
  616. type="danger"
  617. icon="el-icon-delete"
  618. @click="DeleteIons(scope.row.id, scope.$index)"
  619. ></el-button>
  620. </el-tooltip>
  621. </template>
  622. </el-table-column>
  623. </el-table>
  624. <!-- 有毒化合物检测表 -->
  625. <el-table
  626. ref="multipleTableOne"
  627. @selection-change="handleSelectionChangeOne"
  628. :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
  629. :data="tableOne"
  630. border
  631. fit
  632. highlight-current-row
  633. style="width: 100%;margin-top: 10px;"
  634. v-show="showThree"
  635. >
  636. <el-table-column
  637. align="center"
  638. type="selection"
  639. width="55"
  640. ></el-table-column>
  641. <el-table-column prop="date" label="机号" width="80" align="center">
  642. <template slot-scope="scope">{{ scope.row.bed }}</template>
  643. </el-table-column>
  644. <el-table-column
  645. prop="name"
  646. label="取样日期"
  647. width="100"
  648. align="center"
  649. >
  650. <template slot-scope="scope">
  651. {{ getTime(scope.row.sampling_date) }}
  652. </template>
  653. </el-table-column>
  654. <el-table-column
  655. prop="address"
  656. label="取样标本"
  657. width="100"
  658. align="center"
  659. >
  660. <template slot-scope="scope">{{ scope.row.specimenb }}</template>
  661. </el-table-column>
  662. <el-table-column
  663. prop="address"
  664. label="A浓缩液批号"
  665. width="80"
  666. align="center"
  667. >
  668. <template slot-scope="scope">
  669. {{ scope.row.concentrate_noc }}
  670. </template>
  671. </el-table-column>
  672. <el-table-column
  673. prop="address"
  674. label="B浓缩液批号"
  675. width="80"
  676. align="center"
  677. >
  678. <template slot-scope="scope">
  679. {{ scope.row.concentrateb_nod }}
  680. </template>
  681. </el-table-column>
  682. <el-table-column
  683. prop="address"
  684. label="采样部位"
  685. width="100"
  686. align="center"
  687. >
  688. <template slot-scope="scope">
  689. {{ scope.row.sampling_locationb }}
  690. </template>
  691. </el-table-column>
  692. <el-table-column
  693. prop="address"
  694. label="检测单位"
  695. width="100"
  696. align="center"
  697. >
  698. <template slot-scope="scope">{{ scope.row.detection_unit }}</template>
  699. </el-table-column>
  700. <el-table-column
  701. prop="address"
  702. label="取样者"
  703. width="80"
  704. align="center"
  705. >
  706. <template slot-scope="scope">{{ scope.row.user_name }}</template>
  707. </el-table-column>
  708. <el-table-column
  709. prop="address"
  710. label="出报告日期"
  711. width="110"
  712. align="center"
  713. >
  714. <template slot-scope="scope">
  715. {{ getTime(scope.row.reporting_dateb) }}
  716. </template>
  717. </el-table-column>
  718. <el-table-column
  719. prop="address"
  720. label="顺序号"
  721. width="110"
  722. align="center"
  723. >
  724. <template slot-scope="scope">
  725. {{scope.row.sort}}
  726. </template>
  727. </el-table-column>
  728. <el-table-column
  729. prop="address"
  730. label="检查合格"
  731. width="110"
  732. align="center"
  733. >
  734. <template slot-scope="scope">
  735. <span v-if="scope.row.pass_examination == 1">是</span>
  736. <span v-if="scope.row.pass_examination == 2">否</span>
  737. </template>
  738. </el-table-column>
  739. <el-table-column
  740. prop="address"
  741. label="修改标志"
  742. width="110"
  743. align="center"
  744. >
  745. <template slot-scope="scope">
  746. <span v-if="scope.row.modifications == 1">正常</span>
  747. <span v-if="scope.row.modifications == 2">撤消</span>
  748. </template>
  749. </el-table-column>
  750. <el-table-column
  751. prop="address"
  752. label="检测结果(cfu/ml)"
  753. width="100"
  754. align="center"
  755. >
  756. <template slot-scope="scope">
  757. {{ scope.row.detection_resultb }}
  758. </template>
  759. </el-table-column>
  760. <el-table-column label="操作" align="center" min-width="150px">
  761. <template slot-scope="scope">
  762. <el-tooltip
  763. class="item"
  764. effect="dark"
  765. content="编辑"
  766. placement="top"
  767. >
  768. <el-button
  769. size="mini"
  770. type="primary"
  771. icon="el-icon-edit-outline"
  772. @click="editOxygenates(scope.row.id, scope.$index)"
  773. ></el-button>
  774. </el-tooltip>
  775. <el-tooltip
  776. class="item"
  777. effect="dark"
  778. content="删除"
  779. placement="top"
  780. >
  781. <el-button
  782. size="mini"
  783. type="danger"
  784. icon="el-icon-delete"
  785. @click="DeleteOxygenates(scope.row.id, scope.$index)"
  786. ></el-button>
  787. </el-tooltip>
  788. </template>
  789. </el-table-column>
  790. </el-table>
  791. <!-- 水硬度检测表 -->
  792. <el-table
  793. ref="multipleTableOne"
  794. @selection-change="handleSelectionChangeOne"
  795. :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
  796. :data="tableTwo"
  797. border
  798. fit
  799. highlight-current-row
  800. style="width: 100%;margin-top: 10px;"
  801. v-show="showFour"
  802. >
  803. <el-table-column
  804. align="center"
  805. type="selection"
  806. width="55"
  807. ></el-table-column>
  808. <el-table-column prop="date" label="机号" width="80" align="center">
  809. <template slot-scope="scope">{{ scope.row.bed }}</template>
  810. </el-table-column>
  811. <el-table-column
  812. prop="name"
  813. label="取样日期"
  814. width="100"
  815. align="center"
  816. >
  817. <template slot-scope="scope">
  818. {{ getTime(scope.row.sampling_date) }}
  819. </template>
  820. </el-table-column>
  821. <el-table-column
  822. prop="address"
  823. label="取样标本"
  824. width="100"
  825. align="center"
  826. >
  827. <template slot-scope="scope">{{ scope.row.specimenb }}</template>
  828. </el-table-column>
  829. <el-table-column
  830. prop="address"
  831. label="A浓缩液批号"
  832. width="80"
  833. align="center"
  834. >
  835. <template slot-scope="scope">
  836. {{ scope.row.concentrate_noc }}
  837. </template>
  838. </el-table-column>
  839. <el-table-column
  840. prop="address"
  841. label="B浓缩液批号"
  842. width="80"
  843. align="center"
  844. >
  845. <template slot-scope="scope">
  846. {{ scope.row.concentrateb_nod }}
  847. </template>
  848. </el-table-column>
  849. <el-table-column
  850. prop="address"
  851. label="采样部位"
  852. width="100"
  853. align="center"
  854. >
  855. <template slot-scope="scope">
  856. {{ scope.row.sampling_locationb }}
  857. </template>
  858. </el-table-column>
  859. <el-table-column
  860. prop="address"
  861. label="检测单位"
  862. width="100"
  863. align="center"
  864. >
  865. <template slot-scope="scope">{{ scope.row.detection_unit }}</template>
  866. </el-table-column>
  867. <el-table-column
  868. prop="address"
  869. label="取样者"
  870. width="80"
  871. align="center"
  872. >
  873. <template slot-scope="scope">{{ scope.row.user_name }}</template>
  874. </el-table-column>
  875. <el-table-column
  876. prop="address"
  877. label="出报告日期"
  878. width="110"
  879. align="center"
  880. >
  881. <template slot-scope="scope">
  882. {{ getTime(scope.row.reporting_dateb) }}
  883. </template>
  884. </el-table-column>
  885. <el-table-column
  886. prop="address"
  887. label="顺序号"
  888. width="110"
  889. align="center"
  890. >
  891. <template slot-scope="scope">
  892. {{scope.row.sort}}
  893. </template>
  894. </el-table-column>
  895. <el-table-column
  896. prop="address"
  897. label="检查合格"
  898. width="110"
  899. align="center"
  900. >
  901. <template slot-scope="scope">
  902. <span v-if="scope.row.pass_examination == 1">是</span>
  903. <span v-if="scope.row.pass_examination == 2">否</span>
  904. </template>
  905. </el-table-column>
  906. <el-table-column
  907. prop="address"
  908. label="修改标志"
  909. width="110"
  910. align="center"
  911. >
  912. <template slot-scope="scope">
  913. <span v-if="scope.row.modifications == 1">正常</span>
  914. <span v-if="scope.row.modifications == 2">撤消</span>
  915. </template>
  916. </el-table-column>
  917. <el-table-column
  918. prop="address"
  919. label="检测结果(cfu/ml)"
  920. width="100"
  921. align="center"
  922. >
  923. <template slot-scope="scope">
  924. {{ scope.row.detection_resultb }}
  925. </template>
  926. </el-table-column>
  927. <el-table-column label="操作" align="center" min-width="150px">
  928. <template slot-scope="scope">
  929. <el-tooltip
  930. class="item"
  931. effect="dark"
  932. content="编辑"
  933. placement="top"
  934. >
  935. <el-button
  936. size="mini"
  937. type="primary"
  938. icon="el-icon-edit-outline"
  939. @click="editHardWater(scope.row.id, scope.$index)"
  940. ></el-button>
  941. </el-tooltip>
  942. <el-tooltip
  943. class="item"
  944. effect="dark"
  945. content="删除"
  946. placement="top"
  947. >
  948. <el-button
  949. size="mini"
  950. type="danger"
  951. icon="el-icon-delete"
  952. @click="DeleteHadWater(scope.row.id, scope.$index)"
  953. ></el-button>
  954. </el-tooltip>
  955. </template>
  956. </el-table-column>
  957. </el-table>
  958. <!-- 水游离氯检测检测表 -->
  959. <el-table
  960. ref="multipleTableOne"
  961. @selection-change="handleSelectionChangeOne"
  962. :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
  963. :data="tableThree"
  964. border
  965. fit
  966. highlight-current-row
  967. style="width: 100%;margin-top: 10px;"
  968. v-show="showFive"
  969. >
  970. <el-table-column
  971. align="center"
  972. type="selection"
  973. width="55"
  974. ></el-table-column>
  975. <el-table-column prop="date" label="机号" width="80" align="center">
  976. <template slot-scope="scope">{{ scope.row.bed }}</template>
  977. </el-table-column>
  978. <el-table-column
  979. prop="name"
  980. label="取样日期"
  981. width="100"
  982. align="center"
  983. >
  984. <template slot-scope="scope">
  985. {{ getTime(scope.row.sampling_date) }}
  986. </template>
  987. </el-table-column>
  988. <el-table-column
  989. prop="address"
  990. label="取样标本"
  991. width="100"
  992. align="center"
  993. >
  994. <template slot-scope="scope">{{ scope.row.specimenb }}</template>
  995. </el-table-column>
  996. <el-table-column
  997. prop="address"
  998. label="A浓缩液批号"
  999. width="80"
  1000. align="center"
  1001. >
  1002. <template slot-scope="scope">
  1003. {{ scope.row.concentrate_noc }}
  1004. </template>
  1005. </el-table-column>
  1006. <el-table-column
  1007. prop="address"
  1008. label="B浓缩液批号"
  1009. width="80"
  1010. align="center"
  1011. >
  1012. <template slot-scope="scope">
  1013. {{ scope.row.concentrateb_nod }}
  1014. </template>
  1015. </el-table-column>
  1016. <el-table-column
  1017. prop="address"
  1018. label="采样部位"
  1019. width="100"
  1020. align="center"
  1021. >
  1022. <template slot-scope="scope">
  1023. {{ scope.row.sampling_locationb }}
  1024. </template>
  1025. </el-table-column>
  1026. <el-table-column
  1027. prop="address"
  1028. label="检测单位"
  1029. width="100"
  1030. align="center"
  1031. >
  1032. <template slot-scope="scope">{{ scope.row.detection_unit }}</template>
  1033. </el-table-column>
  1034. <el-table-column
  1035. prop="address"
  1036. label="取样者"
  1037. width="80"
  1038. align="center"
  1039. >
  1040. <template slot-scope="scope">{{ scope.row.user_name }}</template>
  1041. </el-table-column>
  1042. <el-table-column
  1043. prop="address"
  1044. label="出报告日期"
  1045. width="110"
  1046. align="center"
  1047. >
  1048. <template slot-scope="scope">
  1049. {{ getTime(scope.row.reporting_dateb) }}
  1050. </template>
  1051. </el-table-column>
  1052. <el-table-column
  1053. prop="address"
  1054. label="顺序号"
  1055. width="110"
  1056. align="center"
  1057. >
  1058. <template slot-scope="scope">
  1059. {{scope.row.sort}}
  1060. </template>
  1061. </el-table-column>
  1062. <el-table-column
  1063. prop="address"
  1064. label="检查合格"
  1065. width="110"
  1066. align="center"
  1067. >
  1068. <template slot-scope="scope">
  1069. <span v-if="scope.row.pass_examination == 1">是</span>
  1070. <span v-if="scope.row.pass_examination == 2">否</span>
  1071. </template>
  1072. </el-table-column>
  1073. <el-table-column
  1074. prop="address"
  1075. label="修改标志"
  1076. width="110"
  1077. align="center"
  1078. >
  1079. <template slot-scope="scope">
  1080. <span v-if="scope.row.modifications == 1">正常</span>
  1081. <span v-if="scope.row.modifications == 2">撤消</span>
  1082. </template>
  1083. </el-table-column>
  1084. <el-table-column
  1085. prop="address"
  1086. label="检测结果(cfu/ml)"
  1087. width="100"
  1088. align="center"
  1089. >
  1090. <template slot-scope="scope">
  1091. {{ scope.row.detection_resultb }}
  1092. </template>
  1093. </el-table-column>
  1094. <el-table-column label="操作" align="center" min-width="150px">
  1095. <template slot-scope="scope">
  1096. <el-tooltip
  1097. class="item"
  1098. effect="dark"
  1099. content="编辑"
  1100. placement="top"
  1101. >
  1102. <el-button
  1103. size="mini"
  1104. type="primary"
  1105. icon="el-icon-edit-outline"
  1106. @click="editWater(scope.row.id, scope.$index)"
  1107. ></el-button>
  1108. </el-tooltip>
  1109. <el-tooltip
  1110. class="item"
  1111. effect="dark"
  1112. content="删除"
  1113. placement="top"
  1114. >
  1115. <el-button
  1116. size="mini"
  1117. type="danger"
  1118. icon="el-icon-delete"
  1119. @click="DeleteWater(scope.row.id, scope.$index)"
  1120. ></el-button>
  1121. </el-tooltip>
  1122. </template>
  1123. </el-table-column>
  1124. </el-table>
  1125. <!-- PH值检测 -->
  1126. <el-table
  1127. ref="multipleTableOne"
  1128. @selection-change="handleSelectionChangeOne"
  1129. :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
  1130. :data="tableFour"
  1131. border
  1132. fit
  1133. highlight-current-row
  1134. style="width: 100%;margin-top: 10px;"
  1135. v-show="showSix"
  1136. >
  1137. <el-table-column
  1138. align="center"
  1139. type="selection"
  1140. width="55"
  1141. ></el-table-column>
  1142. <el-table-column prop="date" label="机号" width="80" align="center">
  1143. <template slot-scope="scope">{{ scope.row.bed }}</template>
  1144. </el-table-column>
  1145. <el-table-column
  1146. prop="name"
  1147. label="取样日期"
  1148. width="100"
  1149. align="center"
  1150. >
  1151. <template slot-scope="scope">
  1152. {{ getTime(scope.row.sampling_date) }}
  1153. </template>
  1154. </el-table-column>
  1155. <el-table-column
  1156. prop="address"
  1157. label="取样标本"
  1158. width="100"
  1159. align="center"
  1160. >
  1161. <template slot-scope="scope">{{ scope.row.specimenb }}</template>
  1162. </el-table-column>
  1163. <el-table-column
  1164. prop="address"
  1165. label="A浓缩液批号"
  1166. width="80"
  1167. align="center"
  1168. >
  1169. <template slot-scope="scope">
  1170. {{ scope.row.concentrate_noc }}
  1171. </template>
  1172. </el-table-column>
  1173. <el-table-column
  1174. prop="address"
  1175. label="B浓缩液批号"
  1176. width="80"
  1177. align="center"
  1178. >
  1179. <template slot-scope="scope">
  1180. {{ scope.row.concentrateb_nod }}
  1181. </template>
  1182. </el-table-column>
  1183. <el-table-column
  1184. prop="address"
  1185. label="采样部位"
  1186. width="100"
  1187. align="center"
  1188. >
  1189. <template slot-scope="scope">
  1190. {{ scope.row.sampling_locationb }}
  1191. </template>
  1192. </el-table-column>
  1193. <el-table-column
  1194. prop="address"
  1195. label="检测单位"
  1196. width="100"
  1197. align="center"
  1198. >
  1199. <template slot-scope="scope">{{ scope.row.detection_unit }}</template>
  1200. </el-table-column>
  1201. <el-table-column
  1202. prop="address"
  1203. label="取样者"
  1204. width="80"
  1205. align="center"
  1206. >
  1207. <template slot-scope="scope">{{ scope.row.user_name }}</template>
  1208. </el-table-column>
  1209. <el-table-column
  1210. prop="address"
  1211. label="出报告日期"
  1212. width="110"
  1213. align="center"
  1214. >
  1215. <template slot-scope="scope">
  1216. {{ getTime(scope.row.reporting_dateb) }}
  1217. </template>
  1218. </el-table-column>
  1219. <el-table-column
  1220. prop="address"
  1221. label="顺序号"
  1222. width="110"
  1223. align="center"
  1224. >
  1225. <template slot-scope="scope">
  1226. {{scope.row.sort}}
  1227. </template>
  1228. </el-table-column>
  1229. <el-table-column
  1230. prop="address"
  1231. label="检查合格"
  1232. width="110"
  1233. align="center"
  1234. >
  1235. <template slot-scope="scope">
  1236. <span v-if="scope.row.pass_examination == 1">是</span>
  1237. <span v-if="scope.row.pass_examination == 2">否</span>
  1238. </template>
  1239. </el-table-column>
  1240. <el-table-column
  1241. prop="address"
  1242. label="修改标志"
  1243. width="110"
  1244. align="center"
  1245. >
  1246. <template slot-scope="scope">
  1247. <span v-if="scope.row.modifications == 1">正常</span>
  1248. <span v-if="scope.row.modifications == 2">撤消</span>
  1249. </template>
  1250. </el-table-column>
  1251. <el-table-column
  1252. prop="address"
  1253. label="检测结果(cfu/ml)"
  1254. width="100"
  1255. align="center"
  1256. >
  1257. <template slot-scope="scope">
  1258. {{ scope.row.detection_resultb }}
  1259. </template>
  1260. </el-table-column>
  1261. <el-table-column label="操作" align="center" min-width="150px">
  1262. <template slot-scope="scope">
  1263. <el-tooltip
  1264. class="item"
  1265. effect="dark"
  1266. content="编辑"
  1267. placement="top"
  1268. >
  1269. <el-button
  1270. size="mini"
  1271. type="primary"
  1272. icon="el-icon-edit-outline"
  1273. @click="editDevicePh(scope.row.id, scope.$index)"
  1274. ></el-button>
  1275. </el-tooltip>
  1276. <el-tooltip
  1277. class="item"
  1278. effect="dark"
  1279. content="删除"
  1280. placement="top"
  1281. >
  1282. <el-button
  1283. size="mini"
  1284. type="danger"
  1285. icon="el-icon-delete"
  1286. @click="DeleteDevicePh(scope.row.id, scope.$index)"
  1287. ></el-button>
  1288. </el-tooltip>
  1289. </template>
  1290. </el-table-column>
  1291. </el-table>
  1292. </el-row>
  1293. <!-- 编辑细菌培养 -->
  1294. <el-dialog
  1295. title="细菌培养"
  1296. :visible.sync="dialogVisible"
  1297. width="60%"
  1298. center
  1299. >
  1300. <el-form :model="form" ref="form" :rules="rules">
  1301. <el-row>
  1302. <el-col :span="8">
  1303. <el-form-item label="取样日期:">
  1304. <el-date-picker
  1305. v-model="form.date"
  1306. prefix-icon="none"
  1307. type="date"
  1308. placeholder="请选择"
  1309. format="yyyy-MM-dd"
  1310. value-format="yyyy-MM-dd"
  1311. style="width:150px"
  1312. ></el-date-picker>
  1313. </el-form-item>
  1314. </el-col>
  1315. <el-col :span="8">
  1316. <el-form-item label="取样标本:">
  1317. <el-select
  1318. style="width:130px"
  1319. v-model="form.specimen"
  1320. @change="changeSpecimen"
  1321. >
  1322. <el-option
  1323. v-for="item in samplingSpecimen"
  1324. :key="item.id"
  1325. :label="item.name"
  1326. :value="item.id"
  1327. ></el-option>
  1328. </el-select>
  1329. </el-form-item>
  1330. </el-col>
  1331. <el-col :span="8">
  1332. <el-form-item label="A浓缩液批号:">
  1333. <el-input
  1334. style="width:130px"
  1335. v-model="form.concentrate_noa"
  1336. :disabled="disable"
  1337. ></el-input>
  1338. </el-form-item>
  1339. </el-col>
  1340. </el-row>
  1341. <el-row>
  1342. <el-col :span="8">
  1343. <el-form-item label="B浓缩液批号">
  1344. <el-input
  1345. style="width:130px"
  1346. v-model="form.concentrate_nob"
  1347. :disabled="diableTwo"
  1348. ></el-input>
  1349. </el-form-item>
  1350. </el-col>
  1351. <el-col :span="8">
  1352. <el-form-item label="采样部位:">
  1353. <el-select style="width:130px" v-model="form.sampling_locationa">
  1354. <el-option
  1355. v-for="item in samplingLocation"
  1356. :key="item.id"
  1357. :label="item.name"
  1358. :value="item.id"
  1359. ></el-option>
  1360. </el-select>
  1361. </el-form-item>
  1362. </el-col>
  1363. <el-col :span="8">
  1364. <el-form-item label="检测单位:" required prop="detection_unit">
  1365. <el-input
  1366. style="width:180px"
  1367. v-model="form.detection_unit"
  1368. ></el-input>
  1369. </el-form-item>
  1370. </el-col>
  1371. </el-row>
  1372. <el-row>
  1373. <el-col :span="8">
  1374. <el-form-item label="取样者:" required prop="sampler">
  1375. <el-select style="width:130px" v-model="form.sampler">
  1376. <el-option
  1377. v-for="item in sampling"
  1378. :key="item.admin_user_id"
  1379. :label="item.user_name"
  1380. :value="item.admin_user_id"
  1381. ></el-option>
  1382. </el-select>
  1383. </el-form-item>
  1384. </el-col>
  1385. <el-col :span="8">
  1386. <el-form-item label="出报告日期:" required prop="reporting_date">
  1387. <el-date-picker
  1388. v-model="form.reporting_date"
  1389. prefix-icon="none"
  1390. type="date"
  1391. placeholder="请选择"
  1392. format="yyyy-MM-dd"
  1393. value-format="yyyy-MM-dd"
  1394. style="width:150px"
  1395. ></el-date-picker>
  1396. </el-form-item>
  1397. </el-col>
  1398. <el-col :span="8">
  1399. <el-form-item label="顺序号:" required prop="sort">
  1400. <el-input style="width:150px" v-model="form.sort" ></el-input>
  1401. </el-form-item>
  1402. </el-col>
  1403. </el-row>
  1404. <el-row>
  1405. <el-col :span="12">
  1406. <el-form-item label="检测合格:" required prop="pass_examination">
  1407. <el-radio v-model="form.pass_examination" label="1">是</el-radio>
  1408. <el-radio v-model="form.pass_examination" label="2">否</el-radio>
  1409. </el-form-item>
  1410. </el-col>
  1411. <el-col :span="12">
  1412. <el-form-item label="修改标志:" required prop="modifications">
  1413. <el-select style="width:150px" v-model="form.modifications">
  1414. <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
  1415. </el-select>
  1416. </el-form-item>
  1417. </el-col>
  1418. </el-row>
  1419. <el-row>
  1420. <el-col :span="24" class="result">
  1421. <el-form-item label="检测结果:(cfu/ml)">
  1422. <el-input
  1423. type="textarea"
  1424. :rows="2"
  1425. placeholder="请输入内容"
  1426. style="width:600px"
  1427. v-model="form.detection_result"
  1428. ></el-input>
  1429. </el-form-item>
  1430. </el-col>
  1431. </el-row>
  1432. </el-form>
  1433. <span slot="footer" class="dialog-footer">
  1434. <el-button @click="dialogVisible = false">取 消</el-button>
  1435. <el-button type="primary" @click="UpdateCulture('form')"
  1436. >保存</el-button
  1437. >
  1438. </span>
  1439. </el-dialog>
  1440. <!-- 编辑内毒素检测 -->
  1441. <el-dialog
  1442. title="内毒素检测"
  1443. :visible.sync="dialogVisibleTwo"
  1444. width="60%"
  1445. center
  1446. >
  1447. <el-form :model="diaForm" ref="diaForm" rules="diaRules">
  1448. <el-row>
  1449. <el-col :span="8">
  1450. <el-form-item label="取样日期:">
  1451. <el-date-picker
  1452. v-model="diaForm.sampling_date"
  1453. prefix-icon="none"
  1454. type="date"
  1455. placeholder="请选择"
  1456. format="yyyy-MM-dd"
  1457. value-format="yyyy-MM-dd"
  1458. style="width:150px"
  1459. ></el-date-picker>
  1460. </el-form-item>
  1461. </el-col>
  1462. <el-col :span="8">
  1463. <el-form-item label="取样标本:">
  1464. <el-select
  1465. style="width:130px"
  1466. v-model="diaForm.specimenb"
  1467. @change="changeSpeciment"
  1468. >
  1469. <el-option
  1470. v-for="item in samplingSpecimen"
  1471. :key="item.id"
  1472. :label="item.name"
  1473. :value="item.id"
  1474. ></el-option>
  1475. </el-select>
  1476. </el-form-item>
  1477. </el-col>
  1478. <el-col :span="8">
  1479. <el-form-item label="A浓缩液批号:">
  1480. <el-input
  1481. style="width:130px"
  1482. v-model="diaForm.concentrate_noc"
  1483. :disabled="disable"
  1484. ></el-input>
  1485. </el-form-item>
  1486. </el-col>
  1487. </el-row>
  1488. <el-row>
  1489. <el-col :span="8">
  1490. <el-form-item label="B浓缩液批号:">
  1491. <el-input
  1492. style="width:130px"
  1493. v-model="diaForm.concentrateb_nod"
  1494. :disabled="diableTwo"
  1495. ></el-input>
  1496. </el-form-item>
  1497. </el-col>
  1498. <el-col :span="8">
  1499. <el-form-item label="采样部位:">
  1500. <el-select
  1501. style="width:130px"
  1502. v-model="diaForm.sampling_locationb"
  1503. >
  1504. <el-option
  1505. v-for="item in samplingLocation"
  1506. :key="item.id"
  1507. :label="item.name"
  1508. :value="item.id"
  1509. ></el-option>
  1510. </el-select>
  1511. </el-form-item>
  1512. </el-col>
  1513. <el-col :span="8">
  1514. <el-form-item label="检测单位:" required prop="detection_unit">
  1515. <el-input
  1516. style="width:180px"
  1517. v-model="diaForm.detection_unit"
  1518. ></el-input>
  1519. </el-form-item>
  1520. </el-col>
  1521. </el-row>
  1522. <el-row>
  1523. <el-col :span="8">
  1524. <el-form-item label="取样者:" required prop="samplerb">
  1525. <el-select style="width:130px" v-model="diaForm.samplerb">
  1526. <el-option
  1527. v-for="item in sampling"
  1528. :key="item.admin_user_id"
  1529. :label="item.user_name"
  1530. :value="item.admin_user_id"
  1531. ></el-option>
  1532. </el-select>
  1533. </el-form-item>
  1534. </el-col>
  1535. <el-col :span="8">
  1536. <el-form-item label="出报告日期:" required prop="reporting_dateb">
  1537. <el-date-picker
  1538. v-model="diaForm.reporting_dateb"
  1539. prefix-icon="none"
  1540. type="date"
  1541. placeholder="请选择"
  1542. format="yyyy-MM-dd"
  1543. value-format="yyyy-MM-dd"
  1544. style="width:150px"
  1545. ></el-date-picker>
  1546. </el-form-item>
  1547. </el-col>
  1548. <el-col :span="8">
  1549. <el-form-item label="顺序号:" required prop="sort">
  1550. <el-input v-model="diaForm.sort" style="width:150px"></el-input>
  1551. </el-form-item>
  1552. </el-col>
  1553. </el-row>
  1554. <el-row>
  1555. <el-col :span="12">
  1556. <el-form-item label="检测合格:" required prop="pass_examination">
  1557. <el-radio v-model="diaForm.pass_examination" label="1">是</el-radio>
  1558. <el-radio v-model="diaForm.pass_examination" label="2">否</el-radio>
  1559. </el-form-item>
  1560. </el-col>
  1561. <el-col :span="12">
  1562. <el-form-item label="修改标志:" required prop="modifications">
  1563. <el-select style="width:150px" v-model="diaForm.modifications">
  1564. <el-option v-for="(item,index) in modifications" :key="index" :label="item.name" :value="item.id"></el-option>
  1565. </el-select>
  1566. </el-form-item>
  1567. </el-col>
  1568. </el-row>
  1569. <el-row>
  1570. <el-col :span="24">
  1571. <el-form-item label="检测结果:(cfu/ml)">
  1572. <el-input
  1573. type="textarea"
  1574. :rows="2"
  1575. placeholder="请输入内容"
  1576. style="width:600px"
  1577. v-model="diaForm.detection_resultb"
  1578. ></el-input>
  1579. </el-form-item>
  1580. </el-col>
  1581. </el-row>
  1582. </el-form>
  1583. <span slot="footer" class="dialog-footer">
  1584. <el-button @click="dialogVisibleTwo = false">取 消</el-button>
  1585. <el-button type="primary" @click="UpdateDialyState('diaForm')"
  1586. >保存</el-button
  1587. >
  1588. </span>
  1589. </el-dialog>
  1590. <!-- -->
  1591. <el-dialog
  1592. title="透析液离子浓度检测"
  1593. :visible.sync="dialogVisibleThree"
  1594. width="50%"
  1595. center
  1596. >
  1597. <el-row>
  1598. <el-form :model="ionForm" ref="ionForm" :rule="ionrule">
  1599. <el-row>
  1600. <el-col :span="8">
  1601. <el-form-item label="取样日期:">
  1602. <el-date-picker
  1603. v-model="ionForm.dateb"
  1604. prefix-icon="none"
  1605. type="date"
  1606. placeholder="请选择"
  1607. format="yyyy-MM-dd"
  1608. value-format="yyyy-MM-dd"
  1609. style="width:150px"
  1610. ></el-date-picker>
  1611. </el-form-item>
  1612. </el-col>
  1613. <el-col :span="8">
  1614. <el-form-item label="取样者:" required prop="samplerc">
  1615. <el-select style="width:130px" v-model="ionForm.samplerc">
  1616. <el-option
  1617. v-for="item in sampling"
  1618. :key="item.admin_user_id"
  1619. :label="item.user_name"
  1620. :value="item.admin_user_id"
  1621. ></el-option>
  1622. </el-select>
  1623. </el-form-item>
  1624. </el-col>
  1625. <el-col :span="8">
  1626. <el-form-item label="检测单位:" required prop="detection_unit">
  1627. <el-input
  1628. style="width:180px"
  1629. v-model="ionForm.detection_unit"
  1630. ></el-input>
  1631. </el-form-item>
  1632. </el-col>
  1633. </el-row>
  1634. <el-row>
  1635. <el-col :span="8">
  1636. <el-form-item label="A浓缩液批号:">
  1637. <el-input
  1638. style="width:130px"
  1639. v-model="ionForm.concentrate_nof"
  1640. ></el-input>
  1641. </el-form-item>
  1642. </el-col>
  1643. <el-col :span="8">
  1644. <el-form-item label="B浓缩液批号:">
  1645. <el-input
  1646. style="width:130px"
  1647. v-model="ionForm.concentrate_nog"
  1648. ></el-input>
  1649. </el-form-item>
  1650. </el-col>
  1651. <el-col :span="8">
  1652. <el-form-item label="出报告日期:" required prop="date_reportc">
  1653. <el-date-picker
  1654. v-model="ionForm.date_reportc"
  1655. prefix-icon="none"
  1656. type="date"
  1657. placeholder="请选择"
  1658. format="yyyy-MM-dd"
  1659. value-format="yyyy-MM-dd"
  1660. style="width:150px"
  1661. ></el-date-picker>
  1662. </el-form-item>
  1663. </el-col>
  1664. </el-row>
  1665. <el-row>
  1666. <el-col :span="8">
  1667. <el-form-item label="实际Na⁺(mmol/L):">
  1668. <el-input
  1669. style="width:100px"
  1670. v-model="ionForm.actual_na"
  1671. ></el-input>
  1672. </el-form-item>
  1673. </el-col>
  1674. <el-col :span="8">
  1675. <el-form-item label="配方Na⁺(mmol/L):">
  1676. <el-input
  1677. style="width:100px"
  1678. v-model="ionForm.actual_pna"
  1679. ></el-input>
  1680. </el-form-item>
  1681. </el-col>
  1682. <el-col :span="8">
  1683. <el-form-item label="K⁺ (mmol/L):">
  1684. <el-input
  1685. style="width:100px"
  1686. v-model="ionForm.actual_k"
  1687. ></el-input>
  1688. </el-form-item>
  1689. </el-col>
  1690. </el-row>
  1691. <el-row>
  1692. <el-col :span="8">
  1693. <el-form-item label="Ca2⁺(mmol/L):">
  1694. <el-input
  1695. style="width:100px"
  1696. v-model="ionForm.actual_ca"
  1697. ></el-input>
  1698. </el-form-item>
  1699. </el-col>
  1700. <el-col :span="8">
  1701. <el-form-item label="CI¯(mmol/L):">
  1702. <el-input
  1703. style="width:100px"
  1704. v-model="ionForm.actual_ci"
  1705. ></el-input>
  1706. </el-form-item>
  1707. </el-col>
  1708. <el-col :span="8">
  1709. <el-form-item label="HCO3¯(mmol/L):">
  1710. <el-input
  1711. style="width:100px"
  1712. v-model="ionForm.actual_hco"
  1713. ></el-input>
  1714. </el-form-item>
  1715. </el-col>
  1716. </el-row>
  1717. <el-row>
  1718. <el-col :span="8">
  1719. <el-form-item label="Mg2⁺(mmol/L):">
  1720. <el-input
  1721. style="width:100px"
  1722. v-model="ionForm.actual_mg"
  1723. ></el-input>
  1724. </el-form-item>
  1725. </el-col>
  1726. <el-col :span="8">
  1727. <el-form-item label="PH:">
  1728. <el-input
  1729. style="width:100px"
  1730. v-model="ionForm.actual_ph"
  1731. ></el-input>
  1732. </el-form-item>
  1733. </el-col>
  1734. <el-col :span="8">
  1735. <el-form-item label="顺序号:" required prop="sort">
  1736. <el-input
  1737. style="width:100px"
  1738. v-model="ionForm.sort"
  1739. ></el-input>
  1740. </el-form-item>
  1741. </el-col>
  1742. </el-row>
  1743. <el-row>
  1744. <el-col :span="12">
  1745. <el-form-item label="检测合格:" required prop="pass_examination">
  1746. <el-radio v-model="ionForm.pass_examination" label="1">是</el-radio>
  1747. <el-radio v-model="ionForm.pass_examination" label="2">否</el-radio>
  1748. </el-form-item>
  1749. </el-col>
  1750. <el-col :span="12">
  1751. <el-form-item label="修改标志:" required prop="modifications">
  1752. <el-select style="width:150px" v-model="ionForm.modifications">
  1753. <el-option v-for="(item,index) in modifications" :key="index" :label="item.name" :value="item.id"></el-option>
  1754. </el-select>
  1755. </el-form-item>
  1756. </el-col>
  1757. </el-row>
  1758. <el-row>
  1759. <el-col :span="24">
  1760. <el-form-item label="备注:">
  1761. <el-input
  1762. type="textarea"
  1763. :rows="2"
  1764. placeholder="请输入内容"
  1765. style="width:500px"
  1766. v-model="ionForm.remakes"
  1767. ></el-input>
  1768. </el-form-item>
  1769. </el-col>
  1770. </el-row>
  1771. </el-form>
  1772. </el-row>
  1773. <span slot="footer" class="dialog-footer">
  1774. <el-button @click="dialogVisibleThree = false">取 消</el-button>
  1775. <el-button type="primary" @click="UpdateIon('ionForm')">保存</el-button>
  1776. </span>
  1777. </el-dialog>
  1778. <!-- 编辑有毒化合物检测 -->
  1779. <el-dialog
  1780. title="有毒化合物检测"
  1781. :visible.sync="dialogVisibleFour"
  1782. width="60%"
  1783. center
  1784. >
  1785. <el-form :model="diaForm" ref="diaForm" rules="rulesOne">
  1786. <el-row>
  1787. <el-col :span="8">
  1788. <el-form-item label="取样日期:">
  1789. <el-date-picker
  1790. v-model="diaForm.sampling_date"
  1791. prefix-icon="none"
  1792. type="date"
  1793. placeholder="请选择"
  1794. format="yyyy-MM-dd"
  1795. value-format="yyyy-MM-dd"
  1796. style="width:150px"
  1797. ></el-date-picker>
  1798. </el-form-item>
  1799. </el-col>
  1800. <el-col :span="8">
  1801. <el-form-item label="取样标本:">
  1802. <el-select
  1803. style="width:130px"
  1804. v-model="diaForm.specimenb"
  1805. @change="changeSpeciment"
  1806. >
  1807. <el-option
  1808. v-for="item in samplingSpecimen"
  1809. :key="item.id"
  1810. :label="item.name"
  1811. :value="item.id"
  1812. ></el-option>
  1813. </el-select>
  1814. </el-form-item>
  1815. </el-col>
  1816. <el-col :span="8">
  1817. <el-form-item label="A浓缩液批号:">
  1818. <el-input
  1819. style="width:130px"
  1820. v-model="diaForm.concentrate_noc"
  1821. :disabled="disable"
  1822. ></el-input>
  1823. </el-form-item>
  1824. </el-col>
  1825. </el-row>
  1826. <el-row>
  1827. <el-col :span="8">
  1828. <el-form-item label="B浓缩液批号:">
  1829. <el-input
  1830. style="width:130px"
  1831. v-model="diaForm.concentrateb_nod"
  1832. :disabled="diableTwo"
  1833. ></el-input>
  1834. </el-form-item>
  1835. </el-col>
  1836. <el-col :span="8">
  1837. <el-form-item label="采样部位:">
  1838. <el-select
  1839. style="width:130px"
  1840. v-model="diaForm.sampling_locationb"
  1841. >
  1842. <el-option
  1843. v-for="item in samplingLocation"
  1844. :key="item.id"
  1845. :label="item.name"
  1846. :value="item.id"
  1847. ></el-option>
  1848. </el-select>
  1849. </el-form-item>
  1850. </el-col>
  1851. <el-col :span="8">
  1852. <el-form-item label="检测单位:" required prop="detection_unit">
  1853. <el-input
  1854. style="width:180px"
  1855. v-model="diaForm.detection_unit"
  1856. ></el-input>
  1857. </el-form-item>
  1858. </el-col>
  1859. </el-row>
  1860. <el-row>
  1861. <el-col :span="8">
  1862. <el-form-item label="取样者:" required prop="samplerb">
  1863. <el-select style="width:130px" v-model="diaForm.samplerb">
  1864. <el-option
  1865. v-for="item in sampling"
  1866. :key="item.admin_user_id"
  1867. :label="item.user_name"
  1868. :value="item.admin_user_id"
  1869. ></el-option>
  1870. </el-select>
  1871. </el-form-item>
  1872. </el-col>
  1873. <el-col :span="8">
  1874. <el-form-item label="出报告日期:" required prop="reporting_dateb">
  1875. <el-date-picker
  1876. v-model="diaForm.reporting_dateb"
  1877. prefix-icon="none"
  1878. type="date"
  1879. placeholder="请选择"
  1880. format="yyyy-MM-dd"
  1881. value-format="yyyy-MM-dd"
  1882. style="width:150px"
  1883. ></el-date-picker>
  1884. </el-form-item>
  1885. </el-col>
  1886. <el-col :span="8">
  1887. <el-form-item label="顺序号:" required prop="sort">
  1888. <el-input
  1889. style="width:100px"
  1890. v-model="diaForm.sort"
  1891. ></el-input>
  1892. </el-form-item>
  1893. </el-col>
  1894. </el-row>
  1895. <el-row>
  1896. <el-col :span="12">
  1897. <el-form-item label="检测合格:" required prop="pass_examination">
  1898. <el-radio v-model="diaForm.pass_examination" label="1">是</el-radio>
  1899. <el-radio v-model="diaForm.pass_examination" label="2">否</el-radio>
  1900. </el-form-item>
  1901. </el-col>
  1902. <el-col :span="12">
  1903. <el-form-item label="修改标志:" required prop="modifications">
  1904. <el-select style="width:150px" v-model="diaForm.modifications">
  1905. <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
  1906. </el-select>
  1907. </el-form-item>
  1908. </el-col>
  1909. </el-row>
  1910. <el-row>
  1911. <el-col :span="24">
  1912. <el-form-item label="检测结果:(cfu/ml)">
  1913. <el-input
  1914. type="textarea"
  1915. :rows="2"
  1916. placeholder="请输入内容"
  1917. style="width:600px"
  1918. v-model="diaForm.detection_resultb"
  1919. ></el-input>
  1920. </el-form-item>
  1921. </el-col>
  1922. </el-row>
  1923. </el-form>
  1924. <span slot="footer" class="dialog-footer">
  1925. <el-button @click="dialogVisibleFour = false">取 消</el-button>
  1926. <el-button type="primary" @click="UpdateOxygenates('diaForm')"
  1927. >保存</el-button
  1928. >
  1929. </span>
  1930. </el-dialog>
  1931. <!-- 编辑水硬度检测 -->
  1932. <el-dialog
  1933. title="水硬度检测"
  1934. :visible.sync="dialogVisibleFive"
  1935. width="60%"
  1936. center
  1937. >
  1938. <el-form :model="diaForm" ref="diaForm" rules="diaRules">
  1939. <el-row>
  1940. <el-col :span="8">
  1941. <el-form-item label="取样日期:">
  1942. <el-date-picker
  1943. v-model="diaForm.sampling_date"
  1944. prefix-icon="none"
  1945. type="date"
  1946. placeholder="请选择"
  1947. format="yyyy-MM-dd"
  1948. value-format="yyyy-MM-dd"
  1949. style="width:150px"
  1950. ></el-date-picker>
  1951. </el-form-item>
  1952. </el-col>
  1953. <el-col :span="8">
  1954. <el-form-item label="取样标本:">
  1955. <el-select
  1956. style="width:130px"
  1957. v-model="diaForm.specimenb"
  1958. @change="changeSpeciment"
  1959. >
  1960. <el-option
  1961. v-for="item in samplingSpecimen"
  1962. :key="item.id"
  1963. :label="item.name"
  1964. :value="item.id"
  1965. ></el-option>
  1966. </el-select>
  1967. </el-form-item>
  1968. </el-col>
  1969. <el-col :span="8">
  1970. <el-form-item label="A浓缩液批号:">
  1971. <el-input
  1972. style="width:130px"
  1973. v-model="diaForm.concentrate_noc"
  1974. :disabled="disable"
  1975. ></el-input>
  1976. </el-form-item>
  1977. </el-col>
  1978. </el-row>
  1979. <el-row>
  1980. <el-col :span="8">
  1981. <el-form-item label="B浓缩液批号:">
  1982. <el-input
  1983. style="width:130px"
  1984. v-model="diaForm.concentrateb_nod"
  1985. :disabled="diableTwo"
  1986. ></el-input>
  1987. </el-form-item>
  1988. </el-col>
  1989. <el-col :span="8">
  1990. <el-form-item label="采样部位:">
  1991. <el-select
  1992. style="width:130px"
  1993. v-model="diaForm.sampling_locationb"
  1994. >
  1995. <el-option
  1996. v-for="item in samplingLocation"
  1997. :key="item.id"
  1998. :label="item.name"
  1999. :value="item.id"
  2000. ></el-option>
  2001. </el-select>
  2002. </el-form-item>
  2003. </el-col>
  2004. <el-col :span="8">
  2005. <el-form-item label="检测单位:" required prop="detection_unit">
  2006. <el-input
  2007. style="width:180px"
  2008. v-model="diaForm.detection_unit"
  2009. ></el-input>
  2010. </el-form-item>
  2011. </el-col>
  2012. </el-row>
  2013. <el-row>
  2014. <el-col :span="8">
  2015. <el-form-item label="取样者:" required prop="samplerb">
  2016. <el-select style="width:130px" v-model="diaForm.samplerb">
  2017. <el-option
  2018. v-for="item in sampling"
  2019. :key="item.admin_user_id"
  2020. :label="item.user_name"
  2021. :value="item.admin_user_id"
  2022. ></el-option>
  2023. </el-select>
  2024. </el-form-item>
  2025. </el-col>
  2026. <el-col :span="8">
  2027. <el-form-item label="出报告日期:" required prop="reporting_dateb">
  2028. <el-date-picker
  2029. v-model="diaForm.reporting_dateb"
  2030. prefix-icon="none"
  2031. type="date"
  2032. placeholder="请选择"
  2033. format="yyyy-MM-dd"
  2034. value-format="yyyy-MM-dd"
  2035. style="width:150px"
  2036. ></el-date-picker>
  2037. </el-form-item>
  2038. </el-col>
  2039. <el-col :span="8">
  2040. <el-form-item label="顺序号:" required prop="sort">
  2041. <el-input
  2042. style="width:100px"
  2043. v-model="diaForm.sort"
  2044. ></el-input>
  2045. </el-form-item>
  2046. </el-col>
  2047. </el-row>
  2048. <el-row>
  2049. <el-col :span="12">
  2050. <el-form-item label="检测合格:" required prop="pass_examination">
  2051. <el-radio v-model="diaForm.pass_examination" label="1">是</el-radio>
  2052. <el-radio v-model="diaForm.pass_examination" label="2">否</el-radio>
  2053. </el-form-item>
  2054. </el-col>
  2055. <el-col :span="12">
  2056. <el-form-item label="修改标志:" required prop="modifications">
  2057. <el-select style="width:150px" v-model="diaForm.modifications">
  2058. <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
  2059. </el-select>
  2060. </el-form-item>
  2061. </el-col>
  2062. </el-row>
  2063. <el-row>
  2064. <el-col :span="24">
  2065. <el-form-item label="检测结果:(cfu/ml)">
  2066. <el-input
  2067. type="textarea"
  2068. :rows="2"
  2069. placeholder="请输入内容"
  2070. style="width:600px"
  2071. v-model="diaForm.detection_resultb"
  2072. ></el-input>
  2073. </el-form-item>
  2074. </el-col>
  2075. </el-row>
  2076. </el-form>
  2077. <span slot="footer" class="dialog-footer">
  2078. <el-button @click="dialogVisibleFive = false">取 消</el-button>
  2079. <el-button type="primary" @click="UpdateHadWater('diaForm')"
  2080. >保存</el-button
  2081. >
  2082. </span>
  2083. </el-dialog>
  2084. <!-- 编辑水游离氯检测 -->
  2085. <el-dialog
  2086. title="水游离氯检测 "
  2087. :visible.sync="dialogVisibleSix"
  2088. width="60%"
  2089. center
  2090. >
  2091. <el-form :model="diaForm" ref="diaForm" rules="diaRules">
  2092. <el-row>
  2093. <el-col :span="8">
  2094. <el-form-item label="取样日期:">
  2095. <el-date-picker
  2096. v-model="diaForm.sampling_date"
  2097. prefix-icon="none"
  2098. type="date"
  2099. placeholder="请选择"
  2100. format="yyyy-MM-dd"
  2101. value-format="yyyy-MM-dd"
  2102. style="width:150px"
  2103. ></el-date-picker>
  2104. </el-form-item>
  2105. </el-col>
  2106. <el-col :span="8">
  2107. <el-form-item label="取样标本:">
  2108. <el-select
  2109. style="width:130px"
  2110. v-model="diaForm.specimenb"
  2111. @change="changeSpeciment"
  2112. >
  2113. <el-option
  2114. v-for="item in samplingSpecimen"
  2115. :key="item.id"
  2116. :label="item.name"
  2117. :value="item.id"
  2118. ></el-option>
  2119. </el-select>
  2120. </el-form-item>
  2121. </el-col>
  2122. <el-col :span="8">
  2123. <el-form-item label="A浓缩液批号:">
  2124. <el-input
  2125. style="width:130px"
  2126. v-model="diaForm.concentrate_noc"
  2127. :disabled="disable"
  2128. ></el-input>
  2129. </el-form-item>
  2130. </el-col>
  2131. </el-row>
  2132. <el-row>
  2133. <el-col :span="8">
  2134. <el-form-item label="B浓缩液批号:">
  2135. <el-input
  2136. style="width:130px"
  2137. v-model="diaForm.concentrateb_nod"
  2138. :disabled="diableTwo"
  2139. ></el-input>
  2140. </el-form-item>
  2141. </el-col>
  2142. <el-col :span="8">
  2143. <el-form-item label="采样部位:">
  2144. <el-select
  2145. style="width:130px"
  2146. v-model="diaForm.sampling_locationb"
  2147. >
  2148. <el-option
  2149. v-for="item in samplingLocation"
  2150. :key="item.id"
  2151. :label="item.name"
  2152. :value="item.id"
  2153. ></el-option>
  2154. </el-select>
  2155. </el-form-item>
  2156. </el-col>
  2157. <el-col :span="8">
  2158. <el-form-item label="检测单位:" required prop="detection_unit">
  2159. <el-input
  2160. style="width:180px"
  2161. v-model="diaForm.detection_unit"
  2162. ></el-input>
  2163. </el-form-item>
  2164. </el-col>
  2165. </el-row>
  2166. <el-row>
  2167. <el-col :span="8">
  2168. <el-form-item label="取样者:" required prop="samplerb">
  2169. <el-select style="width:130px" v-model="diaForm.samplerb">
  2170. <el-option
  2171. v-for="item in sampling"
  2172. :key="item.admin_user_id"
  2173. :label="item.user_name"
  2174. :value="item.admin_user_id"
  2175. ></el-option>
  2176. </el-select>
  2177. </el-form-item>
  2178. </el-col>
  2179. <el-col :span="8">
  2180. <el-form-item label="出报告日期:" required prop="reporting_dateb">
  2181. <el-date-picker
  2182. v-model="diaForm.reporting_dateb"
  2183. prefix-icon="none"
  2184. type="date"
  2185. placeholder="请选择"
  2186. format="yyyy-MM-dd"
  2187. value-format="yyyy-MM-dd"
  2188. style="width:150px"
  2189. ></el-date-picker>
  2190. </el-form-item>
  2191. </el-col>
  2192. <el-col :span="8">
  2193. <el-form-item label="顺序号:" required prop="sort">
  2194. <el-input
  2195. style="width:100px"
  2196. v-model="diaForm.sort"
  2197. ></el-input>
  2198. </el-form-item>
  2199. </el-col>
  2200. </el-row>
  2201. <el-row>
  2202. <el-col :span="12">
  2203. <el-form-item label="检测合格:" required prop="pass_examination">
  2204. <el-radio v-model="diaForm.pass_examination" label="1">是</el-radio>
  2205. <el-radio v-model="diaForm.pass_examination" label="2">否</el-radio>
  2206. </el-form-item>
  2207. </el-col>
  2208. <el-col :span="12">
  2209. <el-form-item label="修改标志:" required prop="modifications">
  2210. <el-select style="width:150px" v-model="diaForm.modifications">
  2211. <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
  2212. </el-select>
  2213. </el-form-item>
  2214. </el-col>
  2215. </el-row>
  2216. <el-row>
  2217. <el-col :span="24">
  2218. <el-form-item label="检测结果:(cfu/ml)">
  2219. <el-input
  2220. type="textarea"
  2221. :rows="2"
  2222. placeholder="请输入内容"
  2223. style="width:600px"
  2224. v-model="diaForm.detection_resultb"
  2225. ></el-input>
  2226. </el-form-item>
  2227. </el-col>
  2228. </el-row>
  2229. </el-form>
  2230. <span slot="footer" class="dialog-footer">
  2231. <el-button @click="dialogVisibleSix = false">取 消</el-button>
  2232. <el-button type="primary" @click="updateWater('diaForm')"
  2233. >保存</el-button
  2234. >
  2235. </span>
  2236. </el-dialog>
  2237. <!-- 编辑PH检测 -->
  2238. <el-dialog
  2239. title="水游离氯检测 "
  2240. :visible.sync="dialogVisibleSeven"
  2241. width="60%"
  2242. center
  2243. >
  2244. <el-form :model="diaForm" ref="diaForm" rules="diaRules">
  2245. <el-row>
  2246. <el-col :span="8">
  2247. <el-form-item label="取样日期:">
  2248. <el-date-picker
  2249. v-model="diaForm.sampling_date"
  2250. prefix-icon="none"
  2251. type="date"
  2252. placeholder="请选择"
  2253. format="yyyy-MM-dd"
  2254. value-format="yyyy-MM-dd"
  2255. style="width:150px"
  2256. ></el-date-picker>
  2257. </el-form-item>
  2258. </el-col>
  2259. <el-col :span="8">
  2260. <el-form-item label="取样标本:">
  2261. <el-select
  2262. style="width:130px"
  2263. v-model="diaForm.specimenb"
  2264. @change="changeSpeciment"
  2265. >
  2266. <el-option
  2267. v-for="item in samplingSpecimen"
  2268. :key="item.id"
  2269. :label="item.name"
  2270. :value="item.id"
  2271. ></el-option>
  2272. </el-select>
  2273. </el-form-item>
  2274. </el-col>
  2275. <el-col :span="8">
  2276. <el-form-item label="A浓缩液批号:">
  2277. <el-input
  2278. style="width:130px"
  2279. v-model="diaForm.concentrate_noc"
  2280. :disabled="disable"
  2281. ></el-input>
  2282. </el-form-item>
  2283. </el-col>
  2284. </el-row>
  2285. <el-row>
  2286. <el-col :span="8">
  2287. <el-form-item label="B浓缩液批号:">
  2288. <el-input
  2289. style="width:130px"
  2290. v-model="diaForm.concentrateb_nod"
  2291. :disabled="diableTwo"
  2292. ></el-input>
  2293. </el-form-item>
  2294. </el-col>
  2295. <el-col :span="8">
  2296. <el-form-item label="采样部位:">
  2297. <el-select
  2298. style="width:130px"
  2299. v-model="diaForm.sampling_locationb"
  2300. >
  2301. <el-option
  2302. v-for="item in samplingLocation"
  2303. :key="item.id"
  2304. :label="item.name"
  2305. :value="item.id"
  2306. ></el-option>
  2307. </el-select>
  2308. </el-form-item>
  2309. </el-col>
  2310. <el-col :span="8">
  2311. <el-form-item label="检测单位:" required prop="detection_unit">
  2312. <el-input
  2313. style="width:180px"
  2314. v-model="diaForm.detection_unit"
  2315. ></el-input>
  2316. </el-form-item>
  2317. </el-col>
  2318. </el-row>
  2319. <el-row>
  2320. <el-col :span="8">
  2321. <el-form-item label="取样者:" required prop="samplerb">
  2322. <el-select style="width:130px" v-model="diaForm.samplerb">
  2323. <el-option
  2324. v-for="item in sampling"
  2325. :key="item.admin_user_id"
  2326. :label="item.user_name"
  2327. :value="item.admin_user_id"
  2328. ></el-option>
  2329. </el-select>
  2330. </el-form-item>
  2331. </el-col>
  2332. <el-col :span="8">
  2333. <el-form-item label="出报告日期:" required prop="reporting_dateb">
  2334. <el-date-picker
  2335. v-model="diaForm.reporting_dateb"
  2336. prefix-icon="none"
  2337. type="date"
  2338. placeholder="请选择"
  2339. format="yyyy-MM-dd"
  2340. value-format="yyyy-MM-dd"
  2341. style="width:150px"
  2342. ></el-date-picker>
  2343. </el-form-item>
  2344. </el-col>
  2345. <el-col :span="8">
  2346. <el-form-item label="顺序号:" required prop="sort">
  2347. <el-input
  2348. style="width:100px"
  2349. v-model="diaForm.sort"
  2350. ></el-input>
  2351. </el-form-item>
  2352. </el-col>
  2353. </el-row>
  2354. <el-row>
  2355. <el-col :span="12">
  2356. <el-form-item label="检测合格:" required prop="pass_examination">
  2357. <el-radio v-model="diaForm.pass_examination" label="1">是</el-radio>
  2358. <el-radio v-model="diaForm.pass_examination" label="2">否</el-radio>
  2359. </el-form-item>
  2360. </el-col>
  2361. <el-col :span="12">
  2362. <el-form-item label="修改标志:" required prop="modifications">
  2363. <el-select style="width:150px" v-model="diaForm.modifications">
  2364. <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
  2365. </el-select>
  2366. </el-form-item>
  2367. </el-col>
  2368. </el-row>
  2369. <el-row>
  2370. <el-col :span="24">
  2371. <el-form-item label="检测结果:(cfu/ml)">
  2372. <el-input
  2373. type="textarea"
  2374. :rows="2"
  2375. placeholder="请输入内容"
  2376. style="width:600px"
  2377. v-model="diaForm.detection_resultb"
  2378. ></el-input>
  2379. </el-form-item>
  2380. </el-col>
  2381. </el-row>
  2382. </el-form>
  2383. <span slot="footer" class="dialog-footer">
  2384. <el-button @click="dialogVisibleSeven = false">取 消</el-button>
  2385. <el-button type="primary" @click="updateDevicePh('diaForm')"
  2386. >保存</el-button
  2387. >
  2388. </span>
  2389. </el-dialog>
  2390. </div>
  2391. </template>
  2392. <script>
  2393. import {
  2394. getAllSubregion,
  2395. getAllQulityInfo,
  2396. EditCulture,
  2397. UpdateCulture,
  2398. getAllOrganization,
  2399. DeleteCultrue,
  2400. EditDialyState,
  2401. UpdateDialyState,
  2402. DeleteDialystate,
  2403. EditIon,
  2404. UpdateIon,
  2405. DeleteIon,
  2406. queryTable,
  2407. DeleteCultrues,
  2408. DeleteDialystates,
  2409. DeleteIons
  2410. } from "@/api/manage";
  2411. import { editOxygenates,UpdateOxygenates,editHardWater,editWater,editDevicePh,UpdateHadWater,updateWater,updateDevicePh,DeleteOxygenates,DeleteHadWater,DeleteWater,DeleteDevicePh } from "@/api/device"
  2412. import { uParseTime } from "@/utils/tools";
  2413. export default {
  2414. name: "QualityForm",
  2415. data() {
  2416. return {
  2417. isIndeterminate: false,
  2418. checkAllStatus: false,
  2419. beds: [],
  2420. forms: {
  2421. bed: "",
  2422. sename: 1,
  2423. start_time: "",
  2424. end_time: ""
  2425. },
  2426. tableData: [],
  2427. table: [],
  2428. tableDatas: [],
  2429. tableOne:[],
  2430. tableTwo:[],
  2431. tableThree:[],
  2432. tableFour:[],
  2433. show: true,
  2434. showOne: false,
  2435. showTwo: false,
  2436. showThree:false,
  2437. showFour:false,
  2438. showFive:false,
  2439. showSix:false,
  2440. bedNumber: [],
  2441. tableTypes: [
  2442. { id: 1, name: "细菌培养" },
  2443. { id: 2, name: "内毒素检测" },
  2444. { id: 3, name: "透析液离子浓度检测" },
  2445. { id: 4, name: "有毒化合物检测"},
  2446. { id: 5, name:"水硬度检测"},
  2447. { id: 6, name:"水游离氯检测"},
  2448. { id: 7, name:"PH值检测"},
  2449. ],
  2450. dialogVisible: false,
  2451. dialogVisibleTwo: false,
  2452. dialogVisibleThree: false,
  2453. dialogVisibleFour:false,
  2454. dialogVisibleFive:false,
  2455. dialogVisibleSix:false,
  2456. dialogVisibleSeven:false,
  2457. dialogVisibleEight:false,
  2458. disable: true,
  2459. diableTwo: true,
  2460. form: {
  2461. id: "",
  2462. date: "",
  2463. specimen: "",
  2464. concentrate_noa: "",
  2465. concentrate_nob: "",
  2466. sampling_locationa: "",
  2467. detection_unit: "",
  2468. sampler: "",
  2469. reporting_date: "",
  2470. detection_result: "",
  2471. sort:"",
  2472. pass_examination:"",
  2473. modifications:""
  2474. },
  2475. diaForm: {
  2476. id: "",
  2477. sampling_date: "",
  2478. specimenb: "",
  2479. concentrate_noc: "",
  2480. concentrateb_nod: "",
  2481. sampling_locationb: "",
  2482. detection_unit: "",
  2483. samplerb: "",
  2484. reporting_dateb: "",
  2485. detection_resultb: "",
  2486. sort:"",
  2487. pass_examination:"",
  2488. modifications:""
  2489. },
  2490. sampling: [],
  2491. samplingSpecimen: [
  2492. { id: 0, name: "请选择" },
  2493. { id: 1, name: "透析液" },
  2494. { id: 2, name: "A浓缩液" },
  2495. { id: 3, name: "B浓缩液" },
  2496. { id: 4, name: "置换液" },
  2497. { id: 5, name: "透析用水" }
  2498. ],
  2499. samplingLocation: [
  2500. { id: 0, name: "请选择" },
  2501. { id: 1, name: "透析液入口" },
  2502. { id: 2, name: "透析液取样口" },
  2503. { id: 3, name: "置换液出口" },
  2504. { id: 4, name: "透析机反渗水出口" },
  2505. { id: 5, name: "反渗水末端取样口" }
  2506. ],
  2507. rules: {
  2508. detection_unit: [{ required: true, message: "请填写检测单位" }],
  2509. sampler: [{ required: true, message: "请填写取样者" }],
  2510. sort:[{required:true,message:"请输入顺序号"}],
  2511. reporting_date:[{required:true,message:"请选择出报告日期"}],
  2512. pass_examination:[{required:true,message:"请选择检测合格"}],
  2513. modifications:[{required:true,message:"请选择修改标志"}]
  2514. },
  2515. diaRules: {
  2516. detection_unit: [{ required: true, message: "请填写检测单位" }],
  2517. samplerb: [{ required: true, message: "请填写取样者" }],
  2518. sort:[{required:true,message:"请输入顺序号"}],
  2519. pass_examination:[{required:true,message:"请选择检测合格"}],
  2520. modifications:[{required:true,message:"请选择修改标志"}],
  2521. reporting_dateb:[{required:true,message:"请选择出报告日期"}],
  2522. },
  2523. rulesOne:{
  2524. detection_unit: [{ required: true, message: "请填写检测单位" }],
  2525. samplerb: [{ required: true, message: "请填写取样者" }],
  2526. sort:[{required:true,message:"请输入顺序号"}],
  2527. pass_examination:[{required:true,message:"请选择检测合格"}],
  2528. modifications:[{required:true,message:"请选择修改标志"}],
  2529. reporting_dateb:[{required:true,message:"请选择出报告日期"}],
  2530. },
  2531. ionrule: {
  2532. detection_unit: [{ required: true, message: "请填写检测单位" }],
  2533. samplerc: [{ required: true, message: "请填写取样者" }],
  2534. date_reportc:[{required:true,message:"请选择出报告日期"}],
  2535. sort:[{required:true,message:"请输入顺序号"}],
  2536. pass_examination:[{required:true,message:"请选择检测合格"}],
  2537. modifications:[{required:true,message:"请选择修改标志"}]
  2538. },
  2539. selectCulture: [],
  2540. ionForm: {
  2541. dateb: "",
  2542. samplerc: "",
  2543. detection_unit: "",
  2544. concentrate_nof: "",
  2545. concentrate_nog: "",
  2546. date_reportc: "",
  2547. actual_na: "",
  2548. actual_pna: "",
  2549. actual_k: "",
  2550. actual_ca: "",
  2551. actual_ci: "",
  2552. actual_hco: "",
  2553. actual_mg: "",
  2554. actual_ph: "",
  2555. sort:"",
  2556. pass_examination:"",
  2557. modifications:""
  2558. },
  2559. modifications:[
  2560. {id:1,name:"正常"},
  2561. {id:2,name:"撤销"}
  2562. ]
  2563. };
  2564. },
  2565. methods: {
  2566. changeCheck() {
  2567. this.$refs.multipleTable.clearSelection();
  2568. if (this.checkAllStatus) {
  2569. this.$refs.multipleTable.toggleAllSelection();
  2570. }
  2571. this.$refs.multipleTableOne.clearSelection();
  2572. if (this.checkAllStatus) {
  2573. this.$refs.multipleTableOne.toggleAllSelection();
  2574. }
  2575. this.$refs.multipleTableTwo.clearSelection();
  2576. if (this.checkAllStatus) {
  2577. this.$refs.multipleTableTwo.toggleAllSelection();
  2578. }
  2579. },
  2580. handleSelectionChange(val) {
  2581. this.selectCulture = val;
  2582. },
  2583. handleSelectionChangeOne(val) {
  2584. this.selectCulture = val;
  2585. },
  2586. handleSelectionChangeTwo(val) {
  2587. this.selectCulture = val;
  2588. },
  2589. getAllSubregion() {
  2590. getAllSubregion().then(response => {
  2591. var zones = response.data.data.zones;
  2592. var numbers = response.data.data.numbers;
  2593. var number = [{ id: 0, number: "全部" }];
  2594. for (let index = 0; index < numbers.length; index++) {
  2595. const item = numbers[index];
  2596. number.push({ id: item.id, number: item.number });
  2597. }
  2598. this.bedNumber = number;
  2599. });
  2600. },
  2601. getAllQulityInfo() {
  2602. getAllQulityInfo().then(response => {
  2603. if (response.data.state === 1) {
  2604. var cultures = response.data.data.cultures;
  2605. console.log('cultures', cultures)
  2606. for (let index = 0; index < cultures.length; index++) {
  2607. if (cultures[index].specimen === 0) {
  2608. cultures[index].specimen = "";
  2609. }
  2610. if (cultures[index].specimen === 1) {
  2611. cultures[index].specimen = "透析液";
  2612. }
  2613. if (cultures[index].specimen === 2) {
  2614. cultures[index].specimen = "A浓缩液";
  2615. }
  2616. if (cultures[index].specimen === 3) {
  2617. cultures[index].specimen = "B浓缩液";
  2618. }
  2619. if (cultures[index].specimen === 4) {
  2620. cultures[index].specimen = "置换液";
  2621. }
  2622. if (cultures[index].specimen === 5) {
  2623. cultures[index].specimen = "透析用水";
  2624. }
  2625. if (cultures[index].sampling_locationa === 0) {
  2626. cultures[index].sampling_locationa = "";
  2627. }
  2628. if (cultures[index].sampling_locationa === 1) {
  2629. cultures[index].sampling_locationa = "透析液入口";
  2630. }
  2631. if (cultures[index].sampling_locationa === 2) {
  2632. cultures[index].sampling_locationa = "透析液取样口";
  2633. }
  2634. if (cultures[index].sampling_locationa === 3) {
  2635. cultures[index].sampling_locationa = "置换液出口";
  2636. }
  2637. if (cultures[index].sampling_locationa === 4) {
  2638. cultures[index].sampling_locationa = "透析机反渗水入口";
  2639. }
  2640. if (cultures[index].sampling_locationa === 5) {
  2641. cultures[index].sampling_locationa = "反渗水末端取样口";
  2642. }
  2643. }
  2644. this.tableData = cultures;
  2645. var dialyste = response.data.data.dialysate;
  2646. // console.log('dialyste', dialyste)
  2647. for (let index = 0; index < dialyste.length; index++) {
  2648. if (dialyste[index].specimenb === 0) {
  2649. dialyste[index].specimenb = "";
  2650. }
  2651. if (dialyste[index].specimenb === 1) {
  2652. dialyste[index].specimenb = "透析液";
  2653. }
  2654. if (dialyste[index].specimenb === 2) {
  2655. dialyste[index].specimenb = "A浓缩液";
  2656. }
  2657. if (dialyste[index].specimenb === 3) {
  2658. dialyste[index].specimenb = "B浓缩液";
  2659. }
  2660. if (dialyste[index].specimenb === 4) {
  2661. dialyste[index].specimenb = "置换液";
  2662. }
  2663. if (dialyste[index].specimenb === 5) {
  2664. dialyste[index].specimenb = "透析用水";
  2665. }
  2666. if (dialyste[index].sampling_locationb === 0) {
  2667. dialyste[index].sampling_locationb = "";
  2668. }
  2669. if (dialyste[index].sampling_locationb === 1) {
  2670. dialyste[index].sampling_locationb = "透析液入口";
  2671. }
  2672. if (dialyste[index].sampling_locationb === 2) {
  2673. dialyste[index].sampling_locationb = "透析液取样口";
  2674. }
  2675. if (dialyste[index].sampling_locationb === 3) {
  2676. dialyste[index].sampling_locationb = "置换液出口";
  2677. }
  2678. if (dialyste[index].sampling_locationb === 4) {
  2679. dialyste[index].sampling_locationb = "透析机反渗水入口";
  2680. }
  2681. if (dialyste[index].sampling_locationb === 5) {
  2682. dialyste[index].sampling_locationb = "反渗水末端取样口";
  2683. }
  2684. }
  2685. this.table = dialyste;
  2686. var ions = response.data.data.ions;
  2687. // console.log('ions', ions)
  2688. this.tableDatas = ions;
  2689. var oxygenates = response.data.data.oxygenates
  2690. console.log("oxygenates",oxygenates)
  2691. for (let index = 0; index < oxygenates.length; index++) {
  2692. if (oxygenates[index].specimenb === 0) {
  2693. oxygenates[index].specimenb = "";
  2694. }
  2695. if (oxygenates[index].specimenb === 1) {
  2696. oxygenates[index].specimenb = "透析液";
  2697. }
  2698. if (oxygenates[index].specimenb === 2) {
  2699. oxygenates[index].specimenb = "A浓缩液";
  2700. }
  2701. if (oxygenates[index].specimenb === 3) {
  2702. oxygenates[index].specimenb = "B浓缩液";
  2703. }
  2704. if (oxygenates[index].specimenb === 4) {
  2705. oxygenates[index].specimenb = "置换液";
  2706. }
  2707. if (oxygenates[index].specimenb === 5) {
  2708. oxygenates[index].specimenb = "透析用水";
  2709. }
  2710. if (oxygenates[index].sampling_locationb === 0) {
  2711. oxygenates[index].sampling_locationb = "";
  2712. }
  2713. if (oxygenates[index].sampling_locationb === 1) {
  2714. oxygenates[index].sampling_locationb = "透析液入口";
  2715. }
  2716. if (oxygenates[index].sampling_locationb === 2) {
  2717. oxygenates[index].sampling_locationb = "透析液取样口";
  2718. }
  2719. if (oxygenates[index].sampling_locationb === 3) {
  2720. oxygenates[index].sampling_locationb = "置换液出口";
  2721. }
  2722. if (oxygenates[index].sampling_locationb === 4) {
  2723. oxygenates[index].sampling_locationb = "透析机反渗水入口";
  2724. }
  2725. if (oxygenates[index].sampling_locationb === 5) {
  2726. oxygenates[index].sampling_locationb = "反渗水末端取样口";
  2727. }
  2728. }
  2729. this.tableOne = oxygenates
  2730. var hadwater = response.data.data.hadwater
  2731. console.log("hadwater",hadwater)
  2732. for (let index = 0; index < hadwater.length; index++) {
  2733. if (hadwater[index].specimenb === 0) {
  2734. hadwater[index].specimenb = "";
  2735. }
  2736. if (hadwater[index].specimenb === 1) {
  2737. hadwater[index].specimenb = "透析液";
  2738. }
  2739. if (hadwater[index].specimenb === 2) {
  2740. hadwater[index].specimenb = "A浓缩液";
  2741. }
  2742. if (hadwater[index].specimenb === 3) {
  2743. hadwater[index].specimenb = "B浓缩液";
  2744. }
  2745. if (hadwater[index].specimenb === 4) {
  2746. hadwater[index].specimenb = "置换液";
  2747. }
  2748. if (hadwater[index].specimenb === 5) {
  2749. hadwater[index].specimenb = "透析用水";
  2750. }
  2751. if (hadwater[index].sampling_locationb === 0) {
  2752. hadwater[index].sampling_locationb = "";
  2753. }
  2754. if (hadwater[index].sampling_locationb === 1) {
  2755. hadwater[index].sampling_locationb = "透析液入口";
  2756. }
  2757. if (hadwater[index].sampling_locationb === 2) {
  2758. hadwater[index].sampling_locationb = "透析液取样口";
  2759. }
  2760. if (hadwater[index].sampling_locationb === 3) {
  2761. hadwater[index].sampling_locationb = "置换液出口";
  2762. }
  2763. if (hadwater[index].sampling_locationb === 4) {
  2764. hadwater[index].sampling_locationb = "透析机反渗水入口";
  2765. }
  2766. if (hadwater[index].sampling_locationb === 5) {
  2767. hadwater[index].sampling_locationb = "反渗水末端取样口";
  2768. }
  2769. }
  2770. this.tableTwo = hadwater
  2771. var deviceWater = response.data.data.deviceWater
  2772. for (let index = 0; index < deviceWater.length; index++) {
  2773. if (deviceWater[index].specimenb === 0) {
  2774. deviceWater[index].specimenb = "";
  2775. }
  2776. if (deviceWater[index].specimenb === 1) {
  2777. deviceWater[index].specimenb = "透析液";
  2778. }
  2779. if (deviceWater[index].specimenb === 2) {
  2780. deviceWater[index].specimenb = "A浓缩液";
  2781. }
  2782. if (deviceWater[index].specimenb === 3) {
  2783. deviceWater[index].specimenb = "B浓缩液";
  2784. }
  2785. if (deviceWater[index].specimenb === 4) {
  2786. deviceWater[index].specimenb = "置换液";
  2787. }
  2788. if (deviceWater[index].specimenb === 5) {
  2789. deviceWater[index].specimenb = "透析用水";
  2790. }
  2791. if (deviceWater[index].sampling_locationb === 0) {
  2792. deviceWater[index].sampling_locationb = "";
  2793. }
  2794. if (deviceWater[index].sampling_locationb === 1) {
  2795. deviceWater[index].sampling_locationb = "透析液入口";
  2796. }
  2797. if (deviceWater[index].sampling_locationb === 2) {
  2798. deviceWater[index].sampling_locationb = "透析液取样口";
  2799. }
  2800. if (deviceWater[index].sampling_locationb === 3) {
  2801. deviceWater[index].sampling_locationb = "置换液出口";
  2802. }
  2803. if (deviceWater[index].sampling_locationb === 4) {
  2804. deviceWater[index].sampling_locationb = "透析机反渗水入口";
  2805. }
  2806. if (deviceWater[index].sampling_locationb === 5) {
  2807. deviceWater[index].sampling_locationb = "反渗水末端取样口";
  2808. }
  2809. }
  2810. this.tableThree = deviceWater
  2811. console.log("devicewater",deviceWater)
  2812. var devicePh = response.data.data.devicePh
  2813. for (let index = 0; index < devicePh.length; index++) {
  2814. if (devicePh[index].specimenb === 0) {
  2815. devicePh[index].specimenb = "";
  2816. }
  2817. if (devicePh[index].specimenb === 1) {
  2818. devicePh[index].specimenb = "透析液";
  2819. }
  2820. if (devicePh[index].specimenb === 2) {
  2821. devicePh[index].specimenb = "A浓缩液";
  2822. }
  2823. if (devicePh[index].specimenb === 3) {
  2824. devicePh[index].specimenb = "B浓缩液";
  2825. }
  2826. if (devicePh[index].specimenb === 4) {
  2827. devicePh[index].specimenb = "置换液";
  2828. }
  2829. if (devicePh[index].specimenb === 5) {
  2830. devicePh[index].specimenb = "透析用水";
  2831. }
  2832. if (devicePh[index].sampling_locationb === 0) {
  2833. devicePh[index].sampling_locationb = "";
  2834. }
  2835. if (devicePh[index].sampling_locationb === 1) {
  2836. devicePh[index].sampling_locationb = "透析液入口";
  2837. }
  2838. if (devicePh[index].sampling_locationb === 2) {
  2839. devicePh[index].sampling_locationb = "透析液取样口";
  2840. }
  2841. if (devicePh[index].sampling_locationb === 3) {
  2842. devicePh[index].sampling_locationb = "置换液出口";
  2843. }
  2844. if (devicePh[index].sampling_locationb === 4) {
  2845. devicePh[index].sampling_locationb = "透析机反渗水入口";
  2846. }
  2847. if (devicePh[index].sampling_locationb === 5) {
  2848. devicePh[index].sampling_locationb = "反渗水末端取样口";
  2849. }
  2850. }
  2851. this.tableFour = devicePh
  2852. }
  2853. });
  2854. },
  2855. changeSpecimen(val) {
  2856. if (val === 0) {
  2857. this.disable = false;
  2858. this.diableTwo = false;
  2859. }
  2860. if (val === 1) {
  2861. this.diableTwo = false;
  2862. this.disable = false;
  2863. }
  2864. if (val === 2) {
  2865. this.diableTwo = true;
  2866. this.disable = false;
  2867. }
  2868. if (val === 3) {
  2869. this.disable = true;
  2870. this.diableTwo = false;
  2871. }
  2872. if (val === 4) {
  2873. this.disable = false;
  2874. this.diableTwo = false;
  2875. }
  2876. if (val === 5) {
  2877. this.disable = false;
  2878. this.diableTwo = false;
  2879. }
  2880. },
  2881. changeSpeciment(val) {
  2882. if (val === 0) {
  2883. this.disable = false;
  2884. this.diableTwo = false;
  2885. }
  2886. if (val === 1) {
  2887. this.disable = false;
  2888. this.diableTwo = false;
  2889. }
  2890. if (val === 2) {
  2891. this.diableTwo = true;
  2892. this.disable = false;
  2893. }
  2894. if (val === 3) {
  2895. this.disable = true;
  2896. this.diableTwo = false;
  2897. }
  2898. if (val === 4) {
  2899. this.disable = false;
  2900. this.diableTwo = false;
  2901. }
  2902. if (val === 5) {
  2903. this.disable = false;
  2904. this.diableTwo = false;
  2905. }
  2906. },
  2907. changeTable(val) {
  2908. if (val === 1) {
  2909. this.showOne = false;
  2910. this.showTwo = false;
  2911. this.showThree = false
  2912. this.showFour = false
  2913. this.showFive = false
  2914. this.showSix = false
  2915. this.show = true;
  2916. }
  2917. if (val === 2) {
  2918. this.showOne = true;
  2919. this.show = false;
  2920. this.showTwo = false;
  2921. this.showThree= false
  2922. this.showFour = false
  2923. this.showFive = false
  2924. this.showSix = false
  2925. }
  2926. if (val === 3) {
  2927. this.showTwo = true;
  2928. this.show = false;
  2929. this.showOne = false;
  2930. this.showThree = false
  2931. this.showFour =false
  2932. this.showFive = false
  2933. this.showSix = false
  2934. }
  2935. if(val === 4){
  2936. this.showThree = true
  2937. this.show= false
  2938. this.showOne = false
  2939. this.showTwo = false
  2940. this.showFour = false
  2941. this.showFive = false
  2942. this.showSix = false
  2943. }
  2944. if(val === 5){
  2945. this.showFour = true
  2946. this.show = false
  2947. this.showOne = false
  2948. this.showTwo = false
  2949. this.showThree= false
  2950. this.showFive = false
  2951. this.showSix = false
  2952. }
  2953. if(val === 6){
  2954. this.showFive = true
  2955. this.show = false
  2956. this.showOne = false
  2957. this.showTwo = false
  2958. this.showThree = false
  2959. this.showFour = false
  2960. this.showSix = false
  2961. }
  2962. if(val === 7){
  2963. this.showSix = true
  2964. this.show = false
  2965. this.showOne = false
  2966. this.showTwo = false
  2967. this.showThree = false
  2968. this.showFour = false
  2969. this.showFive = false
  2970. }
  2971. },
  2972. getTime(time) {
  2973. if (time < 0) {
  2974. return "";
  2975. }
  2976. return uParseTime(time, "{y}-{m}-{d}");
  2977. },
  2978. getAllOrganization() {
  2979. getAllOrganization().then(response => {
  2980. if (response.data.state === 1) {
  2981. var approle = response.data.data.approle;
  2982. this.sampling = approle;
  2983. }
  2984. });
  2985. },
  2986. EditCulture(id, userid) {
  2987. this.dialogVisible = true;
  2988. if (this.form.specimen === "") {
  2989. this.form.specimen = 0;
  2990. }
  2991. var specimens = this.form.specimen;
  2992. var specimen = parseInt(specimens);
  2993. this.form.specimen = specimen;
  2994. if (this.form.locationa === "") {
  2995. this.form.specimen = 0;
  2996. }
  2997. var locationa = this.form.sampling_locationa;
  2998. var location = parseInt(locationa);
  2999. this.form.locationa = location;
  3000. EditCulture(id, userid).then(response => {
  3001. if (response.data.state === 1) {
  3002. var culture = response.data.data.culture;
  3003. // console.log('禁用', culture)
  3004. var role = response.data.data.role;
  3005. // console.log('role', role)
  3006. this.form.id = culture.id;
  3007. // eslint-disable-next-line no-undef
  3008. this.form.date = this.getTime(culture.speling_date);
  3009. this.form.specimen = culture.specimen;
  3010. if (this.form.specimen === 0) {
  3011. this.disable = false;
  3012. this.diableTwo = false;
  3013. }
  3014. if (this.form.specimen === 1) {
  3015. this.disable = false;
  3016. this.diableTwo = false;
  3017. }
  3018. if (this.form.specimen === 2) {
  3019. this.disable = false;
  3020. this.diableTwo = true;
  3021. }
  3022. if (this.form.specimen === 3) {
  3023. this.diableTwo = false;
  3024. this.disable = true;
  3025. }
  3026. if (this.form.specimen === 4) {
  3027. this.disable = false;
  3028. this.diableTwo = false;
  3029. }
  3030. if (this.form.specimen === 5) {
  3031. this.disable = false;
  3032. this.diableTwo = false;
  3033. }
  3034. this.form.concentrate_noa = culture.concentrate_noa;
  3035. this.form.concentrate_nob = culture.concentrate_nob;
  3036. this.form.sampling_locationa = culture.sampling_locationa;
  3037. this.form.detection_unit = culture.detection_unit;
  3038. this.form.sampler = culture.sampler;
  3039. this.form.reporting_date = this.getTime(culture.reporting_date);
  3040. this.form.detection_result = culture.detection_result;
  3041. this.form.sort = culture.sort
  3042. this.form.pass_examination = culture.pass_examination.toString()
  3043. this.form.modifications = culture.modifications
  3044. }
  3045. });
  3046. },
  3047. UpdateCulture(formName) {
  3048. this.form.pass_examination = parseInt(this.form.pass_examination)
  3049. this.$refs[formName].validate(valid => {
  3050. if (valid) {
  3051. UpdateCulture(this.form).then(response => {
  3052. if (response.data.state === 1) {
  3053. var culture = response.data.data.culture;
  3054. this.$message.success("修改成功");
  3055. this.dialogVisible = false;
  3056. this.getAllQulityInfo();
  3057. }
  3058. });
  3059. }
  3060. });
  3061. },
  3062. BatchDelete() {
  3063. if (this.selectCulture.length == 0) {
  3064. this.$message.error("请选择要删除的信息");
  3065. return false;
  3066. }
  3067. this.$confirm(
  3068. "确认要删除所选记录吗? <br>删除后,该信息将无法恢复",
  3069. "删除提示",
  3070. {
  3071. dangerouslyUseHTMLString: true,
  3072. confirmButtonText: "确定",
  3073. cancelButtonText: "取消",
  3074. type: "warning"
  3075. }
  3076. ).then(() => {
  3077. var ids = [];
  3078. var idMap = {};
  3079. for (const index in this.selectCulture) {
  3080. ids.push(this.selectCulture[index].id);
  3081. idMap[this.selectCulture[index].id] = this.selectCulture[index].id;
  3082. }
  3083. DeleteCultrue({ ids: ids }).then(response => {
  3084. if (response.data.state === 1) {
  3085. var msg = response.data.data.msg;
  3086. var planDataLength = this.tableData.length;
  3087. for (let index = planDataLength - 1; index >= 0; index--) {
  3088. if (this.tableData[index].id in idMap) {
  3089. this.tableData.splice(index, 1);
  3090. }
  3091. }
  3092. this.$message.success("删除成功");
  3093. }
  3094. });
  3095. });
  3096. },
  3097. DeleteCultrues(id, index) {
  3098. this.$confirm(
  3099. "确认要删除所选记录吗? <br>删除后,该信息将无法恢复",
  3100. "删除提示",
  3101. {
  3102. dangerouslyUseHTMLString: true,
  3103. confirmButtonText: "确定",
  3104. cancelButtonText: "取消",
  3105. type: "warning"
  3106. }
  3107. ).then(() => {
  3108. DeleteCultrues(id, index).then(response => {
  3109. if (response.data.state === 1) {
  3110. var msg = response.data.data.msg;
  3111. this.tableData.splice(index, 1);
  3112. }
  3113. });
  3114. });
  3115. },
  3116. EditDialyState(id) {
  3117. this.dialogVisibleTwo = true;
  3118. EditDialyState(id).then(response => {
  3119. if (response.data.state === 1) {
  3120. var dialysate = response.data.data.dialysate;
  3121. // console.log('dialysate', dialysate)
  3122. this.diaForm.id = dialysate.id;
  3123. // eslint-disable-next-line no-undef
  3124. this.diaForm.sampling_date = this.getTime(dialysate.sampling_date);
  3125. this.diaForm.specimenb = dialysate.specimenb;
  3126. if (this.diaForm.specimenb === 0) {
  3127. this.disable = false;
  3128. this.diableTwo = false;
  3129. }
  3130. if (this.diaForm.specimenb === 1) {
  3131. this.disable = false;
  3132. this.diableTwo = false;
  3133. }
  3134. if (this.diaForm.specimenb === 2) {
  3135. this.disable = false;
  3136. this.diableTwo = true;
  3137. }
  3138. if (this.diaForm.specimenb === 3) {
  3139. this.diableTwo = false;
  3140. this.disable = true;
  3141. }
  3142. if (this.diaForm.specimenb === 4) {
  3143. this.disable = false;
  3144. this.diableTwo = false;
  3145. }
  3146. if (this.diaForm.specimenb === 5) {
  3147. this.disable = false;
  3148. this.diableTwo = false;
  3149. }
  3150. this.diaForm.concentrate_noc = dialysate.concentrate_noc;
  3151. this.diaForm.concentrateb_nod = dialysate.concentrateb_nod;
  3152. this.diaForm.sampling_locationb = dialysate.sampling_locationb;
  3153. this.diaForm.detection_unit = dialysate.detection_unit;
  3154. this.diaForm.samplerb = dialysate.samplerb;
  3155. this.diaForm.reporting_dateb = this.getTime(
  3156. dialysate.reporting_dateb
  3157. );
  3158. this.diaForm.detection_resultb = dialysate.detection_resultb;
  3159. this.diaForm.sort = dialysate.sort
  3160. this.diaForm.pass_examination = dialysate.pass_examination.toString()
  3161. this.diaForm.modifications = dialysate.modifications
  3162. }
  3163. });
  3164. },
  3165. UpdateDialyState(formName) {
  3166. this.$refs[formName].validate(valid => {
  3167. console.log("333333",this.diaForm)
  3168. this.diaForm.pass_examination = parseInt(this.diaForm.pass_examination)
  3169. if (valid) {
  3170. UpdateDialyState(this.diaForm).then(response => {
  3171. if (response.data.state === 1) {
  3172. var dialysate = response.data.data.dialysate;
  3173. console.log('dialyste', dialysate)
  3174. this.dialogVisibleTwo = false;
  3175. this.$message.success("修改成功");
  3176. this.getAllQulityInfo();
  3177. }
  3178. });
  3179. }
  3180. });
  3181. },
  3182. UpdateOxygenates(formName){
  3183. this.$refs[formName].validate(valid=>{
  3184. this.diaForm.pass_examination = parseInt(this.diaForm.pass_examination)
  3185. if(valid){
  3186. UpdateOxygenates(this.diaForm).then(response=>{
  3187. if(response.data.state == 1){
  3188. var oxygenates = response.data.data.oxygenates
  3189. console.log("oxygenates",oxygenates)
  3190. this.dialogVisibleFour = false
  3191. this.$message.success("修改成功")
  3192. this.getAllQulityInfo()
  3193. }
  3194. })
  3195. }
  3196. })
  3197. },
  3198. UpdateHadWater(formName){
  3199. this.$refs[formName].validate(valid=>{
  3200. this.diaForm.pass_examination = parseInt(this.diaForm.pass_examination)
  3201. if(valid){
  3202. UpdateHadWater(this.diaForm).then(response=>{
  3203. if(response.data.state == 1){
  3204. var hadwater = response.data.data.hadWater
  3205. console.log("hadwater",hadwater)
  3206. this.dialogVisibleFive = false
  3207. this.$message.success("修改成功")
  3208. this.getAllQulityInfo()
  3209. }
  3210. })
  3211. }
  3212. })
  3213. },
  3214. updateWater(formName){
  3215. this.$refs[formName].validate(valid=>{
  3216. if(valid){
  3217. this.diaForm.pass_examination = parseInt(this.diaForm.pass_examination)
  3218. updateWater(this.diaForm).then(response=>{
  3219. if(response.data.state == 1){
  3220. var hadwater = response.data.data.hadWater
  3221. console.log("hadwater",hadwater)
  3222. this.dialogVisibleSix = false
  3223. this.$message.success("修改成功")
  3224. this.getAllQulityInfo()
  3225. }
  3226. })
  3227. }
  3228. })
  3229. },
  3230. updateDevicePh(formName){
  3231. this.$refs[formName].validate(valid=>{
  3232. this.diaForm.pass_examination = parseInt(this.diaForm.pass_examination)
  3233. if(valid){
  3234. updateDevicePh(this.diaForm).then(response=>{
  3235. if(response.data.state == 1){
  3236. var hadwater = response.data.data.hadWater
  3237. console.log("hadwater",hadwater)
  3238. this.dialogVisibleSeven = false
  3239. this.$message.success("修改成功")
  3240. this.getAllQulityInfo()
  3241. }
  3242. })
  3243. }
  3244. })
  3245. },
  3246. BatchDeleteOne() {
  3247. if (this.selectCulture.length == 0) {
  3248. this.$message.error("请选择要删除的信息");
  3249. return false;
  3250. }
  3251. this.$confirm(
  3252. "确认要删除所选记录吗? <br>删除后,该信息将无法恢复",
  3253. "删除提示",
  3254. {
  3255. dangerouslyUseHTMLString: true,
  3256. confirmButtonText: "确定",
  3257. cancelButtonText: "取消",
  3258. type: "warning"
  3259. }
  3260. ).then(() => {
  3261. var ids = [];
  3262. var idMap = {};
  3263. for (const index in this.selectCulture) {
  3264. ids.push(this.selectCulture[index].id);
  3265. idMap[this.selectCulture[index].id] = this.selectCulture[index].id;
  3266. }
  3267. DeleteDialystate({ ids: ids }).then(response => {
  3268. if (response.data.state === 1) {
  3269. var msg = response.data.data.msg;
  3270. var planDataLength = this.table.length;
  3271. for (let index = planDataLength - 1; index >= 0; index--) {
  3272. if (this.table[index].id in idMap) {
  3273. this.table.splice(index, 1);
  3274. }
  3275. }
  3276. this.$message.success("删除成功");
  3277. }
  3278. });
  3279. });
  3280. },
  3281. DeleteDialystates(id, index) {
  3282. this.$confirm(
  3283. "确认要删除所选记录吗? <br>删除后,该信息将无法恢复",
  3284. "删除提示",
  3285. {
  3286. dangerouslyUseHTMLString: true,
  3287. confirmButtonText: "确定",
  3288. cancelButtonText: "取消",
  3289. type: "warning"
  3290. }
  3291. ).then(() => {
  3292. DeleteDialystates(id, index).then(response => {
  3293. if (response.data.state === 1) {
  3294. var msg = response.data.data.msg;
  3295. this.table.splice(index, 1);
  3296. }
  3297. });
  3298. });
  3299. },
  3300. DeleteOxygenates(id, index) {
  3301. this.$confirm(
  3302. "确认要删除所选记录吗? <br>删除后,该信息将无法恢复",
  3303. "删除提示",
  3304. {
  3305. dangerouslyUseHTMLString: true,
  3306. confirmButtonText: "确定",
  3307. cancelButtonText: "取消",
  3308. type: "warning"
  3309. }
  3310. ).then(() => {
  3311. DeleteOxygenates(id, index).then(response => {
  3312. if (response.data.state === 1) {
  3313. var msg = response.data.data.msg;
  3314. this.tableOne.splice(index, 1);
  3315. }
  3316. });
  3317. });
  3318. },
  3319. DeleteHadWater(id, index) {
  3320. this.$confirm(
  3321. "确认要删除所选记录吗? <br>删除后,该信息将无法恢复",
  3322. "删除提示",
  3323. {
  3324. dangerouslyUseHTMLString: true,
  3325. confirmButtonText: "确定",
  3326. cancelButtonText: "取消",
  3327. type: "warning"
  3328. }
  3329. ).then(() => {
  3330. DeleteHadWater(id, index).then(response => {
  3331. if (response.data.state === 1) {
  3332. var msg = response.data.data.msg;
  3333. this.tableTwo.splice(index, 1);
  3334. }
  3335. });
  3336. });
  3337. },
  3338. DeleteWater(id, index) {
  3339. this.$confirm(
  3340. "确认要删除所选记录吗? <br>删除后,该信息将无法恢复",
  3341. "删除提示",
  3342. {
  3343. dangerouslyUseHTMLString: true,
  3344. confirmButtonText: "确定",
  3345. cancelButtonText: "取消",
  3346. type: "warning"
  3347. }
  3348. ).then(() => {
  3349. DeleteWater(id, index).then(response => {
  3350. if (response.data.state === 1) {
  3351. var msg = response.data.data.msg;
  3352. this.tableThree.splice(index, 1);
  3353. }
  3354. });
  3355. });
  3356. },
  3357. DeleteDevicePh(id, index) {
  3358. this.$confirm(
  3359. "确认要删除所选记录吗? <br>删除后,该信息将无法恢复",
  3360. "删除提示",
  3361. {
  3362. dangerouslyUseHTMLString: true,
  3363. confirmButtonText: "确定",
  3364. cancelButtonText: "取消",
  3365. type: "warning"
  3366. }
  3367. ).then(() => {
  3368. DeleteDevicePh(id, index).then(response => {
  3369. if (response.data.state === 1) {
  3370. var msg = response.data.data.msg;
  3371. this.tableFour.splice(index, 1);
  3372. }
  3373. });
  3374. });
  3375. },
  3376. EditIon(id) {
  3377. this.dialogVisibleThree = true;
  3378. EditIon(id).then(response => {
  3379. if (response.data.state === 1) {
  3380. var ion = response.data.data.ion;
  3381. // console.log('ion', ion)
  3382. // eslint-disable-next-line no-undef
  3383. this.ionForm.dateb = this.getTime(ion.sampling_date);
  3384. this.ionForm.samplerc = ion.samplerc;
  3385. this.ionForm.detection_unit = ion.detection_unit;
  3386. this.ionForm.samplerc = ion.samplerc;
  3387. this.ionForm.concentrate_nof = ion.concentrate_nof;
  3388. this.ionForm.concentrate_nog = ion.concentrate_nog;
  3389. // eslint-disable-next-line no-undef
  3390. this.ionForm.date_reportc = this.getTime(ion.date_reportc);
  3391. this.ionForm.id = ion.id;
  3392. this.ionForm.actual_na = ion.actual_na;
  3393. this.ionForm.actual_pna = ion.actual_pna;
  3394. this.ionForm.actual_k = ion.actual_k;
  3395. this.ionForm.actual_ca = ion.actual_ca;
  3396. this.ionForm.actual_ci = ion.actual_ci;
  3397. this.ionForm.actual_hco = ion.actual_hco;
  3398. this.ionForm.actual_mg = ion.actual_mg;
  3399. this.ionForm.actual_ph = ion.actual_ph;
  3400. this.ionForm.remakes = ion.remakes;
  3401. this.ionForm.sort = ion.sort;
  3402. this.ionForm.pass_examination = ion.pass_examination.toString()
  3403. this.ionForm.modifications = ion.modifications
  3404. }
  3405. });
  3406. },
  3407. UpdateIon(formName) {
  3408. this.$refs[formName].validate(valid => {
  3409. this.ionForm.pass_examination = parseInt(this.ionForm.pass_examination)
  3410. if (valid) {
  3411. UpdateIon(this.ionForm).then(response => {
  3412. if (response.data.state === 1) {
  3413. var ion = response.data.data.ion;
  3414. // console.log('ion', ion)
  3415. this.dialogVisibleThree = false;
  3416. this.$message.success("修改成功");
  3417. this.getAllQulityInfo();
  3418. }
  3419. });
  3420. }
  3421. });
  3422. },
  3423. BatchDeleteTwo() {
  3424. if (this.selectCulture.length == 0) {
  3425. this.$message.error("请选择要删除的信息");
  3426. return false;
  3427. }
  3428. this.$confirm(
  3429. "确认要删除所选的吗? <br>删除后,信息将无法恢复",
  3430. "删除提示",
  3431. {
  3432. dangerouslyUseHTMLString: true,
  3433. confirmButtonText: "确定",
  3434. cancelButtonText: "取消",
  3435. type: "warning"
  3436. }
  3437. ).then(() => {
  3438. var ids = [];
  3439. var idMap = {};
  3440. for (const index in this.selectCulture) {
  3441. ids.push(this.selectCulture[index].id);
  3442. idMap[this.selectCulture[index].id] = this.selectCulture[index].id;
  3443. }
  3444. DeleteIon({ ids: ids }).then(response => {
  3445. if (response.data.state === 1) {
  3446. var msg = response.data.data.msg;
  3447. var planDataLength = this.tableDatas.length;
  3448. for (let index = planDataLength - 1; index >= 0; index--) {
  3449. if (this.tableDatas[index].id in idMap) {
  3450. this.tableDatas.splice(index, 1);
  3451. }
  3452. }
  3453. this.$message.success("删除成功");
  3454. }
  3455. });
  3456. });
  3457. },
  3458. DeleteIons(id, index) {
  3459. this.$confirm(
  3460. "确认要删除所选的吗? <br>删除后,信息将无法恢复",
  3461. "删除提示",
  3462. {
  3463. dangerouslyUseHTMLString: true,
  3464. confirmButtonText: "确定",
  3465. cancelButtonText: "取消",
  3466. type: "warning"
  3467. }
  3468. ).then(() => {
  3469. DeleteIons(id, index).then(response => {
  3470. if (response.data.state === 1) {
  3471. var msg = response.data.data.msg;
  3472. this.tableDatas.splice(index, 1);
  3473. }
  3474. });
  3475. });
  3476. },
  3477. queryTable() {
  3478. queryTable(this.forms.bed,this.forms.start_time,this.forms.end_time).then(response => {
  3479. if (response.data.state === 1) {
  3480. var cultures = response.data.data.cultures;
  3481. for (let index = 0; index < cultures.length; index++) {
  3482. if (cultures[index].specimen === 0) {
  3483. cultures[index].specimen = "";
  3484. }
  3485. if (cultures[index].specimen === 1) {
  3486. cultures[index].specimen = "透析液";
  3487. }
  3488. if (cultures[index].specimen === 2) {
  3489. cultures[index].specimen = "A浓缩液";
  3490. }
  3491. if (cultures[index].specimen === 3) {
  3492. cultures[index].specimen = "B浓缩液";
  3493. }
  3494. if (cultures[index].specimen === 4) {
  3495. cultures[index].specimen = "置换液";
  3496. }
  3497. if (cultures[index].specimen === 5) {
  3498. cultures[index].specimen = "透析用水";
  3499. }
  3500. if (cultures[index].sampling_locationa === 0) {
  3501. cultures[index].sampling_locationa = "";
  3502. }
  3503. if (cultures[index].sampling_locationa === 1) {
  3504. cultures[index].sampling_locationa = "透析液入口";
  3505. }
  3506. if (cultures[index].sampling_locationa === 2) {
  3507. cultures[index].sampling_locationa = "透析液取样口";
  3508. }
  3509. if (cultures[index].sampling_locationa === 3) {
  3510. cultures[index].sampling_locationa = "置换液出口";
  3511. }
  3512. if (cultures[index].sampling_locationa === 4) {
  3513. cultures[index].sampling_locationa = "透析机反渗水入口";
  3514. }
  3515. if (cultures[index].sampling_locationa === 5) {
  3516. cultures[index].sampling_locationa = "反渗水末端取样口";
  3517. }
  3518. }
  3519. this.tableData = cultures;
  3520. var dialyste = response.data.data.dialysate;
  3521. for (let index = 0; index < dialyste.length; index++) {
  3522. if (dialyste[index].specimenb === 0) {
  3523. dialyste[index].specimenb = "";
  3524. }
  3525. if (dialyste[index].specimenb === 1) {
  3526. dialyste[index].specimenb = "透析液";
  3527. }
  3528. if (dialyste[index].specimenb === 2) {
  3529. dialyste[index].specimenb = "A浓缩液";
  3530. }
  3531. if (dialyste[index].specimenb === 3) {
  3532. dialyste[index].specimenb = "B浓缩液";
  3533. }
  3534. if (dialyste[index].specimenb === 4) {
  3535. dialyste[index].specimenb = "置换液";
  3536. }
  3537. if (dialyste[index].specimenb === 5) {
  3538. dialyste[index].specimenb = "透析用水";
  3539. }
  3540. if (dialyste[index].sampling_locationb === 0) {
  3541. dialyste[index].sampling_locationb = "";
  3542. }
  3543. if (dialyste[index].sampling_locationb === 1) {
  3544. dialyste[index].sampling_locationb = "透析液入口";
  3545. }
  3546. if (dialyste[index].sampling_locationb === 2) {
  3547. dialyste[index].sampling_locationb = "透析液取样口";
  3548. }
  3549. if (dialyste[index].sampling_locationb === 3) {
  3550. dialyste[index].sampling_locationb = "置换液出口";
  3551. }
  3552. if (dialyste[index].sampling_locationb === 4) {
  3553. dialyste[index].sampling_locationb = "透析机反渗水入口";
  3554. }
  3555. if (dialyste[index].sampling_locationb === 5) {
  3556. dialyste[index].sampling_locationb = "反渗水末端取样口";
  3557. }
  3558. }
  3559. this.table = dialyste;
  3560. var ions = response.data.data.ions;
  3561. this.tableDatas = ions;
  3562. var oxygenates = response.data.data.oxygenates
  3563. for (let index = 0; index < oxygenates.length; index++) {
  3564. if (oxygenates[index].specimenb === 0) {
  3565. oxygenates[index].specimenb = "";
  3566. }
  3567. if (oxygenates[index].specimenb === 1) {
  3568. oxygenates[index].specimenb = "透析液";
  3569. }
  3570. if (oxygenates[index].specimenb === 2) {
  3571. oxygenates[index].specimenb = "A浓缩液";
  3572. }
  3573. if (oxygenates[index].specimenb === 3) {
  3574. oxygenates[index].specimenb = "B浓缩液";
  3575. }
  3576. if (oxygenates[index].specimenb === 4) {
  3577. oxygenates[index].specimenb = "置换液";
  3578. }
  3579. if (oxygenates[index].specimenb === 5) {
  3580. oxygenates[index].specimenb = "透析用水";
  3581. }
  3582. if (oxygenates[index].sampling_locationb === 0) {
  3583. oxygenates[index].sampling_locationb = "";
  3584. }
  3585. if (oxygenates[index].sampling_locationb === 1) {
  3586. oxygenates[index].sampling_locationb = "透析液入口";
  3587. }
  3588. if (oxygenates[index].sampling_locationb === 2) {
  3589. oxygenates[index].sampling_locationb = "透析液取样口";
  3590. }
  3591. if (oxygenates[index].sampling_locationb === 3) {
  3592. oxygenates[index].sampling_locationb = "置换液出口";
  3593. }
  3594. if (oxygenates[index].sampling_locationb === 4) {
  3595. oxygenates[index].sampling_locationb = "透析机反渗水入口";
  3596. }
  3597. if (oxygenates[index].sampling_locationb === 5) {
  3598. oxygenates[index].sampling_locationb = "反渗水末端取样口";
  3599. }
  3600. }
  3601. this.tableOne = oxygenates
  3602. var hadwater = response.data.data.hadwater
  3603. for (let index = 0; index < hadwater.length; index++) {
  3604. if (hadwater[index].specimenb === 0) {
  3605. hadwater[index].specimenb = "";
  3606. }
  3607. if (hadwater[index].specimenb === 1) {
  3608. hadwater[index].specimenb = "透析液";
  3609. }
  3610. if (hadwater[index].specimenb === 2) {
  3611. hadwater[index].specimenb = "A浓缩液";
  3612. }
  3613. if (hadwater[index].specimenb === 3) {
  3614. hadwater[index].specimenb = "B浓缩液";
  3615. }
  3616. if (hadwater[index].specimenb === 4) {
  3617. hadwater[index].specimenb = "置换液";
  3618. }
  3619. if (hadwater[index].specimenb === 5) {
  3620. hadwater[index].specimenb = "透析用水";
  3621. }
  3622. if (hadwater[index].sampling_locationb === 0) {
  3623. hadwater[index].sampling_locationb = "";
  3624. }
  3625. if (hadwater[index].sampling_locationb === 1) {
  3626. hadwater[index].sampling_locationb = "透析液入口";
  3627. }
  3628. if (hadwater[index].sampling_locationb === 2) {
  3629. hadwater[index].sampling_locationb = "透析液取样口";
  3630. }
  3631. if (hadwater[index].sampling_locationb === 3) {
  3632. hadwater[index].sampling_locationb = "置换液出口";
  3633. }
  3634. if (hadwater[index].sampling_locationb === 4) {
  3635. hadwater[index].sampling_locationb = "透析机反渗水入口";
  3636. }
  3637. if (hadwater[index].sampling_locationb === 5) {
  3638. hadwater[index].sampling_locationb = "反渗水末端取样口";
  3639. }
  3640. }
  3641. this.tableTwo = hadwater
  3642. var water = response.data.data.water
  3643. for (let index = 0; index < water.length; index++) {
  3644. if (water[index].specimenb === 0) {
  3645. water[index].specimenb = "";
  3646. }
  3647. if (water[index].specimenb === 1) {
  3648. water[index].specimenb = "透析液";
  3649. }
  3650. if (water[index].specimenb === 2) {
  3651. water[index].specimenb = "A浓缩液";
  3652. }
  3653. if (water[index].specimenb === 3) {
  3654. water[index].specimenb = "B浓缩液";
  3655. }
  3656. if (water[index].specimenb === 4) {
  3657. water[index].specimenb = "置换液";
  3658. }
  3659. if (water[index].specimenb === 5) {
  3660. water[index].specimenb = "透析用水";
  3661. }
  3662. if (water[index].sampling_locationb === 0) {
  3663. water[index].sampling_locationb = "";
  3664. }
  3665. if (water[index].sampling_locationb === 1) {
  3666. water[index].sampling_locationb = "透析液入口";
  3667. }
  3668. if (water[index].sampling_locationb === 2) {
  3669. water[index].sampling_locationb = "透析液取样口";
  3670. }
  3671. if (water[index].sampling_locationb === 3) {
  3672. water[index].sampling_locationb = "置换液出口";
  3673. }
  3674. if (water[index].sampling_locationb === 4) {
  3675. water[index].sampling_locationb = "透析机反渗水入口";
  3676. }
  3677. if (water[index].sampling_locationb === 5) {
  3678. water[index].sampling_locationb = "反渗水末端取样口";
  3679. }
  3680. }
  3681. this.tableThree = water
  3682. var deviceph = response.data.data.deviceph
  3683. for (let index = 0; index < deviceph.length; index++) {
  3684. if (deviceph[index].specimenb === 0) {
  3685. deviceph[index].specimenb = "";
  3686. }
  3687. if (deviceph[index].specimenb === 1) {
  3688. deviceph[index].specimenb = "透析液";
  3689. }
  3690. if (deviceph[index].specimenb === 2) {
  3691. deviceph[index].specimenb = "A浓缩液";
  3692. }
  3693. if (deviceph[index].specimenb === 3) {
  3694. deviceph[index].specimenb = "B浓缩液";
  3695. }
  3696. if (deviceph[index].specimenb === 4) {
  3697. deviceph[index].specimenb = "置换液";
  3698. }
  3699. if (deviceph[index].specimenb === 5) {
  3700. deviceph[index].specimenb = "透析用水";
  3701. }
  3702. if (deviceph[index].sampling_locationb === 0) {
  3703. deviceph[index].sampling_locationb = "";
  3704. }
  3705. if (deviceph[index].sampling_locationb === 1) {
  3706. deviceph[index].sampling_locationb = "透析液入口";
  3707. }
  3708. if (deviceph[index].sampling_locationb === 2) {
  3709. deviceph[index].sampling_locationb = "透析液取样口";
  3710. }
  3711. if (deviceph[index].sampling_locationb === 3) {
  3712. deviceph[index].sampling_locationb = "置换液出口";
  3713. }
  3714. if (deviceph[index].sampling_locationb === 4) {
  3715. deviceph[index].sampling_locationb = "透析机反渗水入口";
  3716. }
  3717. if (deviceph[index].sampling_locationb === 5) {
  3718. deviceph[index].sampling_locationb = "反渗水末端取样口";
  3719. }
  3720. }
  3721. this.tableFour = deviceph
  3722. }
  3723. });
  3724. },
  3725. editOxygenates(id,index){
  3726. this.dialogVisibleFour = true
  3727. editOxygenates(id).then(response=>{
  3728. if(response.data.state == 1){
  3729. var dialysate = response.data.data.oxygenates
  3730. console.log("dialysate",dialysate)
  3731. this.diaForm.id = dialysate.id;
  3732. this.diaForm.sampling_date = this.getTime(dialysate.sampling_date);
  3733. this.diaForm.specimenb = dialysate.specimenb;
  3734. if (this.diaForm.specimenb === 0) {
  3735. this.disable = false;
  3736. this.diableTwo = false;
  3737. }
  3738. if (this.diaForm.specimenb === 1) {
  3739. this.disable = false;
  3740. this.diableTwo = false;
  3741. }
  3742. if (this.diaForm.specimenb === 2) {
  3743. this.disable = false;
  3744. this.diableTwo = true;
  3745. }
  3746. if (this.diaForm.specimenb === 3) {
  3747. this.diableTwo = false;
  3748. this.disable = true;
  3749. }
  3750. if (this.diaForm.specimenb === 4) {
  3751. this.disable = false;
  3752. this.diableTwo = false;
  3753. }
  3754. if (this.diaForm.specimenb === 5) {
  3755. this.disable = false;
  3756. this.diableTwo = false;
  3757. }
  3758. this.diaForm.concentrate_noc = dialysate.concentrate_noc;
  3759. this.diaForm.concentrateb_nod = dialysate.concentrateb_nod;
  3760. this.diaForm.sampling_locationb = dialysate.sampling_locationb;
  3761. this.diaForm.detection_unit = dialysate.detection_unit;
  3762. this.diaForm.samplerb = dialysate.samplerb;
  3763. this.diaForm.reporting_dateb = this.getTime(
  3764. dialysate.reporting_dateb
  3765. );
  3766. this.diaForm.detection_resultb = dialysate.detection_resultb;
  3767. this.diaForm.sort = dialysate.sort
  3768. this.diaForm.pass_examination = dialysate.pass_examination.toString()
  3769. this.diaForm.modifications = dialysate.modifications
  3770. }
  3771. })
  3772. },
  3773. editHardWater(id,index){
  3774. this.dialogVisibleFive = true
  3775. editHardWater(id).then(response=>{
  3776. if(response.data.state == 1){
  3777. var dialysate = response.data.data.hardWater
  3778. console.log("dialysate",dialysate)
  3779. this.diaForm.id = dialysate.id;
  3780. this.diaForm.sampling_date = this.getTime(dialysate.sampling_date);
  3781. this.diaForm.specimenb = dialysate.specimenb;
  3782. if (this.diaForm.specimenb === 0) {
  3783. this.disable = false;
  3784. this.diableTwo = false;
  3785. }
  3786. if (this.diaForm.specimenb === 1) {
  3787. this.disable = false;
  3788. this.diableTwo = false;
  3789. }
  3790. if (this.diaForm.specimenb === 2) {
  3791. this.disable = false;
  3792. this.diableTwo = true;
  3793. }
  3794. if (this.diaForm.specimenb === 3) {
  3795. this.diableTwo = false;
  3796. this.disable = true;
  3797. }
  3798. if (this.diaForm.specimenb === 4) {
  3799. this.disable = false;
  3800. this.diableTwo = false;
  3801. }
  3802. if (this.diaForm.specimenb === 5) {
  3803. this.disable = false;
  3804. this.diableTwo = false;
  3805. }
  3806. this.diaForm.concentrate_noc = dialysate.concentrate_noc;
  3807. this.diaForm.concentrateb_nod = dialysate.concentrateb_nod;
  3808. this.diaForm.sampling_locationb = dialysate.sampling_locationb;
  3809. this.diaForm.detection_unit = dialysate.detection_unit;
  3810. this.diaForm.samplerb = dialysate.samplerb;
  3811. this.diaForm.reporting_dateb = this.getTime(
  3812. dialysate.reporting_dateb
  3813. );
  3814. this.diaForm.detection_resultb = dialysate.detection_resultb;
  3815. this.diaForm.sort = dialysate.sort
  3816. this.diaForm.pass_examination = dialysate.pass_examination.toString()
  3817. this.diaForm.modifications = dialysate.modifications
  3818. }
  3819. })
  3820. },
  3821. editWater(id,index){
  3822. this.dialogVisibleSix = true
  3823. editWater(id).then(response=>{
  3824. if(response.data.state == 1){
  3825. var dialysate = response.data.data.water
  3826. console.log("dialysate",dialysate)
  3827. this.diaForm.id = dialysate.id;
  3828. this.diaForm.sampling_date = this.getTime(dialysate.sampling_date);
  3829. this.diaForm.specimenb = dialysate.specimenb;
  3830. if (this.diaForm.specimenb === 0) {
  3831. this.disable = false;
  3832. this.diableTwo = false;
  3833. }
  3834. if (this.diaForm.specimenb === 1) {
  3835. this.disable = false;
  3836. this.diableTwo = false;
  3837. }
  3838. if (this.diaForm.specimenb === 2) {
  3839. this.disable = false;
  3840. this.diableTwo = true;
  3841. }
  3842. if (this.diaForm.specimenb === 3) {
  3843. this.diableTwo = false;
  3844. this.disable = true;
  3845. }
  3846. if (this.diaForm.specimenb === 4) {
  3847. this.disable = false;
  3848. this.diableTwo = false;
  3849. }
  3850. if (this.diaForm.specimenb === 5) {
  3851. this.disable = false;
  3852. this.diableTwo = false;
  3853. }
  3854. this.diaForm.concentrate_noc = dialysate.concentrate_noc;
  3855. this.diaForm.concentrateb_nod = dialysate.concentrateb_nod;
  3856. this.diaForm.sampling_locationb = dialysate.sampling_locationb;
  3857. this.diaForm.detection_unit = dialysate.detection_unit;
  3858. this.diaForm.samplerb = dialysate.samplerb;
  3859. this.diaForm.reporting_dateb = this.getTime(
  3860. dialysate.reporting_dateb
  3861. );
  3862. this.diaForm.detection_resultb = dialysate.detection_resultb;
  3863. this.diaForm.sort = dialysate.sort
  3864. this.diaForm.pass_examination = parseInt(dialysate.pass_examination)
  3865. this.diaForm.modifications = dialysate.modifications
  3866. }
  3867. })
  3868. },
  3869. editDevicePh(id){
  3870. this.dialogVisibleSeven = true
  3871. editDevicePh(id).then(response=>{
  3872. if(response.data.state == 1){
  3873. var dialysate = response.data.data.deviceph
  3874. console.log("dialysate",dialysate)
  3875. this.diaForm.id = dialysate.id;
  3876. this.diaForm.sampling_date = this.getTime(dialysate.sampling_date);
  3877. this.diaForm.specimenb = dialysate.specimenb;
  3878. if (this.diaForm.specimenb === 0) {
  3879. this.disable = false;
  3880. this.diableTwo = false;
  3881. }
  3882. if (this.diaForm.specimenb === 1) {
  3883. this.disable = false;
  3884. this.diableTwo = false;
  3885. }
  3886. if (this.diaForm.specimenb === 2) {
  3887. this.disable = false;
  3888. this.diableTwo = true;
  3889. }
  3890. if (this.diaForm.specimenb === 3) {
  3891. this.diableTwo = false;
  3892. this.disable = true;
  3893. }
  3894. if (this.diaForm.specimenb === 4) {
  3895. this.disable = false;
  3896. this.diableTwo = false;
  3897. }
  3898. if (this.diaForm.specimenb === 5) {
  3899. this.disable = false;
  3900. this.diableTwo = false;
  3901. }
  3902. this.diaForm.concentrate_noc = dialysate.concentrate_noc;
  3903. this.diaForm.concentrateb_nod = dialysate.concentrateb_nod;
  3904. this.diaForm.sampling_locationb = dialysate.sampling_locationb;
  3905. this.diaForm.detection_unit = dialysate.detection_unit;
  3906. this.diaForm.samplerb = dialysate.samplerb;
  3907. this.diaForm.reporting_dateb = this.getTime(
  3908. dialysate.reporting_dateb
  3909. );
  3910. this.diaForm.detection_resultb = dialysate.detection_resultb;
  3911. this.diaForm.sort = dialysate.sort
  3912. this.diaForm.pass_examination = dialysate.pass_examination.toString()
  3913. this.diaForm.modifications = dialysate.modifications
  3914. }
  3915. })
  3916. }
  3917. },
  3918. created() {
  3919. this.getAllSubregion();
  3920. this.getAllQulityInfo();
  3921. this.getAllOrganization();
  3922. }
  3923. };
  3924. </script>
  3925. <style scoped>
  3926. .a {
  3927. .el-col-2 {
  3928. width: 8.33333%;
  3929. margin-bottom: 20px;
  3930. }
  3931. .result {
  3932. .el-form-item__label {
  3933. width: 120px;
  3934. }
  3935. }
  3936. }
  3937. .row {
  3938. margin-bottom: 10px;
  3939. }
  3940. </style>
  3941. <style lang="scss">
  3942. .machineClass {
  3943. font-size: 14px;
  3944. }
  3945. </style>