gasreport.vue 110 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234
  1. <template>
  2. <view class="gas-report" name="gasreport">
  3. <u-navbar title="瓦斯上报" :safeAreaInsetTop="true" leftIcon=""> </u-navbar>
  4. <view class="gas-content">
  5. <!-- 瓦斯上报列表 -->
  6. <view v-if="!isShowAdd && !isShowEdit">
  7. <view class="top-gas-list">
  8. <view class="search-box" @click="getChangeTimeTb">
  9. <text class="dialog-label">填报时间:</text>
  10. <u--input v-model="tbTime" placeholder="请选择填报时间" inputAlign="center"
  11. suffixIcon="arrow-right"></u--input>
  12. <u-datetime-picker :show="showCalendarTb" v-model="timeRan" mode="date" closeOnClickOverlay
  13. @confirm="confirmTb" @cancel="showCalendarTb = false" @change="changeTb"
  14. @close="showCalendarTb = false"></u-datetime-picker>
  15. </view>
  16. <u-button type="primary" size="small" style="margin: 2px 0px;" @click="getAdd">新增</u-button>
  17. </view>
  18. <view class="bot-gas-list">
  19. <view class="top-title">
  20. <view style="font-weight: bold;">瓦斯填报列表</view>
  21. </view>
  22. <view class="top-content" v-for="(item, index) in gasList" :key="index">
  23. <view class="content-title-gas">
  24. <text>
  25. {{ item.strInstallPos || '--' }}
  26. </text>
  27. <u-icon class="icon-gas-edit" name="edit-pen-fill" color="#0eb4fc" size="16"
  28. @click="getEdit(item)"></u-icon>
  29. <u-icon class="icon-gas-del" name="trash" color="#0eb4fc" size="16"
  30. @click="getDel(item)"></u-icon>
  31. </view>
  32. <view class="content-item-box">
  33. <view class="content-item">
  34. <view class="item-l">
  35. <view class="item-value">{{ item.timeEarly1 || '--' }}</view>
  36. <view class="item-label">早班测量时间一</view>
  37. </view>
  38. <view class="item-c"></view>
  39. <view class="item-r">
  40. <view class="item-value">{{ item.timeEarly2 || '--' }}</view>
  41. <view class="item-label">早班测量时间二</view>
  42. </view>
  43. </view>
  44. <view class="content-item">
  45. <view class="item-l">
  46. <view class="item-value">{{ item.timeNoon1 || '--' }}</view>
  47. <view class="item-label">午班测量时间一</view>
  48. </view>
  49. <view class="item-c"></view>
  50. <view class="item-r">
  51. <view class="item-value">{{ item.timeNoon2 || '--' }}</view>
  52. <view class="item-label">午班测量时间二</view>
  53. </view>
  54. </view>
  55. <view class="content-item">
  56. <view class="item-l">
  57. <view class="item-value">{{ item.timeNight1 || '--' }}</view>
  58. <view class="item-label">晚班测量时间一</view>
  59. </view>
  60. <view class="item-c"></view>
  61. <view class="item-r">
  62. <view class="item-value">{{ item.timeNight2 || '--' }}</view>
  63. <view class="item-label">晚班测量时间二</view>
  64. </view>
  65. </view>
  66. </view>
  67. </view>
  68. </view>
  69. </view>
  70. <!-- 新增弹窗 -->
  71. <view v-if="isShowAdd">
  72. <view class="top-dialog-area">
  73. <view class="dialog-item">
  74. <text class="dialog-label">班次:</text>
  75. <uni-data-select placeholder="请选择班次" align="center" :clear="true" v-model="formState.bc"
  76. :localdata="rangeBc" @change="changeBc"></uni-data-select>
  77. </view>
  78. <view class="dialog-item">
  79. <text class="dialog-label">煤层工作面:</text>
  80. <uni-data-select placeholder="请选择煤层工作面" align="center" :clear="true" v-model="formState.mcgzm"
  81. :localdata="rangeMcgzm" @change="changeMc"></uni-data-select>
  82. </view>
  83. <view class="dialog-item">
  84. <text class="dialog-label">检测地点:</text>
  85. <uni-data-select placeholder="请选择检测地点" align="center" :clear="true" v-model="formState.jcdd"
  86. :localdata="rangeJcdd" @change="changeJc"></uni-data-select>
  87. </view>
  88. <view class="dialog-item">
  89. <text class="dialog-label">检测次数:</text>
  90. <uni-data-select placeholder="请选择检测次数" align="center" :clear="true" v-model="formState.count"
  91. :localdata="rangeCount" @change="changeCount"></uni-data-select>
  92. </view>
  93. <view class="dialog-item" @click="getChangeTime">
  94. <text class="dialog-label">检测时间:</text>
  95. <u--input v-model="formState.time" placeholder="请选择检测时间" inputAlign="center"
  96. suffixIcon="arrow-right"></u--input>
  97. <u-datetime-picker :show="showCalendar" v-model="timeRan" mode="datetime" closeOnClickOverlay
  98. @confirm="showCalendar = false" @cancel="showCalendar = false" @change="change"
  99. @close="showCalendar = false"></u-datetime-picker>
  100. </view>
  101. <view class="dialog-item">
  102. <text class="dialog-label">填报日期:</text>
  103. <u--input inputAlign="center" v-model="formState.tbrq" placeholder="请选择填报日期"></u--input>
  104. </view>
  105. <view class="dialog-item">
  106. <text class="dialog-label">瓦斯检查工:</text>
  107. <u--input inputAlign="center" disabled v-model="formState.jcy" placeholder="请输入"></u--input>
  108. </view>
  109. </view>
  110. <view>
  111. <view class="center-dialog-area">
  112. <div class="dialog-title">气体监测数据</div>
  113. <view class="dialog-item">
  114. <text class="dialog-label">CH₄:</text>
  115. <u--input inputAlign="center" v-model="formState.ch4" placeholder="请输入"></u--input>
  116. </view>
  117. <view class="dialog-item">
  118. <text class="dialog-label">CO₂:</text>
  119. <u--input inputAlign="center" v-model="formState.co2"
  120. :placeholder="isRule ? '请输入' : '请输入偶数'" type="number" @blur="getBlurCO2"
  121. :placeholderStyle="isRule ? 'color:#c0c4cc' : 'color:#ff0000'"></u--input>
  122. </view>
  123. <view class="dialog-item">
  124. <text class="dialog-label">CO:</text>
  125. <u--input inputAlign="center" v-model="formState.co"
  126. :placeholder="isRule14 ? '请输入' : '最大可输入值为24'"
  127. :placeholderStyle="isRule14 ? 'color:#c0c4cc' : 'color:#ff0000'" type="number"
  128. @blur="getBlurCO"></u--input>
  129. </view>
  130. <view class="dialog-item">
  131. <text class="dialog-label">O₂:</text>
  132. <u--input inputAlign="center" v-model="formState.o2" placeholder="请输入"></u--input>
  133. </view>
  134. <view class="dialog-item">
  135. <text class="dialog-label">温度:</text>
  136. <u--input inputAlign="center" v-model="formState.temp" placeholder="请输入"></u--input>
  137. </view>
  138. </view>
  139. <view class="bottom-dialog-area">
  140. <div class="dialog-title">三对照数据</div>
  141. <view class="dialog-item">
  142. <text class="dialog-label">甲烷传感器:</text>
  143. <u--input inputAlign="center" v-model="formState.jw" placeholder="请输入"></u--input>
  144. </view>
  145. <view class="dialog-item">
  146. <text class="dialog-label">光瓦测量数据:</text>
  147. <u--input inputAlign="center" v-model="formState.gw"
  148. :placeholder="isRule1 ? '请输入' : '请输入偶数'" type="number" @blur="getBlur"
  149. :placeholderStyle="isRule1 ? 'color:#c0c4cc' : 'color:#ff0000'"></u--input>
  150. </view>
  151. <view class="dialog-item">
  152. <text class="dialog-label">便携仪测量数据:</text>
  153. <u--input inputAlign="center" v-model="formState.bxy" placeholder="请输入"></u--input>
  154. </view>
  155. </view>
  156. </view>
  157. <view class="dialog-btn">
  158. <u-button type="success" size="small" @click="getConfirm">保存</u-button>
  159. <u-button type="primary" size="small" @click="getCancel">取消</u-button>
  160. </view>
  161. </view>
  162. <!-- 编辑弹窗 -->
  163. <view v-if="isShowEdit">
  164. <view>
  165. <view class="center-dialog-area">
  166. <div class="dialog-title">早班第一次检测数据</div>
  167. <view class="dialog-item" @click="getChangeZb1">
  168. <text class="dialog-label">检测时间:</text>
  169. <u--input v-model="formStateEdit.timeEarly1" placeholder="请选择检测时间" inputAlign="center"
  170. suffixIcon="arrow-right"></u--input>
  171. <u-datetime-picker :show="showZb1" v-model="timeRan" mode="datetime" closeOnClickOverlay
  172. @confirm="showZb1 = false" @cancel="showZb1 = false" @change="changeZb1"
  173. @close="showZb1 = false"></u-datetime-picker>
  174. </view>
  175. <view class="dialog-item">
  176. <text class="dialog-label">瓦斯检查工:</text>
  177. <u--input inputAlign="center" disabled v-model="formStateEdit.checkPersonEarly"
  178. placeholder="请输入"></u--input>
  179. </view>
  180. <view class="dialog-item">
  181. <text class="dialog-label">CH₄:</text>
  182. <u--input inputAlign="center" v-model="formStateEdit.ch4Early1"
  183. placeholder="请输入"></u--input>
  184. </view>
  185. <view class="dialog-item">
  186. <text class="dialog-label">CO₂:</text>
  187. <u--input inputAlign="center" v-model="formStateEdit.co2Early1"
  188. :placeholder="isRule ? '请输入' : '请输入偶数'" type="number" @blur="getBlurFCo2"
  189. :placeholderStyle="isRule2 ? 'color:#c0c4cc' : 'color:#ff0000'"></u--input>
  190. </view>
  191. <view class="dialog-item">
  192. <text class="dialog-label">CO:</text>
  193. <u--input inputAlign="center" v-model="formStateEdit.coEarly1"
  194. :placeholder="isRule15 ? '请输入' : '最大可输入值为24'"
  195. :placeholderStyle="isRule15 ? 'color:#c0c4cc' : 'color:#ff0000'" type="number"
  196. @blur="getBlurCO1"></u--input>
  197. </view>
  198. <view class="dialog-item">
  199. <text class="dialog-label">O₂:</text>
  200. <u--input inputAlign="center" v-model="formStateEdit.o2Early1" placeholder="请输入"></u--input>
  201. </view>
  202. <view class="dialog-item">
  203. <text class="dialog-label">温度:</text>
  204. <u--input inputAlign="center" v-model="formStateEdit.tEarly1" placeholder="请输入"></u--input>
  205. </view>
  206. <view class="dialog-item">
  207. <text class="dialog-label">甲烷传感器:</text>
  208. <u--input inputAlign="center" v-model="formStateEdit.jwSdzEarly1"
  209. placeholder="请输入"></u--input>
  210. </view>
  211. <view class="dialog-item">
  212. <text class="dialog-label">光瓦测量数据:</text>
  213. <u--input inputAlign="center" v-model="formStateEdit.gwSdzEarly1"
  214. :placeholder="isRule ? '请输入' : '请输入偶数'" type="number" @blur="getBlurF"
  215. :placeholderStyle="isRule3 ? 'color:#c0c4cc' : 'color:#ff0000'"></u--input>
  216. </view>
  217. <view class="dialog-item">
  218. <text class="dialog-label">便携仪测量数据:</text>
  219. <u--input inputAlign="center" v-model="formStateEdit.bxySdzEarly1"
  220. placeholder="请输入"></u--input>
  221. </view>
  222. </view>
  223. <view class="center-dialog-area">
  224. <div class="dialog-title">早班第二次检测数据</div>
  225. <view class="dialog-item" @click="getChangeZb2">
  226. <text class="dialog-label">检测时间:</text>
  227. <u--input v-model="formStateEdit.timeEarly2" placeholder="请选择检测时间" inputAlign="center"
  228. suffixIcon="arrow-right"></u--input>
  229. <u-datetime-picker :show="showZb2" v-model="timeRan" mode="datetime" closeOnClickOverlay
  230. @confirm="showZb2 = false" @cancel="showZb2 = false" @change="changeZb2"
  231. @close="showZb2 = false"></u-datetime-picker>
  232. </view>
  233. <view class="dialog-item">
  234. <text class="dialog-label">瓦斯检查工:</text>
  235. <u--input inputAlign="center" disabled v-model="formStateEdit.checkPersonEarly"
  236. placeholder="请输入"></u--input>
  237. </view>
  238. <view class="dialog-item">
  239. <text class="dialog-label">CH₄:</text>
  240. <u--input inputAlign="center" v-model="formStateEdit.ch4Early2"
  241. placeholder="请输入"></u--input>
  242. </view>
  243. <view class="dialog-item">
  244. <text class="dialog-label">CO₂:</text>
  245. <u--input inputAlign="center" v-model="formStateEdit.co2Early2"
  246. :placeholder="isRule ? '请输入' : '请输入偶数'" type="number" @blur="getBlurSCo2"
  247. :placeholderStyle="isRule4 ? 'color:#c0c4cc' : 'color:#ff0000'"></u--input>
  248. </view>
  249. <view class="dialog-item">
  250. <text class="dialog-label">CO:</text>
  251. <u--input inputAlign="center" v-model="formStateEdit.coEarly2"
  252. :placeholder="isRule16 ? '请输入' : '最大可输入值为24'"
  253. :placeholderStyle="isRule16 ? 'color:#c0c4cc' : 'color:#ff0000'" type="number"
  254. @blur="getBlurC2"></u--input>
  255. </view>
  256. <view class="dialog-item">
  257. <text class="dialog-label">O₂:</text>
  258. <u--input inputAlign="center" v-model="formStateEdit.o2Early2" placeholder="请输入"></u--input>
  259. </view>
  260. <view class="dialog-item">
  261. <text class="dialog-label">温度:</text>
  262. <u--input inputAlign="center" v-model="formStateEdit.tEarly2" placeholder="请输入"></u--input>
  263. </view>
  264. <view class="dialog-item">
  265. <text class="dialog-label">甲烷传感器:</text>
  266. <u--input inputAlign="center" v-model="formStateEdit.jwSdzEarly2"
  267. placeholder="请输入"></u--input>
  268. </view>
  269. <view class="dialog-item">
  270. <text class="dialog-label">光瓦测量数据:</text>
  271. <u--input inputAlign="center" v-model="formStateEdit.gwSdzEarly2"
  272. :placeholder="isRule ? '请输入' : '请输入偶数'" type="number" @blur="getBlurS"
  273. :placeholderStyle="isRule5 ? 'color:#c0c4cc' : 'color:#ff0000'"></u--input>
  274. </view>
  275. <view class="dialog-item">
  276. <text class="dialog-label">便携仪测量数据:</text>
  277. <u--input inputAlign="center" v-model="formStateEdit.bxySdzEarly2"
  278. placeholder="请输入"></u--input>
  279. </view>
  280. </view>
  281. <view class="center-dialog-area">
  282. <div class="dialog-title">午班第一次检测数据</div>
  283. <view class="dialog-item" @click="getChangeWb1">
  284. <text class="dialog-label">检测时间:</text>
  285. <u--input v-model="formStateEdit.timeNoon1" placeholder="请选择检测时间" inputAlign="center"
  286. suffixIcon="arrow-right"></u--input>
  287. <u-datetime-picker :show="showWb1" v-model="timeRan" mode="datetime" closeOnClickOverlay
  288. @confirm="showWb1 = false" @cancel="showWb1 = false" @change="changeWb1"
  289. @close="showWb1 = false"></u-datetime-picker>
  290. </view>
  291. <view class="dialog-item">
  292. <text class="dialog-label">瓦斯检查工:</text>
  293. <u--input inputAlign="center" disabled v-model="formStateEdit.checkPersonNoon"
  294. placeholder="请输入"></u--input>
  295. </view>
  296. <view class="dialog-item">
  297. <text class="dialog-label">CH₄:</text>
  298. <u--input inputAlign="center" v-model="formStateEdit.ch4Noon1" placeholder="请输入"></u--input>
  299. </view>
  300. <view class="dialog-item">
  301. <text class="dialog-label">CO₂:</text>
  302. <u--input inputAlign="center" v-model="formStateEdit.co2Noon1"
  303. :placeholder="isRule ? '请输入' : '请输入偶数'" type="number" @blur="getBlurF1"
  304. :placeholderStyle="isRule6 ? 'color:#c0c4cc' : 'color:#ff0000'"></u--input>
  305. </view>
  306. <view class="dialog-item">
  307. <text class="dialog-label">CO:</text>
  308. <u--input inputAlign="center" v-model="formStateEdit.coNoon1"
  309. :placeholder="isRule17 ? '请输入' : '最大可输入值为24'"
  310. :placeholderStyle="isRule17 ? 'color:#c0c4cc' : 'color:#ff0000'" type="number"
  311. @blur="getBlurCO3"></u--input>
  312. </view>
  313. <view class="dialog-item">
  314. <text class="dialog-label">O₂:</text>
  315. <u--input inputAlign="center" v-model="formStateEdit.o2Noon1" placeholder="请输入"></u--input>
  316. </view>
  317. <view class="dialog-item">
  318. <text class="dialog-label">温度:</text>
  319. <u--input inputAlign="center" v-model="formStateEdit.tNoon1" placeholder="请输入"></u--input>
  320. </view>
  321. <view class="dialog-item">
  322. <text class="dialog-label">甲烷传感器:</text>
  323. <u--input inputAlign="center" v-model="formStateEdit.jwSdzNoon1"
  324. placeholder="请输入"></u--input>
  325. </view>
  326. <view class="dialog-item">
  327. <text class="dialog-label">光瓦测量数据:</text>
  328. <u--input inputAlign="center" v-model="formStateEdit.gwSdzNoon1"
  329. :placeholder="isRule ? '请输入' : '请输入偶数'" type="number" @blur="getBlurG1"
  330. :placeholderStyle="isRule7 ? 'color:#c0c4cc' : 'color:#ff0000'"></u--input>
  331. </view>
  332. <view class="dialog-item">
  333. <text class="dialog-label">便携仪测量数据:</text>
  334. <u--input inputAlign="center" v-model="formStateEdit.bxySdzNoon1"
  335. placeholder="请输入"></u--input>
  336. </view>
  337. </view>
  338. <view class="center-dialog-area">
  339. <div class="dialog-title">午班第二次检测数据</div>
  340. <view class="dialog-item" @click="getChangeWb2">
  341. <text class="dialog-label">检测时间:</text>
  342. <u--input v-model="formStateEdit.timeNoon2" placeholder="请选择检测时间" inputAlign="center"
  343. suffixIcon="arrow-right"></u--input>
  344. <u-datetime-picker :show="showWb2" v-model="timeRan" mode="datetime" closeOnClickOverlay
  345. @confirm="showWb2 = false" @cancel="showWb2 = false" @change="changeWb2"
  346. @close="showWb2 = false"></u-datetime-picker>
  347. </view>
  348. <view class="dialog-item">
  349. <text class="dialog-label">瓦斯检查工:</text>
  350. <u--input inputAlign="center" disabled v-model="formStateEdit.checkPersonNoon"
  351. placeholder="请输入"></u--input>
  352. </view>
  353. <view class="dialog-item">
  354. <text class="dialog-label">CH₄:</text>
  355. <u--input inputAlign="center" v-model="formStateEdit.ch4Noon2" placeholder="请输入"></u--input>
  356. </view>
  357. <view class="dialog-item">
  358. <text class="dialog-label">CO₂:</text>
  359. <u--input inputAlign="center" v-model="formStateEdit.co2Noon2"
  360. :placeholder="isRule ? '请输入' : '请输入偶数'" type="number" @blur="getBlurF2"
  361. :placeholderStyle="isRule8 ? 'color:#c0c4cc' : 'color:#ff0000'"></u--input>
  362. </view>
  363. <view class="dialog-item">
  364. <text class="dialog-label">CO:</text>
  365. <u--input inputAlign="center" v-model="formStateEdit.coNoon2"
  366. :placeholder="isRule18 ? '请输入' : '最大可输入值为24'"
  367. :placeholderStyle="isRule18 ? 'color:#c0c4cc' : 'color:#ff0000'" type="number"
  368. @blur="getBlurCO4"></u--input>
  369. </view>
  370. <view class="dialog-item">
  371. <text class="dialog-label">O₂:</text>
  372. <u--input inputAlign="center" v-model="formStateEdit.o2Noon2" placeholder="请输入"></u--input>
  373. </view>
  374. <view class="dialog-item">
  375. <text class="dialog-label">温度:</text>
  376. <u--input inputAlign="center" v-model="formStateEdit.tNoon2" placeholder="请输入"></u--input>
  377. </view>
  378. <view class="dialog-item">
  379. <text class="dialog-label">甲烷传感器:</text>
  380. <u--input inputAlign="center" v-model="formStateEdit.jwSdzNoon2"
  381. placeholder="请输入"></u--input>
  382. </view>
  383. <view class="dialog-item">
  384. <text class="dialog-label">光瓦测量数据:</text>
  385. <u--input inputAlign="center" v-model="formStateEdit.gwSdzNoon2"
  386. :placeholder="isRule ? '请输入' : '请输入偶数'" type="number" @blur="getBlurG2"
  387. :placeholderStyle="isRule9 ? 'color:#c0c4cc' : 'color:#ff0000'"></u--input>
  388. </view>
  389. <view class="dialog-item">
  390. <text class="dialog-label">便携仪测量数据:</text>
  391. <u--input inputAlign="center" v-model="formStateEdit.bxySdzNoon2"
  392. placeholder="请输入"></u--input>
  393. </view>
  394. </view>
  395. <view class="center-dialog-area">
  396. <div class="dialog-title">晚班第一次检测数据</div>
  397. <view class="dialog-item" @click="getChangeNb1">
  398. <text class="dialog-label">检测时间:</text>
  399. <u--input v-model="formStateEdit.timeNight1" placeholder="请选择检测时间" inputAlign="center"
  400. suffixIcon="arrow-right"></u--input>
  401. <u-datetime-picker :show="showNb1" v-model="timeRan" mode="datetime" closeOnClickOverlay
  402. @confirm="showNb1 = false" @cancel="showNb1 = false" @change="changeNb1"
  403. @close="showNb1 = false"></u-datetime-picker>
  404. </view>
  405. <view class="dialog-item">
  406. <text class="dialog-label">瓦斯检查工:</text>
  407. <u--input inputAlign="center" disabled v-model="formStateEdit.checkPersonNight"
  408. placeholder="请输入"></u--input>
  409. </view>
  410. <view class="dialog-item">
  411. <text class="dialog-label">CH₄:</text>
  412. <u--input inputAlign="center" v-model="formStateEdit.ch4Night1"
  413. placeholder="请输入"></u--input>
  414. </view>
  415. <view class="dialog-item">
  416. <text class="dialog-label">CO₂:</text>
  417. <u--input inputAlign="center" v-model="formStateEdit.co2Night1"
  418. :placeholder="isRule ? '请输入' : '请输入偶数'" type="number" @blur="getBlurN1"
  419. :placeholderStyle="isRule10 ? 'color:#c0c4cc' : 'color:#ff0000'"></u--input>
  420. </view>
  421. <view class="dialog-item">
  422. <text class="dialog-label">CO:</text>
  423. <u--input inputAlign="center" v-model="formStateEdit.coNight1"
  424. :placeholder="isRule19 ? '请输入' : '最大可输入值为24'"
  425. :placeholderStyle="isRule19 ? 'color:#c0c4cc' : 'color:#ff0000'" type="number"
  426. @blur="getBlurCO5"></u--input>
  427. </view>
  428. <view class="dialog-item">
  429. <text class="dialog-label">O₂:</text>
  430. <u--input inputAlign="center" v-model="formStateEdit.o2Night1" placeholder="请输入"></u--input>
  431. </view>
  432. <view class="dialog-item">
  433. <text class="dialog-label">温度:</text>
  434. <u--input inputAlign="center" v-model="formStateEdit.tNight1" placeholder="请输入"></u--input>
  435. </view>
  436. <view class="dialog-item">
  437. <text class="dialog-label">甲烷传感器:</text>
  438. <u--input inputAlign="center" v-model="formStateEdit.jwSdzNight1"
  439. placeholder="请输入"></u--input>
  440. </view>
  441. <view class="dialog-item">
  442. <text class="dialog-label">光瓦测量数据:</text>
  443. <u--input inputAlign="center" v-model="formStateEdit.gwSdzNight1"
  444. :placeholder="isRule ? '请输入' : '请输入偶数'" type="number" @blur="getBlurNG1"
  445. :placeholderStyle="isRule11 ? 'color:#c0c4cc' : 'color:#ff0000'"></u--input>
  446. </view>
  447. <view class="dialog-item">
  448. <text class="dialog-label">便携仪测量数据:</text>
  449. <u--input inputAlign="center" v-model="formStateEdit.bxySdzNight1"
  450. placeholder="请输入"></u--input>
  451. </view>
  452. </view>
  453. <view class="center-dialog-area">
  454. <div class="dialog-title">晚班第二次检测数据</div>
  455. <view class="dialog-item" @click="getChangeNb2">
  456. <text class="dialog-label">检测时间:</text>
  457. <u--input v-model="formStateEdit.timeNight2" placeholder="请选择检测时间" inputAlign="center"
  458. suffixIcon="arrow-right"></u--input>
  459. <u-datetime-picker :show="showNb2" v-model="timeRan" mode="datetime" closeOnClickOverlay
  460. @confirm="showNb2 = false" @cancel="showNb2 = false" @change="changeNb2"
  461. @close="showNb2 = false"></u-datetime-picker>
  462. </view>
  463. <view class="dialog-item">
  464. <text class="dialog-label">瓦斯检查工:</text>
  465. <u--input inputAlign="center" disabled v-model="formStateEdit.checkPersonNight"
  466. placeholder="请输入"></u--input>
  467. </view>
  468. <view class="dialog-item">
  469. <text class="dialog-label">CH₄:</text>
  470. <u--input inputAlign="center" v-model="formStateEdit.ch4Night2"
  471. placeholder="请输入"></u--input>
  472. </view>
  473. <view class="dialog-item">
  474. <text class="dialog-label">CO₂:</text>
  475. <u--input inputAlign="center" v-model="formStateEdit.co2Night2"
  476. :placeholder="isRule ? '请输入' : '请输入偶数'" type="number" @blur="getBlurN2"
  477. :placeholderStyle="isRule12 ? 'color:#c0c4cc' : 'color:#ff0000'"></u--input>
  478. </view>
  479. <view class="dialog-item">
  480. <text class="dialog-label">CO:</text>
  481. <u--input inputAlign="center" v-model="formStateEdit.coNight2"
  482. :placeholder="isRule20 ? '请输入' : '最大可输入值为24'"
  483. :placeholderStyle="isRule20 ? 'color:#c0c4cc' : 'color:#ff0000'" type="number"
  484. @blur="getBlurCO6"></u--input>
  485. </view>
  486. <view class="dialog-item">
  487. <text class="dialog-label">O₂:</text>
  488. <u--input inputAlign="center" v-model="formStateEdit.o2Night2" placeholder="请输入"></u--input>
  489. </view>
  490. <view class="dialog-item">
  491. <text class="dialog-label">温度:</text>
  492. <u--input inputAlign="center" v-model="formStateEdit.tNight2" placeholder="请输入"></u--input>
  493. </view>
  494. <view class="dialog-item">
  495. <text class="dialog-label">甲烷传感器:</text>
  496. <u--input inputAlign="center" v-model="formStateEdit.jwSdzNight2"
  497. placeholder="请输入"></u--input>
  498. </view>
  499. <view class="dialog-item">
  500. <text class="dialog-label">光瓦测量数据:</text>
  501. <u--input inputAlign="center" v-model="formStateEdit.gwSdzNight2"
  502. :placeholder="isRule ? '请输入' : '请输入偶数'" type="number" @blur="getBlurNG2"
  503. :placeholderStyle="isRule13 ? 'color:#c0c4cc' : 'color:#ff0000'"></u--input>
  504. </view>
  505. <view class="dialog-item">
  506. <text class="dialog-label">便携仪测量数据:</text>
  507. <u--input inputAlign="center" v-model="formStateEdit.bxySdzNight2"
  508. placeholder="请输入"></u--input>
  509. </view>
  510. </view>
  511. </view>
  512. <view class="dialog-btn">
  513. <u-button type="success" size="small" @click="getConfirmEdit">保存</u-button>
  514. <u-button type="primary" size="small" @click="getCancelEdit">取消</u-button>
  515. </view>
  516. </view>
  517. </view>
  518. </view>
  519. </template>
  520. <script>
  521. import api from "@/api/api";
  522. import moment from 'moment'
  523. import { mapGetters } from "vuex";
  524. export default {
  525. name: 'gasreport',
  526. props: {},
  527. watch: {},
  528. data() {
  529. return {
  530. rangeBc: [
  531. { value: '夜班', text: "夜班" },
  532. { value: '早班', text: "早班" },
  533. { value: '中班', text: "中班" },
  534. ],
  535. rangeMcgzm: [],
  536. rangeJcdd: [],
  537. rangeCount: [
  538. { value: '第一次', text: '第一次' },
  539. { value: '第二次', text: '第二次' },
  540. ],
  541. isRule: true,
  542. isRule1: true,
  543. isRule2: true,
  544. isRule3: true,
  545. isRule4: true,
  546. isRule5: true,
  547. isRule6: true,
  548. isRule7: true,
  549. isRule8: true,
  550. isRule9: true,
  551. isRule10: true,
  552. isRule11: true,
  553. isRule12: true,
  554. isRule13: true,
  555. isRule14: true,
  556. isRule15: true,
  557. isRule16: true,
  558. isRule17: true,
  559. isRule18: true,
  560. isRule19: true,
  561. isRule20: true,
  562. //新增参数信息
  563. isShowAdd: false,//是否显示新增弹窗
  564. isShowEdit: false,//是否显示编辑弹窗
  565. showZb1: false,
  566. showZb2: false,
  567. showWb1: false,
  568. showWb2: false,
  569. showNb1: false,
  570. showNb2: false,
  571. dialogAction: [],//下拉选项列表
  572. showCalendar: false,//控制日期选型下拉开启
  573. showCalendar1: false,
  574. timeRan: Number(new Date()),
  575. gasList: [],//瓦斯填报列表数据
  576. tbTime: null,//查询条件-填报时间
  577. showCalendarTb: false,//控制填报时间组件弹出
  578. saveShow: '',
  579. saveShowList: {},
  580. formState: {
  581. id: '',
  582. bc: '',
  583. count: '',
  584. jcdd: '',
  585. jcy: '',
  586. time: moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),
  587. ch4: '',
  588. co2: '',
  589. co: '',
  590. o2: '',
  591. jw: '',
  592. gw: '',
  593. bxy: '',
  594. tbrq: moment(new Date()).format('YYYY-MM-DD'),
  595. temp: '',
  596. mcgzm: '',
  597. },
  598. formStateEdit: {
  599. id: '',
  600. bxySdzEarly1: '',
  601. ch4Early1: '',
  602. checkPersonEarly: '',
  603. co2Early1: '',
  604. coEarly1: '',
  605. gwSdzEarly1: '',
  606. jwSdzEarly1: '',
  607. o2Early1: '',
  608. timeEarly1: '',
  609. tEarly1: '',
  610. bxySdzEarly2: '',
  611. ch4Early2: '',
  612. co2Early2: '',
  613. coEarly2: '',
  614. gwSdzEarly2: '',
  615. jwSdzEarly2: '',
  616. o2Early2: '',
  617. timeEarly2: '',
  618. tEarly2: '',
  619. bxySdzNoon1: '',
  620. ch4Noon1: '',
  621. checkPersonNoon: '',
  622. co2Noon1: '',
  623. coNoon1: '',
  624. gwSdzNoon1: '',
  625. jwSdzNoon1: '',
  626. o2Noon1: '',
  627. timeNoon1: '',
  628. tNoon1: '',
  629. bxySdzNoon2: '',
  630. ch4Noon2: '',
  631. co2Noon2: '',
  632. coNoon2: '',
  633. gwSdzNoon2: '',
  634. jwSdzNoon2: '',
  635. o2Noon2: '',
  636. timeNoon2: '',
  637. tNoon2: '',
  638. bxySdzNight1: '',
  639. ch4Night1: '',
  640. checkPersonNight: '',
  641. co2Night1: '',
  642. coNight1: '',
  643. gwSdzNight1: '',
  644. jwSdzNight1: '',
  645. o2Night1: '',
  646. timeNight1: '',
  647. tNight1: '',
  648. bxySdzNight2: '',
  649. ch4Night2: '',
  650. co2Night2: '',
  651. coNight2: '',
  652. gwSdzNight2: '',
  653. jwSdzNight2: '',
  654. o2Night2: '',
  655. timeNight2: '',
  656. tNight2: '',
  657. }
  658. };
  659. },
  660. computed: {
  661. ...mapGetters(['username']),
  662. },
  663. mounted() {
  664. console.log(this.username, 'username=-=-======')
  665. this.getGasList()
  666. this.getMcList()
  667. },
  668. methods: {
  669. //获取安装位置下拉选项
  670. getSelectList() {
  671. console.log(this.rangeMcgzm, '111=====')
  672. console.log(this.formState.mcgzm, '000======')
  673. let param = this.rangeMcgzm.filter(v => this.formState.mcgzm == v.value)[0].value
  674. new Promise((resolve, reject) => {
  675. api
  676. .getSelect({ coalseam: param, devicekind: 'gasDayReport' })
  677. .then((response) => {
  678. if (response.data.code == 200) {
  679. let data = response.data.result
  680. this.rangeJcdd = data.map(v => {
  681. return {
  682. text: v.strinstallpos,
  683. value: v.devicekind
  684. }
  685. })
  686. } else {
  687. reject(response);
  688. }
  689. })
  690. .catch((error) => {
  691. console.log("catch===>response", response);
  692. reject(error);
  693. });
  694. });
  695. },
  696. //班次下拉选项切换
  697. changeBc(e) {
  698. console.log(e, '班次----------')
  699. this.formState.bc = e
  700. },
  701. //监测次数选项切换
  702. changeCount(e) {
  703. this.formState.count = e
  704. },
  705. //检测地点拉选项切换
  706. changeJc(e) {
  707. this.formState.jcdd = e
  708. },
  709. //工作面煤层选项切换
  710. changeMc(e) {
  711. this.formState.mcgzm = e
  712. this.getSelectList()
  713. },
  714. //点击弹出日期下拉选项
  715. getChangeTime() {
  716. this.showCalendar = true
  717. },
  718. getChangeTime1() {
  719. this.showCalendar1 = true
  720. },
  721. getChangeTimeTb() {
  722. this.showCalendarTb = true
  723. },
  724. confirmTb() {
  725. this.showCalendarTb = false
  726. this.getGasList()
  727. },
  728. //早班第一次编辑选项切换
  729. getChangeZb1() {
  730. this.showZb1 = true
  731. },
  732. //早班第二次编辑选项切换
  733. getChangeZb2() {
  734. this.showZb2 = true
  735. },
  736. //午班第一次编辑选项切换
  737. getChangeWb1() {
  738. this.showWb1 = true
  739. },
  740. //午班第二次编辑选项切换
  741. getChangeWb2() {
  742. this.showWb2 = true
  743. },
  744. //晚班第一次编辑选项切换
  745. getChangeNb1() {
  746. this.showNb1 = true
  747. },
  748. //晚班第二次编辑选型切换
  749. getChangeNb2() {
  750. this.showNb2 = true
  751. },
  752. //新增光瓦失去焦点时参数校验
  753. getBlur(val) {
  754. console.log(val.slice(-1), '----0000')
  755. if (val.slice(-1) === '0' || val.slice(-1) === '2' || val.slice(-1) === '4' || val.slice(-1) === '6' || val.slice(-1) === '8') {
  756. this.formState.gw = val
  757. console.log('2222=======')
  758. this.isRule1 = true
  759. } else {
  760. this.formState.gw = ''
  761. this.isRule1 = false
  762. }
  763. },
  764. //新增CO2失去焦点时参数校验
  765. getBlurCO2(val) {
  766. if (val.slice(-1) == '0' || val.slice(-1) == '2' || val.slice(-1) == '4' || val.slice(-1) == '6' || val.slice(-1) == '8') {
  767. this.formState.co2 = val
  768. this.isRule = true
  769. } else {
  770. this.formState.co2 = ''
  771. this.isRule = false
  772. }
  773. },
  774. //编辑第一次CO2失去焦点时参数校验
  775. getBlurFCo2(val) {
  776. if (val.slice(-1) == '0' || val.slice(-1) == '2' || val.slice(-1) == '4' || val.slice(-1) == '6' || val.slice(-1) == '8') {
  777. this.formStateEdit.co2Early1 = val
  778. this.isRule2 = true
  779. } else {
  780. this.formStateEdit.co2Early1 = ''
  781. this.isRule2 = false
  782. }
  783. },
  784. //编辑第一次光瓦失去焦点时参数校验
  785. getBlurF(val) {
  786. if (val.slice(-1) == '0' || val.slice(-1) == '2' || val.slice(-1) == '4' || val.slice(-1) == '6' || val.slice(-1) == '8') {
  787. this.formStateEdit.gwSdzEarly1 = val
  788. this.isRule3 = true
  789. } else {
  790. this.formStateEdit.gwSdzEarly1 = ''
  791. this.isRule3 = false
  792. }
  793. },
  794. //编辑第二次CO2失去焦点时参数校验
  795. getBlurSCo2(val) {
  796. if (val.slice(-1) == '0' || val.slice(-1) == '2' || val.slice(-1) == '4' || val.slice(-1) == '6' || val.slice(-1) == '8') {
  797. this.formStateEdit.co2Early2 = val
  798. this.isRule4 = true
  799. } else {
  800. this.formStateEdit.co2Early2 = ''
  801. this.isRule4 = false
  802. }
  803. },
  804. //编辑第二次光瓦失去焦点时参数校验
  805. getBlurS(val) {
  806. if (val.slice(-1) == '0' || val.slice(-1) == '2' || val.slice(-1) == '4' || val.slice(-1) == '6' || val.slice(-1) == '8') {
  807. this.formStateEdit.gwSdzEarly2 = val
  808. this.isRule5 = true
  809. } else {
  810. this.formStateEdit.gwSdzEarly2 = ''
  811. this.isRule5 = false
  812. }
  813. },
  814. getBlurF1(val) {
  815. if (val.slice(-1) == '0' || val.slice(-1) == '2' || val.slice(-1) == '4' || val.slice(-1) == '6' || val.slice(-1) == '8') {
  816. this.formStateEdit.co2Noon1 = val
  817. this.isRule6 = true
  818. } else {
  819. this.formStateEdit.co2Noon1 = ''
  820. this.isRule6 = false
  821. }
  822. },
  823. getBlurG1(val) {
  824. if (val.slice(-1) == '0' || val.slice(-1) == '2' || val.slice(-1) == '4' || val.slice(-1) == '6' || val.slice(-1) == '8') {
  825. this.formStateEdit.gwSdzNoon1 = val
  826. this.isRule7 = true
  827. } else {
  828. this.formStateEdit.gwSdzNoon1 = ''
  829. this.isRule7 = false
  830. }
  831. },
  832. getBlurF2(val) {
  833. if (val.slice(-1) == '0' || val.slice(-1) == '2' || val.slice(-1) == '4' || val.slice(-1) == '6' || val.slice(-1) == '8') {
  834. this.formStateEdit.co2Noon2 = val
  835. this.isRule8 = true
  836. } else {
  837. this.formStateEdit.co2Noon2 = ''
  838. this.isRule8 = false
  839. }
  840. },
  841. getBlurG2(val) {
  842. if (val.slice(-1) == '0' || val.slice(-1) == '2' || val.slice(-1) == '4' || val.slice(-1) == '6' || val.slice(-1) == '8') {
  843. this.formStateEdit.gwSdzNoon2 = val
  844. this.isRule9 = true
  845. } else {
  846. this.formStateEdit.gwSdzNoon2 = ''
  847. this.isRule9 = false
  848. }
  849. },
  850. getBlurN1(val) {
  851. if (val.slice(-1) == '0' || val.slice(-1) == '2' || val.slice(-1) == '4' || val.slice(-1) == '6' || val.slice(-1) == '8') {
  852. this.formStateEdit.co2Night1 = val
  853. this.isRule10 = true
  854. } else {
  855. this.formStateEdit.co2Night1 = ''
  856. this.isRule10 = false
  857. }
  858. },
  859. getBlurNG1(val) {
  860. if (val.slice(-1) == '0' || val.slice(-1) == '2' || val.slice(-1) == '4' || val.slice(-1) == '6' || val.slice(-1) == '8') {
  861. this.formStateEdit.gwSdzNoon2 = val
  862. this.isRule11 = true
  863. } else {
  864. this.formStateEdit.gwSdzNoon2 = ''
  865. this.isRule11 = false
  866. }
  867. },
  868. getBlurN2(val) {
  869. if (val.slice(-1) == '0' || val.slice(-1) == '2' || val.slice(-1) == '4' || val.slice(-1) == '6' || val.slice(-1) == '8') {
  870. this.formStateEdit.co2Night2 = val
  871. this.isRule12 = true
  872. } else {
  873. this.formStateEdit.co2Night2 = ''
  874. this.isRule12 = false
  875. }
  876. },
  877. getBlurNG2(val) {
  878. if (val.slice(-1) == '0' || val.slice(-1) == '2' || val.slice(-1) == '4' || val.slice(-1) == '6' || val.slice(-1) == '8') {
  879. this.formStateEdit.gwSdzNight2 = val
  880. this.isRule13 = true
  881. } else {
  882. this.formStateEdit.gwSdzNight2 = ''
  883. this.isRule13 = false
  884. }
  885. },
  886. getBlurCO(val) {
  887. if (parseFloat(val) <= 24) {
  888. this.formState.co = val
  889. this.isRule14 = true
  890. } else {
  891. this.formState.co = ''
  892. this.isRule14 = false
  893. }
  894. },
  895. getBlurCO1(val) {
  896. if (parseFloat(val) <= 24) {
  897. this.formStateEdit.coEarly1 = val
  898. this.isRule15 = true
  899. } else {
  900. this.formStateEdit.coEarly1 = ''
  901. this.isRule15 = false
  902. }
  903. },
  904. getBlurC2(val) {
  905. if (parseFloat(val) <= 24) {
  906. this.formStateEdit.coEarly2 = val
  907. this.isRule16 = true
  908. } else {
  909. this.formStateEdit.coEarly2 = ''
  910. this.isRule16 = false
  911. }
  912. },
  913. getBlurCO3(val) {
  914. if (parseFloat(val) <= 24) {
  915. this.formStateEdit.coNoon1 = val
  916. this.isRule17 = true
  917. } else {
  918. this.formStateEdit.coNoon1 = ''
  919. this.isRule17 = false
  920. }
  921. },
  922. getBlurCO4(val) {
  923. if (parseFloat(val) <= 24) {
  924. this.formStateEdit.coNoon2 = val
  925. this.isRule18 = true
  926. } else {
  927. this.formStateEdit.coNoon2 = ''
  928. this.isRule18 = false
  929. }
  930. },
  931. getBlurCO5(val) {
  932. if (parseFloat(val) <= 24) {
  933. this.formStateEdit.coNight1 = val
  934. this.isRule19 = true
  935. } else {
  936. this.formStateEdit.coNight1 = ''
  937. this.isRule19 = false
  938. }
  939. },
  940. getBlurCO6(val) {
  941. if (parseFloat(val) <= 24) {
  942. this.formStateEdit.coNight2 = val
  943. this.isRule20 = true
  944. } else {
  945. this.formStateEdit.coNight2 = ''
  946. this.isRule20 = false
  947. }
  948. },
  949. //检测时间下拉选项切换
  950. change(e) {
  951. let that = this
  952. that.formState.jcy = that.username
  953. that.formState.time = moment(e.value).format('YYYY-MM-DD HH:mm:ss')
  954. that.formState.tbrq = moment(e.value).format('YYYY-MM-DD')
  955. let params = {}
  956. if (that.formState.bc == '早班' && that.formState.count == '第一次') {
  957. params = {
  958. timeEarly1: that.formState.time,
  959. reportTime: that.formState.tbrq
  960. }
  961. } else if (that.formState.bc == '早班' && that.formState.count == '第二次') {
  962. params = {
  963. timeEarly2: that.formState.time,
  964. reportTime: that.formState.tbrq
  965. }
  966. } else if (that.formState.bc == '中班' && that.formState.count == '第一次') {
  967. params = {
  968. timeNoon1: that.formState.time,
  969. reportTime: that.formState.tbrq
  970. }
  971. } else if (that.formState.bc == '中班' && that.formState.count == '第二次') {
  972. params = {
  973. timeNoon2: that.formState.time,
  974. reportTime: that.formState.tbrq
  975. }
  976. } else if (that.formState.bc == '夜班' && that.formState.count == '第一次') {
  977. params = {
  978. timeNight1: that.formState.time,
  979. reportTime: that.formState.tbrq
  980. }
  981. } else if (that.formState.bc == '夜班' && that.formState.count == '第二次') {
  982. params = {
  983. timeNight2: that.formState.time,
  984. reportTime: that.formState.tbrq
  985. }
  986. } else {
  987. that.formState.bc = '早班'
  988. that.formState.count = '第一次'
  989. params = {
  990. timeEarly1: that.formState.time,
  991. reportTime: that.formState.tbrq
  992. }
  993. }
  994. new Promise((resolve, reject) => {
  995. api
  996. .getGas(params)
  997. .then((response) => {
  998. if (response.data.code == 200) {
  999. let data = response.data.result.records
  1000. if (data.length != 0) {
  1001. that.saveShow = 'edit'
  1002. that.saveShowList = data[0]
  1003. that.formState = {
  1004. id: data.id,
  1005. bc: that.formState.bc,
  1006. count: that.formState.count,
  1007. jcdd: data.strInstallPos,
  1008. jcy: that.formState.jcy,
  1009. // jcy: that.formState.bc == '早班' ? data.checkPersonEarly : that.formState.bc == '中班' ? data.checkPersonNoon : data.checkPersonNight,
  1010. time: that.formState.time,
  1011. tbrq: that.formState.tbrq,
  1012. temp: that.formState.bc == '早班' && that.formState.count == '第一次' ? data.tEarly1 : that.formState.bc == '早班' && that.formState.count == '第二次' ? data.tEarly2 : that.formState.bc == '中班' && that.formState.count == '第一次' ? data.tNoon1 : that.formState.bc == '中班' && that.formState.count == '第二次' ? data.tNoon2 : that.formState.bc == '夜班' && that.formState.count == '第一次' ? data.tNight1 : that.formState.bc == '夜班' && that.formState.count == '第二次' ? data.tNight2 : '',
  1013. ch4: that.formState.bc == '早班' && that.formState.count == '第一次' ? data.ch4Early1 : that.formState.bc == '早班' && that.formState.count == '第二次' ? data.ch4Early2 : that.formState.bc == '中班' && that.formState.count == '第一次' ? data.ch4Noon1 : that.formState.bc == '中班' && that.formState.count == '第二次' ? data.ch4Noon2 : that.formState.bc == '夜班' && that.formState.count == '第一次' ? data.ch4Night1 : that.formState.bc == '夜班' && that.formState.count == '第二次' ? data.ch4Night2 : '',
  1014. co2: that.formState.bc == '早班' && that.formState.count == '第一次' ? data.co2Early1 : that.formState.bc == '早班' && that.formState.count == '第二次' ? data.co2Early2 : that.formState.bc == '中班' && that.formState.count == '第一次' ? data.co2Noon1 : that.formState.bc == '中班' && that.formState.count == '第二次' ? data.co2Noon2 : that.formState.bc == '夜班' && that.formState.count == '第一次' ? data.co2Night1 : that.formState.bc == '夜班' && that.formState.count == '第二次' ? data.co2Night2 : '',
  1015. co: that.formState.bc == '早班' && that.formState.count == '第一次' ? data.coEarly1 : that.formState.bc == '早班' && that.formState.count == '第二次' ? data.coEarly2 : that.formState.bc == '中班' && that.formState.count == '第一次' ? data.coNoon1 : that.formState.bc == '中班' && that.formState.count == '第二次' ? data.coNoon2 : that.formState.bc == '夜班' && that.formState.count == '第一次' ? data.coNight1 : that.formState.bc == '夜班' && that.formState.count == '第二次' ? data.coNight2 : '',
  1016. o2: that.formState.bc == '早班' && that.formState.count == '第一次' ? data.o2Early1 : that.formState.bc == '早班' && that.formState.count == '第二次' ? data.o2Early2 : that.formState.bc == '中班' && that.formState.count == '第一次' ? data.o2Noon1 : that.formState.bc == '中班' && that.formState.count == '第二次' ? data.o2Noon2 : that.formState.bc == '夜班' && that.formState.count == '第一次' ? data.o2Night1 : that.formState.bc == '夜班' && that.formState.count == '第二次' ? data.o2Night2 : '',
  1017. jw: that.formState.bc == '早班' && that.formState.count == '第一次' ? data.jwSdzEarly1 : that.formState.bc == '早班' && that.formState.count == '第二次' ? data.jwSdzEarly2 : that.formState.bc == '中班' && that.formState.count == '第一次' ? data.jwSdzNoon1 : that.formState.bc == '中班' && that.formState.count == '第二次' ? data.jwSdzNoon2 : that.formState.bc == '夜班' && that.formState.count == '第一次' ? data.jwSdzNight1 : that.formState.bc == '夜班' && that.formState.count == '第二次' ? data.jwSdzNight2 : '',
  1018. gw: that.formState.bc == '早班' && that.formState.count == '第一次' ? data.gwSdzEarly1 : that.formState.bc == '早班' && that.formState.count == '第二次' ? data.gwSdzEarly2 : that.formState.bc == '中班' && that.formState.count == '第一次' ? data.gwSdzNoon1 : that.formState.bc == '中班' && that.formState.count == '第二次' ? data.gwSdzNoon2 : that.formState.bc == '夜班' && that.formState.count == '第一次' ? data.gwSdzNight1 : that.formState.bc == '夜班' && that.formState.count == '第二次' ? data.gwSdzNight2 : '',
  1019. bxy: that.formState.bc == '早班' && that.formState.count == '第一次' ? data.bxySdzEarly1 : that.formState.bc == '早班' && that.formState.count == '第二次' ? data.bxySdzEarly2 : that.formState.bc == '中班' && that.formState.count == '第一次' ? data.bxySdzNoon1 : that.formState.bc == '中班' && that.formState.count == '第二次' ? data.bxySdzNoon2 : that.formState.bc == '夜班' && that.formState.count == '第一次' ? data.bxySdzNight1 : that.formState.bc == '夜班' && that.formState.count == '第二次' ? data.bxySdzNight2 : '',
  1020. }
  1021. } else {
  1022. that.formState = {
  1023. id: '',
  1024. bc: that.formState.bc,
  1025. count: that.formState.count,
  1026. jcdd: '',
  1027. jcy: that.formState.jcy,
  1028. time: that.formState.time,
  1029. tbrq: that.formState.tbrq,
  1030. ch4: '',
  1031. co2: '',
  1032. co: '',
  1033. o2: '',
  1034. jw: '',
  1035. gw: '',
  1036. bxy: '',
  1037. temp: '',
  1038. }
  1039. that.saveShow = 'add'
  1040. }
  1041. } else {
  1042. reject(response);
  1043. }
  1044. })
  1045. .catch((error) => {
  1046. console.log("catch===>response", response);
  1047. reject(error);
  1048. });
  1049. });
  1050. },
  1051. //早班第一次编辑选项切换
  1052. changeZb1(e) {
  1053. this.formStateEdit.timeEarly1 = moment(e.value).format('YYYY-MM-DD HH:mm:ss')
  1054. },
  1055. //早班第二次编辑选项切换
  1056. changeZb2(e) {
  1057. this.formStateEdit.timeEarly2 = moment(e.value).format('YYYY-MM-DD HH:mm:ss')
  1058. },
  1059. //午班第一次编辑选项切换
  1060. changeWb1(e) {
  1061. this.formStateEdit.timeNoon1 = moment(e.value).format('YYYY-MM-DD HH:mm:ss')
  1062. },
  1063. //午班第二次编辑选项切换
  1064. changeWb2(e) {
  1065. this.formStateEdit.timeNoon2 = moment(e.value).format('YYYY-MM-DD HH:mm:ss')
  1066. },
  1067. //晚班第一次编辑选项切换
  1068. changeNb1(e) {
  1069. this.formStateEdit.timeNight1 = moment(e.value).format('YYYY-MM-DD HH:mm:ss')
  1070. },
  1071. //晚班第二次编辑选项切换
  1072. changeNb2(e) {
  1073. this.formStateEdit.timeNight2 = moment(e.value).format('YYYY-MM-DD HH:mm:ss')
  1074. },
  1075. change1(e) {
  1076. this.formState.time0 = moment(e.value).format('YYYY-MM-DD HH:mm:ss')
  1077. },
  1078. changeTb(e) {
  1079. this.tbTime = moment(e.value).format('YYYY-MM-DD')
  1080. },
  1081. //瓦斯新增
  1082. getAdd() {
  1083. let that = this
  1084. that.isShowAdd = true
  1085. that.formState.jcy = this.username
  1086. let params = {}
  1087. if (that.formState.bc == '早班' && that.formState.count == '第一次') {
  1088. params = {
  1089. timeEarly1: that.formState.time,
  1090. reportTime: that.formState.tbrq
  1091. }
  1092. } else if (that.formState.bc == '早班' && that.formState.count == '第二次') {
  1093. params = {
  1094. timeEarly2: that.formState.time,
  1095. reportTime: that.formState.tbrq
  1096. }
  1097. } else if (that.formState.bc == '中班' && that.formState.count == '第一次') {
  1098. params = {
  1099. timeNoon1: that.formState.time,
  1100. reportTime: that.formState.tbrq
  1101. }
  1102. } else if (that.formState.bc == '中班' && that.formState.count == '第二次') {
  1103. params = {
  1104. timeNoon2: that.formState.time,
  1105. reportTime: that.formState.tbrq
  1106. }
  1107. } else if (that.formState.bc == '夜班' && that.formState.count == '第一次') {
  1108. params = {
  1109. timeNight1: that.formState.time,
  1110. reportTime: that.formState.tbrq
  1111. }
  1112. } else if (that.formState.bc == '夜班' && that.formState.count == '第二次') {
  1113. params = {
  1114. timeNight2: that.formState.time,
  1115. reportTime: that.formState.tbrq
  1116. }
  1117. } else {
  1118. that.formState.bc = '早班'
  1119. that.formState.count = '第一次'
  1120. params = {
  1121. timeEarly1: that.formState.time,
  1122. reportTime: that.formState.tbrq
  1123. }
  1124. }
  1125. new Promise((resolve, reject) => {
  1126. api
  1127. .getGas(params)
  1128. .then((response) => {
  1129. if (response.data.code == 200) {
  1130. let data = response.data.result.records
  1131. if (data.length != 0) {
  1132. that.saveShow = 'edit'
  1133. that.saveShowList = data[0]
  1134. that.formState = {
  1135. id: data.id,
  1136. bc: that.formState.bc,
  1137. count: that.formState.count,
  1138. jcdd: data.strInstallPos,
  1139. jcy: that.formState.jcy,
  1140. // jcy: that.formState.bc == '早班' ? data.checkPersonEarly : that.formState.bc == '中班' ? data.checkPersonNoon : data.checkPersonNight,
  1141. time: that.formState.time,
  1142. tbrq: that.formState.tbrq,
  1143. temp: that.formState.bc == '早班' && that.formState.count == '第一次' ? data.tEarly1 : that.formState.bc == '早班' && that.formState.count == '第二次' ? data.tEarly2 : that.formState.bc == '中班' && that.formState.count == '第一次' ? data.tNoon1 : that.formState.bc == '中班' && that.formState.count == '第二次' ? data.tNoon2 : that.formState.bc == '夜班' && that.formState.count == '第一次' ? data.tNight1 : that.formState.bc == '夜班' && that.formState.count == '第二次' ? data.tNight2 : '',
  1144. ch4: that.formState.bc == '早班' && that.formState.count == '第一次' ? data.ch4Early1 : that.formState.bc == '早班' && that.formState.count == '第二次' ? data.ch4Early2 : that.formState.bc == '中班' && that.formState.count == '第一次' ? data.ch4Noon1 : that.formState.bc == '中班' && that.formState.count == '第二次' ? data.ch4Noon2 : that.formState.bc == '夜班' && that.formState.count == '第一次' ? data.ch4Night1 : that.formState.bc == '夜班' && that.formState.count == '第二次' ? data.ch4Night2 : '',
  1145. co2: that.formState.bc == '早班' && that.formState.count == '第一次' ? data.co2Early1 : that.formState.bc == '早班' && that.formState.count == '第二次' ? data.co2Early2 : that.formState.bc == '中班' && that.formState.count == '第一次' ? data.co2Noon1 : that.formState.bc == '中班' && that.formState.count == '第二次' ? data.co2Noon2 : that.formState.bc == '夜班' && that.formState.count == '第一次' ? data.co2Night1 : that.formState.bc == '夜班' && that.formState.count == '第二次' ? data.co2Night2 : '',
  1146. co: that.formState.bc == '早班' && that.formState.count == '第一次' ? data.coEarly1 : that.formState.bc == '早班' && that.formState.count == '第二次' ? data.coEarly2 : that.formState.bc == '中班' && that.formState.count == '第一次' ? data.coNoon1 : that.formState.bc == '中班' && that.formState.count == '第二次' ? data.coNoon2 : that.formState.bc == '夜班' && that.formState.count == '第一次' ? data.coNight1 : that.formState.bc == '夜班' && that.formState.count == '第二次' ? data.coNight2 : '',
  1147. o2: that.formState.bc == '早班' && that.formState.count == '第一次' ? data.o2Early1 : that.formState.bc == '早班' && that.formState.count == '第二次' ? data.o2Early2 : that.formState.bc == '中班' && that.formState.count == '第一次' ? data.o2Noon1 : that.formState.bc == '中班' && that.formState.count == '第二次' ? data.o2Noon2 : that.formState.bc == '夜班' && that.formState.count == '第一次' ? data.o2Night1 : that.formState.bc == '夜班' && that.formState.count == '第二次' ? data.o2Night2 : '',
  1148. jw: that.formState.bc == '早班' && that.formState.count == '第一次' ? data.jwSdzEarly1 : that.formState.bc == '早班' && that.formState.count == '第二次' ? data.jwSdzEarly2 : that.formState.bc == '中班' && that.formState.count == '第一次' ? data.jwSdzNoon1 : that.formState.bc == '中班' && that.formState.count == '第二次' ? data.jwSdzNoon2 : that.formState.bc == '夜班' && that.formState.count == '第一次' ? data.jwSdzNight1 : that.formState.bc == '夜班' && that.formState.count == '第二次' ? data.jwSdzNight2 : '',
  1149. gw: that.formState.bc == '早班' && that.formState.count == '第一次' ? data.gwSdzEarly1 : that.formState.bc == '早班' && that.formState.count == '第二次' ? data.gwSdzEarly2 : that.formState.bc == '中班' && that.formState.count == '第一次' ? data.gwSdzNoon1 : that.formState.bc == '中班' && that.formState.count == '第二次' ? data.gwSdzNoon2 : that.formState.bc == '夜班' && that.formState.count == '第一次' ? data.gwSdzNight1 : that.formState.bc == '夜班' && that.formState.count == '第二次' ? data.gwSdzNight2 : '',
  1150. bxy: that.formState.bc == '早班' && that.formState.count == '第一次' ? data.bxySdzEarly1 : that.formState.bc == '早班' && that.formState.count == '第二次' ? data.bxySdzEarly2 : that.formState.bc == '中班' && that.formState.count == '第一次' ? data.bxySdzNoon1 : that.formState.bc == '中班' && that.formState.count == '第二次' ? data.bxySdzNoon2 : that.formState.bc == '夜班' && that.formState.count == '第一次' ? data.bxySdzNight1 : that.formState.bc == '夜班' && that.formState.count == '第二次' ? data.bxySdzNight2 : '',
  1151. }
  1152. // that.getEditSave()
  1153. } else {
  1154. that.formState = {
  1155. id: '',
  1156. bc: that.formState.bc,
  1157. count: that.formState.count,
  1158. jcdd: '',
  1159. jcy: that.formState.jcy,
  1160. time: that.formState.time,
  1161. tbrq: that.formState.tbrq,
  1162. ch4: '',
  1163. co2: '',
  1164. co: '',
  1165. o2: '',
  1166. jw: '',
  1167. gw: '',
  1168. bxy: '',
  1169. temp: '',
  1170. }
  1171. // that.getAddSave()
  1172. that.saveShow = 'add'
  1173. }
  1174. } else {
  1175. reject(response);
  1176. }
  1177. })
  1178. .catch((error) => {
  1179. console.log("catch===>response", response);
  1180. reject(error);
  1181. });
  1182. });
  1183. },
  1184. getAddSave() {
  1185. let that = this
  1186. that.formState.jcy = that.username
  1187. let param = {}
  1188. if (that.formState.bc == '早班' && that.formState.count == '第一次') {
  1189. param = {
  1190. id: that.formState.id,
  1191. bxySdzEarly1: that.formState.bxy,
  1192. ch4Early1: that.formState.ch4,
  1193. checkPersonEarly: that.formState.jcy,
  1194. co2Early1: that.formState.co2,
  1195. coEarly1: that.formState.co,
  1196. gwSdzEarly1: that.formState.gw,
  1197. jwSdzEarly1: that.formState.jw,
  1198. o2Early1: that.formState.o2,
  1199. strInstallPos: that.formState.jcdd,
  1200. timeEarly1: that.formState.time,
  1201. reportTime: that.formState.tbrq,
  1202. tEarly1: that.formState.temp
  1203. }
  1204. } else if (that.formState.bc == '早班' && that.formState.count == '第二次') {
  1205. param = {
  1206. id: that.formState.id,
  1207. bxySdzEarly2: that.formState.bxy,
  1208. ch4Early2: that.formState.ch4,
  1209. checkPersonEarly: that.formState.jcy,
  1210. co2Early2: that.formState.co2,
  1211. coEarly2: that.formState.co,
  1212. gwSdzEarly2: that.formState.gw,
  1213. jwSdzEarly2: that.formState.jw,
  1214. o2Early2: that.formState.o2,
  1215. strInstallPos: that.formState.jcdd,
  1216. timeEarly2: that.formState.time,
  1217. reportTime: that.formState.tbrq,
  1218. tEarly2: that.formState.temp
  1219. }
  1220. } else if (that.formState.bc == '中班' && that.formState.count == '第一次') {
  1221. param = {
  1222. id: that.formState.id,
  1223. bxySdzNoon1: that.formState.bxy,
  1224. ch4Noon1: that.formState.ch4,
  1225. checkPersonNoon: that.formState.jcy,
  1226. co2Noon1: that.formState.co2,
  1227. coNoon1: that.formState.co,
  1228. gwSdzNoon1: that.formState.gw,
  1229. jwSdzNoon1: that.formState.jw,
  1230. o2Noon1: that.formState.o2,
  1231. strInstallPos: that.formState.jcdd,
  1232. timeNoon1: that.formState.time,
  1233. reportTime: that.formState.tbrq,
  1234. tNoon1: that.formState.temp
  1235. }
  1236. } else if (that.formState.bc == '中班' && that.formState.count == '第二次') {
  1237. param = {
  1238. id: that.formState.id,
  1239. bxySdzNoon2: that.formState.bxy,
  1240. ch4Noon2: that.formState.ch4,
  1241. checkPersonNoon: that.formState.jcy,
  1242. co2Noon2: that.formState.co2,
  1243. coNoon2: that.formState.co,
  1244. gwSdzNoon2: that.formState.gw,
  1245. jwSdzNoon2: that.formState.jw,
  1246. o2Noon2: that.formState.o2,
  1247. strInstallPos: that.formState.jcdd,
  1248. timeNoon2: that.formState.time,
  1249. reportTime: that.formState.tbrq,
  1250. tNoon2: that.formState.temp
  1251. }
  1252. } else if (that.formState.bc == '夜班' && that.formState.count == '第一次') {
  1253. param = {
  1254. id: that.formState.id,
  1255. bxySdzNight1: that.formState.bxy,
  1256. ch4Night1: that.formState.ch4,
  1257. checkPersonNight: that.formState.jcy,
  1258. co2Night1: that.formState.co2,
  1259. coNight1: that.formState.co,
  1260. gwSdzNight1: that.formState.gw,
  1261. jwSdzNight1: that.formState.jw,
  1262. o2Night1: that.formState.o2,
  1263. strInstallPos: that.formState.jcdd,
  1264. timeNight1: that.formState.time,
  1265. reportTime: that.formState.tbrq,
  1266. tNight1: that.formState.temp
  1267. }
  1268. } else if (that.formState.bc == '夜班' && that.formState.count == '第二次') {
  1269. param = {
  1270. id: that.formState.id,
  1271. bxySdzNight2: that.formState.bxy,
  1272. ch4Night2: that.formState.ch4,
  1273. checkPersonNoon: that.formState.jcy,
  1274. co2Night2: that.formState.co2,
  1275. coNight2: that.formState.co,
  1276. gwSdzNight2: that.formState.gw,
  1277. jwSdzNight2: that.formState.jw,
  1278. o2Night2: that.formState.o2,
  1279. strInstallPos: that.formState.jcdd,
  1280. timeNight2: that.formState.time,
  1281. reportTime: that.formState.tbrq,
  1282. tNight2: that.formState.temp
  1283. }
  1284. }
  1285. new Promise((resolve, reject) => {
  1286. api
  1287. .getAdd({ ...param })
  1288. .then((response) => {
  1289. if (response.data.code == 200) {
  1290. this.getGasList()
  1291. this.isShowAdd = false
  1292. this.clearData()
  1293. } else {
  1294. reject(response);
  1295. }
  1296. })
  1297. .catch((error) => {
  1298. console.log("catch===>response", response);
  1299. reject(error);
  1300. });
  1301. });
  1302. },
  1303. getEditSave() {
  1304. let that = this
  1305. that.formState.jcy = that.username
  1306. let param = {}
  1307. if (that.formState.bc == '早班' && that.formState.count == '第一次') {
  1308. param = {
  1309. id: that.formState.id,
  1310. bxySdzEarly1: that.formState.bxy,
  1311. ch4Early1: that.formState.ch4,
  1312. checkPersonEarly: that.formState.jcy,
  1313. co2Early1: that.formState.co2,
  1314. coEarly1: that.formState.co,
  1315. gwSdzEarly1: that.formState.gw,
  1316. jwSdzEarly1: that.formState.jw,
  1317. o2Early1: that.formState.o2,
  1318. strInstallPos: that.formState.jcdd,
  1319. timeEarly1: that.formState.time,
  1320. tEarly1: that.formState.temp,
  1321. bxySdzEarly2: that.saveShowList.bxySdzEarly2,
  1322. ch4Early2: that.saveShowList.ch4Early2,
  1323. co2Early2: that.saveShowList.co2Early2,
  1324. coEarly2: that.saveShowList.coEarly2,
  1325. gwSdzEarly2: that.saveShowList.gwSdzEarly2,
  1326. jwSdzEarly2: that.saveShowList.jwSdzEarly2,
  1327. o2Early2: that.saveShowList.o2Early2,
  1328. timeEarly2: that.saveShowList.timeEarly2,
  1329. tEarly2: that.saveShowList.tEarly2,
  1330. bxySdzNoon1: that.saveShowList.bxySdzNoon1,
  1331. ch4Noon1: that.saveShowList.ch4Noon1,
  1332. checkPersonNoon: that.formState.jcy,
  1333. co2Noon1: that.saveShowList.co2Noon1,
  1334. coNoon1: that.saveShowList.coNoon1,
  1335. gwSdzNoon1: that.saveShowList.gwSdzNoon1,
  1336. jwSdzNoon1: that.saveShowList.jwSdzNoon1,
  1337. o2Noon1: that.saveShowList.o2Noon1,
  1338. strInstallPos: that.saveShowList.strInstallPos,
  1339. timeNoon1: that.saveShowList.timeNoon1,
  1340. tNoon1: that.saveShowList.tNoon1,
  1341. bxySdzNoon2: that.saveShowList.bxySdzNoon2,
  1342. ch4Noon2: that.saveShowList.ch4Noon2,
  1343. co2Noon2: that.saveShowList.co2Noon2,
  1344. coNoon2: that.saveShowList.coNoon2,
  1345. gwSdzNoon2: that.saveShowList.gwSdzNoon2,
  1346. jwSdzNoon2: that.saveShowList.jwSdzNoon2,
  1347. o2Noon2: that.saveShowList.o2Noon2,
  1348. timeNoon2: that.saveShowList.timeNoon2,
  1349. tNoon2: that.saveShowList.tNoon2,
  1350. bxySdzNight1: that.saveShowList.bxySdzNight1,
  1351. ch4Night1: that.saveShowList.ch4Night1,
  1352. checkPersonNight: that.formState.jcy,
  1353. co2Night1: that.saveShowList.co2Night1,
  1354. coNight1: that.saveShowList.coNight1,
  1355. gwSdzNight1: that.saveShowList.gwSdzNight1,
  1356. jwSdzNight1: that.saveShowList.jwSdzNight1,
  1357. o2Night1: that.saveShowList.o2Night1,
  1358. strInstallPos: that.saveShowList.strInstallPos,
  1359. timeNight1: that.saveShowList.timeNight1,
  1360. tNight1: that.saveShowList.tNight1,
  1361. bxySdzNight2: that.saveShowList.bxySdzNight2,
  1362. ch4Night2: that.saveShowList.ch4Night2,
  1363. co2Night2: that.saveShowList.co2Night2,
  1364. coNight2: that.saveShowList.coNight2,
  1365. gwSdzNight2: that.saveShowList.gwSdzNight2,
  1366. jwSdzNight2: that.saveShowList.jwSdzNight2,
  1367. o2Night2: that.saveShowList.o2Night2,
  1368. timeNight2: that.saveShowList.timeNight2,
  1369. tNight2: that.saveShowList.tNight2,
  1370. }
  1371. } else if (that.formState.bc == '早班' && that.formState.count == '第二次') {
  1372. param = {
  1373. id: that.formState.id,
  1374. bxySdzEarly1: that.saveShowList.bxySdzEarly1,
  1375. ch4Early1: that.saveShowList.ch4Early1,
  1376. co2Early1: that.saveShowList.co2Early1,
  1377. coEarly1: that.saveShowList.coEarly1,
  1378. gwSdzEarly1: that.saveShowList.gwSdzEarly1,
  1379. jwSdzEarly1: that.saveShowList.jwSdzEarly1,
  1380. o2Early1: that.saveShowList.o2Early1,
  1381. timeEarly1: that.saveShowList.timeEarly1,
  1382. tEarly1: that.saveShowList.tEarly1,
  1383. bxySdzEarly2: that.formState.bxy,
  1384. ch4Early2: that.formState.ch4,
  1385. checkPersonEarly: that.formState.jcy,
  1386. co2Early2: that.formState.co2,
  1387. coEarly2: that.formState.co,
  1388. gwSdzEarly2: that.formState.gw,
  1389. jwSdzEarly2: that.formState.jw,
  1390. o2Early2: that.formState.o2,
  1391. strInstallPos: that.formState.jcdd,
  1392. timeEarly2: that.formState.time,
  1393. tEarly2: that.formState.temp,
  1394. bxySdzNoon1: that.saveShowList.bxySdzNoon1,
  1395. ch4Noon1: that.saveShowList.ch4Noon1,
  1396. checkPersonNoon: that.formState.jcy,
  1397. co2Noon1: that.saveShowList.co2Noon1,
  1398. coNoon1: that.saveShowList.coNoon1,
  1399. gwSdzNoon1: that.saveShowList.gwSdzNoon1,
  1400. jwSdzNoon1: that.saveShowList.jwSdzNoon1,
  1401. o2Noon1: that.saveShowList.o2Noon1,
  1402. strInstallPos: that.saveShowList.strInstallPos,
  1403. timeNoon1: that.saveShowList.timeNoon1,
  1404. tNoon1: that.saveShowList.tNoon1,
  1405. bxySdzNoon2: that.saveShowList.bxySdzNoon2,
  1406. ch4Noon2: that.saveShowList.ch4Noon2,
  1407. co2Noon2: that.saveShowList.co2Noon2,
  1408. coNoon2: that.saveShowList.coNoon2,
  1409. gwSdzNoon2: that.saveShowList.gwSdzNoon2,
  1410. jwSdzNoon2: that.saveShowList.jwSdzNoon2,
  1411. o2Noon2: that.saveShowList.o2Noon2,
  1412. timeNoon2: that.saveShowList.timeNoon2,
  1413. tNoon2: that.saveShowList.tNoon2,
  1414. bxySdzNight1: that.saveShowList.bxySdzNight1,
  1415. ch4Night1: that.saveShowList.ch4Night1,
  1416. checkPersonNight: that.formState.jcy,
  1417. co2Night1: that.saveShowList.co2Night1,
  1418. coNight1: that.saveShowList.coNight1,
  1419. gwSdzNight1: that.saveShowList.gwSdzNight1,
  1420. jwSdzNight1: that.saveShowList.jwSdzNight1,
  1421. o2Night1: that.saveShowList.o2Night1,
  1422. strInstallPos: that.saveShowList.strInstallPos,
  1423. timeNight1: that.saveShowList.timeNight1,
  1424. tNight1: that.saveShowList.tNight1,
  1425. bxySdzNight2: that.saveShowList.bxySdzNight2,
  1426. ch4Night2: that.saveShowList.ch4Night2,
  1427. co2Night2: that.saveShowList.co2Night2,
  1428. coNight2: that.saveShowList.coNight2,
  1429. gwSdzNight2: that.saveShowList.gwSdzNight2,
  1430. jwSdzNight2: that.saveShowList.jwSdzNight2,
  1431. o2Night2: that.saveShowList.o2Night2,
  1432. timeNight2: that.saveShowList.timeNight2,
  1433. tNight2: that.saveShowList.tNight2,
  1434. }
  1435. } else if (that.formState.bc == '中班' && that.formState.count == '第一次') {
  1436. param = {
  1437. id: that.formState.id,
  1438. bxySdzEarly1: that.saveShowList.bxySdzEarly1,
  1439. ch4Early1: that.saveShowList.ch4Early1,
  1440. co2Early1: that.saveShowList.co2Early1,
  1441. coEarly1: that.saveShowList.coEarly1,
  1442. gwSdzEarly1: that.saveShowList.gwSdzEarly1,
  1443. jwSdzEarly1: that.saveShowList.jwSdzEarly1,
  1444. o2Early1: that.saveShowList.o2Early1,
  1445. timeEarly1: that.saveShowList.timeEarly1,
  1446. checkPersonEarly: that.formState.jcy,
  1447. strInstallPos: that.saveShowList.strInstallPos,
  1448. tEarly1: that.saveShowList.tEarly1,
  1449. bxySdzEarly2: that.saveShowList.bxySdzEarly2,
  1450. ch4Early2: that.saveShowList.ch4Early2,
  1451. co2Early2: that.saveShowList.co2Early2,
  1452. coEarly2: that.saveShowList.coEarly2,
  1453. gwSdzEarly2: that.saveShowList.gwSdzEarly2,
  1454. jwSdzEarly2: that.saveShowList.jwSdzEarly2,
  1455. o2Early2: that.saveShowList.o2Early2,
  1456. timeEarly2: that.saveShowList.timeEarly2,
  1457. tEarly2: that.saveShowList.tEarly2,
  1458. bxySdzNoon1: that.formState.bxy,
  1459. ch4Noon1: that.formState.ch4,
  1460. checkPersonNoon: that.formState.jcy,
  1461. co2Noon1: that.formState.co2,
  1462. coNoon1: that.formState.co,
  1463. gwSdzNoon1: that.formState.gw,
  1464. jwSdzNoon1: that.formState.jw,
  1465. o2Noon1: that.formState.o2,
  1466. strInstallPos: that.formState.jcdd,
  1467. timeNoon1: that.formState.time,
  1468. tNoon1: that.formState.temp,
  1469. bxySdzNoon2: that.saveShowList.bxySdzNoon2,
  1470. ch4Noon2: that.saveShowList.ch4Noon2,
  1471. co2Noon2: that.saveShowList.co2Noon2,
  1472. coNoon2: that.saveShowList.coNoon2,
  1473. gwSdzNoon2: that.saveShowList.gwSdzNoon2,
  1474. jwSdzNoon2: that.saveShowList.jwSdzNoon2,
  1475. o2Noon2: that.saveShowList.o2Noon2,
  1476. timeNoon2: that.saveShowList.timeNoon2,
  1477. tNoon2: that.saveShowList.tNoon2,
  1478. bxySdzNight1: that.saveShowList.bxySdzNight1,
  1479. ch4Night1: that.saveShowList.ch4Night1,
  1480. checkPersonNight: that.formState.jcy,
  1481. co2Night1: that.saveShowList.co2Night1,
  1482. coNight1: that.saveShowList.coNight1,
  1483. gwSdzNight1: that.saveShowList.gwSdzNight1,
  1484. jwSdzNight1: that.saveShowList.jwSdzNight1,
  1485. o2Night1: that.saveShowList.o2Night1,
  1486. strInstallPos: that.saveShowList.strInstallPos,
  1487. timeNight1: that.saveShowList.timeNight1,
  1488. tNight1: that.saveShowList.tNight1,
  1489. bxySdzNight2: that.saveShowList.bxySdzNight2,
  1490. ch4Night2: that.saveShowList.ch4Night2,
  1491. co2Night2: that.saveShowList.co2Night2,
  1492. coNight2: that.saveShowList.coNight2,
  1493. gwSdzNight2: that.saveShowList.gwSdzNight2,
  1494. jwSdzNight2: that.saveShowList.jwSdzNight2,
  1495. o2Night2: that.saveShowList.o2Night2,
  1496. timeNight2: that.saveShowList.timeNight2,
  1497. tNight2: that.saveShowList.tNight2,
  1498. }
  1499. } else if (that.formState.bc == '中班' && that.formState.count == '第二次') {
  1500. param = {
  1501. id: that.formState.id,
  1502. bxySdzEarly1: that.saveShowList.bxySdzEarly1,
  1503. ch4Early1: that.saveShowList.ch4Early1,
  1504. co2Early1: that.saveShowList.co2Early1,
  1505. coEarly1: that.saveShowList.coEarly1,
  1506. gwSdzEarly1: that.saveShowList.gwSdzEarly1,
  1507. jwSdzEarly1: that.saveShowList.jwSdzEarly1,
  1508. o2Early1: that.saveShowList.o2Early1,
  1509. timeEarly1: that.saveShowList.timeEarly1,
  1510. checkPersonEarly: that.formState.jcy,
  1511. strInstallPos: that.saveShowList.strInstallPos,
  1512. tEarly1: that.saveShowList.tEarly1,
  1513. bxySdzEarly2: that.saveShowList.bxySdzEarly2,
  1514. ch4Early2: that.saveShowList.ch4Early2,
  1515. co2Early2: that.saveShowList.co2Early2,
  1516. coEarly2: that.saveShowList.coEarly2,
  1517. gwSdzEarly2: that.saveShowList.gwSdzEarly2,
  1518. jwSdzEarly2: that.saveShowList.jwSdzEarly2,
  1519. o2Early2: that.saveShowList.o2Early2,
  1520. timeEarly2: that.saveShowList.timeEarly2,
  1521. tEarly2: that.saveShowList.tEarly2,
  1522. bxySdzNoon1: that.saveShowList.bxySdzNoon1,
  1523. ch4Noon1: that.saveShowList.ch4Noon1,
  1524. co2Noon1: that.saveShowList.co2Noon1,
  1525. coNoon1: that.saveShowList.coNoon1,
  1526. gwSdzNoon1: that.saveShowList.gwSdzNoon1,
  1527. jwSdzNoon1: that.saveShowList.jwSdzNoon1,
  1528. o2Noon1: that.saveShowList.o2Noon1,
  1529. timeNoon1: that.saveShowList.timeNoon1,
  1530. tNoon1: that.saveShowList.tNoon1,
  1531. bxySdzNoon2: that.formState.bxy,
  1532. ch4Noon2: that.formState.ch4,
  1533. checkPersonNoon: that.formState.jcy,
  1534. co2Noon2: that.formState.co2,
  1535. coNoon2: that.formState.co,
  1536. gwSdzNoon2: that.formState.gw,
  1537. jwSdzNoon2: that.formState.jw,
  1538. o2Noon2: that.formState.o2,
  1539. strInstallPos: that.formState.jcdd,
  1540. timeNoon2: that.formState.time,
  1541. tNoon2: that.formState.temp,
  1542. bxySdzNight1: that.saveShowList.bxySdzNight1,
  1543. ch4Night1: that.saveShowList.ch4Night1,
  1544. checkPersonNight: that.formState.jcy,
  1545. co2Night1: that.saveShowList.co2Night1,
  1546. coNight1: that.saveShowList.coNight1,
  1547. gwSdzNight1: that.saveShowList.gwSdzNight1,
  1548. jwSdzNight1: that.saveShowList.jwSdzNight1,
  1549. o2Night1: that.saveShowList.o2Night1,
  1550. strInstallPos: that.saveShowList.strInstallPos,
  1551. timeNight1: that.saveShowList.timeNight1,
  1552. tNight1: that.saveShowList.tNight1,
  1553. bxySdzNight2: that.saveShowList.bxySdzNight2,
  1554. ch4Night2: that.saveShowList.ch4Night2,
  1555. co2Night2: that.saveShowList.co2Night2,
  1556. coNight2: that.saveShowList.coNight2,
  1557. gwSdzNight2: that.saveShowList.gwSdzNight2,
  1558. jwSdzNight2: that.saveShowList.jwSdzNight2,
  1559. o2Night2: that.saveShowList.o2Night2,
  1560. timeNight2: that.saveShowList.timeNight2,
  1561. tNight2: that.saveShowList.tNight2,
  1562. }
  1563. } else if (that.formState.bc == '夜班' && that.formState.count == '第一次') {
  1564. param = {
  1565. id: that.formState.id,
  1566. bxySdzEarly1: that.saveShowList.bxySdzEarly1,
  1567. ch4Early1: that.saveShowList.ch4Early1,
  1568. co2Early1: that.saveShowList.co2Early1,
  1569. coEarly1: that.saveShowList.coEarly1,
  1570. gwSdzEarly1: that.saveShowList.gwSdzEarly1,
  1571. jwSdzEarly1: that.saveShowList.jwSdzEarly1,
  1572. o2Early1: that.saveShowList.o2Early1,
  1573. timeEarly1: that.saveShowList.timeEarly1,
  1574. checkPersonEarly: that.formState.jcy,
  1575. strInstallPos: that.saveShowList.strInstallPos,
  1576. tEarly1: that.saveShowList.tEarly1,
  1577. bxySdzEarly2: that.saveShowList.bxySdzEarly2,
  1578. ch4Early2: that.saveShowList.ch4Early2,
  1579. co2Early2: that.saveShowList.co2Early2,
  1580. coEarly2: that.saveShowList.coEarly2,
  1581. gwSdzEarly2: that.saveShowList.gwSdzEarly2,
  1582. jwSdzEarly2: that.saveShowList.jwSdzEarly2,
  1583. o2Early2: that.saveShowList.o2Early2,
  1584. timeEarly2: that.saveShowList.timeEarly2,
  1585. tEarly2: that.saveShowList.tEarly2,
  1586. bxySdzNoon1: that.saveShowList.bxySdzNoon1,
  1587. ch4Noon1: that.saveShowList.ch4Noon1,
  1588. co2Noon1: that.saveShowList.co2Noon1,
  1589. coNoon1: that.saveShowList.coNoon1,
  1590. gwSdzNoon1: that.saveShowList.gwSdzNoon1,
  1591. jwSdzNoon1: that.saveShowList.jwSdzNoon1,
  1592. o2Noon1: that.saveShowList.o2Noon1,
  1593. timeNoon1: that.saveShowList.timeNoon1,
  1594. tNoon1: that.saveShowList.tNoon1,
  1595. bxySdzNoon2: that.saveShowList.bxySdzNoon2,
  1596. ch4Noon2: that.saveShowList.ch4Noon2,
  1597. checkPersonNoon: that.formState.jcy,
  1598. co2Noon2: that.saveShowList.co2Noon2,
  1599. coNoon2: that.saveShowList.coNoon2,
  1600. gwSdzNoon2: that.saveShowList.gwSdzNoon2,
  1601. jwSdzNoon2: that.saveShowList.jwSdzNoon2,
  1602. o2Noon2: that.saveShowList.o2Noon2,
  1603. strInstallPos: that.saveShowList.strInstallPos,
  1604. timeNoon2: that.saveShowList.timeNoon2,
  1605. tNoon2: that.saveShowList.tNoon2,
  1606. bxySdzNight1: that.formState.bxy,
  1607. ch4Night1: that.formState.ch4,
  1608. checkPersonNight: that.formState.jcy,
  1609. co2Night1: that.formState.co2,
  1610. coNight1: that.formState.co,
  1611. gwSdzNight1: that.formState.gw,
  1612. jwSdzNight1: that.formState.jw,
  1613. o2Night1: that.formState.o2,
  1614. strInstallPos: that.formState.jcdd,
  1615. timeNight1: that.formState.time,
  1616. tNight1: that.formState.temp,
  1617. bxySdzNight2: that.saveShowList.bxySdzNight2,
  1618. ch4Night2: that.saveShowList.ch4Night2,
  1619. co2Night2: that.saveShowList.co2Night2,
  1620. coNight2: that.saveShowList.coNight2,
  1621. gwSdzNight2: that.saveShowList.gwSdzNight2,
  1622. jwSdzNight2: that.saveShowList.jwSdzNight2,
  1623. o2Night2: that.saveShowList.o2Night2,
  1624. timeNight2: that.saveShowList.timeNight2,
  1625. tNight2: that.saveShowList.tNight2,
  1626. }
  1627. } else if (that.formState.bc == '夜班' && that.formState.count == '第二次') {
  1628. param = {
  1629. id: that.formState.id,
  1630. bxySdzEarly1: that.saveShowList.bxySdzEarly1,
  1631. ch4Early1: that.saveShowList.ch4Early1,
  1632. co2Early1: that.saveShowList.co2Early1,
  1633. coEarly1: that.saveShowList.coEarly1,
  1634. gwSdzEarly1: that.saveShowList.gwSdzEarly1,
  1635. jwSdzEarly1: that.saveShowList.jwSdzEarly1,
  1636. o2Early1: that.saveShowList.o2Early1,
  1637. timeEarly1: that.saveShowList.timeEarly1,
  1638. checkPersonEarly: that.formState.jcy,
  1639. strInstallPos: that.saveShowList.strInstallPos,
  1640. tEarly1: that.saveShowList.tEarly1,
  1641. bxySdzEarly2: that.saveShowList.bxySdzEarly2,
  1642. ch4Early2: that.saveShowList.ch4Early2,
  1643. co2Early2: that.saveShowList.co2Early2,
  1644. coEarly2: that.saveShowList.coEarly2,
  1645. gwSdzEarly2: that.saveShowList.gwSdzEarly2,
  1646. jwSdzEarly2: that.saveShowList.jwSdzEarly2,
  1647. o2Early2: that.saveShowList.o2Early2,
  1648. timeEarly2: that.saveShowList.timeEarly2,
  1649. tEarly2: that.saveShowList.tEarly2,
  1650. bxySdzNoon1: that.saveShowList.bxySdzNoon1,
  1651. ch4Noon1: that.saveShowList.ch4Noon1,
  1652. co2Noon1: that.saveShowList.co2Noon1,
  1653. coNoon1: that.saveShowList.coNoon1,
  1654. gwSdzNoon1: that.saveShowList.gwSdzNoon1,
  1655. jwSdzNoon1: that.saveShowList.jwSdzNoon1,
  1656. o2Noon1: that.saveShowList.o2Noon1,
  1657. timeNoon1: that.saveShowList.timeNoon1,
  1658. tNoon1: that.saveShowList.tNoon1,
  1659. bxySdzNoon2: that.saveShowList.bxySdzNoon2,
  1660. ch4Noon2: that.saveShowList.ch4Noon2,
  1661. checkPersonNoon: that.formState.jcy,
  1662. co2Noon2: that.saveShowList.co2Noon2,
  1663. coNoon2: that.saveShowList.coNoon2,
  1664. gwSdzNoon2: that.saveShowList.gwSdzNoon2,
  1665. jwSdzNoon2: that.saveShowList.jwSdzNoon2,
  1666. o2Noon2: that.saveShowList.o2Noon2,
  1667. strInstallPos: that.saveShowList.strInstallPos,
  1668. timeNoon2: that.saveShowList.timeNoon2,
  1669. tNoon2: that.saveShowList.tNoon2,
  1670. bxySdzNight1: that.saveShowList.bxySdzNight1,
  1671. ch4Night1: that.saveShowList.ch4Night1,
  1672. co2Night1: that.saveShowList.co2Night1,
  1673. coNight1: that.saveShowList.coNight1,
  1674. gwSdzNight1: that.saveShowList.gwSdzNight1,
  1675. jwSdzNight1: that.saveShowList.jwSdzNight1,
  1676. o2Night1: that.saveShowList.o2Night1,
  1677. timeNight1: that.saveShowList.timeNight1,
  1678. tNight1: that.saveShowList.tNight1,
  1679. bxySdzNight2: that.formState.bxy,
  1680. ch4Night2: that.formState.ch4,
  1681. checkPersonNight: that.formState.jcy,
  1682. co2Night2: that.formState.co2,
  1683. coNight2: that.formState.co,
  1684. gwSdzNight2: that.formState.gw,
  1685. jwSdzNight2: that.formState.jw,
  1686. o2Night2: that.formState.o2,
  1687. strInstallPos: that.formState.jcdd,
  1688. timeNight2: that.formState.time,
  1689. tNight2: that.formState.temp,
  1690. }
  1691. }
  1692. new Promise((resolve, reject) => {
  1693. api
  1694. .getEdit({ ...param })
  1695. .then((response) => {
  1696. if (response.data.code == 200) {
  1697. this.getGasList()
  1698. this.isShowAdd = false
  1699. this.clearData()
  1700. } else {
  1701. reject(response);
  1702. }
  1703. })
  1704. .catch((error) => {
  1705. console.log("catch===>response", response);
  1706. reject(error);
  1707. });
  1708. });
  1709. },
  1710. //新增保存
  1711. getConfirm() {
  1712. let that = this
  1713. if (that.saveShow = 'add') {
  1714. that.getAddSave()
  1715. } else {
  1716. that.getEditSave()
  1717. }
  1718. },
  1719. //编辑保存
  1720. getConfirmEdit() {
  1721. new Promise((resolve, reject) => {
  1722. api
  1723. .getEdit({ ...this.formStateEdit })
  1724. .then((response) => {
  1725. if (response.data.code == 200) {
  1726. this.getGasList()
  1727. this.isShowEdit = false
  1728. this.clearEdit()
  1729. } else {
  1730. reject(response);
  1731. }
  1732. })
  1733. .catch((error) => {
  1734. console.log("catch===>response", response);
  1735. reject(error);
  1736. });
  1737. });
  1738. },
  1739. clearData() {
  1740. this.formState = {
  1741. id: '',
  1742. bc: '',
  1743. count: '',
  1744. jcdd: '',
  1745. jcy: this.username,
  1746. time: '',
  1747. ch4: '',
  1748. co2: '',
  1749. co: '',
  1750. o2: '',
  1751. jw: '',
  1752. gw: '',
  1753. bxy: '',
  1754. tbrq: '',
  1755. temp: '',
  1756. }
  1757. this.isRule = true
  1758. this.isRule1 = true
  1759. this.isRule2 = true
  1760. this.isRule3 = true
  1761. this.isRule4 = true
  1762. this.isRule5 = true
  1763. this.isRule6 = true
  1764. this.isRule7 = true
  1765. this.isRule8 = true
  1766. this.isRule9 = true
  1767. this.isRule10 = true
  1768. this.isRule11 = true
  1769. this.isRule12 = true
  1770. this.isRule13 = true
  1771. this.isRule14 = true
  1772. this.isRule15 = true
  1773. this.isRule16 = true
  1774. this.isRule17 = true
  1775. this.isRule18 = true
  1776. this.isRule19 = true
  1777. this.isRule20 = true
  1778. },
  1779. clearEdit() {
  1780. this.isRule = true
  1781. this.isRule1 = true
  1782. this.isRule2 = true
  1783. this.isRule3 = true
  1784. this.isRule4 = true
  1785. this.isRule5 = true
  1786. this.isRule6 = true
  1787. this.isRule7 = true
  1788. this.isRule8 = true
  1789. this.isRule9 = true
  1790. this.isRule10 = true
  1791. this.isRule11 = true
  1792. this.isRule12 = true
  1793. this.isRule13 = true
  1794. this.isRule14 = true
  1795. this.isRule15 = true
  1796. this.isRule16 = true
  1797. this.isRule17 = true
  1798. this.isRule18 = true
  1799. this.isRule19 = true
  1800. this.isRule20 = true
  1801. },
  1802. //新增取消
  1803. getCancel() {
  1804. this.isShowAdd = false
  1805. this.clearData()
  1806. },
  1807. //编辑取消
  1808. getCancelEdit() {
  1809. this.isShowEdit = false
  1810. this.clearEdit()
  1811. },
  1812. //瓦斯编辑
  1813. getEdit(item) {
  1814. console.log(item, '4333=====')
  1815. this.isShowEdit = true
  1816. this.formState.jcy = this.username
  1817. // this.formStateEdit = { ...item }
  1818. this.formStateEdit = {
  1819. id: item.id || '',
  1820. bxySdzEarly1: item.bxySdzEarly1 || '',
  1821. ch4Early1: item.ch4Early1 || '',
  1822. checkPersonEarly: this.formState.jcy,
  1823. co2Early1: item.co2Early1 || '',
  1824. coEarly1: item.coEarly1 || '',
  1825. gwSdzEarly1: item.gwSdzEarly1 || '',
  1826. jwSdzEarly1: item.jwSdzEarly1 || '',
  1827. o2Early1: item.o2Early1 || '',
  1828. timeEarly1: item.timeEarly1 || '',
  1829. tEarly1: item.tEarly1 || '',
  1830. bxySdzEarly2: item.bxySdzEarly2 || '',
  1831. ch4Early2: item.ch4Early2 || '',
  1832. co2Early2: item.co2Early2 || '',
  1833. coEarly2: item.coEarly2 || '',
  1834. gwSdzEarly2: item.gwSdzEarly2 || '',
  1835. jwSdzEarly2: item.jwSdzEarly2 || '',
  1836. o2Early2: item.o2Early2 || '',
  1837. timeEarly2: item.timeEarly2 || '',
  1838. tEarly2: item.tEarly2 || '',
  1839. bxySdzNoon1: item.bxySdzNoon1 || '',
  1840. ch4Noon1: item.ch4Noon1 || '',
  1841. checkPersonNoon: this.formState.jcy,
  1842. co2Noon1: item.co2Noon1 || '',
  1843. coNoon1: item.coNoon1 || '',
  1844. gwSdzNoon1: item.gwSdzNoon1 || '',
  1845. jwSdzNoon1: item.jwSdzNoon1 || '',
  1846. o2Noon1: item.o2Noon1 || '',
  1847. timeNoon1: item.timeNoon1 || '',
  1848. tNoon1: item.tNoon1 || '',
  1849. bxySdzNoon2: item.bxySdzNoon2 || '',
  1850. ch4Noon2: item.ch4Noon2 || '',
  1851. co2Noon2: item.co2Noon2 || '',
  1852. coNoon2: item.coNoon2 || '',
  1853. gwSdzNoon2: item.gwSdzNoon2 || '',
  1854. jwSdzNoon2: item.jwSdzNoon2 || '',
  1855. o2Noon2: item.o2Noon2 || '',
  1856. timeNoon2: item.timeNoon2 || '',
  1857. tNoon2: item.tNoon2 || '',
  1858. bxySdzNight1: item.bxySdzNight1 || '',
  1859. ch4Night1: item.ch4Night1 || '',
  1860. checkPersonNight: this.formState.jcy,
  1861. co2Night1: item.co2Night1 || '',
  1862. coNight1: item.coNight1 || '',
  1863. gwSdzNight1: item.gwSdzNight1 || '',
  1864. jwSdzNight1: item.jwSdzNight1 || '',
  1865. o2Night1: item.o2Night1 || '',
  1866. timeNight1: item.timeNight1 || '',
  1867. tNight1: item.tNight1 || '',
  1868. bxySdzNight2: item.bxySdzNight2 || '',
  1869. ch4Night2: item.ch4Night2 || '',
  1870. co2Night2: item.co2Night2 || '',
  1871. coNight2: item.coNight2 || '',
  1872. gwSdzNight2: item.gwSdzNight2 || '',
  1873. jwSdzNight2: item.jwSdzNight2 || '',
  1874. o2Night2: item.o2Night2 || '',
  1875. timeNight2: item.timeNight2 || '',
  1876. tNight2: item.tNight2 || '',
  1877. }
  1878. },
  1879. //瓦斯删除
  1880. getDel(item) {
  1881. new Promise((resolve, reject) => {
  1882. api
  1883. .delGas({ id: item.id })
  1884. .then((response) => {
  1885. if (response.data.code == 200) {
  1886. this.getGasList()
  1887. } else {
  1888. reject(response);
  1889. }
  1890. })
  1891. .catch((error) => {
  1892. console.log("catch===>response", response);
  1893. reject(error);
  1894. });
  1895. });
  1896. },
  1897. //获取瓦斯上报列表数据
  1898. getGasList() {
  1899. new Promise((resolve, reject) => {
  1900. api
  1901. .getGas({ reportTime: this.tbTime })
  1902. .then((response) => {
  1903. if (response.data.code == 200) {
  1904. let data = response.data.result.records
  1905. this.gasList = data
  1906. } else {
  1907. reject(response);
  1908. }
  1909. })
  1910. .catch((error) => {
  1911. console.log("catch===>response", response);
  1912. reject(error);
  1913. });
  1914. });
  1915. },
  1916. //获取煤层工作面列表数据
  1917. getMcList() {
  1918. new Promise((resolve, reject) => {
  1919. api
  1920. .getDictItems({ dictCode: 'coalseam' })
  1921. .then((response) => {
  1922. console.log(response, 'response--------')
  1923. let data = response.data
  1924. this.rangeMcgzm = data.map(el => {
  1925. return {
  1926. text: el.label,
  1927. value: el.value,
  1928. }
  1929. })
  1930. })
  1931. .catch((error) => {
  1932. console.log("catch===>response", response);
  1933. reject(error);
  1934. });
  1935. });
  1936. }
  1937. },
  1938. };
  1939. </script>
  1940. <style lang="scss" scoped>
  1941. .gas-report {
  1942. position: relative;
  1943. box-sizing: border-box;
  1944. .gas-content {
  1945. height: 708px;
  1946. margin-top: 85px;
  1947. box-sizing: border-box;
  1948. overflow-y: auto;
  1949. .top-title {
  1950. height: 28px;
  1951. margin-bottom: 5px;
  1952. display: flex;
  1953. justify-content: space-between;
  1954. align-items: center;
  1955. }
  1956. .top-content {
  1957. .content-title {
  1958. height: 26px;
  1959. line-height: 26px;
  1960. padding: 0px 20px;
  1961. font-size: 12px;
  1962. background: url('/static/warndata/title.png') no-repeat;
  1963. background-size: 100% 100%;
  1964. }
  1965. .content-item-box {
  1966. padding: 10px 0px;
  1967. .content-item {
  1968. height: 50px;
  1969. display: flex;
  1970. justify-content: space-between;
  1971. align-items: center;
  1972. background: linear-gradient(to right, rgba(55, 135, 254, 0.08), rgba(4, 184, 255, 0.08), rgba(60, 161, 237, 0.08));
  1973. border-radius: 10px;
  1974. margin-bottom: 5px;
  1975. .item-l {
  1976. width: calc(50% - 2px);
  1977. height: 100%;
  1978. display: flex;
  1979. flex-direction: column;
  1980. justify-content: center;
  1981. align-items: center;
  1982. }
  1983. .item-c {
  1984. width: 4px;
  1985. height: 70%;
  1986. border-left: 2px solid;
  1987. border-image: linear-gradient(to bottom, transparent, rgba(140, 203, 254, 1), transparent) 1 1 1;
  1988. }
  1989. .item-r {
  1990. width: calc(50% - 2px);
  1991. height: 100%;
  1992. display: flex;
  1993. flex-direction: column;
  1994. justify-content: center;
  1995. align-items: center;
  1996. }
  1997. }
  1998. }
  1999. }
  2000. .item-value {
  2001. height: 20px;
  2002. line-height: 20px;
  2003. color: #0eb4fc;
  2004. font-weight: bold;
  2005. }
  2006. .item-label {
  2007. font-size: 12px;
  2008. }
  2009. .top-dialog-area,
  2010. .center-dialog-area,
  2011. .bottom-dialog-area {
  2012. width: 100%;
  2013. padding: 10px;
  2014. box-sizing: border-box;
  2015. background-color: #FFF;
  2016. margin-bottom: 2px;
  2017. }
  2018. .top-gas-list {
  2019. display: flex;
  2020. flex-direction: column;
  2021. align-items: center;
  2022. width: 100%;
  2023. padding: 10px 20px;
  2024. box-sizing: border-box;
  2025. background-color: #FFF;
  2026. margin-bottom: 2px;
  2027. }
  2028. .bot-gas-list {
  2029. width: 100%;
  2030. height: calc(100% - 94px);
  2031. padding: 10px;
  2032. box-sizing: border-box;
  2033. background-color: #FFF;
  2034. margin-bottom: 2px;
  2035. overflow-y: auto;
  2036. }
  2037. .dialog-btn {
  2038. display: flex;
  2039. width: 100%;
  2040. padding: 8px 10px;
  2041. box-sizing: border-box;
  2042. background-color: #FFF;
  2043. // margin-bottom: 2px;
  2044. .u-button {
  2045. margin: 0px 10px;
  2046. }
  2047. }
  2048. .dialog-title {
  2049. height: 26px;
  2050. line-height: 26px;
  2051. padding: 0px 20px;
  2052. margin-bottom: 10px;
  2053. font-size: 12px;
  2054. background: url('/static/warndata/title.png') no-repeat;
  2055. background-size: 100% 100%;
  2056. }
  2057. .dialog-item {
  2058. display: flex;
  2059. align-items: center;
  2060. justify-content: center;
  2061. margin-bottom: 10px;
  2062. .dialog-label {
  2063. width: 120px;
  2064. text-align: right;
  2065. }
  2066. }
  2067. .search-box {
  2068. display: flex;
  2069. align-items: center;
  2070. justify-content: center;
  2071. margin-bottom: 10px;
  2072. .dialog-label {
  2073. width: 80px;
  2074. text-align: right;
  2075. }
  2076. }
  2077. .content-title-gas {
  2078. position: relative;
  2079. height: 26px;
  2080. line-height: 26px;
  2081. padding-left: 20px;
  2082. font-size: 12px;
  2083. background: url('/static/warndata/title.png') no-repeat;
  2084. background-size: 100% 100%;
  2085. }
  2086. .icon-gas-edit {
  2087. position: absolute;
  2088. right: 35px;
  2089. top: 0;
  2090. cursor: pointer;
  2091. }
  2092. .icon-gas-del {
  2093. position: absolute;
  2094. right: 10px;
  2095. top: 0;
  2096. cursor: pointer;
  2097. }
  2098. }
  2099. }
  2100. ::v-deep .u-input {
  2101. padding: 2px 6px !important;
  2102. }
  2103. ::v-deep .u-popup {
  2104. flex: 0;
  2105. }
  2106. ::v-deep .uni-select {
  2107. height: 30px;
  2108. border: 1px solid #dadbde;
  2109. }
  2110. ::v-deep .uni-select__input-box {
  2111. height: 30px;
  2112. }
  2113. ::v-deep .uni-select__input-placeholder {
  2114. font-size: 14px;
  2115. text-align: center;
  2116. color: rgb(192, 196, 204);
  2117. }
  2118. </style>