gasreport.vue 118 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320
  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.timeNight1 || '--' }}</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.timeNight2 || '--' }}</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.timeEarly1 || '--' }}</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.timeEarly2 || '--' }}</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.timeNoon1 || '--' }}</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.timeNoon2 || '--' }}</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>