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

WaterFormList.vue 55KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427
  1. <template>
  2. <div id="user-form">
  3. <el-row class="c">
  4. <el-col :span="12">
  5. <span class="machineClass">日期查询:</span>
  6. <el-date-picker
  7. v-model="form.start_time"
  8. @change="changeStartime"
  9. prefix-icon="none"
  10. type="date"
  11. placeholder="请选择"
  12. format="yyyy-MM-dd"
  13. value-format="yyyy-MM-dd"
  14. style="width:130px"
  15. ></el-date-picker
  16. >-
  17. <el-date-picker
  18. @change="changeEndtime"
  19. v-model="form.end_time"
  20. prefix-icon="none"
  21. type="date"
  22. placeholder="请选择"
  23. format="yyyy-MM-dd"
  24. value-format="yyyy-MM-dd"
  25. style="width:130px"
  26. ></el-date-picker>
  27. </el-col>
  28. </el-row>
  29. <el-row :span="24" style="display: flex;align-items: center;">
  30. <el-col :span="2">
  31. <el-checkbox
  32. :indeterminate="isIndeterminate"
  33. v-model="checkAllStatus"
  34. @change="changeCheck"
  35. >全选</el-checkbox
  36. >
  37. </el-col>
  38. <el-col :span="3">
  39. <el-button size="small" @click="BatchDelete">批量删除</el-button>
  40. </el-col>
  41. <el-col :span="6">
  42. <el-button type="primary" @click="exportlist">导出</el-button>
  43. <el-button type="primary" @click="printCard">打印</el-button>
  44. </el-col>
  45. </el-row>
  46. <el-row>
  47. <el-table
  48. ref="multipleTable"
  49. @selection-change="handleSelectionChange"
  50. :row-style="{ color: '#303133' }"
  51. :header-cell-style="{
  52. backgroundColor: 'rgb(245, 247, 250)',
  53. color: '#606266'
  54. }"
  55. :data="tableData"
  56. border
  57. fit
  58. highlight-current-row
  59. style="width: 100%;margin-top: 10px;"
  60. >
  61. <el-table-column
  62. align="center"
  63. type="selection"
  64. width="55"
  65. ></el-table-column>
  66. <el-table-column label="序号" align="center" width="100">
  67. <template slot-scope="scope">
  68. {{scope.$index +1}}
  69. </template>
  70. </el-table-column>
  71. <el-table-column label="日期" align="center" width="100">
  72. <template slot-scope="scope">
  73. {{getTime(scope.row.record_date) }}
  74. </template>
  75. </el-table-column>
  76. <el-table-column label="原水参数" align="center" min-width="110px">
  77. <el-table-column label="原水电导度" align="center" min-width="110px">
  78. <template slot-scope="scope">
  79. {{ scope.row.water_conductivity?scope.row.water_conductivity:"" }}
  80. </template>
  81. </el-table-column>
  82. <el-table-column label="原水压力" align="center" min-width="110px">
  83. <template slot-scope="scope">
  84. {{scope.row.water_pressure?scope.row.water_pressure:""}}
  85. </template>
  86. </el-table-column>
  87. <el-table-column label="温度" align="center" min-width="110px">
  88. <template slot-scope="scope">
  89. {{scope.row.temperature?scope.row.temperature:"" }}
  90. </template>
  91. </el-table-column>
  92. <el-table-column label="加压泵" align="center" min-width="110px">
  93. <template slot-scope="scope">
  94. <span v-if="scope.row.force_pump_status == 1">正常</span>
  95. <span v-if="scope.row.force_pump_status == 2">故障</span>
  96. </template>
  97. </el-table-column>
  98. </el-table-column>
  99. <el-table-column label="一级反渗" align="center" min-width="110px">
  100. <el-table-column label="产水电导度" align="center" min-width="110px">
  101. <template slot-scope="scope">
  102. {{scope.row.first_production_of_water_conductivity?scope.row.first_production_of_water_conductivity:"" }}
  103. </template>
  104. </el-table-column>
  105. <el-table-column label="产水量" align="center" min-width="110px">
  106. <template slot-scope="scope">
  107. {{scope.row.first_water_yield?scope.row.first_water_yield:"" }}
  108. </template>
  109. </el-table-column>
  110. </el-table-column>
  111. <el-table-column label="二级反渗" align="center" min-width="110px">
  112. <el-table-column label="产水电导度" align="center" min-width="110px">
  113. <template slot-scope="scope">
  114. {{ scope.row.last_production_of_water_conductivity?scope.row.last_production_of_water_conductivity:"" }}
  115. </template>
  116. </el-table-column>
  117. <el-table-column label="产水量" align="center" min-width="110px">
  118. <template slot-scope="scope">
  119. {{ scope.row.last_water_yield?scope.row.last_water_yield:"" }}
  120. </template>
  121. </el-table-column>
  122. </el-table-column>
  123. <el-table-column label="碳罐(MPa)" align="center" min-width="110px">
  124. <template slot-scope="scope">
  125. {{scope.row.carbon_tank?scope.row.carbon_tank:"" }}
  126. </template>
  127. </el-table-column>
  128. <el-table-column label="砂罐(MPa)" align="center" min-width="110px">
  129. <template slot-scope="scope">
  130. {{ scope.row.snd_tank?scope.row.snd_tank:"" }}
  131. </template>
  132. </el-table-column>
  133. <el-table-column label="树脂罐(MPa)" align="center" min-width="110px">
  134. <template slot-scope="scope">
  135. {{ scope.row.resin_tank?scope.row.resin_tank:"" }}
  136. </template>
  137. </el-table-column>
  138. <el-table-column label="精密过滤器(MPa)" align="center" min-width="110px">
  139. <template slot-scope="scope">
  140. {{ scope.row.ultrafilter?scope.row.ultrafilter:"" }}
  141. </template>
  142. </el-table-column>
  143. <el-table-column label="水质监测" align="center" min-width="110px">
  144. <el-table-column label="硬度" align="center" min-width="110px">
  145. <template slot-scope="scope">
  146. {{ scope.row.hardness_monitoring?scope.row.hardness_monitoring:0 }}
  147. </template>
  148. </el-table-column>
  149. <el-table-column label="总氯" align="center" min-width="110px">
  150. <template slot-scope="scope">
  151. {{ scope.row.total_chlorine_detection?scope.row.total_chlorine_detection:"" }}
  152. </template>
  153. </el-table-column>
  154. <el-table-column label="PH值" align="center" min-width="110px">
  155. <template slot-scope="scope">
  156. {{ scope.row.ph_detection?scope.row.ph_detection:"" }}
  157. </template>
  158. </el-table-column>
  159. <el-table-column label="过氧乙酸(mg/h)" align="center" min-width="110px">
  160. <template slot-scope="scope">
  161. {{ scope.row.concentration_of_peroxyacetic_acid?scope.row.concentration_of_peroxyacetic_acid:"" }}
  162. </template>
  163. </el-table-column>
  164. </el-table-column>
  165. <el-table-column label="消毒" align="center" min-width="110px">
  166. <el-table-column label="反渗膜消毒" align="center" min-width="110px">
  167. <template slot-scope="scope">
  168. <span v-if="scope.row.reverse_osmosis_membrane_disinfection == 1">√</span>
  169. <span v-if="scope.row.reverse_osmosis_membrane_disinfection == 2">×</span>
  170. </template>
  171. </el-table-column>
  172. <el-table-column label="输水管道消毒" align="center" min-width="110px">
  173. <template slot-scope="scope">
  174. <span v-if="scope.row.disinfection_of_water_pipeline == 1">√</span>
  175. <span v-if="scope.row.disinfection_of_water_pipeline == 2">×</span>
  176. </template>
  177. </el-table-column>
  178. </el-table-column>
  179. <el-table-column label="过滤器更换" align="center" min-width="110px">
  180. <template slot-scope="scope">
  181. {{scope.row.filter_replacement?scope.row.filter_replacement:""}}
  182. </template>
  183. </el-table-column>
  184. <el-table-column label="记录人" align="center" min-width="110px">
  185. <template slot-scope="scope">
  186. {{ getDocName(scope.row.admin_user_id) }}
  187. </template>
  188. </el-table-column>
  189. <el-table-column label="操作" align="center" fixed="right" min-width="150px">
  190. <template slot-scope="scope">
  191. <el-tooltip
  192. class="item"
  193. effect="dark"
  194. content="编辑"
  195. placement="top"
  196. >
  197. <el-button
  198. size="mini"
  199. type="primary"
  200. icon="el-icon-edit-outline"
  201. @click="
  202. EditWater(scope.row.id,scope.$index)
  203. "
  204. ></el-button>
  205. </el-tooltip>
  206. <el-tooltip
  207. class="item"
  208. effect="dark"
  209. content="删除"
  210. placement="top"
  211. >
  212. <el-button
  213. size="mini"
  214. type="danger"
  215. icon="el-icon-delete"
  216. @click="DeleteWater(scope.row.id, scope.$index)"
  217. ></el-button>
  218. </el-tooltip>
  219. </template>
  220. </el-table-column>
  221. </el-table>
  222. <el-pagination
  223. @size-change="handleSizeChange"
  224. @current-change="handleCurrentChange"
  225. :page-sizes="[10, 20, 30,50,100,200,500,1000,2000,5000,10000]"
  226. :page-size="10"
  227. background
  228. style="margin-top:20px;float: right"
  229. layout="total, sizes, prev, pager, next, jumper"
  230. :total="total"
  231. ></el-pagination>
  232. </el-row>
  233. <div>
  234. <el-dialog
  235. title="编辑"
  236. :visible.sync="dialogVisible"
  237. width="60%"
  238. >
  239. <span>
  240. <el-form ref="form" :rules="rules" :model="form">
  241. <el-row>
  242. <el-col>
  243. <el-form-item label="日期:" required prop="record_date" class="st">
  244. <el-date-picker
  245. v-model="form.record_date"
  246. prefix-icon="none"
  247. type="date"
  248. placeholder="请选择"
  249. format="yyyy-MM-dd"
  250. value-format="yyyy-MM-dd"
  251. style="width:150px">
  252. </el-date-picker>
  253. </el-form-item>
  254. </el-col>
  255. </el-row>
  256. <el-row>
  257. <el-col>
  258. <el-form-item label="设备运行状态:" class="st">
  259. <el-radio v-model="form.machine_status" label="1">正常</el-radio>
  260. <el-radio v-model="form.machine_status" label="2">故障</el-radio>
  261. </el-form-item>
  262. </el-col>
  263. </el-row>
  264. <el-row>
  265. <el-col>
  266. <el-form-item label="故障描述:" class="st">
  267. <el-input type="textarea" v-model="form.fault_description" style="width:600px"></el-input>
  268. </el-form-item>
  269. </el-col>
  270. </el-row>
  271. <el-row>
  272. <span>原水参数</span>
  273. </el-row>
  274. <el-row>
  275. <el-col :span="8">
  276. <el-form-item label="原水电导度(μs/cm):" class="st" label-width="100px">
  277. <el-input v-model="form.water_conductivity" style="width:100px" type="number"></el-input>
  278. </el-form-item>
  279. </el-col>
  280. <el-col :span="8">
  281. <el-form-item label="原水压力(Mpa):" class="st">
  282. <el-input v-model="form.water_pressure" style="width:100px" type="number"></el-input>
  283. </el-form-item>
  284. </el-col>
  285. <el-col :span="8">
  286. <el-form-item label="温度:" class="st">
  287. <el-input v-model="form.temperature" style="width:100px" type="number"></el-input>
  288. </el-form-item>
  289. </el-col>
  290. </el-row>
  291. <el-row>
  292. <el-col :span="24">
  293. <el-form-item label="加压泵:" class="st">
  294. <el-radio v-model="form.force_pump_status" label="1">正常</el-radio>
  295. <el-radio v-model="form.force_pump_status" label="2">故障</el-radio>
  296. </el-form-item>
  297. </el-col>
  298. </el-row>
  299. <el-row>
  300. <span>反渗一级</span>
  301. </el-row>
  302. <el-row>
  303. <el-col :span="8">
  304. <el-form-item label="RO膜进水:" class="st">
  305. <el-input v-model="form.first_ro_membrane_water" style="width:100px" type="number"></el-input>
  306. </el-form-item>
  307. </el-col>
  308. <el-col :span="8">
  309. <el-form-item label="RO膜浓水:" class="st">
  310. <el-input v-model="form.first_ro_film_thick_water" style="width:100px" type="number"></el-input>
  311. </el-form-item>
  312. </el-col>
  313. <el-col :span="8">
  314. <el-form-item label="RO膜出水:" class="st">
  315. <el-input v-model="form.first_ro_membrane_effluent" style="width:100px" type="number"></el-input>
  316. </el-form-item>
  317. </el-col>
  318. </el-row>
  319. <el-row>
  320. <el-col :span="8">
  321. <el-form-item label="产水电导度(μs/cm):" class="st">
  322. <el-input v-model="form.first_production_of_water_conductivity" style="width:100px" type="number"></el-input>
  323. </el-form-item>
  324. </el-col>
  325. <el-col :span="8">
  326. <el-form-item label="产水量(L/h):" class="st">
  327. <el-input v-model="form.first_water_yield" style="width:100px" type="number"></el-input>
  328. </el-form-item>
  329. </el-col>
  330. </el-row>
  331. <el-row>
  332. <span>反渗二级</span>
  333. </el-row>
  334. <el-row>
  335. <el-col :span="8">
  336. <el-form-item label="RO膜进水:" class="st">
  337. <el-input v-model="form.last_ro_membrane_water" style="width:100px" type="number"></el-input>
  338. </el-form-item>
  339. </el-col>
  340. <el-col :span="8">
  341. <el-form-item label="RO膜浓水:" class="st">
  342. <el-input v-model="form.last_ro_film_thick_water" style="width:100px" type="number"></el-input>
  343. </el-form-item>
  344. </el-col>
  345. <el-col :span="8">
  346. <el-form-item label="RO膜出水:" class="st">
  347. <el-input v-model="form.last_ro_membrane_effluent" style="width:100px" type="number"></el-input>
  348. </el-form-item>
  349. </el-col>
  350. </el-row>
  351. <el-row>
  352. <el-col :span="8">
  353. <el-form-item label="产水电导度(μs/cm):" class="st">
  354. <el-input v-model="form.last_production_of_water_conductivity" style="width:100px" type="number"></el-input>
  355. </el-form-item>
  356. </el-col>
  357. <el-col :span="8">
  358. <el-form-item label="产水量(L/h):" class="st">
  359. <el-input v-model="form.last_water_yield" style="width:100px" type="number"></el-input>
  360. </el-form-item>
  361. </el-col>
  362. </el-row>
  363. <el-row>
  364. <el-col :span="8">
  365. <el-form-item label="碳罐(MPa):" class="st">
  366. <el-input v-model="form.carbon_tank" style="width:100px" type="number"></el-input>
  367. </el-form-item>
  368. </el-col>
  369. <el-col :span="8">
  370. <el-form-item label="砂罐(MPa):" class="st">
  371. <el-input v-model="form.snd_tank" style="width:100px" type="number"></el-input>
  372. </el-form-item>
  373. </el-col>
  374. <el-col :span="8">
  375. <el-form-item label="树脂罐(MPa):" class="st">
  376. <el-input v-model="form.resin_tank" style="width:100px" type="number"></el-input>
  377. </el-form-item>
  378. </el-col>
  379. </el-row>
  380. <el-row>
  381. <el-col :span="8">
  382. <el-form-item label="精密过滤器(MPa):" class="st">
  383. <el-input v-model="form.ultrafilter" style="width:100px"></el-input>
  384. </el-form-item>
  385. </el-col>
  386. </el-row>
  387. <el-row>
  388. <span>水质监测</span>
  389. </el-row>
  390. <el-row>
  391. <el-col :span="8">
  392. <el-form-item label="硬度监测(mg/l):" label-width="100px">
  393. <el-input v-model="form.hardness_monitoring" style="width:100px" type="number"></el-input>
  394. </el-form-item>
  395. </el-col>
  396. <el-col :span="8">
  397. <el-form-item label="总氯检测(mg/l):" class="st">
  398. <el-input v-model="form.total_chlorine_detection" style="width:100px" type="number"></el-input>
  399. </el-form-item>
  400. </el-col>
  401. <el-col :span="8">
  402. <el-form-item label="PH值检测:" class="st">
  403. <el-input v-model="form.ph_detection" style="width:100px" type="number"></el-input>
  404. </el-form-item>
  405. </el-col>
  406. </el-row>
  407. <el-row>
  408. <el-col :span="8">
  409. <el-form-item label="过氧乙酸浓度(mg/l):" class="st">
  410. <el-input v-model="form.concentration_of_peroxyacetic_acid" style="width:100px" type="number"></el-input>
  411. </el-form-item>
  412. </el-col>
  413. </el-row>
  414. <el-row>
  415. <el-col :span="8">
  416. <el-checkbox v-model="form.reverse_osmosis_membrane_disinfection">反渗膜消毒</el-checkbox>
  417. </el-col>
  418. <el-col :span="8">
  419. <el-form-item label="消毒方式:" class="st">
  420. <el-select style="width:135px" v-model="form.first_disinfection_method">
  421. <el-option
  422. v-for="item in this.disinfectionType"
  423. :key="item.id"
  424. :label="item.name"
  425. :value="item.id"
  426. ></el-option>
  427. </el-select>
  428. </el-form-item>
  429. </el-col>
  430. <el-col :span="8">
  431. <el-form-item label="时长(h):" class="st">
  432. <el-input v-model="form.first_disinfection_time" style="width:100px" type="number"></el-input>
  433. </el-form-item>
  434. </el-col>
  435. </el-row>
  436. <el-row>
  437. <el-col :span="8">
  438. <el-checkbox v-model="form.disinfection_of_water_pipeline">输水管道消毒</el-checkbox>
  439. </el-col>
  440. <el-col :span="8">
  441. <el-form-item label="消毒方式:" class="st">
  442. <el-select style="width:135px" v-model="form.last_disinfection_method">
  443. <el-option
  444. v-for="item in this.disinfectionType"
  445. :key="item.id"
  446. :label="item.name"
  447. :value="item.id"
  448. ></el-option>
  449. </el-select>
  450. </el-form-item>
  451. </el-col>
  452. <el-col :span="8">
  453. <el-form-item label="时长(h):" class="st">
  454. <el-input v-model="form.last_disinfection_time" style="width:100px" type="number"></el-input>
  455. </el-form-item>
  456. </el-col>
  457. </el-row>
  458. <el-row>
  459. <el-col :span="8">
  460. <el-form-item label="过滤器更换(只):" class="st">
  461. <el-input v-model="form.filter_replacement" style="width:100px" type="number"></el-input>
  462. </el-form-item>
  463. </el-col>
  464. <el-col :span="8">
  465. <el-form-item label="备注:" class="st">
  466. <el-input v-model="form.remark" style="width:100px"></el-input>
  467. </el-form-item>
  468. </el-col>
  469. </el-row>
  470. <el-row>
  471. <el-col :span="8">
  472. <el-form-item label="记录人:" class="st">
  473. <el-select style="width:135px" v-model="form.admin_user_id">
  474. <el-option
  475. v-for="item in this.nurseList"
  476. :key="item.admin_user_id"
  477. :label="item.user_name"
  478. :value="item.admin_user_id"
  479. ></el-option>
  480. </el-select>
  481. </el-form-item>
  482. </el-col>
  483. </el-row>
  484. </el-form>
  485. </span>
  486. <span slot="footer" class="dialog-footer">
  487. <el-button @click="dialogVisible = false">取 消</el-button>
  488. <el-button type="primary" @click="UpdateDilaysisWater('form')">确 定</el-button>
  489. </span>
  490. </el-dialog>
  491. <div hidden="hidden">
  492. <div id="print-card-info" v-show="hiddenShow">
  493. <div>
  494. <div class="print_main_content">
  495. <div class="order_title">水机使用记录清单</div>
  496. </div>
  497. <div>
  498. <div class="printClass">打印日期:{{ nowTime }}</div>
  499. <table
  500. border="1"
  501. style="width:100%"
  502. cellspacing="0"
  503. cellpadding="0"
  504. class="tableClass"
  505. >
  506. <tr>
  507. <td
  508. :rowspan="2"
  509. style="text-align:center;width:60px;font-size:15px;"
  510. >
  511. 日期
  512. </td>
  513. <td
  514. :colspan="4"
  515. style="text-align:center;width:60px;font-size:15px"
  516. >
  517. 原水参数
  518. </td>
  519. <td
  520. :colspan="2"
  521. style="text-align:center;width:60px;font-size:15px"
  522. >
  523. 一级反渗
  524. </td>
  525. <td
  526. :colspan="2"
  527. style="text-align:center;width:60px;font-size:15px"
  528. >
  529. 二级反渗
  530. </td>
  531. <td
  532. :rowspan="2"
  533. style="text-align:center;width:60px;font-size:15px"
  534. >
  535. 碳罐
  536. </td>
  537. <td
  538. :rowspan="2"
  539. style="text-align:center;width:60px;font-size:15px"
  540. >
  541. 砂罐
  542. </td>
  543. <td
  544. :rowspan="2"
  545. style="text-align:center;width:60px;font-size:15px"
  546. >
  547. 树脂罐
  548. </td>
  549. <td
  550. :rowspan="2"
  551. style="text-align:center;width:60px;font-size:15px"
  552. >
  553. 精密过滤器(MPa)
  554. </td>
  555. <td
  556. :colspan="4"
  557. style="text-align:center;width:60px;font-size:15px"
  558. >
  559. 水质监测
  560. </td>
  561. <td
  562. :colspan="2"
  563. style="text-align:center;width:60px;font-size:15px"
  564. >
  565. 消毒
  566. </td>
  567. <td
  568. :rowspan="2"
  569. style="text-align:center;width:60px;font-size:15px"
  570. >
  571. 过滤器更换
  572. </td>
  573. <td
  574. :rowspan="2"
  575. style="text-align:center;width:60px;font-size:15px"
  576. >
  577. 记录人
  578. </td>
  579. </tr>
  580. <tr>
  581. <td style="text-align:center;width:70px;font-size:15px">
  582. 原水电导度
  583. </td>
  584. <td style="text-align:center;width:50px;font-size:15px">
  585. 原水压力
  586. </td>
  587. <td style="text-align:center;width:70px;font-size:15px">
  588. 温度
  589. </td>
  590. <td style="text-align:center;width:95px;font-size:15px">
  591. 加压泵
  592. </td>
  593. <td style="text-align:center;width:70px;font-size:15px">
  594. 产水电导度
  595. </td>
  596. <td style="text-align:center;width:95px;font-size:15px">
  597. 产水量
  598. </td>
  599. <td style="text-align:center;width:70px;font-size:15px">
  600. 产水电导度
  601. </td>
  602. <td style="text-align:center;width:95px;font-size:15px">
  603. 产水量
  604. </td>
  605. <td style="text-align:center;width:70px;font-size:15px">
  606. 硬度(mg/l)
  607. </td>
  608. <td style="text-align:center;width:95px;font-size:15px">
  609. 总氯(mg/l)
  610. </td>
  611. <td style="text-align:center;width:70px;font-size:15px">
  612. PH值
  613. </td>
  614. <td style="text-align:center;width:95px;font-size:15px">
  615. 过氧乙酸(mg/l)
  616. </td>
  617. <td style="text-align:center;width:70px;font-size:15px">
  618. 反渗膜消毒
  619. </td>
  620. <td style="text-align:center;width:95px;font-size:15px">
  621. 输水管道消毒
  622. </td>
  623. </tr>
  624. <tr v-for="item in this.tableData" :key="item.id">
  625. <td style="text-align:center;font-size:15px;height:30px">
  626. {{getTime(item.record_date) }}
  627. </td>
  628. <td style="text-align:center;font-size:15px;height:30px">
  629. {{ item.water_conductivity }}
  630. </td>
  631. <td style="text-align:center;font-size:15px;height:30px">
  632. {{item.water_pressure}}
  633. </td>
  634. <td style="text-align:center;font-size:15px;height:30px">
  635. {{item.temperature}}
  636. </td>
  637. <td style="text-align:center;font-size:15px;height:30px">
  638. <span v-if="item.force_pump_status == 1">正常</span>
  639. <span v-if="item.force_pump_status == 2">故障</span>
  640. </td>
  641. <td style="text-align:center;font-size:15px;height:30px">
  642. {{item.first_production_of_water_conductivity }}
  643. </td>
  644. <td style="text-align:center;font-size:15px;height:30px">
  645. {{item.first_water_yield }}
  646. </td>
  647. <td style="text-align:center;font-size:15px;height:30px">
  648. {{ item.last_production_of_water_conductivity }}
  649. </td>
  650. <td style="text-align:center;font-size:15px;height:30px">
  651. {{item.last_water_yield }}
  652. </td>
  653. <td
  654. style="text-align:center;width:60px;font-size:15px"
  655. >
  656. {{item.carbon_tank }}
  657. </td>
  658. <td
  659. style="text-align:center;width:60px;font-size:15px"
  660. >
  661. {{item.snd_tank }}
  662. </td>
  663. <td
  664. style="text-align:center;width:60px;font-size:15px"
  665. >
  666. {{item.resin_tank }}
  667. </td>
  668. <td
  669. style="text-align:center;width:60px;font-size:15px"
  670. >
  671. {{ item.ultrafilter }}
  672. </td>
  673. <td
  674. style="text-align:center;width:60px;font-size:15px"
  675. >
  676. {{ item.hardness_monitoring?item.hardness_monitoring:0 }}
  677. </td>
  678. <td
  679. style="text-align:center;width:60px;font-size:15px"
  680. >
  681. {{ item.total_chlorine_detection }}
  682. </td>
  683. <td
  684. style="text-align:center;width:60px;font-size:15px"
  685. >
  686. {{ item.ph_detection }}
  687. </td>
  688. <td
  689. style="text-align:center;width:60px;font-size:15px"
  690. >
  691. {{ item.concentration_of_peroxyacetic_acid }}
  692. </td>
  693. <td
  694. style="text-align:center;width:60px;font-size:15px"
  695. >
  696. <span v-if="item.reverse_osmosis_membrane_disinfection == 1">√</span>
  697. <span v-if="item.reverse_osmosis_membrane_disinfection == 2">×</span>
  698. </td>
  699. <td
  700. style="text-align:center;width:60px;font-size:15px"
  701. >
  702. <span v-if="item.disinfection_of_water_pipeline == 1">√</span>
  703. <span v-if="item.disinfection_of_water_pipeline == 2">×</span>
  704. </td>
  705. <td
  706. style="text-align:center;width:60px;font-size:15px"
  707. >
  708. {{item.filter_replacement}}
  709. </td>
  710. <td style="text-align:center;width:70px;font-size:15px">
  711. <!-- {{ getDocName(item.admin_user_id) }} -->
  712. <span v-if="setAdminUserES(item.admin_user_id?item.admin_user_id:item.admin_user_id) == ''">
  713. {{getDocName(item.admin_user_id)}}
  714. </span>
  715. <span v-else>
  716. <img style="height:30px;" :src="setAdminUserES(item.admin_user_id?item.admin_user_id:item.admin_user_id)" alt="" srcset="">
  717. </span>
  718. </td>
  719. </tr>
  720. </table>
  721. </div>
  722. </div>
  723. </div>
  724. </div>
  725. </div>
  726. </div>
  727. </template>
  728. <script>
  729. import { uParseTime } from "@/utils/tools";
  730. import print from "print-js";
  731. const moment = require("moment");
  732. import {getWaterFormList,DeleteWater,getDialysisWaterDetail,UpdateDilaysisWater,DeleteBatchDialyisWater} from "@/api/manage";
  733. export default {
  734. name: "WaterFormList",
  735. props: {
  736. equimentid: Number
  737. },
  738. data(){
  739. return {
  740. nowTime: moment(new Date()).format("YYYY-MM-DD HH:MM:SS"),
  741. tableData:[],
  742. total:0,
  743. adminRole:[],
  744. dialogVisible:false,
  745. form:{
  746. id:0,
  747. start_time:"",
  748. end_time:"",
  749. limit:10,
  750. page:1,
  751. record_date: "", // 日期
  752. machine_status:"",//设备运行状态
  753. fault_description:"",//故障描述
  754. water_conductivity:"",//原水电导度
  755. water_pressure:"",//原水压力
  756. temperature:"",//温度
  757. force_pump_status:"",//加压泵
  758. first_ro_membrane_water:"",//ro膜进水
  759. first_ro_film_thick_water:"",//RO膜浓水
  760. first_ro_membrane_effluent:"",//RO膜出水
  761. first_production_of_water_conductivity:"",//产水电导度
  762. first_water_yield:"",//产水量
  763. last_ro_membrane_water:"",//ro膜进水
  764. last_ro_film_thick_water:"",//ro膜进水
  765. last_ro_membrane_effluent:"",
  766. last_production_of_water_conductivity:"",//产水电导度
  767. last_water_yield:"",//产水量
  768. carbon_tank:"",//碳罐
  769. snd_tank:"",//砂罐,
  770. resin_tank:"",//树脂罐
  771. ultrafilter:"",//精密过滤器
  772. hardness_monitoring:"",//硬度监测
  773. total_chlorine_detection:"",//总录检测,
  774. ph_detection:"",//PH值检测,
  775. concentration_of_peroxyacetic_acid:"",//过氧乙酸浓度,
  776. reverse_osmosis_membrane_disinfection:"",//反渗膜消毒
  777. disinfection_of_water_pipeline:"",//输水管道消毒
  778. first_disinfection_method:"",//消毒方式
  779. last_disinfection_method:"",//消毒方式
  780. first_disinfection_time:"",//消毒时长
  781. last_disinfection_time:"",//消毒时长
  782. remark:"",//备注
  783. filter_replacement:"",//过滤器更换
  784. admin_user_id:"",//记录人
  785. },
  786. machineType:[
  787. {id:0,name:"全部"},
  788. {id:1,name:"正常"},
  789. {id:2,name:"故障"},
  790. ],
  791. forcePumpList:[
  792. {id:0,name:"全部"},
  793. {id:1,name:"正常"},
  794. {id:2,name:"故障"},
  795. ],
  796. disinfectionType:[
  797. { id: 0, name: "请选择" },
  798. { id: 1, name: "热消毒" },
  799. { id: 2, name: "化学消毒" }
  800. ],
  801. checked:"",
  802. rules: {
  803. admin_user_id: [{ required: true, message: '请选择记录人' }],
  804. },
  805. nurseList:[],
  806. selectCulture: [],
  807. hiddenShow:false,
  808. operators: [],
  809. operatorMaps:{},
  810. }
  811. },
  812. methods:{
  813. changeStartime(){
  814. this.tableData = []
  815. this.getlist()
  816. },
  817. changeEndtime(){
  818. this.tableData = []
  819. this.getlist()
  820. },
  821. getlist(){
  822. var params = {
  823. start_time:this.form.start_time,
  824. end_time:this.form.end_time,
  825. equitment_id:this.equimentid,
  826. limit:this.form.limit,
  827. page:this.form.page,
  828. }
  829. // console.log("param23233232wo",params)
  830. getWaterFormList(params).then(response=>{
  831. if(response.data.state == 1){
  832. var list = response.data.data.list
  833. this.tableData = list
  834. var total = response.data.data.total
  835. this.total = total
  836. this.adminRole = response.data.data.adminRole
  837. this.operators = response.data.data.operators
  838. if (this.operators.length > 0) {
  839. var operatorsLen = this.operators.length
  840. for (var index = 0; index < operatorsLen; index++) {
  841. this.$set(
  842. this.operatorMaps,
  843. this.operators[index].id,
  844. this.operators[index]
  845. )
  846. }
  847. }
  848. }
  849. })
  850. },
  851. handleSelectionChange(val){
  852. this.selectCulture = val
  853. },
  854. handleCurrentChange(page){
  855. this.form.page= page
  856. this.getlist()
  857. },
  858. handleSizeChange(limit){
  859. this.form.limit = limit
  860. this.getlist()
  861. },
  862. BatchDelete() {
  863. if (this.selectCulture.length == 0) {
  864. this.$message.error("请选择要删除的信息");
  865. return false;
  866. }
  867. this.$confirm(
  868. "确认要删除所选记录吗? <br>删除后,该信息将无法恢复",
  869. "删除提示",
  870. {
  871. dangerouslyUseHTMLString: true,
  872. confirmButtonText: "确定",
  873. cancelButtonText: "取消",
  874. type: "warning"
  875. }
  876. ).then(() => {
  877. var ids = [];
  878. var idMap = {};
  879. for (const index in this.selectCulture) {
  880. ids.push(this.selectCulture[index].id);
  881. idMap[this.selectCulture[index].id] = this.selectCulture[index].id;
  882. }
  883. DeleteBatchDialyisWater({ ids: ids }).then(response => {
  884. if (response.data.state === 1) {
  885. var msg = response.data.data.msg;
  886. var planDataLength = this.tableData.length;
  887. for (let index = planDataLength - 1; index >= 0; index--) {
  888. if (this.tableData[index].id in idMap) {
  889. this.tableData.splice(index, 1);
  890. }
  891. }
  892. this.$message.success("删除成功");
  893. }
  894. });
  895. });
  896. },
  897. printCard() {
  898. this.hiddenShow = true;
  899. var ptime = Math.round(new Date().getTime() / 1000);
  900. this.print_time = uParseTime(ptime, "{y}年{m}月{d}日");
  901. const style =
  902. "@media print { .print_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 20px 0;font-size:15px } .print_main_content .order_title { text-align: center; font-size: 15px; line-height: 50px;} .print_main_content table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px;font-size:15px } .print_main_content table tbody tr td { border: 1px solid; text-align: center; padding: 10px 8px;font-size:15px } .td_proj_title { font-size: 15px; line-height: 25px;} .td_proj_content { font-size: 15px; line-height: 25px; } .td_align_left { text-align: left; } .print_footnote_panel { font-size: 15px; line-height: 40px; } .print_footnote_panel .proj { display: inline-block; width: 49%; } .print_footnote_panel .proj}";
  903. setTimeout(() => {
  904. printJS({
  905. printable: "print-card-info",
  906. type: "html",
  907. style: style,
  908. scanStyles: false
  909. });
  910. }, 1);
  911. },
  912. changeCheck(){
  913. },
  914. isIndeterminate(){
  915. },
  916. checkAllStatus(){
  917. },
  918. getTime(time) {
  919. return uParseTime(time, "{y}-{m}-{d}");
  920. },
  921. getDocName(admin_user_id){
  922. var admin_name =""
  923. for(let i=0;i<this.adminRole.length;i++){
  924. if(admin_user_id == this.adminRole[i].admin_user_id){
  925. admin_name = this.adminRole[i].user_name
  926. }
  927. }
  928. return admin_name
  929. },
  930. DeleteWater(id,index) {
  931. this.$confirm(
  932. '确认要删除所选记录吗? <br>删除后,信息将无法恢复',
  933. '删除提示',
  934. {
  935. dangerouslyUseHTMLString: true,
  936. confirmButtonText: '确定',
  937. cancelButtonText: '取消',
  938. type: 'warning'
  939. }
  940. ).then(() => {
  941. DeleteWater(id,index).then(response => {
  942. if (response.data.state == 1) {
  943. this.$message.success('删除成功')
  944. this.tableData.splice(index,1)
  945. } else {
  946. this.$message.error('删除失败')
  947. }
  948. })
  949. .catch(e => {})
  950. })
  951. .catch(() => {
  952. return false
  953. })
  954. },
  955. EditWater(id){
  956. getDialysisWaterDetail(id).then(response=>{
  957. if(response.data.state == 1){
  958. var detail = response.data.data.detail
  959. this.form.id = detail.id
  960. this.form.record_date = this.getTime(detail.record_date)
  961. this.form.machine_status = detail.machine_status.toString()
  962. this.form.fault_description = detail.fault_description?detail.fault_description:""
  963. this.form.water_pressure= detail.water_pressure? detail.water_pressure:""
  964. this.form.water_conductivity = detail.water_conductivity?detail.water_conductivity:""
  965. this.form.temperature = detail.temperature?detail.temperature:""
  966. this.form.force_pump_status = detail.force_pump_status.toString()
  967. this.form.first_ro_membrane_water = detail.first_ro_membrane_water?detail.first_ro_film_thick_water:""
  968. this.form.first_ro_film_thick_water = detail.first_ro_film_thick_water?detail.first_ro_film_thick_water:""
  969. this.form.first_ro_membrane_effluent = detail.first_ro_membrane_effluent?detail.first_ro_membrane_effluent:""
  970. this.form.first_production_of_water_conductivity = detail.first_production_of_water_conductivity?detail.first_production_of_water_conductivity:""
  971. this.form.first_water_yield = detail.first_water_yield?detail.first_water_yield:""
  972. this.form.last_ro_membrane_water = detail.last_ro_membrane_water?detail.last_ro_membrane_water:""
  973. this.form.last_ro_membrane_effluent = detail.last_ro_membrane_effluent?detail.last_ro_membrane_effluent:""
  974. this.form.last_ro_film_thick_water = detail.last_ro_film_thick_water?detail.last_ro_film_thick_water:""
  975. this.form.last_production_of_water_conductivity = detail.last_production_of_water_conductivity? detail.last_production_of_water_conductivity:""
  976. this.form.last_water_yield= detail.last_water_yield?detail.last_water_yield:""
  977. this.form.carbon_tank = detail.carbon_tank?detail.carbon_tank:""
  978. this.form.snd_tank = detail.snd_tank?detail.snd_tank:""
  979. this.form.resin_tank = detail.resin_tank?detail.resin_tank:""
  980. this.form.ultrafilter = detail.ultrafilter?detail.ultrafilter:""
  981. this.form.hardness_monitoring = detail.hardness_monitoring?detail.hardness_monitoring:0
  982. this.form.total_chlorine_detection= detail.total_chlorine_detection?detail.total_chlorine_detection:""
  983. this.form.ph_detection = detail.ph_detection?detail.ph_detection:""
  984. this.form.concentration_of_peroxyacetic_acid = detail.concentration_of_peroxyacetic_acid?detail.concentration_of_peroxyacetic_acid:""
  985. if(detail.reverse_osmosis_membrane_disinfection == 1){
  986. this.form.reverse_osmosis_membrane_disinfection = true
  987. }else{
  988. this.form.reverse_osmosis_membrane_disinfection =false
  989. }
  990. if(detail.disinfection_of_water_pipeline == 1){
  991. this.form.disinfection_of_water_pipeline = true
  992. }else{
  993. this.form.disinfection_of_water_pipeline = false
  994. }
  995. this.form.first_disinfection_method = detail.first_disinfection_method?detail.first_disinfection_method:""
  996. this.form.last_disinfection_method = detail.last_disinfection_method?detail.last_disinfection_method:""
  997. this.form.first_disinfection_time = detail.first_disinfection_time?detail.first_disinfection_time:""
  998. this.form.last_disinfection_time = detail.last_disinfection_time?detail.last_disinfection_time:""
  999. this.form.remark = detail.remark? detail.remark:""
  1000. this.form.filter_replacement = detail.filter_replacement?detail.filter_replacement:""
  1001. this.form.admin_user_id = detail.admin_user_id
  1002. var adminRole = response.data.data.adminRole
  1003. for(let i=0;i<adminRole.length;i++){
  1004. if(adminRole[i].user_type == 3){
  1005. this.nurseList.push(adminRole[i])
  1006. }
  1007. }
  1008. this.adminRole = adminRole
  1009. this.dialogVisible = true
  1010. }
  1011. })
  1012. },
  1013. UpdateDilaysisWater(formName){
  1014. console.log("form",this.form,this.equimentid)
  1015. if(this.form.force_pump_status!=""){
  1016. this.form.force_pump_status = parseInt(this.form.force_pump_status)
  1017. }
  1018. if(this.form.machine_status!=""){
  1019. this.form.machine_status = parseInt(this.form.machine_status)
  1020. }
  1021. if(this.form.reverse_osmosis_membrane_disinfection == true){
  1022. this.form.reverse_osmosis_membrane_disinfection = 1
  1023. }
  1024. if(this.form.reverse_osmosis_membrane_disinfection == false){
  1025. this.form.reverse_osmosis_membrane_disinfection = 2
  1026. }
  1027. if(this.form.disinfection_of_water_pipeline == true){
  1028. this.form.disinfection_of_water_pipeline = 1
  1029. }
  1030. if(this.form.disinfection_of_water_pipeline == false){
  1031. this.form.disinfection_of_water_pipeline = 2
  1032. }
  1033. if(this.form.water_conductivity!=""){
  1034. this.form.water_conductivity = parseFloat(this.form.water_conductivity)== NaN ? 0:parseFloat(this.form.water_conductivity)
  1035. }else{
  1036. this.form.water_conductivity = 0
  1037. }
  1038. if(this.form.water_pressure!=""){
  1039. this.form.water_pressure = parseFloat(this.form.water_pressure) == NaN ? 0:parseFloat(this.form.water_pressure)
  1040. }else{
  1041. this.form.water_pressure= 0
  1042. }
  1043. if(this.form.temperature!=""){
  1044. this.form.temperature = parseFloat(this.form.temperature)== NaN ? 0:parseFloat(this.form.temperature)
  1045. }else{
  1046. this.form.temperature = 0
  1047. }
  1048. if(this.form.force_pump_status!=""){
  1049. this.form.force_pump_status = parseFloat(this.form.force_pump_status) == NaN ? 0: parseFloat(this.form.force_pump_status)
  1050. }else{
  1051. this.form.force_pump_status = 0
  1052. }
  1053. if(this.form.first_ro_membrane_water!=""){
  1054. this.form.first_ro_membrane_water = parseFloat(this.form.first_ro_membrane_water) == NaN?0:parseFloat(this.form.first_ro_membrane_water)
  1055. }else{
  1056. this.form.first_ro_membrane_water = 0
  1057. }
  1058. if(this.form.first_ro_film_thick_water!=""){
  1059. this.form.first_ro_film_thick_water = parseFloat(this.form.first_ro_film_thick_water) ==NaN?0:parseFloat(this.form.first_ro_film_thick_water)
  1060. }else{
  1061. this.form.first_ro_film_thick_water = 0
  1062. }
  1063. if(this.form.first_ro_membrane_effluent!=""){
  1064. this.form.first_ro_membrane_effluent =parseFloat(this.form.first_ro_membrane_effluent) == NaN?0:parseFloat(this.form.first_ro_membrane_effluent)
  1065. }else{
  1066. this.form.first_ro_membrane_effluent = 0
  1067. }
  1068. if(this.form.first_production_of_water_conductivity!=""){
  1069. this.form.first_production_of_water_conductivity = parseFloat(this.form.first_production_of_water_conductivity) == NaN?0: parseFloat(this.form.first_production_of_water_conductivity)
  1070. }else{
  1071. this.form.first_production_of_water_conductivity = 0
  1072. }
  1073. if(this.form.first_water_yield !=""){
  1074. this.form.first_water_yield = parseFloat(this.form.first_water_yield) == NaN?0:parseFloat(this.form.first_water_yield)
  1075. }else{
  1076. this.form.first_water_yield =0
  1077. }
  1078. if(this.form.last_ro_membrane_water!=""){
  1079. this.form.last_ro_membrane_water = parseFloat(this.form.last_ro_membrane_water) ==NaN?0:parseFloat(this.form.last_ro_membrane_water)
  1080. }else{
  1081. this.form.last_ro_membrane_water = 0
  1082. }
  1083. if(this.form.last_ro_membrane_effluent!=""){
  1084. this.form.last_ro_membrane_effluent = parseFloat(this.form.last_ro_membrane_effluent) == NaN?0:parseFloat(this.form.last_ro_membrane_effluent)
  1085. }else{
  1086. this.form.last_ro_membrane_effluent = 0
  1087. }
  1088. if(this.form.last_ro_film_thick_water!=""){
  1089. this.form.last_ro_film_thick_water = parseFloat(this.form.last_ro_film_thick_water) == NaN?0:parseFloat(this.form.last_ro_film_thick_water)
  1090. }else{
  1091. this.form.last_ro_film_thick_water = 0
  1092. }
  1093. if( this.form.last_production_of_water_conductivity!=""){
  1094. this.form.last_production_of_water_conductivity = parseFloat(this.form.last_production_of_water_conductivity) == NaN?0:parseFloat(this.form.last_production_of_water_conductivity)
  1095. }else{
  1096. this.form.last_production_of_water_conductivity =0
  1097. }
  1098. if(this.form.last_water_yield!=""){
  1099. this.form.last_water_yield = parseFloat(this.form.last_water_yield)==NaN?0: parseFloat(this.form.last_water_yield)
  1100. }else{
  1101. this.form.last_water_yield = 0
  1102. }
  1103. if(this.form.carbon_tank!=""){
  1104. this.form.carbon_tank = parseFloat(this.form.carbon_tank) == NaN?0:parseFloat(this.form.carbon_tank)
  1105. }else{
  1106. this.form.carbon_tank = 0
  1107. }
  1108. if( this.form.snd_tank!=""){
  1109. this.form.snd_tank = parseFloat(this.form.snd_tank) == NaN?0:parseFloat(this.form.snd_tank)
  1110. }else{
  1111. this.form.snd_tank = 0
  1112. }
  1113. if(this.form.resin_tank!=""){
  1114. this.form.resin_tank= parseFloat(this.form.resin_tank) ==NaN?0:parseFloat(this.form.resin_tank)
  1115. }else{
  1116. this.form.resin_tank= 0
  1117. }
  1118. if( this.form.ultrafilter!=""){
  1119. this.form.ultrafilter = parseFloat(this.form.ultrafilter)== NaN?0:parseFloat(this.form.ultrafilter)
  1120. }else{
  1121. this.form.ultrafilter = 0
  1122. }
  1123. if(this.form.hardness_monitoring !=""){
  1124. this.form.hardness_monitoring = parseFloat(this.form.hardness_monitoring) ==NaN?0: parseFloat(this.form.hardness_monitoring)
  1125. }else{
  1126. this.form.hardness_monitoring= 0
  1127. }
  1128. if( this.form.total_chlorine_detection!=""){
  1129. this.form.total_chlorine_detection = parseFloat(this.form.total_chlorine_detection)==NaN?0: parseFloat(this.form.total_chlorine_detection)
  1130. }else{
  1131. this.form.total_chlorine_detection = 0
  1132. }
  1133. if( this.form.ph_detection!=""){
  1134. this.form.ph_detection = parseFloat(this.form.ph_detection) == NaN?0:parseFloat(this.form.ph_detection)
  1135. }else{
  1136. this.form.ph_detection = 0
  1137. }
  1138. if(this.form.concentration_of_peroxyacetic_acid!="" ){
  1139. this.form.concentration_of_peroxyacetic_acid = parseFloat(this.form.concentration_of_peroxyacetic_acid) == NaN?0: parseFloat(this.form.concentration_of_peroxyacetic_acid)
  1140. }else{
  1141. this.form.concentration_of_peroxyacetic_acid = 0
  1142. }
  1143. if( this.form.reverse_osmosis_membrane_disinfection!=""){
  1144. this.form.reverse_osmosis_membrane_disinfection= parseFloat(this.form.reverse_osmosis_membrane_disinfection) == NaN?0:parseFloat(this.form.reverse_osmosis_membrane_disinfection)
  1145. }else{
  1146. this.form.reverse_osmosis_membrane_disinfection= 0
  1147. }
  1148. if(this.form.first_disinfection_method !=""){
  1149. this.form.first_disinfection_method = parseFloat(this.form.first_disinfection_method) == NaN?0:parseFloat(this.form.first_disinfection_method)
  1150. }else{
  1151. this.form.first_disinfection_method = 0
  1152. }
  1153. if(this.form.last_disinfection_method !=""){
  1154. this.form.last_disinfection_method = parseFloat(this.form.last_disinfection_method) == NaN?0:parseFloat(this.form.last_disinfection_method)
  1155. }else{
  1156. this.form.last_disinfection_method = 0
  1157. }
  1158. if(this.form.first_disinfection_time !=""){
  1159. this.form.first_disinfection_time = parseFloat(this.form.first_disinfection_time) == NaN?0:parseFloat(this.form.first_disinfection_time)
  1160. }else{
  1161. this.form.first_disinfection_time = 0
  1162. }
  1163. if( this.form.last_disinfection_time!=""){
  1164. this.form.last_disinfection_time = parseFloat(this.form.last_disinfection_time) == NaN?0:parseFloat(this.form.last_disinfection_time)
  1165. }else{
  1166. this.form.last_disinfection_time = 0
  1167. }
  1168. if(this.form.filter_replacement!=""){
  1169. this.form.filter_replacement = parseFloat(this.form.filter_replacement) == NaN?0:parseFloat(this.form.filter_replacement)
  1170. }else{
  1171. this.form.filter_replacement= 0
  1172. }
  1173. if( this.form.admin_user_id != ""){
  1174. this.form.admin_user_id = parseFloat(this.form.admin_user_id) == NaN?0:parseFloat(this.form.admin_user_id)
  1175. }else{
  1176. this.form.admin_user_id =0
  1177. }
  1178. if(this.form.disinfection_of_water_pipeline !=""){
  1179. this.form.disinfection_of_water_pipeline = parseFloat(this.form.disinfection_of_water_pipeline) == NaN?0:parseFloat(this.form.disinfection_of_water_pipeline)
  1180. }else{
  1181. this.form.disinfection_of_water_pipeline =0
  1182. }
  1183. this.$refs[formName].validate((valid) => {
  1184. if (valid) {
  1185. UpdateDilaysisWater(this.form,this.equimentid).then(response=>{
  1186. if(response.data.state == 1){
  1187. var deviceWater = response.data.data.deviceWater
  1188. console.log("保存成功!",deviceWater)
  1189. this.$message.success("保存成功!")
  1190. this.dialogVisible = false
  1191. this.getlist()
  1192. }
  1193. })
  1194. }
  1195. })
  1196. },
  1197. exportlist: function() {
  1198. for(let i=0;i<this.tableData.length;i++){
  1199. this.tableData[i].index = i+1
  1200. this.tableData[i].record_date_str = this.getTime(this.tableData[i].record_date)
  1201. if(this.tableData[i].reverse_osmosis_membrane_disinfection == 1){
  1202. this.tableData[i].reverse_osmosis_membrane_disinfection_name = "√"
  1203. }
  1204. if(this.tableData[i].disinfection_of_water_pipeline == 1){
  1205. this.tableData[i].disinfection_of_water_pipeline_name = "√"
  1206. }
  1207. this.tableData[i].user_name = this.getDocName(this.tableData[i].admin_user_id)
  1208. }
  1209. import('@/vendor/Export2Excel').then(excel => {
  1210. const multiHeader = [['序号', '日期', '原水参数' , '', '','', '一级反渗', '', '二级反渗' , '', '碳罐(MPa)','砂罐(MPa)', '树脂罐(MPa)','精密过滤器(MPa)','水质监测','','','','消毒','','过滤器更换','记录人' ]]
  1211. const header = ['', '', '原水电导度', '原水压力', '温度','加压泵', '产水电导度', '产水量', '产水电导度', '产水量', '','','','','硬度(mg/l)','总氯(mg/l)','PH值','过氧乙酸(mg/l)','反渗膜消毒','输水管道消毒','','',]
  1212. const merges = ['A1:A2', 'B1:B2', 'C1:F1','G1:H1','I1:J1','K1:K2','L1:L2','M1:M2','N1:N2','O1:R1','S1:T1','U1:U2','V1:V2']
  1213. const filterVal = ['index','record_date','water_conductivity','water_pressure','temperature','force_pump_status','first_ro_membrane_effluent','first_water_yield','last_production_of_water_conductivity','last_water_yield','carbon_tank','snd_tank','resin_tank','ultrafilter','hardness_monitoring','ph_detection','total_chlorine_detection','concentration_of_peroxyacetic_acid','reverse_osmosis_membrane_disinfection_name','disinfection_of_water_pipeline_name','filter_replacement','user_name']
  1214. const data = this.formatJson(filterVal, this.tableData)
  1215. const filename = '水处理机使用登记'
  1216. // console.log("rwwwwwwwwwww",this.tableData)
  1217. excel.export_json_to_excel({
  1218. multiHeader,
  1219. header,
  1220. merges,
  1221. data,
  1222. filename
  1223. })
  1224. })
  1225. },
  1226. formatJson(filterVal, jsonData) {
  1227. return jsonData.map(v => filterVal.map(j => v[j]));
  1228. },
  1229. setAdminUserES(id) {
  1230. if (id === 0) {
  1231. return ''
  1232. }
  1233. var user_name = ""
  1234. for(let i=0;i<this.operators.length;i++){
  1235. if(id == this.operators[i].admin_user_id){
  1236. user_name = this.operators[i].url
  1237. }
  1238. }
  1239. return user_name
  1240. },
  1241. },
  1242. created(){
  1243. this.getlist()
  1244. }
  1245. }
  1246. </script>
  1247. <style scoped>
  1248. .a {
  1249. /* .el-col-2 {
  1250. width: 8.33333%;
  1251. margin-bottom: 20px;
  1252. } */
  1253. }
  1254. .print_main_content {
  1255. background-color: white;
  1256. width: 960px;
  1257. margin: 0 auto;
  1258. padding: 0 0 20px 0;
  1259. }
  1260. .tableClass {
  1261. font-size: 10px;
  1262. font-weight: none;
  1263. }
  1264. .printClass {
  1265. width: 100%;
  1266. text-align: right;
  1267. }
  1268. </style>
  1269. <style lang="scss">
  1270. .machineClass {
  1271. font-size: 14px;
  1272. color: #606266;
  1273. }
  1274. .c {
  1275. margin-bottom: 10px;
  1276. .el-input--prefix .el-input__inner {
  1277. margin-left: 15px;
  1278. }
  1279. }
  1280. #user-form {
  1281. .el-dialog__footer {
  1282. text-align: right;
  1283. }
  1284. .el-input--prefix .el-input__inner {
  1285. padding-left: 15px;
  1286. }
  1287. .el-input--prefix .el-input__inner {
  1288. padding-right: 15px;
  1289. }
  1290. }
  1291. </style>