gasFill.vue 105 KB

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