QualityForm.vue 116KB

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