gasreport.vue 118 KB

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