gasFill.vue 105 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005
  1. <template>
  2. <view class="gas-fill">
  3. <!-- 瓦斯上报列表 -->
  4. <view v-if="!isShowAdd && !zcShow">
  5. <view class="top-gas-list">
  6. <view class="search-box" @click="getChangeTimeTb">
  7. <text class="dialog-label">填报时间:</text>
  8. <u--input
  9. v-model="tbTime"
  10. placeholder="请选择填报时间"
  11. inputAlign="center"
  12. suffixIcon="arrow-right"
  13. ></u--input>
  14. <u-datetime-picker
  15. :show="showCalendarTb"
  16. v-model="timeRan"
  17. mode="date"
  18. closeOnClickOverlay
  19. @confirm="confirmTb"
  20. @cancel="showCalendarTb = false"
  21. @change="changeTb"
  22. @close="showCalendarTb = false"
  23. ></u-datetime-picker>
  24. </view>
  25. <u-button
  26. v-if="hasPermission('gasReport:add')"
  27. type="primary"
  28. size="small"
  29. style="margin: 2px 0px"
  30. @click="getAdd"
  31. >新增</u-button
  32. >
  33. <u-button
  34. type="success"
  35. size="small"
  36. style="margin: 2px 0px"
  37. @click="openZc"
  38. >暂存列表</u-button
  39. >
  40. </view>
  41. <view class="bot-gas-list">
  42. <view class="top-title">
  43. <view style="font-weight: bold">瓦斯填报列表</view>
  44. </view>
  45. <view class="top-content" v-for="(item, index) in gasList" :key="index">
  46. <view class="content-title-gas">
  47. <text>
  48. {{ item.strInstallPos || "--" }}
  49. </text>
  50. </view>
  51. <view class="content-item-box">
  52. <view class="content-item">
  53. <view class="item-l">
  54. <view class="item-value">{{ item.timeNight1 || "--" }}</view>
  55. <view class="item-label">夜班监测时间一</view>
  56. </view>
  57. <view class="item-c"></view>
  58. <view class="item-r">
  59. <view class="item-value">{{ item.timeNight2 || "--" }}</view>
  60. <view class="item-label">夜班监测时间二</view>
  61. </view>
  62. </view>
  63. <view class="content-item">
  64. <view class="item-l">
  65. <view class="item-value">{{ item.timeEarly1 || "--" }}</view>
  66. <view class="item-label">早班监测时间一</view>
  67. </view>
  68. <view class="item-c"></view>
  69. <view class="item-r">
  70. <view class="item-value">{{ item.timeEarly2 || "--" }}</view>
  71. <view class="item-label">早班监测时间二</view>
  72. </view>
  73. </view>
  74. <view class="content-item">
  75. <view class="item-l">
  76. <view class="item-value">{{ item.timeNoon1 || "--" }}</view>
  77. <view class="item-label">中班监测时间一</view>
  78. </view>
  79. <view class="item-c"></view>
  80. <view class="item-r">
  81. <view class="item-value">{{ item.timeNoon2 || "--" }}</view>
  82. <view class="item-label">中班监测时间二</view>
  83. </view>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. </view>
  89. <!-- 新增弹窗 -->
  90. <view v-else-if="isShowAdd && !zcShow">
  91. <view class="top-dialog-area">
  92. <view class="dialog-item">
  93. <text class="dialog-label">班次:</text>
  94. <uni-data-select
  95. placeholder="请选择班次"
  96. style="text-align: center"
  97. :clear="true"
  98. v-model="formState.bc"
  99. :localdata="rangeBc"
  100. @change="changeBc"
  101. ></uni-data-select>
  102. </view>
  103. <view class="dialog-item">
  104. <text class="dialog-label">检测次数:</text>
  105. <uni-data-select
  106. placeholder="请选择检测次数"
  107. style="text-align: center"
  108. :clear="true"
  109. v-model="formState.count"
  110. :localdata="rangeCount"
  111. @change="changeCount"
  112. ></uni-data-select>
  113. </view>
  114. <view class="dialog-item" v-if="!nfcShow">
  115. <text class="dialog-label">煤层工作面:</text>
  116. <uni-data-select
  117. placeholder="请选择煤层工作面"
  118. style="text-align: center"
  119. :clear="true"
  120. v-model="formState.mcgzm"
  121. :localdata="rangeMcgzm"
  122. @change="changeMc"
  123. ></uni-data-select>
  124. </view>
  125. <view class="dialog-item">
  126. <text class="dialog-label">检测地点:</text>
  127. <uni-data-select
  128. v-if="!nfcShow"
  129. placeholder="请选择检测地点"
  130. style="text-align: center"
  131. :clear="true"
  132. v-model="formState.jcdd"
  133. :localdata="rangeJcdd"
  134. @change="changeJc"
  135. ></uni-data-select>
  136. <u--input
  137. v-else
  138. v-model="formState.jcdd"
  139. disabled
  140. inputAlign="center"
  141. ></u--input>
  142. </view>
  143. <view class="dialog-item" @click="getChangeTime">
  144. <text class="dialog-label">检测时间:</text>
  145. <u--input
  146. v-model="formState.time"
  147. placeholder="请选择检测时间"
  148. inputAlign="center"
  149. suffixIcon="arrow-right"
  150. ></u--input>
  151. <u-datetime-picker
  152. :show="showCalendar"
  153. v-model="timeRan"
  154. mode="datetime"
  155. closeOnClickOverlay
  156. @confirm="showCalendar = false"
  157. @cancel="showCalendar = false"
  158. @change="change"
  159. @close="showCalendar = false"
  160. ></u-datetime-picker>
  161. </view>
  162. <view class="dialog-item">
  163. <text class="dialog-label">填报日期:</text>
  164. <u--input
  165. inputAlign="center"
  166. v-model="formState.tbrq"
  167. placeholder="请选择填报日期"
  168. ></u--input>
  169. </view>
  170. <view class="dialog-item">
  171. <text class="dialog-label">瓦斯检查工:</text>
  172. <u--input
  173. inputAlign="center"
  174. disabled
  175. v-model="formState.jcy"
  176. placeholder="请输入"
  177. ></u--input>
  178. </view>
  179. </view>
  180. <view>
  181. <view class="center-dialog-area">
  182. <div class="dialog-title">气体检测数据</div>
  183. <view class="dialog-item">
  184. <text class="dialog-label">CH₄(%):</text>
  185. <u--input
  186. inputAlign="center"
  187. :disabled="isDisabled"
  188. v-model="formState.ch4"
  189. :placeholder="isRule2 ? '请输入' : '数据有误'"
  190. type="number"
  191. @blur="getBlurCH4"
  192. @input="changeInput($event, 'ch4')"
  193. clearable
  194. :placeholderStyle="isRule2 ? 'color:#c0c4cc' : 'color:#ff0000'"
  195. ></u--input>
  196. </view>
  197. <view class="dialog-item">
  198. <text class="dialog-label">CO₂(%):</text>
  199. <u--input
  200. inputAlign="center"
  201. :disabled="isDisabled"
  202. v-model="formState.co2"
  203. :placeholder="isRule ? '请输入' : '数据有误'"
  204. type="number"
  205. @blur="getBlurCO2"
  206. @input="changeInput($event, 'co2')"
  207. clearable
  208. :placeholderStyle="isRule ? 'color:#c0c4cc' : 'color:#ff0000'"
  209. ></u--input>
  210. </view>
  211. <view class="dialog-item">
  212. <text class="dialog-label">CO(ppm):</text>
  213. <u--input
  214. inputAlign="center"
  215. :disabled="isDisabled"
  216. v-model="formState.co"
  217. :placeholder="isRule14 ? '请输入' : '数据有误'"
  218. clearable
  219. :placeholderStyle="isRule14 ? 'color:#c0c4cc' : 'color:#ff0000'"
  220. type="number"
  221. @blur="getBlurCO"
  222. @input="changeInput($event, 'co')"
  223. ></u--input>
  224. </view>
  225. <view class="dialog-item">
  226. <text class="dialog-label">O₂(%):</text>
  227. <u--input
  228. inputAlign="center"
  229. :disabled="isDisabled"
  230. clearable
  231. type="number"
  232. v-model="formState.o2"
  233. placeholder="请输入"
  234. @input="changeInput($event, 'o2')"
  235. ></u--input>
  236. </view>
  237. <view class="dialog-item">
  238. <text class="dialog-label">T(℃):</text>
  239. <u--input
  240. inputAlign="center"
  241. :disabled="isDisabled"
  242. clearable
  243. type="number"
  244. @input="changeInput($event, 'temp')"
  245. v-model="formState.temp"
  246. placeholder="请输入"
  247. ></u--input>
  248. </view>
  249. </view>
  250. <!-- <view class="bottom-dialog-area">
  251. <div class="dialog-title">三对照数据</div>
  252. <view class="dialog-item">
  253. <text class="dialog-label">甲烷传感器:</text>
  254. <u--input inputAlign="center" :disabled="isDisabled" type="number" v-model="formState.ch4"
  255. placeholder="请输入" clearable @input="changeInput($event, 'ch4')"></u--input>
  256. </view>
  257. <view class="dialog-item">
  258. <text class="dialog-label">光瓦测量数据:</text>
  259. <u--input inputAlign="center" :disabled="isDisabled" v-model="formState.gw"
  260. :placeholder="isRule1 ? '请输入' : '数据有误'" type="number" @blur="getBlur" clearable
  261. @input="changeInput($event, 'gw')"
  262. :placeholderStyle="isRule1 ? 'color:#c0c4cc' : 'color:#ff0000'"></u--input>
  263. </view>
  264. <view class="dialog-item">
  265. <text class="dialog-label">便携仪测量数据:</text>
  266. <u--input inputAlign="center" :disabled="isDisabled"
  267. :placeholderStyle="isRule3 ? 'color:#c0c4cc' : 'color:#ff0000'"
  268. :placeholder="isRule3 ? '请输入' : '数据有误'" type="number" v-model="formState.bxy" clearable
  269. @blur="getBlurBxy" @input="changeInput($event, 'bxy')"></u--input>
  270. </view>
  271. </view> -->
  272. </view>
  273. <u-modal
  274. :show="isShowSave"
  275. title="提示"
  276. width="300px"
  277. confirmText="确定"
  278. cancelText="取消"
  279. showCancelButton
  280. buttonReverse
  281. zoom
  282. @confirm="confrimSave"
  283. @cancel="cancelSavve"
  284. >
  285. <slot>
  286. <u-icon name="info-circle" color="orange" size="16"></u-icon>
  287. <text style="margin-left: 5px">请确认数据填写无误!</text>
  288. </slot>
  289. </u-modal>
  290. <view class="dialog-btn">
  291. <u-button type="warning" size="small" @click="getComfirmZc"
  292. >暂存</u-button
  293. >
  294. <u-button
  295. type="success"
  296. size="small"
  297. v-if="!isDisabled"
  298. @click="getConfirm"
  299. >保存</u-button
  300. >
  301. <u-button type="primary" size="small" @click="getCancel">取消</u-button>
  302. </view>
  303. </view>
  304. <!-- 列表 -->
  305. <view style="height: 100%" v-else>
  306. <saveComponent @closeZc="closeZc"></saveComponent>
  307. </view>
  308. </view>
  309. </template>
  310. <script>
  311. import api from "@/api/api";
  312. import moment from "moment";
  313. import testNfc from "@/common/util/hexiii-nfc.js";
  314. import saveComponent from "./save-component.vue";
  315. import { mapGetters } from "vuex";
  316. export default {
  317. name: "gasFill",
  318. components: {
  319. saveComponent,
  320. },
  321. props: {},
  322. data() {
  323. return {
  324. nfcShow: true, //是否使用NFC
  325. isDisabled: false,
  326. isStatus: "",
  327. deviceId: "",
  328. rangeBc: [
  329. { value: "夜班", text: "夜班" },
  330. { value: "早班", text: "早班" },
  331. { value: "中班", text: "中班" },
  332. ],
  333. rangeMcgzm: [],
  334. rangeJcdd: [],
  335. rangeCount: [
  336. { value: "第一次", text: "第一次" },
  337. { value: "第二次", text: "第二次" },
  338. ],
  339. isRule: true,
  340. isRule1: true,
  341. isRule14: true,
  342. isRule2: true,
  343. isRule3: true,
  344. //新增参数信息
  345. isShowAdd: false, //是否显示新增弹窗
  346. showCalendar: false, //控制日期选型下拉开启
  347. timeRan: Number(new Date()),
  348. gasList: [], //瓦斯填报列表数据
  349. tbTime: moment(new Date()).format("YYYY-MM-DD"), //查询条件-填报时间
  350. showCalendarTb: false, //控制填报时间组件弹出
  351. saveShowList: {},
  352. formState: {
  353. id: "",
  354. bc: "",
  355. count: "",
  356. jcdd: "",
  357. jcy: "",
  358. time: "",
  359. ch4: "",
  360. co2: "",
  361. co: "",
  362. o2: "",
  363. jw: "",
  364. // gw: '',
  365. // bxy: '',
  366. tbrq: "",
  367. temp: "",
  368. mcgzm: "",
  369. },
  370. zcList: [], //暂存列表
  371. zcShow: false, //是否显示暂存列表
  372. isShowSave: false, //控制保存提示弹窗显示隐藏
  373. zcParamData: {}, //当前所选中暂存数据
  374. };
  375. },
  376. computed: {
  377. username: function () {
  378. return uni.getStorageSync("login_user_info")["realname"];
  379. },
  380. cardIds: function () {
  381. return this.$store.getters.nfcreadtxt;
  382. },
  383. },
  384. watch: {
  385. cardIds: {
  386. async handler(newV, oldV) {
  387. if (newV) {
  388. await this.getCardLists(newV);
  389. this.change();
  390. }
  391. },
  392. immediate: true,
  393. },
  394. },
  395. mounted() {
  396. this.getGasList();
  397. this.getMcList();
  398. },
  399. methods: {
  400. hasPermission(param) {
  401. let permission = uni.getStorageSync("btnPermission");
  402. return permission.filter((v) => v.action == param).length != 0
  403. ? true
  404. : false;
  405. },
  406. //班次下拉选项切换
  407. changeBc(e) {
  408. let that = this;
  409. console.log(e, "班次----------");
  410. this.formState.bc = e;
  411. if (that.formState.bc == "早班" && that.formState.count == "第一次") {
  412. if (
  413. that.saveShowList.bxySdzEarly1 ||
  414. that.saveShowList.ch4Early1 ||
  415. that.saveShowList.co2Early1 ||
  416. that.saveShowList.coEarly1 ||
  417. that.saveShowList.gwSdzEarly1 ||
  418. that.saveShowList.jwSdzEarly1 ||
  419. that.saveShowList.o2Early1 ||
  420. that.saveShowList.tearly1
  421. ) {
  422. that.formState = {
  423. id: that.saveShowList.id || "",
  424. bc: that.formState.bc,
  425. count: that.formState.count,
  426. jcdd: that.formState.jcdd,
  427. jcy: that.formState.jcy,
  428. time: that.formState.time,
  429. ch4: that.saveShowList.ch4Early1 || "",
  430. co2: that.saveShowList.co2Early1 || "",
  431. co: that.saveShowList.coEarly1 || "",
  432. o2: that.saveShowList.o2Early1 || "",
  433. jw: that.saveShowList.jwSdzEarly1 || "",
  434. // gw: that.saveShowList.gwSdzEarly1 || '',
  435. // bxy: that.saveShowList.bxySdzEarly1 || '',
  436. tbrq: that.formState.tbrq,
  437. temp: that.saveShowList.tearly1 || "",
  438. mcgzm: that.formState.mcgzm,
  439. };
  440. that.isDisabled = true;
  441. } else {
  442. that.formState = {
  443. id: that.formState.id,
  444. bc: that.formState.bc,
  445. count: that.formState.count,
  446. jcdd: that.formState.jcdd,
  447. jcy: that.formState.jcy,
  448. time: that.formState.time,
  449. ch4: "",
  450. co2: "",
  451. co: "",
  452. o2: "",
  453. jw: "",
  454. // gw: '',
  455. // bxy: '',
  456. tbrq: that.formState.tbrq,
  457. temp: "",
  458. mcgzm: that.formState.mcgzm,
  459. };
  460. that.isDisabled = false;
  461. }
  462. } else if (
  463. that.formState.bc == "早班" &&
  464. that.formState.count == "第二次"
  465. ) {
  466. if (
  467. that.saveShowList.bxySdzEarly2 ||
  468. that.saveShowList.ch4Early2 ||
  469. that.saveShowList.co2Early2 ||
  470. that.saveShowList.coEarly2 ||
  471. that.saveShowList.gwSdzEarly2 ||
  472. that.saveShowList.jwSdzEarly2 ||
  473. that.saveShowList.o2Early2 ||
  474. that.saveShowList.tearly2
  475. ) {
  476. that.formState = {
  477. id: that.saveShowList.id || "",
  478. bc: that.formState.bc,
  479. count: that.formState.count,
  480. jcdd: that.formState.jcdd,
  481. jcy: that.formState.jcy,
  482. time: that.formState.time,
  483. ch4: that.saveShowList.ch4Early2 || "",
  484. co2: that.saveShowList.co2Early2 || "",
  485. co: that.saveShowList.coEarly2 || "",
  486. o2: that.saveShowList.o2Early2 || "",
  487. jw: that.saveShowList.jwSdzEarly2 || "",
  488. // gw: that.saveShowList.gwSdzEarly2 || '',
  489. // bxy: that.saveShowList.bxySdzEarly2 || '',
  490. tbrq: that.formState.tbrq,
  491. temp: that.saveShowList.tearly2 || "",
  492. mcgzm: that.formState.mcgzm,
  493. };
  494. that.isDisabled = true;
  495. } else {
  496. that.formState = {
  497. id: that.formState.id,
  498. bc: that.formState.bc,
  499. count: that.formState.count,
  500. jcdd: that.formState.jcdd,
  501. jcy: that.formState.jcy,
  502. time: that.formState.time,
  503. ch4: "",
  504. co2: "",
  505. co: "",
  506. o2: "",
  507. jw: "",
  508. // gw: '',
  509. // bxy: '',
  510. tbrq: that.formState.tbrq,
  511. temp: "",
  512. mcgzm: that.formState.mcgzm,
  513. };
  514. that.isDisabled = false;
  515. }
  516. } else if (
  517. that.formState.bc == "中班" &&
  518. that.formState.count == "第一次"
  519. ) {
  520. if (
  521. that.saveShowList.bxySdzNoon1 ||
  522. that.saveShowList.ch4Noon1 ||
  523. that.saveShowList.co2Noon1 ||
  524. that.saveShowList.coNoon1 ||
  525. that.saveShowList.gwSdzNoon1 ||
  526. that.saveShowList.jwSdzNoon1 ||
  527. that.saveShowList.o2Noon1 ||
  528. that.saveShowList.tnoon1
  529. ) {
  530. that.formState = {
  531. id: that.saveShowList.id || "",
  532. bc: that.formState.bc,
  533. count: that.formState.count,
  534. jcdd: that.formState.jcdd,
  535. jcy: that.formState.jcy,
  536. time: that.formState.time,
  537. ch4: that.saveShowList.ch4Noon1 || "",
  538. co2: that.saveShowList.co2Noon1 || "",
  539. co: that.saveShowList.coNoon1 || "",
  540. o2: that.saveShowList.o2Noon1 || "",
  541. jw: that.saveShowList.jwSdzNoon1 || "",
  542. // gw: that.saveShowList.gwSdzNoon1 || '',
  543. // bxy: that.saveShowList.bxySdzNoon1 || '',
  544. tbrq: that.formState.tbrq,
  545. temp: that.saveShowList.tnoon1 || "",
  546. mcgzm: that.formState.mcgzm,
  547. };
  548. that.isDisabled = true;
  549. } else {
  550. that.formState = {
  551. id: that.formState.id,
  552. bc: that.formState.bc,
  553. count: that.formState.count,
  554. jcdd: that.formState.jcdd,
  555. jcy: that.formState.jcy,
  556. time: that.formState.time,
  557. ch4: "",
  558. co2: "",
  559. co: "",
  560. o2: "",
  561. jw: "",
  562. // gw: '',
  563. // bxy: '',
  564. tbrq: that.formState.tbrq,
  565. temp: "",
  566. mcgzm: that.formState.mcgzm,
  567. };
  568. that.isDisabled = false;
  569. }
  570. } else if (
  571. that.formState.bc == "中班" &&
  572. that.formState.count == "第二次"
  573. ) {
  574. if (
  575. that.saveShowList.bxySdzNoon2 ||
  576. that.saveShowList.ch4Noon2 ||
  577. that.saveShowList.co2Noon2 ||
  578. that.saveShowList.coNoon2 ||
  579. that.saveShowList.gwSdzNoon2 ||
  580. that.saveShowList.jwSdzNoon2 ||
  581. that.saveShowList.o2Noon2 ||
  582. that.saveShowList.tnoon2
  583. ) {
  584. that.formState = {
  585. id: that.saveShowList.id || "",
  586. bc: that.formState.bc,
  587. count: that.formState.count,
  588. jcdd: that.formState.jcdd,
  589. jcy: that.formState.jcy,
  590. time: that.formState.time,
  591. ch4: that.saveShowList.ch4Noon2 || "",
  592. co2: that.saveShowList.co2Noon2 || "",
  593. co: that.saveShowList.coNoon2 || "",
  594. o2: that.saveShowList.o2Noon2 || "",
  595. jw: that.saveShowList.jwSdzNoon2 || "",
  596. // gw: that.saveShowList.gwSdzNoon2 || '',
  597. // bxy: that.saveShowList.bxySdzNoon2 || '',
  598. tbrq: that.formState.tbrq,
  599. temp: that.saveShowList.tnoon2 || "",
  600. mcgzm: that.formState.mcgzm,
  601. };
  602. that.isDisabled = true;
  603. } else {
  604. that.formState = {
  605. id: that.formState.id,
  606. bc: that.formState.bc,
  607. count: that.formState.count,
  608. jcdd: that.formState.jcdd,
  609. jcy: that.formState.jcy,
  610. time: that.formState.time,
  611. ch4: "",
  612. co2: "",
  613. co: "",
  614. o2: "",
  615. jw: "",
  616. // gw: '',
  617. // bxy: '',
  618. tbrq: that.formState.tbrq,
  619. temp: "",
  620. mcgzm: that.formState.mcgzm,
  621. };
  622. that.isDisabled = false;
  623. }
  624. } else if (
  625. that.formState.bc == "夜班" &&
  626. that.formState.count == "第一次"
  627. ) {
  628. if (
  629. that.saveShowList.bxySdzNight1 ||
  630. that.saveShowList.ch4Night1 ||
  631. that.saveShowList.co2Night1 ||
  632. that.saveShowList.coNight1 ||
  633. that.saveShowList.gwSdzNight1 ||
  634. that.saveShowList.jwSdzNight1 ||
  635. that.saveShowList.o2Night1 ||
  636. that.saveShowList.tnight1
  637. ) {
  638. that.formState = {
  639. id: that.saveShowList.id || "",
  640. bc: that.formState.bc,
  641. count: that.formState.count,
  642. jcdd: that.formState.jcdd,
  643. jcy: that.formState.jcy,
  644. time: that.formState.time,
  645. ch4: that.saveShowList.ch4Night1 || "",
  646. co2: that.saveShowList.co2Night1 || "",
  647. co: that.saveShowList.coNight1 || "",
  648. o2: that.saveShowList.o2Night1 || "",
  649. jw: that.saveShowList.jwSdzNight1 || "",
  650. // gw: that.saveShowList.gwSdzNight1 || '',
  651. // bxy: that.saveShowList.bxySdzNight1 || '',
  652. tbrq: that.formState.tbrq,
  653. temp: that.saveShowList.tnight1 || "",
  654. mcgzm: that.formState.mcgzm,
  655. };
  656. that.isDisabled = true;
  657. } else {
  658. that.formState = {
  659. id: that.formState.id,
  660. bc: that.formState.bc,
  661. count: that.formState.count,
  662. jcdd: that.formState.jcdd,
  663. jcy: that.formState.jcy,
  664. time: that.formState.time,
  665. ch4: "",
  666. co2: "",
  667. co: "",
  668. o2: "",
  669. jw: "",
  670. // gw: '',
  671. // bxy: '',
  672. tbrq: that.formState.tbrq,
  673. temp: "",
  674. mcgzm: that.formState.mcgzm,
  675. };
  676. that.isDisabled = false;
  677. }
  678. } else if (
  679. that.formState.bc == "夜班" &&
  680. that.formState.count == "第二次"
  681. ) {
  682. if (
  683. that.saveShowList.bxySdzNight2 ||
  684. that.saveShowList.ch4Night2 ||
  685. that.saveShowList.co2Night2 ||
  686. that.saveShowList.coNight2 ||
  687. that.saveShowList.gwSdzNight2 ||
  688. that.saveShowList.jwSdzNight2 ||
  689. that.saveShowList.o2Night2 ||
  690. that.saveShowList.tnight2
  691. ) {
  692. that.formState = {
  693. id: that.saveShowList.id || "",
  694. bc: that.formState.bc,
  695. count: that.formState.count,
  696. jcdd: that.formState.jcdd,
  697. jcy: that.formState.jcy,
  698. time: that.formState.time,
  699. ch4: that.saveShowList.ch4Night2 || "",
  700. co2: that.saveShowList.co2Night2 || "",
  701. co: that.saveShowList.coNight2 || "",
  702. o2: that.saveShowList.o2Night2 || "",
  703. jw: that.saveShowList.jwSdzNight2 || "",
  704. // gw: that.saveShowList.gwSdzNight2 || '',
  705. // bxy: that.saveShowList.bxySdzNight2 || '',
  706. tbrq: that.formState.tbrq,
  707. temp: that.saveShowList.tnight2 || "",
  708. mcgzm: that.formState.mcgzm,
  709. };
  710. that.isDisabled = true;
  711. } else {
  712. that.formState = {
  713. id: that.formState.id,
  714. bc: that.formState.bc,
  715. count: that.formState.count,
  716. jcdd: that.formState.jcdd,
  717. jcy: that.formState.jcy,
  718. time: that.formState.time,
  719. ch4: "",
  720. co2: "",
  721. co: "",
  722. o2: "",
  723. jw: "",
  724. // gw: '',
  725. // bxy: '',
  726. tbrq: that.formState.tbrq,
  727. temp: "",
  728. mcgzm: that.formState.mcgzm,
  729. };
  730. that.isDisabled = false;
  731. }
  732. }
  733. },
  734. //监测次数选项切换
  735. changeCount(e) {
  736. let that = this;
  737. that.formState.count = e;
  738. if (that.formState.bc == "早班" && that.formState.count == "第一次") {
  739. if (
  740. that.saveShowList.bxySdzEarly1 ||
  741. that.saveShowList.ch4Early1 ||
  742. that.saveShowList.co2Early1 ||
  743. that.saveShowList.coEarly1 ||
  744. that.saveShowList.gwSdzEarly1 ||
  745. that.saveShowList.jwSdzEarly1 ||
  746. that.saveShowList.o2Early1 ||
  747. that.saveShowList.tearly1
  748. ) {
  749. that.formState = {
  750. id: that.saveShowList.id || "",
  751. bc: that.formState.bc,
  752. count: that.formState.count,
  753. jcdd: that.formState.jcdd,
  754. jcy: that.formState.jcy,
  755. time: that.formState.time,
  756. ch4: that.saveShowList.ch4Early1 || "",
  757. co2: that.saveShowList.co2Early1 || "",
  758. co: that.saveShowList.coEarly1 || "",
  759. o2: that.saveShowList.o2Early1 || "",
  760. jw: that.saveShowList.jwSdzEarly1 || "",
  761. // gw: that.saveShowList.gwSdzEarly1 || '',
  762. // bxy: that.saveShowList.bxySdzEarly1 || '',
  763. tbrq: that.formState.tbrq,
  764. temp: that.saveShowList.tearly1 || "",
  765. mcgzm: that.formState.mcgzm,
  766. };
  767. that.isDisabled = true;
  768. } else {
  769. that.formState = {
  770. id: that.formState.id,
  771. bc: that.formState.bc,
  772. count: that.formState.count,
  773. jcdd: that.formState.jcdd,
  774. jcy: that.formState.jcy,
  775. time: that.formState.time,
  776. ch4: "",
  777. co2: "",
  778. co: "",
  779. o2: "",
  780. jw: "",
  781. // gw: '',
  782. // bxy: '',
  783. tbrq: that.formState.tbrq,
  784. temp: "",
  785. mcgzm: that.formState.mcgzm,
  786. };
  787. that.isDisabled = false;
  788. }
  789. } else if (
  790. that.formState.bc == "早班" &&
  791. that.formState.count == "第二次"
  792. ) {
  793. if (
  794. that.saveShowList.bxySdzEarly2 ||
  795. that.saveShowList.ch4Early2 ||
  796. that.saveShowList.co2Early2 ||
  797. that.saveShowList.coEarly2 ||
  798. that.saveShowList.gwSdzEarly2 ||
  799. that.saveShowList.jwSdzEarly2 ||
  800. that.saveShowList.o2Early2 ||
  801. that.saveShowList.tearly2
  802. ) {
  803. that.formState = {
  804. id: that.saveShowList.id || "",
  805. bc: that.formState.bc,
  806. count: that.formState.count,
  807. jcdd: that.formState.jcdd,
  808. jcy: that.formState.jcy,
  809. time: that.formState.time,
  810. ch4: that.saveShowList.ch4Early2 || "",
  811. co2: that.saveShowList.co2Early2 || "",
  812. co: that.saveShowList.coEarly2 || "",
  813. o2: that.saveShowList.o2Early2 || "",
  814. jw: that.saveShowList.jwSdzEarly2 || "",
  815. // gw: that.saveShowList.gwSdzEarly2 || '',
  816. // bxy: that.saveShowList.bxySdzEarly2 || '',
  817. tbrq: that.formState.tbrq,
  818. temp: that.saveShowList.tearly2 || "",
  819. mcgzm: that.formState.mcgzm,
  820. };
  821. that.isDisabled = true;
  822. } else {
  823. that.formState = {
  824. id: that.formState.id,
  825. bc: that.formState.bc,
  826. count: that.formState.count,
  827. jcdd: that.formState.jcdd,
  828. jcy: that.formState.jcy,
  829. time: that.formState.time,
  830. ch4: "",
  831. co2: "",
  832. co: "",
  833. o2: "",
  834. jw: "",
  835. // gw: '',
  836. // bxy: '',
  837. tbrq: that.formState.tbrq,
  838. temp: "",
  839. mcgzm: that.formState.mcgzm,
  840. };
  841. that.isDisabled = false;
  842. }
  843. } else if (
  844. that.formState.bc == "中班" &&
  845. that.formState.count == "第一次"
  846. ) {
  847. if (
  848. that.saveShowList.bxySdzNoon1 ||
  849. that.saveShowList.ch4Noon1 ||
  850. that.saveShowList.co2Noon1 ||
  851. that.saveShowList.coNoon1 ||
  852. that.saveShowList.gwSdzNoon1 ||
  853. that.saveShowList.jwSdzNoon1 ||
  854. that.saveShowList.o2Noon1 ||
  855. that.saveShowList.tnoon1
  856. ) {
  857. that.formState = {
  858. id: that.saveShowList.id || "",
  859. bc: that.formState.bc,
  860. count: that.formState.count,
  861. jcdd: that.formState.jcdd,
  862. jcy: that.formState.jcy,
  863. time: that.formState.time,
  864. ch4: that.saveShowList.ch4Noon1 || "",
  865. co2: that.saveShowList.co2Noon1 || "",
  866. co: that.saveShowList.coNoon1 || "",
  867. o2: that.saveShowList.o2Noon1 || "",
  868. jw: that.saveShowList.jwSdzNoon1 || "",
  869. // gw: that.saveShowList.gwSdzNoon1 || '',
  870. // bxy: that.saveShowList.bxySdzNoon1 || '',
  871. tbrq: that.formState.tbrq,
  872. temp: that.saveShowList.tnoon1 || "",
  873. mcgzm: that.formState.mcgzm,
  874. };
  875. that.isDisabled = true;
  876. } else {
  877. that.formState = {
  878. id: that.formState.id,
  879. bc: that.formState.bc,
  880. count: that.formState.count,
  881. jcdd: that.formState.jcdd,
  882. jcy: that.formState.jcy,
  883. time: that.formState.time,
  884. ch4: "",
  885. co2: "",
  886. co: "",
  887. o2: "",
  888. jw: "",
  889. // gw: '',
  890. // bxy: '',
  891. tbrq: that.formState.tbrq,
  892. temp: "",
  893. mcgzm: that.formState.mcgzm,
  894. };
  895. that.isDisabled = false;
  896. }
  897. } else if (
  898. that.formState.bc == "中班" &&
  899. that.formState.count == "第二次"
  900. ) {
  901. if (
  902. that.saveShowList.bxySdzNoon2 ||
  903. that.saveShowList.ch4Noon2 ||
  904. that.saveShowList.co2Noon2 ||
  905. that.saveShowList.coNoon2 ||
  906. that.saveShowList.gwSdzNoon2 ||
  907. that.saveShowList.jwSdzNoon2 ||
  908. that.saveShowList.o2Noon2 ||
  909. that.saveShowList.tnoon2
  910. ) {
  911. that.formState = {
  912. id: that.saveShowList.id || "",
  913. bc: that.formState.bc,
  914. count: that.formState.count,
  915. jcdd: that.formState.jcdd,
  916. jcy: that.formState.jcy,
  917. time: that.formState.time,
  918. ch4: that.saveShowList.ch4Noon2 || "",
  919. co2: that.saveShowList.co2Noon2 || "",
  920. co: that.saveShowList.coNoon2 || "",
  921. o2: that.saveShowList.o2Noon2 || "",
  922. jw: that.saveShowList.jwSdzNoon2 || "",
  923. // gw: that.saveShowList.gwSdzNoon2 || '',
  924. // bxy: that.saveShowList.bxySdzNoon2 || '',
  925. tbrq: that.formState.tbrq,
  926. temp: that.saveShowList.tnoon2 || "",
  927. mcgzm: that.formState.mcgzm,
  928. };
  929. that.isDisabled = true;
  930. } else {
  931. that.formState = {
  932. id: that.formState.id,
  933. bc: that.formState.bc,
  934. count: that.formState.count,
  935. jcdd: that.formState.jcdd,
  936. jcy: that.formState.jcy,
  937. time: that.formState.time,
  938. ch4: "",
  939. co2: "",
  940. co: "",
  941. o2: "",
  942. jw: "",
  943. // gw: '',
  944. // bxy: '',
  945. tbrq: that.formState.tbrq,
  946. temp: "",
  947. mcgzm: that.formState.mcgzm,
  948. };
  949. that.isDisabled = false;
  950. }
  951. } else if (
  952. that.formState.bc == "夜班" &&
  953. that.formState.count == "第一次"
  954. ) {
  955. if (
  956. that.saveShowList.bxySdzNight1 ||
  957. that.saveShowList.ch4Night1 ||
  958. that.saveShowList.co2Night1 ||
  959. that.saveShowList.coNight1 ||
  960. that.saveShowList.gwSdzNight1 ||
  961. that.saveShowList.jwSdzNight1 ||
  962. that.saveShowList.o2Night1 ||
  963. that.saveShowList.tnight1
  964. ) {
  965. that.formState = {
  966. id: that.saveShowList.id || "",
  967. bc: that.formState.bc,
  968. count: that.formState.count,
  969. jcdd: that.formState.jcdd,
  970. jcy: that.formState.jcy,
  971. time: that.formState.time,
  972. ch4: that.saveShowList.ch4Night1 || "",
  973. co2: that.saveShowList.co2Night1 || "",
  974. co: that.saveShowList.coNight1 || "",
  975. o2: that.saveShowList.o2Night1 || "",
  976. jw: that.saveShowList.jwSdzNight1 || "",
  977. // gw: that.saveShowList.gwSdzNight1 || '',
  978. // bxy: that.saveShowList.bxySdzNight1 || '',
  979. tbrq: that.formState.tbrq,
  980. temp: that.saveShowList.tnight1 || "",
  981. mcgzm: that.formState.mcgzm,
  982. };
  983. that.isDisabled = true;
  984. } else {
  985. that.formState = {
  986. id: that.formState.id,
  987. bc: that.formState.bc,
  988. count: that.formState.count,
  989. jcdd: that.formState.jcdd,
  990. jcy: that.formState.jcy,
  991. time: that.formState.time,
  992. ch4: "",
  993. co2: "",
  994. co: "",
  995. o2: "",
  996. jw: "",
  997. // gw: '',
  998. // bxy: '',
  999. tbrq: that.formState.tbrq,
  1000. temp: "",
  1001. mcgzm: that.formState.mcgzm,
  1002. };
  1003. that.isDisabled = false;
  1004. }
  1005. } else if (
  1006. that.formState.bc == "夜班" &&
  1007. that.formState.count == "第二次"
  1008. ) {
  1009. if (
  1010. that.saveShowList.bxySdzNight2 ||
  1011. that.saveShowList.ch4Night2 ||
  1012. that.saveShowList.co2Night2 ||
  1013. that.saveShowList.coNight2 ||
  1014. that.saveShowList.gwSdzNight2 ||
  1015. that.saveShowList.jwSdzNight2 ||
  1016. that.saveShowList.o2Night2 ||
  1017. that.saveShowList.tnight2
  1018. ) {
  1019. that.formState = {
  1020. id: that.saveShowList.id || "",
  1021. bc: that.formState.bc,
  1022. count: that.formState.count,
  1023. jcdd: that.formState.jcdd,
  1024. jcy: that.formState.jcy,
  1025. time: that.formState.time,
  1026. ch4: that.saveShowList.ch4Night2 || "",
  1027. co2: that.saveShowList.co2Night2 || "",
  1028. co: that.saveShowList.coNight2 || "",
  1029. o2: that.saveShowList.o2Night2 || "",
  1030. jw: that.saveShowList.jwSdzNight2 || "",
  1031. // gw: that.saveShowList.gwSdzNight2 || '',
  1032. // bxy: that.saveShowList.bxySdzNight2 || '',
  1033. tbrq: that.formState.tbrq,
  1034. temp: that.saveShowList.tnight2 || "",
  1035. mcgzm: that.formState.mcgzm,
  1036. };
  1037. that.isDisabled = true;
  1038. } else {
  1039. that.formState = {
  1040. id: that.formState.id,
  1041. bc: that.formState.bc,
  1042. count: that.formState.count,
  1043. jcdd: that.formState.jcdd,
  1044. jcy: that.formState.jcy,
  1045. time: that.formState.time,
  1046. ch4: "",
  1047. co2: "",
  1048. co: "",
  1049. o2: "",
  1050. jw: "",
  1051. // gw: '',
  1052. // bxy: '',
  1053. tbrq: that.formState.tbrq,
  1054. temp: "",
  1055. mcgzm: that.formState.mcgzm,
  1056. };
  1057. that.isDisabled = false;
  1058. }
  1059. }
  1060. },
  1061. //检测地点拉选项切换
  1062. changeJc(e) {
  1063. let that = this;
  1064. that.formState.jcdd = e;
  1065. that.deviceId = that.rangeJcdd.filter((v) => v.text == e)[0].deviceId;
  1066. new Promise((resolve, reject) => {
  1067. api
  1068. .getGas({ reportTime: that.formState.tbrq, deviceId: that.deviceId })
  1069. .then((response) => {
  1070. if (response.data.code == 200) {
  1071. let data = response.data.result.records;
  1072. if (data.length != 0) {
  1073. that.saveShowList = data[0];
  1074. if (
  1075. that.formState.bc == "早班" &&
  1076. that.formState.count == "第一次"
  1077. ) {
  1078. if (
  1079. that.saveShowList.bxySdzEarly1 ||
  1080. that.saveShowList.ch4Early1 ||
  1081. that.saveShowList.co2Early1 ||
  1082. that.saveShowList.coEarly1 ||
  1083. that.saveShowList.gwSdzEarly1 ||
  1084. that.saveShowList.jwSdzEarly1 ||
  1085. that.saveShowList.o2Early1 ||
  1086. that.saveShowList.tearly1
  1087. ) {
  1088. that.formState = {
  1089. id: that.saveShowList.id || "",
  1090. bc: that.formState.bc,
  1091. count: that.formState.count,
  1092. jcdd: that.formState.jcdd,
  1093. jcy: that.formState.jcy,
  1094. time: that.formState.time,
  1095. ch4: that.saveShowList.ch4Early1 || "",
  1096. co2: that.saveShowList.co2Early1 || "",
  1097. co: that.saveShowList.coEarly1 || "",
  1098. o2: that.saveShowList.o2Early1 || "",
  1099. jw: that.saveShowList.jwSdzEarly1 || "",
  1100. // gw: that.saveShowList.gwSdzEarly1 || '',
  1101. // bxy: that.saveShowList.bxySdzEarly1 || '',
  1102. tbrq: that.formState.tbrq,
  1103. temp: that.saveShowList.tearly1 || "",
  1104. mcgzm: that.formState.mcgzm,
  1105. };
  1106. that.isDisabled = true;
  1107. } else {
  1108. that.formState = {
  1109. id: that.formState.id,
  1110. bc: that.formState.bc,
  1111. count: that.formState.count,
  1112. jcdd: that.formState.jcdd,
  1113. jcy: that.formState.jcy,
  1114. time: that.formState.time,
  1115. ch4: "",
  1116. co2: "",
  1117. co: "",
  1118. o2: "",
  1119. jw: "",
  1120. // gw: '',
  1121. // bxy: '',
  1122. tbrq: that.formState.tbrq,
  1123. temp: "",
  1124. mcgzm: that.formState.mcgzm,
  1125. };
  1126. that.isDisabled = false;
  1127. }
  1128. } else if (
  1129. that.formState.bc == "早班" &&
  1130. that.formState.count == "第二次"
  1131. ) {
  1132. if (
  1133. that.saveShowList.bxySdzEarly2 ||
  1134. that.saveShowList.ch4Early2 ||
  1135. that.saveShowList.co2Early2 ||
  1136. that.saveShowList.coEarly2 ||
  1137. that.saveShowList.gwSdzEarly2 ||
  1138. that.saveShowList.jwSdzEarly2 ||
  1139. that.saveShowList.o2Early2 ||
  1140. that.saveShowList.tearly2
  1141. ) {
  1142. that.formState = {
  1143. id: that.saveShowList.id || "",
  1144. bc: that.formState.bc,
  1145. count: that.formState.count,
  1146. jcdd: that.formState.jcdd,
  1147. jcy: that.formState.jcy,
  1148. time: that.formState.time,
  1149. ch4: that.saveShowList.ch4Early2 || "",
  1150. co2: that.saveShowList.co2Early2 || "",
  1151. co: that.saveShowList.coEarly2 || "",
  1152. o2: that.saveShowList.o2Early2 || "",
  1153. jw: that.saveShowList.jwSdzEarly2 || "",
  1154. // gw: that.saveShowList.gwSdzEarly2 || '',
  1155. // bxy: that.saveShowList.bxySdzEarly2 || '',
  1156. tbrq: that.formState.tbrq,
  1157. temp: that.saveShowList.tearly2 || "",
  1158. mcgzm: that.formState.mcgzm,
  1159. };
  1160. that.isDisabled = true;
  1161. } else {
  1162. that.formState = {
  1163. id: that.formState.id,
  1164. bc: that.formState.bc,
  1165. count: that.formState.count,
  1166. jcdd: that.formState.jcdd,
  1167. jcy: that.formState.jcy,
  1168. time: that.formState.time,
  1169. ch4: "",
  1170. co2: "",
  1171. co: "",
  1172. o2: "",
  1173. jw: "",
  1174. // gw: '',
  1175. // bxy: '',
  1176. tbrq: that.formState.tbrq,
  1177. temp: "",
  1178. mcgzm: that.formState.mcgzm,
  1179. };
  1180. that.isDisabled = false;
  1181. }
  1182. } else if (
  1183. that.formState.bc == "中班" &&
  1184. that.formState.count == "第一次"
  1185. ) {
  1186. if (
  1187. that.saveShowList.bxySdzNoon1 ||
  1188. that.saveShowList.ch4Noon1 ||
  1189. that.saveShowList.co2Noon1 ||
  1190. that.saveShowList.coNoon1 ||
  1191. that.saveShowList.gwSdzNoon1 ||
  1192. that.saveShowList.jwSdzNoon1 ||
  1193. that.saveShowList.o2Noon1 ||
  1194. that.saveShowList.tnoon1
  1195. ) {
  1196. that.formState = {
  1197. id: that.saveShowList.id || "",
  1198. bc: that.formState.bc,
  1199. count: that.formState.count,
  1200. jcdd: that.formState.jcdd,
  1201. jcy: that.formState.jcy,
  1202. time: that.formState.time,
  1203. // ch4: that.saveShowList.bxySdzNoon1 || '',
  1204. ch4: that.saveShowList.ch4Noon1 || "",
  1205. co2: that.saveShowList.co2Noon1 || "",
  1206. co: that.saveShowList.coNoon1 || "",
  1207. o2: that.saveShowList.o2Noon1 || "",
  1208. jw: that.saveShowList.jwSdzNoon1 || "",
  1209. // gw: that.saveShowList.gwSdzNoon1 || '',
  1210. // bxy: that.saveShowList.bxySdzNoon1 || '',
  1211. tbrq: that.formState.tbrq,
  1212. temp: that.saveShowList.tnoon1 || "",
  1213. mcgzm: that.formState.mcgzm,
  1214. };
  1215. that.isDisabled = true;
  1216. } else {
  1217. that.formState = {
  1218. id: that.formState.id,
  1219. bc: that.formState.bc,
  1220. count: that.formState.count,
  1221. jcdd: that.formState.jcdd,
  1222. jcy: that.formState.jcy,
  1223. time: that.formState.time,
  1224. ch4: "",
  1225. co2: "",
  1226. co: "",
  1227. o2: "",
  1228. jw: "",
  1229. // gw: '',
  1230. // bxy: '',
  1231. tbrq: that.formState.tbrq,
  1232. temp: "",
  1233. mcgzm: that.formState.mcgzm,
  1234. };
  1235. that.isDisabled = false;
  1236. }
  1237. } else if (
  1238. that.formState.bc == "中班" &&
  1239. that.formState.count == "第二次"
  1240. ) {
  1241. if (
  1242. that.saveShowList.bxySdzNoon2 ||
  1243. that.saveShowList.ch4Noon2 ||
  1244. that.saveShowList.co2Noon2 ||
  1245. that.saveShowList.coNoon2 ||
  1246. that.saveShowList.gwSdzNoon2 ||
  1247. that.saveShowList.jwSdzNoon2 ||
  1248. that.saveShowList.o2Noon2 ||
  1249. that.saveShowList.tnoon2
  1250. ) {
  1251. that.formState = {
  1252. id: that.saveShowList.id || "",
  1253. bc: that.formState.bc,
  1254. count: that.formState.count,
  1255. jcdd: that.formState.jcdd,
  1256. jcy: that.formState.jcy,
  1257. time: that.formState.time,
  1258. ch4: that.saveShowList.ch4Noon2 || "",
  1259. co2: that.saveShowList.co2Noon2 || "",
  1260. co: that.saveShowList.coNoon2 || "",
  1261. o2: that.saveShowList.o2Noon2 || "",
  1262. jw: that.saveShowList.jwSdzNoon2 || "",
  1263. // gw: that.saveShowList.gwSdzNoon2 || '',
  1264. // bxy: that.saveShowList.bxySdzNoon2 || '',
  1265. tbrq: that.formState.tbrq,
  1266. temp: that.saveShowList.tnoon2 || "",
  1267. mcgzm: that.formState.mcgzm,
  1268. };
  1269. that.isDisabled = true;
  1270. } else {
  1271. that.formState = {
  1272. id: that.formState.id,
  1273. bc: that.formState.bc,
  1274. count: that.formState.count,
  1275. jcdd: that.formState.jcdd,
  1276. jcy: that.formState.jcy,
  1277. time: that.formState.time,
  1278. ch4: "",
  1279. co2: "",
  1280. co: "",
  1281. o2: "",
  1282. jw: "",
  1283. // gw: '',
  1284. // bxy: '',
  1285. tbrq: that.formState.tbrq,
  1286. temp: "",
  1287. mcgzm: that.formState.mcgzm,
  1288. };
  1289. that.isDisabled = false;
  1290. }
  1291. } else if (
  1292. that.formState.bc == "夜班" &&
  1293. that.formState.count == "第一次"
  1294. ) {
  1295. if (
  1296. that.saveShowList.bxySdzNight1 ||
  1297. that.saveShowList.ch4Night1 ||
  1298. that.saveShowList.co2Night1 ||
  1299. that.saveShowList.coNight1 ||
  1300. that.saveShowList.gwSdzNight1 ||
  1301. that.saveShowList.jwSdzNight1 ||
  1302. that.saveShowList.o2Night1 ||
  1303. that.saveShowList.tnight1
  1304. ) {
  1305. that.formState = {
  1306. id: that.saveShowList.id || "",
  1307. bc: that.formState.bc,
  1308. count: that.formState.count,
  1309. jcdd: that.formState.jcdd,
  1310. jcy: that.formState.jcy,
  1311. time: that.formState.time,
  1312. ch4: that.saveShowList.ch4Night1 || "",
  1313. co2: that.saveShowList.co2Night1 || "",
  1314. co: that.saveShowList.coNight1 || "",
  1315. o2: that.saveShowList.o2Night1 || "",
  1316. jw: that.saveShowList.jwSdzNight1 || "",
  1317. // gw: that.saveShowList.gwSdzNight1 || '',
  1318. // bxy: that.saveShowList.bxySdzNight1 || '',
  1319. tbrq: that.formState.tbrq,
  1320. temp: that.saveShowList.tnight1 || "",
  1321. mcgzm: that.formState.mcgzm,
  1322. };
  1323. that.isDisabled = true;
  1324. } else {
  1325. that.formState = {
  1326. id: that.formState.id,
  1327. bc: that.formState.bc,
  1328. count: that.formState.count,
  1329. jcdd: that.formState.jcdd,
  1330. jcy: that.formState.jcy,
  1331. time: that.formState.time,
  1332. ch4: "",
  1333. co2: "",
  1334. co: "",
  1335. o2: "",
  1336. jw: "",
  1337. // gw: '',
  1338. // bxy: '',
  1339. tbrq: that.formState.tbrq,
  1340. temp: "",
  1341. mcgzm: that.formState.mcgzm,
  1342. };
  1343. that.isDisabled = false;
  1344. }
  1345. } else if (
  1346. that.formState.bc == "夜班" &&
  1347. that.formState.count == "第二次"
  1348. ) {
  1349. if (
  1350. that.saveShowList.bxySdzNight2 ||
  1351. that.saveShowList.ch4Night2 ||
  1352. that.saveShowList.co2Night2 ||
  1353. that.saveShowList.coNight2 ||
  1354. that.saveShowList.gwSdzNight2 ||
  1355. that.saveShowList.jwSdzNight2 ||
  1356. that.saveShowList.o2Night2 ||
  1357. that.saveShowList.tnight2
  1358. ) {
  1359. that.formState = {
  1360. id: that.saveShowList.id || "",
  1361. bc: that.formState.bc,
  1362. count: that.formState.count,
  1363. jcdd: that.formState.jcdd,
  1364. jcy: that.formState.jcy,
  1365. time: that.formState.time,
  1366. ch4: that.saveShowList.ch4Night2 || "",
  1367. co2: that.saveShowList.co2Night2 || "",
  1368. co: that.saveShowList.coNight2 || "",
  1369. o2: that.saveShowList.o2Night2 || "",
  1370. jw: that.saveShowList.jwSdzNight2 || "",
  1371. // gw: that.saveShowList.gwSdzNight2 || '',
  1372. // bxy: that.saveShowList.bxySdzNight2 || '',
  1373. tbrq: that.formState.tbrq,
  1374. temp: that.saveShowList.tnight2 || "",
  1375. mcgzm: that.formState.mcgzm,
  1376. };
  1377. that.isDisabled = true;
  1378. } else {
  1379. that.formState = {
  1380. id: that.formState.id,
  1381. bc: that.formState.bc,
  1382. count: that.formState.count,
  1383. jcdd: that.formState.jcdd,
  1384. jcy: that.formState.jcy,
  1385. time: that.formState.time,
  1386. ch4: "",
  1387. co2: "",
  1388. co: "",
  1389. o2: "",
  1390. jw: "",
  1391. // gw: '',
  1392. // bxy: '',
  1393. tbrq: that.formState.tbrq,
  1394. temp: "",
  1395. mcgzm: that.formState.mcgzm,
  1396. };
  1397. that.isDisabled = false;
  1398. }
  1399. }
  1400. } else {
  1401. that.isDisabled = false;
  1402. that.saveShowList = {};
  1403. that.formState = {
  1404. id: "",
  1405. bc: that.formState.bc || "",
  1406. count: that.formState.count || "",
  1407. jcdd: that.formState.jcdd || "",
  1408. mcgzm: that.formState.mcgzm || "",
  1409. jcy: that.formState.jcy || "",
  1410. time: that.formState.time,
  1411. tbrq: that.formState.tbrq,
  1412. ch4: "",
  1413. co2: "",
  1414. co: "",
  1415. o2: "",
  1416. jw: "",
  1417. // gw: '',
  1418. // bxy: '',
  1419. temp: "",
  1420. };
  1421. }
  1422. } else {
  1423. reject(response);
  1424. }
  1425. })
  1426. .catch((error) => {
  1427. console.log("catch===>response", response);
  1428. reject(error);
  1429. });
  1430. });
  1431. },
  1432. //工作面煤层选项切换
  1433. changeMc(e) {
  1434. this.formState.mcgzm = e;
  1435. this.getSelectList();
  1436. },
  1437. //检测时间下拉选项切换
  1438. change(e) {
  1439. let that = this;
  1440. // that.formState.time = moment(e.value).format('YYYY-MM-DD HH:mm:ss')
  1441. // that.formState.tbrq = moment(e.value).format('YYYY-MM-DD')
  1442. new Promise((resolve, reject) => {
  1443. api
  1444. .getGas({ reportTime: that.formState.tbrq, deviceId: that.deviceId })
  1445. .then((response) => {
  1446. if (response.data.code == 200) {
  1447. let data = response.data.result.records;
  1448. if (data.length != 0) {
  1449. that.saveShowList = data[0];
  1450. if (
  1451. that.formState.bc == "早班" &&
  1452. that.formState.count == "第一次"
  1453. ) {
  1454. if (
  1455. that.saveShowList.bxySdzEarly1 ||
  1456. that.saveShowList.ch4Early1 ||
  1457. that.saveShowList.co2Early1 ||
  1458. that.saveShowList.coEarly1 ||
  1459. that.saveShowList.gwSdzEarly1 ||
  1460. that.saveShowList.jwSdzEarly1 ||
  1461. that.saveShowList.o2Early1 ||
  1462. that.saveShowList.tearly1
  1463. ) {
  1464. that.formState = {
  1465. id: that.saveShowList.id || "",
  1466. bc: that.formState.bc,
  1467. count: that.formState.count,
  1468. jcdd: that.formState.jcdd,
  1469. jcy: that.formState.jcy,
  1470. time: that.formState.time,
  1471. ch4: that.saveShowList.ch4Early1 || "",
  1472. co2: that.saveShowList.co2Early1 || "",
  1473. co: that.saveShowList.coEarly1 || "",
  1474. o2: that.saveShowList.o2Early1 || "",
  1475. jw: that.saveShowList.jwSdzEarly1 || "",
  1476. // gw: that.saveShowList.gwSdzEarly1 || '',
  1477. // bxy: that.saveShowList.bxySdzEarly1 || '',
  1478. tbrq: that.formState.tbrq,
  1479. temp: that.saveShowList.tearly1 || "",
  1480. mcgzm: that.formState.mcgzm,
  1481. };
  1482. that.isDisabled = true;
  1483. } else {
  1484. that.formState = {
  1485. id: that.formState.id,
  1486. bc: that.formState.bc,
  1487. count: that.formState.count,
  1488. jcdd: that.formState.jcdd,
  1489. jcy: that.formState.jcy,
  1490. time: that.formState.time,
  1491. ch4: "",
  1492. co2: "",
  1493. co: "",
  1494. o2: "",
  1495. jw: "",
  1496. // gw: '',
  1497. // bxy: '',
  1498. tbrq: that.formState.tbrq,
  1499. temp: "",
  1500. mcgzm: that.formState.mcgzm,
  1501. };
  1502. that.isDisabled = false;
  1503. }
  1504. } else if (
  1505. that.formState.bc == "早班" &&
  1506. that.formState.count == "第二次"
  1507. ) {
  1508. if (
  1509. that.saveShowList.bxySdzEarly2 ||
  1510. that.saveShowList.ch4Early2 ||
  1511. that.saveShowList.co2Early2 ||
  1512. that.saveShowList.coEarly2 ||
  1513. that.saveShowList.gwSdzEarly2 ||
  1514. that.saveShowList.jwSdzEarly2 ||
  1515. that.saveShowList.o2Early2 ||
  1516. that.saveShowList.tearly2
  1517. ) {
  1518. that.formState = {
  1519. id: that.saveShowList.id || "",
  1520. bc: that.formState.bc,
  1521. count: that.formState.count,
  1522. jcdd: that.formState.jcdd,
  1523. jcy: that.formState.jcy,
  1524. time: that.formState.time,
  1525. ch4: that.saveShowList.ch4Early2 || "",
  1526. co2: that.saveShowList.co2Early2 || "",
  1527. co: that.saveShowList.coEarly2 || "",
  1528. o2: that.saveShowList.o2Early2 || "",
  1529. jw: that.saveShowList.jwSdzEarly2 || "",
  1530. // gw: that.saveShowList.gwSdzEarly2 || '',
  1531. // bxy: that.saveShowList.bxySdzEarly2 || '',
  1532. tbrq: that.formState.tbrq,
  1533. temp: that.saveShowList.tearly2 || "",
  1534. mcgzm: that.formState.mcgzm,
  1535. };
  1536. that.isDisabled = true;
  1537. } else {
  1538. that.formState = {
  1539. id: that.formState.id,
  1540. bc: that.formState.bc,
  1541. count: that.formState.count,
  1542. jcdd: that.formState.jcdd,
  1543. jcy: that.formState.jcy,
  1544. time: that.formState.time,
  1545. ch4: "",
  1546. co2: "",
  1547. co: "",
  1548. o2: "",
  1549. jw: "",
  1550. // gw: '',
  1551. // bxy: '',
  1552. tbrq: that.formState.tbrq,
  1553. temp: "",
  1554. mcgzm: that.formState.mcgzm,
  1555. };
  1556. that.isDisabled = false;
  1557. }
  1558. } else if (
  1559. that.formState.bc == "中班" &&
  1560. that.formState.count == "第一次"
  1561. ) {
  1562. if (
  1563. that.saveShowList.bxySdzNoon1 ||
  1564. that.saveShowList.ch4Noon1 ||
  1565. that.saveShowList.co2Noon1 ||
  1566. that.saveShowList.coNoon1 ||
  1567. that.saveShowList.gwSdzNoon1 ||
  1568. that.saveShowList.jwSdzNoon1 ||
  1569. that.saveShowList.o2Noon1 ||
  1570. that.saveShowList.tnoon1
  1571. ) {
  1572. that.formState = {
  1573. id: that.saveShowList.id || "",
  1574. bc: that.formState.bc,
  1575. count: that.formState.count,
  1576. jcdd: that.formState.jcdd,
  1577. jcy: that.formState.jcy,
  1578. time: that.formState.time,
  1579. ch4: that.saveShowList.ch4Noon1 || "",
  1580. co2: that.saveShowList.co2Noon1 || "",
  1581. co: that.saveShowList.coNoon1 || "",
  1582. o2: that.saveShowList.o2Noon1 || "",
  1583. jw: that.saveShowList.jwSdzNoon1 || "",
  1584. // gw: that.saveShowList.gwSdzNoon1 || '',
  1585. // bxy: that.saveShowList.bxySdzNoon1 || '',
  1586. tbrq: that.formState.tbrq,
  1587. temp: that.saveShowList.tnoon1 || "",
  1588. mcgzm: that.formState.mcgzm,
  1589. };
  1590. that.isDisabled = true;
  1591. } else {
  1592. that.formState = {
  1593. id: that.formState.id,
  1594. bc: that.formState.bc,
  1595. count: that.formState.count,
  1596. jcdd: that.formState.jcdd,
  1597. jcy: that.formState.jcy,
  1598. time: that.formState.time,
  1599. ch4: "",
  1600. co2: "",
  1601. co: "",
  1602. o2: "",
  1603. jw: "",
  1604. // gw: '',
  1605. // bxy: '',
  1606. tbrq: that.formState.tbrq,
  1607. temp: "",
  1608. mcgzm: that.formState.mcgzm,
  1609. };
  1610. that.isDisabled = false;
  1611. }
  1612. } else if (
  1613. that.formState.bc == "中班" &&
  1614. that.formState.count == "第二次"
  1615. ) {
  1616. if (
  1617. that.saveShowList.bxySdzNoon2 ||
  1618. that.saveShowList.ch4Noon2 ||
  1619. that.saveShowList.co2Noon2 ||
  1620. that.saveShowList.coNoon2 ||
  1621. that.saveShowList.gwSdzNoon2 ||
  1622. that.saveShowList.jwSdzNoon2 ||
  1623. that.saveShowList.o2Noon2 ||
  1624. that.saveShowList.tnoon2
  1625. ) {
  1626. that.formState = {
  1627. id: that.saveShowList.id || "",
  1628. bc: that.formState.bc,
  1629. count: that.formState.count,
  1630. jcdd: that.formState.jcdd,
  1631. jcy: that.formState.jcy,
  1632. time: that.formState.time,
  1633. ch4: that.saveShowList.ch4Noon2 || "",
  1634. co2: that.saveShowList.co2Noon2 || "",
  1635. co: that.saveShowList.coNoon2 || "",
  1636. o2: that.saveShowList.o2Noon2 || "",
  1637. jw: that.saveShowList.jwSdzNoon2 || "",
  1638. // gw: that.saveShowList.gwSdzNoon2 || '',
  1639. // bxy: that.saveShowList.bxySdzNoon2 || '',
  1640. tbrq: that.formState.tbrq,
  1641. temp: that.saveShowList.tnoon2 || "",
  1642. mcgzm: that.formState.mcgzm,
  1643. };
  1644. that.isDisabled = true;
  1645. } else {
  1646. that.formState = {
  1647. id: that.formState.id,
  1648. bc: that.formState.bc,
  1649. count: that.formState.count,
  1650. jcdd: that.formState.jcdd,
  1651. jcy: that.formState.jcy,
  1652. time: that.formState.time,
  1653. ch4: "",
  1654. co2: "",
  1655. co: "",
  1656. o2: "",
  1657. jw: "",
  1658. // gw: '',
  1659. // bxy: '',
  1660. tbrq: that.formState.tbrq,
  1661. temp: "",
  1662. mcgzm: that.formState.mcgzm,
  1663. };
  1664. that.isDisabled = false;
  1665. }
  1666. } else if (
  1667. that.formState.bc == "夜班" &&
  1668. that.formState.count == "第一次"
  1669. ) {
  1670. if (
  1671. that.saveShowList.bxySdzNight1 ||
  1672. that.saveShowList.ch4Night1 ||
  1673. that.saveShowList.co2Night1 ||
  1674. that.saveShowList.coNight1 ||
  1675. that.saveShowList.gwSdzNight1 ||
  1676. that.saveShowList.jwSdzNight1 ||
  1677. that.saveShowList.o2Night1 ||
  1678. that.saveShowList.tnight1
  1679. ) {
  1680. that.formState = {
  1681. id: that.saveShowList.id || "",
  1682. bc: that.formState.bc,
  1683. count: that.formState.count,
  1684. jcdd: that.formState.jcdd,
  1685. jcy: that.formState.jcy,
  1686. time: that.formState.time,
  1687. ch4: that.saveShowList.ch4Night1 || "",
  1688. co2: that.saveShowList.co2Night1 || "",
  1689. co: that.saveShowList.coNight1 || "",
  1690. o2: that.saveShowList.o2Night1 || "",
  1691. jw: that.saveShowList.jwSdzNight1 || "",
  1692. // gw: that.saveShowList.gwSdzNight1 || '',
  1693. // bxy: that.saveShowList.bxySdzNight1 || '',
  1694. tbrq: that.formState.tbrq,
  1695. temp: that.saveShowList.tnight1 || "",
  1696. mcgzm: that.formState.mcgzm,
  1697. };
  1698. that.isDisabled = true;
  1699. } else {
  1700. that.formState = {
  1701. id: that.formState.id,
  1702. bc: that.formState.bc,
  1703. count: that.formState.count,
  1704. jcdd: that.formState.jcdd,
  1705. jcy: that.formState.jcy,
  1706. time: that.formState.time,
  1707. ch4: "",
  1708. co2: "",
  1709. co: "",
  1710. o2: "",
  1711. jw: "",
  1712. // gw: '',
  1713. // bxy: '',
  1714. tbrq: that.formState.tbrq,
  1715. temp: "",
  1716. mcgzm: that.formState.mcgzm,
  1717. };
  1718. that.isDisabled = false;
  1719. }
  1720. } else if (
  1721. that.formState.bc == "夜班" &&
  1722. that.formState.count == "第二次"
  1723. ) {
  1724. if (
  1725. that.saveShowList.bxySdzNight2 ||
  1726. that.saveShowList.ch4Night2 ||
  1727. that.saveShowList.co2Night2 ||
  1728. that.saveShowList.coNight2 ||
  1729. that.saveShowList.gwSdzNight2 ||
  1730. that.saveShowList.jwSdzNight2 ||
  1731. that.saveShowList.o2Night2 ||
  1732. that.saveShowList.tnight2
  1733. ) {
  1734. that.formState = {
  1735. id: that.saveShowList.id || "",
  1736. bc: that.formState.bc,
  1737. count: that.formState.count,
  1738. jcdd: that.formState.jcdd,
  1739. jcy: that.formState.jcy,
  1740. time: that.formState.time,
  1741. ch4: that.saveShowList.ch4Night2 || "",
  1742. co2: that.saveShowList.co2Night2 || "",
  1743. co: that.saveShowList.coNight2 || "",
  1744. o2: that.saveShowList.o2Night2 || "",
  1745. jw: that.saveShowList.jwSdzNight2 || "",
  1746. // gw: that.saveShowList.gwSdzNight2 || '',
  1747. // bxy: that.saveShowList.bxySdzNight2 || '',
  1748. tbrq: that.formState.tbrq,
  1749. temp: that.saveShowList.tnight2 || "",
  1750. mcgzm: that.formState.mcgzm,
  1751. };
  1752. that.isDisabled = true;
  1753. } else {
  1754. that.formState = {
  1755. id: that.formState.id,
  1756. bc: that.formState.bc,
  1757. count: that.formState.count,
  1758. jcdd: that.formState.jcdd,
  1759. jcy: that.formState.jcy,
  1760. time: that.formState.time,
  1761. ch4: "",
  1762. co2: "",
  1763. co: "",
  1764. o2: "",
  1765. jw: "",
  1766. // gw: '',
  1767. // bxy: '',
  1768. tbrq: that.formState.tbrq,
  1769. temp: "",
  1770. mcgzm: that.formState.mcgzm,
  1771. };
  1772. that.isDisabled = false;
  1773. }
  1774. }
  1775. } else {
  1776. that.isDisabled = false;
  1777. that.saveShowList = {};
  1778. that.formState = {
  1779. id: "",
  1780. bc: that.formState.bc || "",
  1781. count: that.formState.count || "",
  1782. jcdd: that.formState.jcdd || "",
  1783. mcgzm: that.formState.mcgzm || "",
  1784. jcy: that.formState.jcy || "",
  1785. time: that.formState.time,
  1786. tbrq: that.formState.tbrq,
  1787. ch4: "",
  1788. co2: "",
  1789. co: "",
  1790. o2: "",
  1791. jw: "",
  1792. // gw: '',
  1793. // bxy: '',
  1794. temp: "",
  1795. };
  1796. }
  1797. } else {
  1798. reject(response);
  1799. }
  1800. })
  1801. .catch((error) => {
  1802. console.log("catch===>response", response);
  1803. reject(error);
  1804. });
  1805. });
  1806. },
  1807. changeTb(e) {
  1808. this.tbTime = moment(e.value).format("YYYY-MM-DD");
  1809. },
  1810. //点击弹出日期下拉选项
  1811. getChangeTime() {
  1812. this.showCalendar = true;
  1813. },
  1814. getChangeTimeTb() {
  1815. this.showCalendarTb = true;
  1816. },
  1817. confirmTb() {
  1818. this.showCalendarTb = false;
  1819. this.getGasList();
  1820. },
  1821. //输入框内容变换
  1822. changeInput(val, data) {
  1823. if (/^00/.test(val)) {
  1824. this.formState[data] = val.replace(/^00/, "0");
  1825. } else {
  1826. this.formState[data] = val;
  1827. }
  1828. },
  1829. //便携仪失去焦点时参数校验
  1830. // getBlurBxy(val) {
  1831. // let str = val.substring(val.indexOf('.') + 1).split('')
  1832. // if (/^(\-|\+)?\d+$/.test(val)) {
  1833. // this.formState.bxy = val
  1834. // this.isRule3 = true
  1835. // } else if (/^-?([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$/.test(val) && str.length <= 2) {
  1836. // this.formState.bxy = val
  1837. // this.isRule3 = true
  1838. // } else {
  1839. // this.formState.bxy = ''
  1840. // this.isRule3 = false
  1841. // }
  1842. // },
  1843. //新增光瓦失去焦点时参数校验
  1844. // getBlur(val) {
  1845. // let str = val.substring(val.indexOf('.') + 1).split('')
  1846. // if (val.slice(-1) == '0' || val.slice(-1) == '2' || val.slice(-1) == '4' || val.slice(-1) == '6' || val.slice(-1) == '8') {
  1847. // if (/^-?([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$/.test(val)) {
  1848. // if (str.length <= 2) {
  1849. // this.formState.gw = val
  1850. // this.isRule1 = true
  1851. // } else {
  1852. // this.formState.gw = ''
  1853. // this.isRule1 = false
  1854. // }
  1855. // } else {
  1856. // this.formState.gw = val
  1857. // this.isRule1 = true
  1858. // }
  1859. // } else {
  1860. // this.formState.gw = ''
  1861. // this.isRule1 = false
  1862. // }
  1863. // },
  1864. //新增CO2失去焦点时参数校验
  1865. getBlurCO2(val) {
  1866. let str = val.substring(val.indexOf(".") + 1).split("");
  1867. if (
  1868. val.slice(-1) == "0" ||
  1869. val.slice(-1) == "2" ||
  1870. val.slice(-1) == "4" ||
  1871. val.slice(-1) == "6" ||
  1872. val.slice(-1) == "8"
  1873. ) {
  1874. if (/^-?([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$/.test(val)) {
  1875. if (str.length <= 2) {
  1876. this.formState.co2 = val;
  1877. this.isRule = true;
  1878. } else {
  1879. this.formState.co2 = "";
  1880. this.isRule = false;
  1881. }
  1882. } else {
  1883. this.formState.co2 = val;
  1884. this.isRule = true;
  1885. }
  1886. } else {
  1887. this.formState.co2 = "";
  1888. this.isRule = false;
  1889. }
  1890. },
  1891. //新增CH4失去焦点时参数校验
  1892. getBlurCH4(val) {
  1893. let str = val.substring(val.indexOf(".") + 1).split("");
  1894. if (
  1895. val.slice(-1) == "0" ||
  1896. val.slice(-1) == "2" ||
  1897. val.slice(-1) == "4" ||
  1898. val.slice(-1) == "6" ||
  1899. val.slice(-1) == "8"
  1900. ) {
  1901. if (/^-?([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$/.test(val)) {
  1902. if (str.length <= 2) {
  1903. this.formState.ch4 = val;
  1904. this.isRule2 = true;
  1905. } else {
  1906. this.formState.ch4 = "";
  1907. this.isRule2 = false;
  1908. }
  1909. } else {
  1910. this.formState.ch4 = val;
  1911. this.isRule2 = true;
  1912. }
  1913. } else {
  1914. this.formState.ch4 = "";
  1915. this.isRule2 = false;
  1916. }
  1917. },
  1918. getBlurCO(val) {
  1919. let str = val.substring(val.indexOf(".") + 1).split("");
  1920. if (/^(\-|\+)?\d+$/.test(val) && parseFloat(val) <= 24) {
  1921. this.formState.co = val;
  1922. this.isRule14 = true;
  1923. } else if (
  1924. /^-?([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$/.test(val) &&
  1925. str.length <= 2 &&
  1926. parseFloat(val) <= 24
  1927. ) {
  1928. this.formState.co = val;
  1929. this.isRule14 = true;
  1930. } else {
  1931. this.formState.co = "";
  1932. this.isRule14 = false;
  1933. }
  1934. },
  1935. //根据NFC读取数据获取监测地点信息
  1936. getCardLists(ids) {
  1937. let that = this;
  1938. new Promise((resolve, reject) => {
  1939. api
  1940. .getCardList({ id: ids })
  1941. .then((response) => {
  1942. if (response.data.code == 200) {
  1943. let data = response.data.result;
  1944. that.formState.jcdd = data.strInstallPos;
  1945. that.deviceId = data.deviceId;
  1946. } else {
  1947. uni.showToast({
  1948. title: "检测地点识别失败!",
  1949. icon: "none", // 可选图标,'success', 'loading', 'none'
  1950. });
  1951. }
  1952. })
  1953. .catch((e) => {
  1954. uni.showToast({
  1955. title: "检测地点识别失败!",
  1956. icon: "none", // 可选图标,'success', 'loading', 'none'
  1957. });
  1958. });
  1959. });
  1960. },
  1961. //瓦斯新增
  1962. getAdd() {
  1963. let that = this;
  1964. that.isShowAdd = true;
  1965. that.zcShow = false;
  1966. that.isStatus = "add";
  1967. that.formState.jcy = this.username;
  1968. that.formState.time = moment(new Date()).format("YYYY-MM-DD HH:mm:ss");
  1969. that.formState.tbrq = moment(new Date()).format("YYYY-MM-DD");
  1970. if (that.nfcShow) {
  1971. testNfc.listenNFCStatus();
  1972. testNfc.readData();
  1973. }
  1974. },
  1975. getAddSave() {
  1976. let that = this;
  1977. let param = {};
  1978. if (that.formState.bc == "早班" && that.formState.count == "第一次") {
  1979. param = {
  1980. // id: that.formState.id,
  1981. deviceId: that.deviceId,
  1982. // bxySdzEarly1: that.formState.bxy,
  1983. ch4Early1: that.formState.ch4,
  1984. checkPersonEarly: that.formState.jcy,
  1985. co2Early1: that.formState.co2,
  1986. coEarly1: that.formState.co,
  1987. // gwSdzEarly1: that.formState.gw,
  1988. jwSdzEarly1: that.formState.ch4,
  1989. o2Early1: that.formState.o2,
  1990. strInstallPos: that.formState.jcdd,
  1991. timeEarly1: that.formState.time,
  1992. reportTime: that.formState.tbrq,
  1993. tearly1: that.formState.temp,
  1994. };
  1995. } else if (
  1996. that.formState.bc == "早班" &&
  1997. that.formState.count == "第二次"
  1998. ) {
  1999. param = {
  2000. deviceId: that.deviceId,
  2001. // id: that.formState.id,
  2002. // bxySdzEarly2: that.formState.bxy,
  2003. ch4Early2: that.formState.ch4,
  2004. checkPersonEarly: that.formState.jcy,
  2005. co2Early2: that.formState.co2,
  2006. coEarly2: that.formState.co,
  2007. // gwSdzEarly2: that.formState.gw,
  2008. jwSdzEarly2: that.formState.ch4,
  2009. o2Early2: that.formState.o2,
  2010. strInstallPos: that.formState.jcdd,
  2011. timeEarly2: that.formState.time,
  2012. reportTime: that.formState.tbrq,
  2013. tearly2: that.formState.temp,
  2014. };
  2015. } else if (
  2016. that.formState.bc == "中班" &&
  2017. that.formState.count == "第一次"
  2018. ) {
  2019. param = {
  2020. deviceId: that.deviceId,
  2021. // id: that.formState.id,
  2022. // bxySdzNoon1: that.formState.bxy,
  2023. ch4Noon1: that.formState.ch4,
  2024. checkPersonNoon: that.formState.jcy,
  2025. co2Noon1: that.formState.co2,
  2026. coNoon1: that.formState.co,
  2027. // gwSdzNoon1: that.formState.gw,
  2028. jwSdzNoon1: that.formState.ch4,
  2029. o2Noon1: that.formState.o2,
  2030. strInstallPos: that.formState.jcdd,
  2031. timeNoon1: that.formState.time,
  2032. reportTime: that.formState.tbrq,
  2033. tnoon1: that.formState.temp,
  2034. };
  2035. } else if (
  2036. that.formState.bc == "中班" &&
  2037. that.formState.count == "第二次"
  2038. ) {
  2039. param = {
  2040. deviceId: that.deviceId,
  2041. // id: that.formState.id,
  2042. // bxySdzNoon2: that.formState.bxy,
  2043. ch4Noon2: that.formState.ch4,
  2044. checkPersonNoon: that.formState.jcy,
  2045. co2Noon2: that.formState.co2,
  2046. coNoon2: that.formState.co,
  2047. // gwSdzNoon2: that.formState.gw,
  2048. jwSdzNoon2: that.formState.ch4,
  2049. o2Noon2: that.formState.o2,
  2050. strInstallPos: that.formState.jcdd,
  2051. timeNoon2: that.formState.time,
  2052. reportTime: that.formState.tbrq,
  2053. tnoon2: that.formState.temp,
  2054. };
  2055. } else if (
  2056. that.formState.bc == "夜班" &&
  2057. that.formState.count == "第一次"
  2058. ) {
  2059. param = {
  2060. deviceId: that.deviceId,
  2061. // id: that.formState.id,
  2062. // bxySdzNight1: that.formState.bxy,
  2063. ch4Night1: that.formState.ch4,
  2064. checkPersonNight: that.formState.jcy,
  2065. co2Night1: that.formState.co2,
  2066. coNight1: that.formState.co,
  2067. // gwSdzNight1: that.formState.gw,
  2068. jwSdzNight1: that.formState.ch4,
  2069. o2Night1: that.formState.o2,
  2070. strInstallPos: that.formState.jcdd,
  2071. timeNight1: that.formState.time,
  2072. reportTime: that.formState.tbrq,
  2073. tnight1: that.formState.temp,
  2074. };
  2075. } else if (
  2076. that.formState.bc == "夜班" &&
  2077. that.formState.count == "第二次"
  2078. ) {
  2079. param = {
  2080. deviceId: that.deviceId,
  2081. // id: that.formState.id,
  2082. // bxySdzNight2: that.formState.bxy,
  2083. ch4Night2: that.formState.ch4,
  2084. checkPersonNoon: that.formState.jcy,
  2085. co2Night2: that.formState.co2,
  2086. coNight2: that.formState.co,
  2087. // gwSdzNight2: that.formState.gw,
  2088. jwSdzNight2: that.formState.ch4,
  2089. o2Night2: that.formState.o2,
  2090. strInstallPos: that.formState.jcdd,
  2091. timeNight2: that.formState.time,
  2092. reportTime: that.formState.tbrq,
  2093. tnight2: that.formState.temp,
  2094. };
  2095. }
  2096. new Promise((resolve, reject) => {
  2097. api
  2098. .getAdd({ ...param })
  2099. .then((response) => {
  2100. if (response.data.code == 200) {
  2101. that.getGasList();
  2102. that.isShowAdd = false;
  2103. that.isDisabled = false;
  2104. that.saveShowList = {};
  2105. that.zcList =
  2106. that.zcList.filter(
  2107. (v) => v.cardId != that.zcParamData.cardId
  2108. ) || [];
  2109. uni.setStorageSync("zcList", that.zcList);
  2110. that.clearData();
  2111. } else {
  2112. reject(response);
  2113. }
  2114. })
  2115. .catch((error) => {
  2116. console.log("catch===>response", response);
  2117. reject(error);
  2118. });
  2119. });
  2120. },
  2121. getEditSave() {
  2122. let that = this;
  2123. let param = {};
  2124. if (that.formState.bc == "早班" && that.formState.count == "第一次") {
  2125. param = {
  2126. id: that.saveShowList.id,
  2127. // bxySdzEarly1: that.formState.bxy,
  2128. ch4Early1: that.formState.ch4,
  2129. checkPersonEarly: that.formState.jcy,
  2130. co2Early1: that.formState.co2,
  2131. coEarly1: that.formState.co,
  2132. // gwSdzEarly1: that.formState.gw,
  2133. jwSdzEarly1: that.formState.ch4,
  2134. o2Early1: that.formState.o2,
  2135. strInstallPos: that.formState.jcdd,
  2136. timeEarly1: that.formState.time,
  2137. tearly1: that.formState.temp,
  2138. bxySdzEarly2: that.saveShowList.bxySdzEarly2,
  2139. ch4Early2: that.saveShowList.ch4Early2,
  2140. co2Early2: that.saveShowList.co2Early2,
  2141. coEarly2: that.saveShowList.coEarly2,
  2142. gwSdzEarly2: that.saveShowList.gwSdzEarly2,
  2143. jwSdzEarly2: that.saveShowList.jwSdzEarly2,
  2144. o2Early2: that.saveShowList.o2Early2,
  2145. timeEarly2: that.saveShowList.timeEarly2,
  2146. tearly2: that.saveShowList.tearly2,
  2147. bxySdzNoon1: that.saveShowList.bxySdzNoon1,
  2148. ch4Noon1: that.saveShowList.ch4Noon1,
  2149. checkPersonNoon: that.formState.jcy,
  2150. co2Noon1: that.saveShowList.co2Noon1,
  2151. coNoon1: that.saveShowList.coNoon1,
  2152. gwSdzNoon1: that.saveShowList.gwSdzNoon1,
  2153. jwSdzNoon1: that.saveShowList.jwSdzNoon1,
  2154. o2Noon1: that.saveShowList.o2Noon1,
  2155. strInstallPos: that.saveShowList.strInstallPos,
  2156. timeNoon1: that.saveShowList.timeNoon1,
  2157. tnoon1: that.saveShowList.tnoon1,
  2158. bxySdzNoon2: that.saveShowList.bxySdzNoon2,
  2159. ch4Noon2: that.saveShowList.ch4Noon2,
  2160. co2Noon2: that.saveShowList.co2Noon2,
  2161. coNoon2: that.saveShowList.coNoon2,
  2162. gwSdzNoon2: that.saveShowList.gwSdzNoon2,
  2163. jwSdzNoon2: that.saveShowList.jwSdzNoon2,
  2164. o2Noon2: that.saveShowList.o2Noon2,
  2165. timeNoon2: that.saveShowList.timeNoon2,
  2166. tnoon2: that.saveShowList.tnoon2,
  2167. bxySdzNight1: that.saveShowList.bxySdzNight1,
  2168. ch4Night1: that.saveShowList.ch4Night1,
  2169. checkPersonNight: that.formState.jcy,
  2170. co2Night1: that.saveShowList.co2Night1,
  2171. coNight1: that.saveShowList.coNight1,
  2172. gwSdzNight1: that.saveShowList.gwSdzNight1,
  2173. jwSdzNight1: that.saveShowList.jwSdzNight1,
  2174. o2Night1: that.saveShowList.o2Night1,
  2175. strInstallPos: that.saveShowList.strInstallPos,
  2176. timeNight1: that.saveShowList.timeNight1,
  2177. tnight1: that.saveShowList.tnight1,
  2178. bxySdzNight2: that.saveShowList.bxySdzNight2,
  2179. ch4Night2: that.saveShowList.ch4Night2,
  2180. co2Night2: that.saveShowList.co2Night2,
  2181. coNight2: that.saveShowList.coNight2,
  2182. gwSdzNight2: that.saveShowList.gwSdzNight2,
  2183. jwSdzNight2: that.saveShowList.jwSdzNight2,
  2184. o2Night2: that.saveShowList.o2Night2,
  2185. timeNight2: that.saveShowList.timeNight2,
  2186. tnight2: that.saveShowList.tnight2,
  2187. };
  2188. } else if (
  2189. that.formState.bc == "早班" &&
  2190. that.formState.count == "第二次"
  2191. ) {
  2192. param = {
  2193. id: that.saveShowList.id,
  2194. bxySdzEarly1: that.saveShowList.bxySdzEarly1,
  2195. ch4Early1: that.saveShowList.ch4Early1,
  2196. co2Early1: that.saveShowList.co2Early1,
  2197. coEarly1: that.saveShowList.coEarly1,
  2198. gwSdzEarly1: that.saveShowList.gwSdzEarly1,
  2199. jwSdzEarly1: that.saveShowList.jwSdzEarly1,
  2200. o2Early1: that.saveShowList.o2Early1,
  2201. timeEarly1: that.saveShowList.timeEarly1,
  2202. tearly1: that.saveShowList.tearly1,
  2203. // bxySdzEarly2: that.formState.bxy,
  2204. ch4Early2: that.formState.ch4,
  2205. checkPersonEarly: that.formState.jcy,
  2206. co2Early2: that.formState.co2,
  2207. coEarly2: that.formState.co,
  2208. // gwSdzEarly2: that.formState.gw,
  2209. jwSdzEarly2: that.formState.ch4,
  2210. o2Early2: that.formState.o2,
  2211. strInstallPos: that.formState.jcdd,
  2212. timeEarly2: that.formState.time,
  2213. tearly2: that.formState.temp,
  2214. bxySdzNoon1: that.saveShowList.bxySdzNoon1,
  2215. ch4Noon1: that.saveShowList.ch4Noon1,
  2216. checkPersonNoon: that.formState.jcy,
  2217. co2Noon1: that.saveShowList.co2Noon1,
  2218. coNoon1: that.saveShowList.coNoon1,
  2219. gwSdzNoon1: that.saveShowList.gwSdzNoon1,
  2220. jwSdzNoon1: that.saveShowList.jwSdzNoon1,
  2221. o2Noon1: that.saveShowList.o2Noon1,
  2222. strInstallPos: that.saveShowList.strInstallPos,
  2223. timeNoon1: that.saveShowList.timeNoon1,
  2224. tnoon1: that.saveShowList.tnoon1,
  2225. bxySdzNoon2: that.saveShowList.bxySdzNoon2,
  2226. ch4Noon2: that.saveShowList.ch4Noon2,
  2227. co2Noon2: that.saveShowList.co2Noon2,
  2228. coNoon2: that.saveShowList.coNoon2,
  2229. gwSdzNoon2: that.saveShowList.gwSdzNoon2,
  2230. jwSdzNoon2: that.saveShowList.jwSdzNoon2,
  2231. o2Noon2: that.saveShowList.o2Noon2,
  2232. timeNoon2: that.saveShowList.timeNoon2,
  2233. tnoon2: that.saveShowList.tnoon2,
  2234. bxySdzNight1: that.saveShowList.bxySdzNight1,
  2235. ch4Night1: that.saveShowList.ch4Night1,
  2236. checkPersonNight: that.formState.jcy,
  2237. co2Night1: that.saveShowList.co2Night1,
  2238. coNight1: that.saveShowList.coNight1,
  2239. gwSdzNight1: that.saveShowList.gwSdzNight1,
  2240. jwSdzNight1: that.saveShowList.jwSdzNight1,
  2241. o2Night1: that.saveShowList.o2Night1,
  2242. strInstallPos: that.saveShowList.strInstallPos,
  2243. timeNight1: that.saveShowList.timeNight1,
  2244. tnight1: that.saveShowList.tnight1,
  2245. bxySdzNight2: that.saveShowList.bxySdzNight2,
  2246. ch4Night2: that.saveShowList.ch4Night2,
  2247. co2Night2: that.saveShowList.co2Night2,
  2248. coNight2: that.saveShowList.coNight2,
  2249. gwSdzNight2: that.saveShowList.gwSdzNight2,
  2250. jwSdzNight2: that.saveShowList.jwSdzNight2,
  2251. o2Night2: that.saveShowList.o2Night2,
  2252. timeNight2: that.saveShowList.timeNight2,
  2253. tnight2: that.saveShowList.tnight2,
  2254. };
  2255. } else if (
  2256. that.formState.bc == "中班" &&
  2257. that.formState.count == "第一次"
  2258. ) {
  2259. param = {
  2260. id: that.saveShowList.id,
  2261. bxySdzEarly1: that.saveShowList.bxySdzEarly1,
  2262. ch4Early1: that.saveShowList.ch4Early1,
  2263. co2Early1: that.saveShowList.co2Early1,
  2264. coEarly1: that.saveShowList.coEarly1,
  2265. gwSdzEarly1: that.saveShowList.gwSdzEarly1,
  2266. jwSdzEarly1: that.saveShowList.jwSdzEarly1,
  2267. o2Early1: that.saveShowList.o2Early1,
  2268. timeEarly1: that.saveShowList.timeEarly1,
  2269. checkPersonEarly: that.formState.jcy,
  2270. strInstallPos: that.saveShowList.strInstallPos,
  2271. tearly1: that.saveShowList.tearly1,
  2272. bxySdzEarly2: that.saveShowList.bxySdzEarly2,
  2273. ch4Early2: that.saveShowList.ch4Early2,
  2274. co2Early2: that.saveShowList.co2Early2,
  2275. coEarly2: that.saveShowList.coEarly2,
  2276. gwSdzEarly2: that.saveShowList.gwSdzEarly2,
  2277. jwSdzEarly2: that.saveShowList.jwSdzEarly2,
  2278. o2Early2: that.saveShowList.o2Early2,
  2279. timeEarly2: that.saveShowList.timeEarly2,
  2280. tearly2: that.saveShowList.tearly2,
  2281. // bxySdzNoon1: that.formState.bxy,
  2282. ch4Noon1: that.formState.ch4,
  2283. checkPersonNoon: that.formState.jcy,
  2284. co2Noon1: that.formState.co2,
  2285. coNoon1: that.formState.co,
  2286. // gwSdzNoon1: that.formState.gw,
  2287. jwSdzNoon1: that.formState.ch4,
  2288. o2Noon1: that.formState.o2,
  2289. strInstallPos: that.formState.jcdd,
  2290. timeNoon1: that.formState.time,
  2291. tnoon1: that.formState.temp,
  2292. bxySdzNoon2: that.saveShowList.bxySdzNoon2,
  2293. ch4Noon2: that.saveShowList.ch4Noon2,
  2294. co2Noon2: that.saveShowList.co2Noon2,
  2295. coNoon2: that.saveShowList.coNoon2,
  2296. gwSdzNoon2: that.saveShowList.gwSdzNoon2,
  2297. jwSdzNoon2: that.saveShowList.jwSdzNoon2,
  2298. o2Noon2: that.saveShowList.o2Noon2,
  2299. timeNoon2: that.saveShowList.timeNoon2,
  2300. tnoon2: that.saveShowList.tnoon2,
  2301. bxySdzNight1: that.saveShowList.bxySdzNight1,
  2302. ch4Night1: that.saveShowList.ch4Night1,
  2303. checkPersonNight: that.formState.jcy,
  2304. co2Night1: that.saveShowList.co2Night1,
  2305. coNight1: that.saveShowList.coNight1,
  2306. gwSdzNight1: that.saveShowList.gwSdzNight1,
  2307. jwSdzNight1: that.saveShowList.jwSdzNight1,
  2308. o2Night1: that.saveShowList.o2Night1,
  2309. strInstallPos: that.saveShowList.strInstallPos,
  2310. timeNight1: that.saveShowList.timeNight1,
  2311. tnight1: that.saveShowList.tnight1,
  2312. bxySdzNight2: that.saveShowList.bxySdzNight2,
  2313. ch4Night2: that.saveShowList.ch4Night2,
  2314. co2Night2: that.saveShowList.co2Night2,
  2315. coNight2: that.saveShowList.coNight2,
  2316. gwSdzNight2: that.saveShowList.gwSdzNight2,
  2317. jwSdzNight2: that.saveShowList.jwSdzNight2,
  2318. o2Night2: that.saveShowList.o2Night2,
  2319. timeNight2: that.saveShowList.timeNight2,
  2320. tnight2: that.saveShowList.tnight2,
  2321. };
  2322. } else if (
  2323. that.formState.bc == "中班" &&
  2324. that.formState.count == "第二次"
  2325. ) {
  2326. param = {
  2327. id: that.saveShowList.id,
  2328. bxySdzEarly1: that.saveShowList.bxySdzEarly1,
  2329. ch4Early1: that.saveShowList.ch4Early1,
  2330. co2Early1: that.saveShowList.co2Early1,
  2331. coEarly1: that.saveShowList.coEarly1,
  2332. gwSdzEarly1: that.saveShowList.gwSdzEarly1,
  2333. jwSdzEarly1: that.saveShowList.jwSdzEarly1,
  2334. o2Early1: that.saveShowList.o2Early1,
  2335. timeEarly1: that.saveShowList.timeEarly1,
  2336. checkPersonEarly: that.formState.jcy,
  2337. strInstallPos: that.saveShowList.strInstallPos,
  2338. tearly1: that.saveShowList.tearly1,
  2339. bxySdzEarly2: that.saveShowList.bxySdzEarly2,
  2340. ch4Early2: that.saveShowList.ch4Early2,
  2341. co2Early2: that.saveShowList.co2Early2,
  2342. coEarly2: that.saveShowList.coEarly2,
  2343. gwSdzEarly2: that.saveShowList.gwSdzEarly2,
  2344. jwSdzEarly2: that.saveShowList.jwSdzEarly2,
  2345. o2Early2: that.saveShowList.o2Early2,
  2346. timeEarly2: that.saveShowList.timeEarly2,
  2347. tearly2: that.saveShowList.tearly2,
  2348. bxySdzNoon1: that.saveShowList.bxySdzNoon1,
  2349. ch4Noon1: that.saveShowList.ch4Noon1,
  2350. co2Noon1: that.saveShowList.co2Noon1,
  2351. coNoon1: that.saveShowList.coNoon1,
  2352. gwSdzNoon1: that.saveShowList.gwSdzNoon1,
  2353. jwSdzNoon1: that.saveShowList.jwSdzNoon1,
  2354. o2Noon1: that.saveShowList.o2Noon1,
  2355. timeNoon1: that.saveShowList.timeNoon1,
  2356. tnoon1: that.saveShowList.tnoon1,
  2357. // bxySdzNoon2: that.formState.bxy,
  2358. ch4Noon2: that.formState.ch4,
  2359. checkPersonNoon: that.formState.jcy,
  2360. co2Noon2: that.formState.co2,
  2361. coNoon2: that.formState.co,
  2362. // gwSdzNoon2: that.formState.gw,
  2363. jwSdzNoon2: that.formState.ch4,
  2364. o2Noon2: that.formState.o2,
  2365. strInstallPos: that.formState.jcdd,
  2366. timeNoon2: that.formState.time,
  2367. tnoon2: that.formState.temp,
  2368. bxySdzNight1: that.saveShowList.bxySdzNight1,
  2369. ch4Night1: that.saveShowList.ch4Night1,
  2370. checkPersonNight: that.formState.jcy,
  2371. co2Night1: that.saveShowList.co2Night1,
  2372. coNight1: that.saveShowList.coNight1,
  2373. gwSdzNight1: that.saveShowList.gwSdzNight1,
  2374. jwSdzNight1: that.saveShowList.jwSdzNight1,
  2375. o2Night1: that.saveShowList.o2Night1,
  2376. strInstallPos: that.saveShowList.strInstallPos,
  2377. timeNight1: that.saveShowList.timeNight1,
  2378. tnight1: that.saveShowList.tnight1,
  2379. bxySdzNight2: that.saveShowList.bxySdzNight2,
  2380. ch4Night2: that.saveShowList.ch4Night2,
  2381. co2Night2: that.saveShowList.co2Night2,
  2382. coNight2: that.saveShowList.coNight2,
  2383. gwSdzNight2: that.saveShowList.gwSdzNight2,
  2384. jwSdzNight2: that.saveShowList.jwSdzNight2,
  2385. o2Night2: that.saveShowList.o2Night2,
  2386. timeNight2: that.saveShowList.timeNight2,
  2387. tnight2: that.saveShowList.tnight2,
  2388. };
  2389. } else if (
  2390. that.formState.bc == "夜班" &&
  2391. that.formState.count == "第一次"
  2392. ) {
  2393. param = {
  2394. id: that.saveShowList.id,
  2395. bxySdzEarly1: that.saveShowList.bxySdzEarly1,
  2396. ch4Early1: that.saveShowList.ch4Early1,
  2397. co2Early1: that.saveShowList.co2Early1,
  2398. coEarly1: that.saveShowList.coEarly1,
  2399. gwSdzEarly1: that.saveShowList.gwSdzEarly1,
  2400. jwSdzEarly1: that.saveShowList.jwSdzEarly1,
  2401. o2Early1: that.saveShowList.o2Early1,
  2402. timeEarly1: that.saveShowList.timeEarly1,
  2403. checkPersonEarly: that.formState.jcy,
  2404. strInstallPos: that.saveShowList.strInstallPos,
  2405. tearly1: that.saveShowList.tearly1,
  2406. bxySdzEarly2: that.saveShowList.bxySdzEarly2,
  2407. ch4Early2: that.saveShowList.ch4Early2,
  2408. co2Early2: that.saveShowList.co2Early2,
  2409. coEarly2: that.saveShowList.coEarly2,
  2410. gwSdzEarly2: that.saveShowList.gwSdzEarly2,
  2411. jwSdzEarly2: that.saveShowList.jwSdzEarly2,
  2412. o2Early2: that.saveShowList.o2Early2,
  2413. timeEarly2: that.saveShowList.timeEarly2,
  2414. tearly2: that.saveShowList.tearly2,
  2415. bxySdzNoon1: that.saveShowList.bxySdzNoon1,
  2416. ch4Noon1: that.saveShowList.ch4Noon1,
  2417. co2Noon1: that.saveShowList.co2Noon1,
  2418. coNoon1: that.saveShowList.coNoon1,
  2419. gwSdzNoon1: that.saveShowList.gwSdzNoon1,
  2420. jwSdzNoon1: that.saveShowList.jwSdzNoon1,
  2421. o2Noon1: that.saveShowList.o2Noon1,
  2422. timeNoon1: that.saveShowList.timeNoon1,
  2423. tnoon1: that.saveShowList.tnoon1,
  2424. bxySdzNoon2: that.saveShowList.bxySdzNoon2,
  2425. ch4Noon2: that.saveShowList.ch4Noon2,
  2426. checkPersonNoon: that.formState.jcy,
  2427. co2Noon2: that.saveShowList.co2Noon2,
  2428. coNoon2: that.saveShowList.coNoon2,
  2429. gwSdzNoon2: that.saveShowList.gwSdzNoon2,
  2430. jwSdzNoon2: that.saveShowList.jwSdzNoon2,
  2431. o2Noon2: that.saveShowList.o2Noon2,
  2432. strInstallPos: that.saveShowList.strInstallPos,
  2433. timeNoon2: that.saveShowList.timeNoon2,
  2434. tnoon2: that.saveShowList.tnoon2,
  2435. // bxySdzNight1: that.formState.bxy,
  2436. ch4Night1: that.formState.ch4,
  2437. checkPersonNight: that.formState.jcy,
  2438. co2Night1: that.formState.co2,
  2439. coNight1: that.formState.co,
  2440. // gwSdzNight1: that.formState.gw,
  2441. jwSdzNight1: that.formState.ch4,
  2442. o2Night1: that.formState.o2,
  2443. strInstallPos: that.formState.jcdd,
  2444. timeNight1: that.formState.time,
  2445. tnight1: that.formState.temp,
  2446. bxySdzNight2: that.saveShowList.bxySdzNight2,
  2447. ch4Night2: that.saveShowList.ch4Night2,
  2448. co2Night2: that.saveShowList.co2Night2,
  2449. coNight2: that.saveShowList.coNight2,
  2450. gwSdzNight2: that.saveShowList.gwSdzNight2,
  2451. jwSdzNight2: that.saveShowList.jwSdzNight2,
  2452. o2Night2: that.saveShowList.o2Night2,
  2453. timeNight2: that.saveShowList.timeNight2,
  2454. tnight2: that.saveShowList.tnight2,
  2455. };
  2456. } else if (
  2457. that.formState.bc == "夜班" &&
  2458. that.formState.count == "第二次"
  2459. ) {
  2460. param = {
  2461. id: that.saveShowList.id,
  2462. bxySdzEarly1: that.saveShowList.bxySdzEarly1,
  2463. ch4Early1: that.saveShowList.ch4Early1,
  2464. co2Early1: that.saveShowList.co2Early1,
  2465. coEarly1: that.saveShowList.coEarly1,
  2466. gwSdzEarly1: that.saveShowList.gwSdzEarly1,
  2467. jwSdzEarly1: that.saveShowList.jwSdzEarly1,
  2468. o2Early1: that.saveShowList.o2Early1,
  2469. timeEarly1: that.saveShowList.timeEarly1,
  2470. checkPersonEarly: that.formState.jcy,
  2471. strInstallPos: that.saveShowList.strInstallPos,
  2472. tearly1: that.saveShowList.tearly1,
  2473. bxySdzEarly2: that.saveShowList.bxySdzEarly2,
  2474. ch4Early2: that.saveShowList.ch4Early2,
  2475. co2Early2: that.saveShowList.co2Early2,
  2476. coEarly2: that.saveShowList.coEarly2,
  2477. gwSdzEarly2: that.saveShowList.gwSdzEarly2,
  2478. jwSdzEarly2: that.saveShowList.jwSdzEarly2,
  2479. o2Early2: that.saveShowList.o2Early2,
  2480. timeEarly2: that.saveShowList.timeEarly2,
  2481. tearly2: that.saveShowList.tearly2,
  2482. bxySdzNoon1: that.saveShowList.bxySdzNoon1,
  2483. ch4Noon1: that.saveShowList.ch4Noon1,
  2484. co2Noon1: that.saveShowList.co2Noon1,
  2485. coNoon1: that.saveShowList.coNoon1,
  2486. gwSdzNoon1: that.saveShowList.gwSdzNoon1,
  2487. jwSdzNoon1: that.saveShowList.jwSdzNoon1,
  2488. o2Noon1: that.saveShowList.o2Noon1,
  2489. timeNoon1: that.saveShowList.timeNoon1,
  2490. tnoon1: that.saveShowList.tnoon1,
  2491. bxySdzNoon2: that.saveShowList.bxySdzNoon2,
  2492. ch4Noon2: that.saveShowList.ch4Noon2,
  2493. checkPersonNoon: that.formState.jcy,
  2494. co2Noon2: that.saveShowList.co2Noon2,
  2495. coNoon2: that.saveShowList.coNoon2,
  2496. gwSdzNoon2: that.saveShowList.gwSdzNoon2,
  2497. jwSdzNoon2: that.saveShowList.jwSdzNoon2,
  2498. o2Noon2: that.saveShowList.o2Noon2,
  2499. strInstallPos: that.saveShowList.strInstallPos,
  2500. timeNoon2: that.saveShowList.timeNoon2,
  2501. tnoon2: that.saveShowList.tnoon2,
  2502. bxySdzNight1: that.saveShowList.bxySdzNight1,
  2503. ch4Night1: that.saveShowList.ch4Night1,
  2504. co2Night1: that.saveShowList.co2Night1,
  2505. coNight1: that.saveShowList.coNight1,
  2506. gwSdzNight1: that.saveShowList.gwSdzNight1,
  2507. jwSdzNight1: that.saveShowList.jwSdzNight1,
  2508. o2Night1: that.saveShowList.o2Night1,
  2509. timeNight1: that.saveShowList.timeNight1,
  2510. tnight1: that.saveShowList.tnight1,
  2511. // bxySdzNight2: that.formState.bxy,
  2512. ch4Night2: that.formState.ch4,
  2513. checkPersonNight: that.formState.jcy,
  2514. co2Night2: that.formState.co2,
  2515. coNight2: that.formState.co,
  2516. // gwSdzNight2: that.formState.gw,
  2517. jwSdzNight2: that.formState.ch4,
  2518. o2Night2: that.formState.o2,
  2519. strInstallPos: that.formState.jcdd,
  2520. timeNight2: that.formState.time,
  2521. tnight2: that.formState.temp,
  2522. };
  2523. }
  2524. new Promise((resolve, reject) => {
  2525. api
  2526. .getEdit({ ...param })
  2527. .then((response) => {
  2528. if (response.data.code == 200) {
  2529. that.getGasList();
  2530. that.isShowAdd = false;
  2531. that.isDisabled = false;
  2532. that.saveShowList = {};
  2533. that.zcList =
  2534. that.zcList.filter(
  2535. (v) => v.cardId != that.zcParamData.cardId
  2536. ) || [];
  2537. uni.setStorageSync("zcList", that.zcList);
  2538. that.clearData();
  2539. } else {
  2540. reject(response);
  2541. }
  2542. })
  2543. .catch((error) => {
  2544. console.log("catch===>response", response);
  2545. reject(error);
  2546. });
  2547. });
  2548. },
  2549. //新增保存
  2550. getConfirm() {
  2551. let that = this;
  2552. that.isShowSave = true;
  2553. },
  2554. //保存提示弹窗-确定
  2555. confrimSave() {
  2556. let that = this;
  2557. console.log(that.saveShowList, "saveShowList");
  2558. that.isStatus =
  2559. JSON.stringify(that.saveShowList) != "{}" ? "edit" : "add";
  2560. that.isShowSave = false;
  2561. if (that.isStatus == "add") {
  2562. that.getAddSave();
  2563. } else {
  2564. that.getEditSave();
  2565. }
  2566. },
  2567. //保存提示弹窗-取消
  2568. cancelSavve() {
  2569. let that = this;
  2570. that.isShowSave = false;
  2571. },
  2572. clearData() {
  2573. this.formState = {
  2574. id: "",
  2575. bc: "",
  2576. count: "",
  2577. jcdd: "",
  2578. mcgzm: "",
  2579. jcy: this.username,
  2580. time: "",
  2581. ch4: "",
  2582. co2: "",
  2583. co: "",
  2584. o2: "",
  2585. jw: "",
  2586. // gw: '',
  2587. // bxy: '',
  2588. tbrq: "",
  2589. temp: "",
  2590. };
  2591. this.isRule = true;
  2592. this.isRule2 = true;
  2593. this.isRule1 = true;
  2594. this.isRule3 = true;
  2595. this.isRule14 = true;
  2596. },
  2597. //新增取消
  2598. getCancel() {
  2599. this.isShowAdd = false;
  2600. this.isDisabled = false;
  2601. this.saveShowList = {};
  2602. this.clearData();
  2603. },
  2604. //获取瓦斯上报列表数据
  2605. getGasList() {
  2606. let that = this;
  2607. new Promise((resolve, reject) => {
  2608. api
  2609. .getGas({ reportTime: that.tbTime })
  2610. .then((response) => {
  2611. if (response.data.code == 200) {
  2612. let data = response.data.result.records;
  2613. that.gasList = data;
  2614. } else {
  2615. reject(response);
  2616. }
  2617. })
  2618. .catch((error) => {
  2619. console.log("catch===>response", response);
  2620. reject(error);
  2621. });
  2622. });
  2623. },
  2624. //获取煤层工作面列表数据
  2625. getMcList() {
  2626. new Promise((resolve, reject) => {
  2627. api
  2628. .getDictItems({ dictCode: "coalseam" })
  2629. .then((response) => {
  2630. let data = response.data;
  2631. this.rangeMcgzm = data.map((el) => {
  2632. return {
  2633. text: el.label,
  2634. value: el.value,
  2635. };
  2636. });
  2637. })
  2638. .catch((error) => {
  2639. console.log("catch===>response", response);
  2640. reject(error);
  2641. });
  2642. });
  2643. },
  2644. //获取安装位置下拉选项
  2645. getSelectList() {
  2646. let param = this.rangeMcgzm.filter(
  2647. (v) => this.formState.mcgzm == v.value
  2648. )[0].value;
  2649. new Promise((resolve, reject) => {
  2650. api
  2651. .getSelect({ coalseam: param, devicekind: "gasDayReport" })
  2652. .then((response) => {
  2653. if (response.data.code == 200) {
  2654. let data = response.data.result;
  2655. this.rangeJcdd = data.map((v) => {
  2656. return {
  2657. text: v.strinstallpos,
  2658. value: v.strinstallpos,
  2659. deviceId: v.id,
  2660. };
  2661. });
  2662. } else {
  2663. reject(response);
  2664. }
  2665. })
  2666. .catch((error) => {
  2667. console.log("catch===>response", response);
  2668. reject(error);
  2669. });
  2670. });
  2671. },
  2672. //本地暂存
  2673. getComfirmZc() {
  2674. let that = this;
  2675. that.zcList.push({
  2676. cardId: that.cardIds,
  2677. bc: that.formState.bc,
  2678. count: that.formState.count,
  2679. info: that.formState,
  2680. });
  2681. uni.setStorageSync("zcList", that.zcList);
  2682. that.isShowAdd = false;
  2683. that.clearData();
  2684. },
  2685. //进入暂存列表
  2686. openZc() {
  2687. let that = this;
  2688. that.zcShow = true;
  2689. that.isShowAdd = false;
  2690. },
  2691. //暂存列表跳转到填报界面保存/返回上一级
  2692. async closeZc(param) {
  2693. console.log(param, "提交---");
  2694. let that = this;
  2695. if (param) {
  2696. that.zcShow = false;
  2697. that.isShowAdd = true;
  2698. that.zcParamData = Object.assign({}, param);
  2699. await that.getCardLists(param.cardId);
  2700. await that.isEditOrAdd(param.info);
  2701. } else {
  2702. that.zcShow = false;
  2703. }
  2704. },
  2705. isEditOrAdd(param) {
  2706. let that = this;
  2707. new Promise((resolve, reject) => {
  2708. api
  2709. .getGas({ reportTime: param.tbrq, deviceId: that.deviceId })
  2710. .then((response) => {
  2711. if (response.data.code == 200) {
  2712. let data = response.data.result.records;
  2713. if (data.length != 0) {
  2714. that.saveShowList = data[0];
  2715. that.formState = {
  2716. ...param,
  2717. id: that.saveShowList.id,
  2718. jcdd: that.formState.jcdd,
  2719. };
  2720. } else {
  2721. that.saveShowList = {};
  2722. that.formState = param;
  2723. }
  2724. } else {
  2725. reject(response);
  2726. }
  2727. })
  2728. .catch((error) => {
  2729. console.log("catch===>response", response);
  2730. reject(error);
  2731. });
  2732. });
  2733. },
  2734. },
  2735. };
  2736. </script>
  2737. <style lang="scss" scoped>
  2738. .gas-fill {
  2739. position: relative;
  2740. width: 100%;
  2741. height: 100%;
  2742. .top-title {
  2743. height: 28px;
  2744. margin-bottom: 5px;
  2745. display: flex;
  2746. justify-content: space-between;
  2747. align-items: center;
  2748. }
  2749. .top-content {
  2750. .content-title {
  2751. height: 26px;
  2752. line-height: 26px;
  2753. padding: 0px 20px;
  2754. font-size: 12px;
  2755. background: url("/static/warndata/1-1.png") no-repeat;
  2756. background-size: 100% 100%;
  2757. }
  2758. .content-item-box {
  2759. padding: 10px 0px;
  2760. .content-item {
  2761. height: 50px;
  2762. display: flex;
  2763. justify-content: space-between;
  2764. align-items: center;
  2765. background: linear-gradient(
  2766. to right,
  2767. rgba(55, 135, 254, 0.08),
  2768. rgba(4, 184, 255, 0.08),
  2769. rgba(60, 161, 237, 0.08)
  2770. );
  2771. border-radius: 10px;
  2772. margin-bottom: 5px;
  2773. .item-l {
  2774. width: calc(50% - 2px);
  2775. height: 100%;
  2776. display: flex;
  2777. flex-direction: column;
  2778. justify-content: center;
  2779. align-items: center;
  2780. }
  2781. .item-c {
  2782. width: 4px;
  2783. height: 70%;
  2784. border-left: 2px solid;
  2785. border-image: linear-gradient(
  2786. to bottom,
  2787. transparent,
  2788. rgba(140, 203, 254, 1),
  2789. transparent
  2790. )
  2791. 1 1 1;
  2792. }
  2793. .item-r {
  2794. width: calc(50% - 2px);
  2795. height: 100%;
  2796. display: flex;
  2797. flex-direction: column;
  2798. justify-content: center;
  2799. align-items: center;
  2800. }
  2801. }
  2802. }
  2803. }
  2804. .item-value {
  2805. height: 20px;
  2806. line-height: 20px;
  2807. color: #0eb4fc;
  2808. font-weight: bold;
  2809. }
  2810. .item-label {
  2811. font-size: 12px;
  2812. }
  2813. .top-dialog-area,
  2814. .center-dialog-area,
  2815. .bottom-dialog-area {
  2816. width: 100%;
  2817. padding: 10px;
  2818. box-sizing: border-box;
  2819. background-color: #fff;
  2820. margin-bottom: 2px;
  2821. }
  2822. .top-gas-list {
  2823. display: flex;
  2824. flex-direction: column;
  2825. align-items: center;
  2826. width: 100%;
  2827. padding: 10px 20px;
  2828. box-sizing: border-box;
  2829. background-color: #fff;
  2830. margin-bottom: 2px;
  2831. }
  2832. .bot-gas-list {
  2833. width: 100%;
  2834. height: calc(100% - 94px);
  2835. padding: 10px;
  2836. box-sizing: border-box;
  2837. background-color: #fff;
  2838. margin-bottom: 2px;
  2839. overflow-y: auto;
  2840. }
  2841. .dialog-btn {
  2842. display: flex;
  2843. width: 100%;
  2844. padding: 8px 10px;
  2845. box-sizing: border-box;
  2846. background-color: #fff;
  2847. // margin-bottom: 2px;
  2848. .u-button {
  2849. margin: 0px 10px;
  2850. }
  2851. }
  2852. .dialog-title {
  2853. height: 26px;
  2854. line-height: 26px;
  2855. padding: 0px 20px;
  2856. margin-bottom: 10px;
  2857. font-size: 12px;
  2858. background: url("/static/warndata/1-1.png") no-repeat;
  2859. background-size: 100% 100%;
  2860. }
  2861. .dialog-item {
  2862. display: flex;
  2863. align-items: center;
  2864. justify-content: center;
  2865. margin-bottom: 10px;
  2866. .dialog-label {
  2867. width: 120px;
  2868. text-align: right;
  2869. }
  2870. }
  2871. .search-box {
  2872. display: flex;
  2873. align-items: center;
  2874. justify-content: center;
  2875. margin-bottom: 10px;
  2876. .dialog-label {
  2877. width: 80px;
  2878. text-align: right;
  2879. }
  2880. }
  2881. .content-title-gas {
  2882. position: relative;
  2883. height: 26px;
  2884. line-height: 26px;
  2885. padding-left: 20px;
  2886. font-size: 12px;
  2887. background: url("/static/warndata/1-1.png") no-repeat;
  2888. background-size: 100% 100%;
  2889. }
  2890. .icon-gas-edit {
  2891. position: absolute;
  2892. right: 35px;
  2893. top: 0;
  2894. cursor: pointer;
  2895. }
  2896. .icon-gas-del {
  2897. position: absolute;
  2898. right: 10px;
  2899. top: 0;
  2900. cursor: pointer;
  2901. }
  2902. }
  2903. ::v-deep .u-input {
  2904. padding: 2px 6px !important;
  2905. }
  2906. ::v-deep .u-popup {
  2907. flex: 0;
  2908. }
  2909. ::v-deep .uni-select {
  2910. height: 30px;
  2911. border: 1px solid #dadbde;
  2912. }
  2913. ::v-deep .uni-select__input-box {
  2914. height: 30px;
  2915. }
  2916. ::v-deep .uni-select__input-placeholder {
  2917. font-size: 14px;
  2918. text-align: center;
  2919. color: rgb(192, 196, 204);
  2920. }
  2921. ::v-deep .u-modal__title {
  2922. font-size: 16px;
  2923. font-weight: bold;
  2924. color: #606266;
  2925. text-align: center;
  2926. padding-top: 10px;
  2927. }
  2928. ::v-deep .u-modal__content {
  2929. padding: 12px 25px 20px 25px;
  2930. }
  2931. ::v-deep .u-modal__button-group__wrapper {
  2932. height: 36px;
  2933. }
  2934. </style>