safetyCardScan.vue 28 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105
  1. <!-- 安全检查扫一扫 实验室详情 -->
  2. <template>
  3. <view class="safetyCardScan">
  4. <view class="header">
  5. <view class="tabTitle">
  6. <view class="tabTitle_li" @tap="tabClick(index)" :key="index" v-for="(item,index) in tabText">
  7. <view class="tabTitle_text">
  8. <img :src="item.img">
  9. <view
  10. :id="pageType==index&&index==0?'fontColor-A':(pageType==1&&index==1?'fontColor-B':(pageType==2&&index==2?'fontColor-C':''))">
  11. {{item.name}}
  12. </view>
  13. </view>
  14. <view :class="{on:pageType==index}" class="tabTitle_across">
  15. <img src="@/pages_safetyCheck/images/img_xyzc_bg@1x.png">
  16. </view>
  17. <view class="line"></view>
  18. </view>
  19. </view>
  20. </view>
  21. <view class="safetyCard" v-if="pageType==0">
  22. <view class="lab-info">
  23. <img class="lab-info-l" src="@/pages_safetyCheck/images/icon_aqjc_shiyanshi.png">
  24. <view class="lab-info-c">
  25. <view class="lab-info-c-t">
  26. <view class="lab-info-c-t-l">{{newData.subName}}</view>
  27. <view class="lab-info-c-t-r"
  28. :style="'border:1rpx solid '+newData.levelColor+';background:'+newData.levelColorTow+';'">
  29. <text
  30. :style="'border-right:1rpx solid '+newData.levelColor+';color:'+newData.levelColor+';'">{{newData.levelName?newData.levelName:''}}</text>
  31. <text
  32. :style="'color:'+newData.levelColor+';'">{{newData.typeName?newData.typeName:''}}</text>
  33. </view>
  34. </view>
  35. <view class="lab-info-c-b">
  36. {{newData.roomNum?newData.roomNum:'-'}}房间&{{newData.buildName}}
  37. </view>
  38. </view>
  39. <view class="lab-info-r">{{newData.subArea}}㎡</view>
  40. </view>
  41. <view class="liability-unit">
  42. <view>学院单位</view>
  43. <view>{{newData.deptName}}</view>
  44. </view>
  45. <view class="small-title-new" @click="unfoldPackUp('subAdminShowType')">
  46. <view>实验室负责人</view>
  47. <uni-icons :type="newData.subAdminShowType?'up':'down'" size="12" color='#A2A2A2'></uni-icons>
  48. </view>
  49. <view class="sub-head" v-if="newData.subAdminShowType">
  50. <view>{{newData.adminName}}</view>
  51. <view @click="callPhone(newData.adminPhone)">
  52. <img src="@/pages_manage/images/icon_aqxxp_dh.png">
  53. <view>{{newData.adminPhone}}</view>
  54. </view>
  55. </view>
  56. <view class="small-title-new" @click="unfoldPackUp('adminShowType')">
  57. <view>安全员</view>
  58. <uni-icons :type="newData.adminShowType?'up':'down'" size="12" color='#A2A2A2'></uni-icons>
  59. </view>
  60. <view v-if="newData.adminShowType">
  61. <view class="sub-head" v-for="(item,index) in newData.safeUserList" :key="index">
  62. <view>{{item.safeUserName}}</view>
  63. <view @click="callPhone(item.safeUserPhone)">
  64. <img src="@/pages_manage/images/icon_aqxxp_dh.png">
  65. <view>{{item.safeUserPhone}}</view>
  66. </view>
  67. </view>
  68. </view>
  69. <view class="classify" v-for="(item,index) in newData.labInfoBrandModels" :key="index">
  70. <view v-if="item.privateList.length>0" class="small-title-new" @click="unfoldPackUp('list',index)">
  71. <view>{{item.brandName}}</view>
  72. <uni-icons :type="item.showType?'up':'down'" size="12" color='#A2A2A2'></uni-icons>
  73. </view>
  74. <view v-if="item.privateList.length>0 && item.brandType==1 && !item.isSpecial&&item.showType">
  75. <view class="small-items-new" v-for="(item2,index2) in item.privateList" :key="index2">
  76. <view>{{index2+1}}. </view>
  77. <view>{{item2.infoName}}</view>
  78. </view>
  79. </view>
  80. <view v-if="item.privateList.length>0 && item.brandType==1 && item.isSpecial&&item.showType">
  81. <view class="small-items-new" v-for="(item2,index2) in item.privateList" :key="index2">
  82. <view></view>
  83. <view>{{item2.infoName}}</view>
  84. </view>
  85. </view>
  86. <view v-if="item.privateList.length>0 && item.brandType==2&&item.showType">
  87. <view class="logotype-img-new">
  88. <img v-for="(item3,index3) in item.privateList" :key="index3" :src="baseUrl+item3.infoContent">
  89. </view>
  90. </view>
  91. </view>
  92. </view>
  93. <view class="position-button-box" v-if="pageType == 0">
  94. <img class="position-button-p-1" @click="goPage('securityCheck')"
  95. src="@/pages_safetyCheck/images/icon_aqjc_anquanjiancha.png">
  96. <img class="position-button-p-2" @click="goPage('snapshot')"
  97. src="@/pages_safetyCheck/images/icon_aqjc_suishoupai.png">
  98. </view>
  99. <view class="shade" v-if="dialogVisible">
  100. <view class="null-box" @click="dialogClose()"></view>
  101. <view class="shade_n">
  102. <view class="title">
  103. <view>{{dialogTtile}}</view>
  104. <!-- <img src="@/pages_safetyCheck/images/icon_06.png"> -->
  105. </view>
  106. <view class="batch">
  107. <view class="batch-li" @click="batchClick(item)" v-for="(item,index) in batchList">
  108. <view class="batch-li-l">
  109. <text v-if="dialogStatus==0">{{item.planTitle}}</text>
  110. <text v-if="dialogStatus==1">{{item.checkName}}</text>
  111. </view>
  112. <view class="batch-li-r">
  113. <img src="@/pages_safetyCheck/images/icon_wd_gd@1x.png">
  114. </view>
  115. </view>
  116. </view>
  117. </view>
  118. </view>
  119. <!-- 物联控制 -->
  120. <iotControl ref="iotControl" v-if="pageType == 1" :subjectData="subjectData"></iotControl>
  121. <!-- 进出记录 -->
  122. <accessRecord v-if="pageType == 2" :subjectData="subjectData"></accessRecord>
  123. <!-- 语音广播弹窗 -->
  124. <voiceBroadcast v-if="broadcastPage" :subjectData="subjectData"></voiceBroadcast>
  125. <!-- 空调弹窗 -->
  126. <airConditioning v-if="conditioningPage" :airConditioningData="airConditioningData"></airConditioning>
  127. </view>
  128. </template>
  129. <script>
  130. import {
  131. pageRestrictVerify
  132. } from '@/utils/index'
  133. import {
  134. securityAppCheckPlanAppTitleList,
  135. securityAppCheckManageList,
  136. securityAppCheckSetOptionList,
  137. } from '@/pages_safetyCheck/api/index.js'
  138. import {
  139. iotControl
  140. } from '@/pages_manage/views/laboratory/iotControl.vue'
  141. import {
  142. accessRecord
  143. } from '@/pages_manage/views/laboratory/accessRecord.vue'
  144. import {
  145. voiceBroadcast
  146. } from '@/pages_manage/views/laboratory/voiceBroadcast.vue'
  147. import {
  148. airConditioning
  149. } from '@/pages_manage/views/laboratory/airConditioning.vue'
  150. import {
  151. config
  152. } from '@/api/request/config.js'
  153. import {
  154. } from '@/pages/api/index.js'
  155. export default {
  156. name: "safetyCardScan",
  157. components: {
  158. iotControl,
  159. accessRecord,
  160. voiceBroadcast,
  161. airConditioning,
  162. },
  163. data() {
  164. return {
  165. baseUrl: config.base_url,
  166. pageType: 1,
  167. tabText: [{
  168. name: '安全信息牌',
  169. img: require('@/pages_safetyCheck/images/icon_sys_aqxxp@1x.png'),
  170. },
  171. {
  172. name: '监测控制',
  173. img: require('@/pages_safetyCheck/images/icon_sys_jckz@1x.png'),
  174. },
  175. {
  176. name: '进出记录',
  177. img: require('@/pages_safetyCheck/images/icon_sys_jcjl@1x.png'),
  178. },
  179. ],
  180. pageType: 0,
  181. newData: {
  182. adminName: '',
  183. adminPhone: '',
  184. safeUserList: [],
  185. labInfoBrandModels: [],
  186. },
  187. subjectData: null,
  188. identityData: uni.getStorageSync('identityData'),
  189. //语音广播弹窗
  190. broadcastPage: false,
  191. //空调弹窗
  192. conditioningPage: false,
  193. // 空调弹窗
  194. airConditioningData: null,
  195. saoCodeType: false,
  196. dialogVisible: false,
  197. dialogTtile: '',
  198. dialogStatus: 0, //0计划 1批次 2实验室
  199. batchList: [],
  200. queryParams: {
  201. page: 1,
  202. pageSize: 100,
  203. checkCategory: '', //1校院巡查 2学院自查
  204. subId: '',
  205. },
  206. checkPlanSetVoList: null,
  207. form: {},
  208. OptionListArr:[],//临时存储检查项
  209. planId:'',
  210. planTitle:'',
  211. checkTypeName:'',
  212. crossCheck:'',
  213. }
  214. },
  215. // 父页面
  216. onReachBottom() {
  217. uni.$emit('onReachBottom') // 设置监听事件
  218. },
  219. onPullDownRefresh() {
  220. uni.$emit('onPullDownRefresh') // 设置监听事件
  221. },
  222. onLoad(option) {
  223. let newData = JSON.parse(decodeURIComponent(option.infoData));
  224. newData.subAdminShowType = true;
  225. newData.adminShowType = true;
  226. if (newData.labInfoBrandModels) {
  227. for (let i = 0; i < newData.labInfoBrandModels.length; i++) {
  228. newData.labInfoBrandModels[i].showType = true;
  229. }
  230. }
  231. if (newData.levelColor) {
  232. newData.levelColorTow = this.hexToRgb(newData.levelColor, 0.2)
  233. }
  234. this.$nextTick(() => {
  235. this.$set(this, 'newData', newData);
  236. this.$set(this, 'subjectData', newData);
  237. this.$set(this, 'pageType', 0);
  238. })
  239. },
  240. onShow() {
  241. },
  242. mounted() {
  243. },
  244. methods: {
  245. dialogClose() {
  246. this.dialogStatus = 0;
  247. this.dialogVisible = false;
  248. },
  249. //十六进制颜色值和RGB格式转换
  250. hexToRgb(hex, opacity = 1) {
  251. // 去除#号
  252. var color = hex.replace("#", "");
  253. // 分割成红、绿、蓝三部分的16进制字符串
  254. var red = parseInt(color.substring(0, 2), 16);
  255. var green = parseInt(color.substring(2, 4), 16);
  256. var blue = parseInt(color.substring(4, 6), 16);
  257. return `RGB(${red}, ${green}, ${blue},${opacity})`;
  258. },
  259. batchClick(row) {
  260. let self = this;
  261. if (this.dialogStatus == 0) { //计划点击
  262. this.$set(this, 'planId', row.planId);
  263. this.$set(this, 'planTitle', row.planTitle);
  264. this.$set(this, 'checkTypeName', row.checkTypeName);
  265. this.$set(this, 'crossCheck', row.crossCheck);
  266. if (row.checkPlanSetVoList.length == 1) {
  267. //如果只有1个检查批次不弹窗
  268. let planSetId = row.checkPlanSetVoList[0].planSetId
  269. self.checkPlanSetVoList = row.checkPlanSetVoList[0];
  270. self.securityAppCheckManageList(planSetId)
  271. } else if (row.checkPlanSetVoList.length == 0) {
  272. this.dialogStatus = 0;
  273. uni.showToast({
  274. title: '该实验室暂无检查计划!',
  275. icon: "none",
  276. mask: true,
  277. duration: 2000
  278. });
  279. return
  280. } else {
  281. this.$set(this, 'batchList', row.checkPlanSetVoList);
  282. this.dialogStatus = 1;
  283. this.dialogTtile = '批次';
  284. this.dialogVisible = true;
  285. }
  286. } else if (this.dialogStatus == 1) { //批次点击
  287. /* this.dialogStatus = 2;
  288. this.dialogTtile = '实验室'; */
  289. let planSetId = row.planSetId
  290. self.checkPlanSetVoList = row;
  291. this.securityAppCheckManageList(planSetId)
  292. }
  293. },
  294. //查询计划
  295. async securityAppCheckPlanAppTitleList() {
  296. console.log(this.newData.subId)
  297. this.queryParams.subId = this.newData.subId;
  298. this.queryParams.checkStatus = 0;
  299. let self = this;
  300. const {
  301. data
  302. } = await securityAppCheckPlanAppTitleList(this.queryParams);
  303. if (data.code == 200) {
  304. //循环过滤掉当前计划中批次中已经检查完成的
  305. data.data.records.forEach(function(item, index) {
  306. let list = [];
  307. item.checkPlanSetVoList.forEach(function(item2) {
  308. if (item2.checkSetProgress != 100) {
  309. list.push(item2)
  310. }
  311. })
  312. item.checkPlanSetVoList = list
  313. })
  314. let list2 = []
  315. list2 = data.data.records.filter(function(item) {
  316. return item.checkPlanSetVoList.length != 0
  317. });
  318. data.data.records = list2
  319. if (data.data.records.length == 1) { //一个计划
  320. this.$set(this, 'planId', data.data.records[0].planId);
  321. this.$set(this, 'planTitle', data.data.records[0].planTitle);
  322. this.$set(this, 'checkTypeName', data.data.records[0].checkTypeName);
  323. this.$set(this, 'crossCheck', data.data.records[0].crossCheck);
  324. if (data.data.records[0].checkPlanSetVoList.length == 1) { //1个批次
  325. let planSetId = data.data.records[0]
  326. if (data.data.records[0].checkPlanSetVoList[0]) { //一个批次
  327. let planSetId = data.data.records[0].checkPlanSetVoList[0].planSetId
  328. self.checkPlanSetVoList = data.data.records[0].checkPlanSetVoList[0];
  329. self.securityAppCheckManageList(planSetId)
  330. }
  331. } else if (data.data.records[0].checkPlanSetVoList.length == 0) {
  332. this.dialogStatus = 0;
  333. uni.showToast({
  334. title: '该实验室暂无检查计划!',
  335. icon: "none",
  336. mask: true,
  337. duration: 2000
  338. });
  339. return
  340. } else { //多个批次
  341. this.dialogStatus = 1;
  342. this.batchList = data.data.records[0].checkPlanSetVoList;
  343. this.dialogVisible = true;
  344. this.dialogTtile = '批次';
  345. }
  346. } else if (data.data.records.length==0) {
  347. this.dialogStatus = 0;
  348. uni.showToast({
  349. title: '该实验室暂无检查计划!',
  350. icon: "none",
  351. mask: true,
  352. duration: 2000
  353. });
  354. return
  355. } else { //多个计划
  356. this.batchList = data.data.records;
  357. this.dialogVisible = true;
  358. this.dialogTtile = '计划标题';
  359. }
  360. }
  361. },
  362. //检查任务-在此结果里对比实验室Id判断是否有实验室
  363. async securityAppCheckManageList(planSetId) {
  364. let self = this;
  365. let obj = {
  366. page: 1,
  367. pageSize: 20,
  368. planSetId: planSetId,
  369. subId: self.newData.subId,
  370. }
  371. const {
  372. data
  373. } = await securityAppCheckManageList(obj);
  374. if (data.code == 200) {
  375. //this.shadeList = data.data.records;
  376. if (data.data.records[0]) {
  377. let manageId = data.data.records[0].manageId;
  378. self.securityAppCheckSetOptionList(data.data.records[0],0);
  379. } else {
  380. self.dialogStatus = 0;
  381. self.dialogVisible = false;
  382. uni.showToast({
  383. title: '该实验室暂无检查计划!',
  384. icon: "none",
  385. mask: true,
  386. duration: 2000
  387. });
  388. return
  389. }
  390. }
  391. },
  392. //查询检查项
  393. async securityAppCheckSetOptionList(item,checkStatus) {
  394. let self = this;
  395. let upData = item;
  396. let obj = {
  397. page: 1,
  398. pageSize: 20,
  399. checkStatus: checkStatus,
  400. manageId: upData.manageId,
  401. }
  402. const {
  403. data
  404. } = await securityAppCheckSetOptionList(obj);
  405. if (data.code == 200 && checkStatus==0) {//先查询待检查数据
  406. if (data.data.records[0]) {
  407. let infoData = {};
  408. infoData.pageType = 0;
  409. infoData.itemsStatus = 0;
  410. infoData.subName = upData.subName;
  411. infoData.checkPlanSetVoList = self.checkPlanSetVoList;
  412. infoData.planId = self.planId;
  413. infoData.planTitle = self.planTitle;
  414. infoData.checkTypeName = self.checkTypeName;
  415. infoData.crossCheck = self.crossCheck;
  416. infoData.roomNum = upData.roomNum;
  417. infoData.subId = data.data.records[0].subId;
  418. infoData.manageId = data.data.records[0].manageId;
  419. infoData.setOptionId = data.data.records[0].setOptionId;
  420. infoData.hazardCheckPro = data.data.records[0].hazardCheckPro;
  421. infoData.checkCategory = data.data.records[0].checkCategory;
  422. uni.navigateTo({
  423. url: '/pages_safetyCheck/views/inspectManage/conductInspections?infoData=' +
  424. encodeURIComponent(
  425. JSON
  426. .stringify(infoData))
  427. });
  428. } else {
  429. self.securityAppCheckSetOptionList(item,2);
  430. }
  431. }else if (data.code == 200 && checkStatus==2) {//查询检查中数据
  432. if (data.data.records[0]) {
  433. let infoData = {};
  434. infoData.pageType = 0;
  435. infoData.itemsStatus = 0;
  436. infoData.subName = upData.subName;
  437. infoData.checkPlanSetVoList = self.checkPlanSetVoList;
  438. infoData.planId = self.planId;
  439. infoData.planTitle = self.planTitle;
  440. infoData.checkTypeName = self.checkTypeName;
  441. infoData.crossCheck = self.crossCheck;
  442. infoData.roomNum = upData.roomNum;
  443. infoData.subId = data.data.records[0].subId;
  444. infoData.manageId = data.data.records[0].manageId;
  445. infoData.setOptionId = data.data.records[0].setOptionId;
  446. infoData.hazardCheckPro = data.data.records[0].hazardCheckPro;
  447. infoData.checkCategory = data.data.records[0].checkCategory;
  448. uni.navigateTo({
  449. url: '/pages_safetyCheck/views/inspectManage/conductInspections?infoData=' +
  450. encodeURIComponent(
  451. JSON
  452. .stringify(infoData))
  453. });
  454. } else {
  455. self.dialogStatus = 0;
  456. self.dialogVisible = false;
  457. uni.showToast({
  458. title: '该实验室暂无检查项!',
  459. icon: "none",
  460. mask: true,
  461. duration: 2000
  462. });
  463. return
  464. }
  465. }
  466. },
  467. //拨打电话
  468. callPhone(tel) {
  469. uni.makePhoneCall({
  470. phoneNumber: tel
  471. })
  472. },
  473. goVideoPage() {
  474. console.log('视频')
  475. let obj = {
  476. type: 4,
  477. subId: this.newData.subId
  478. }
  479. uni.navigateTo({
  480. url: '/pages_manage/views/laboratory/videoPlayer?item=' + encodeURIComponent(JSON.stringify(
  481. obj))
  482. });
  483. },
  484. getIotControlData() {
  485. this.$refs['iotControl'].iotAppHardwareFindByType();
  486. },
  487. buttonClick(type, row) {
  488. let self = this;
  489. if (type == 'subDetail') {
  490. //实验室详情
  491. } else if (type == 'broadcastOpen') {
  492. //语音弹窗开启
  493. this.$set(this, 'broadcastPage', true);
  494. } else if (type == 'broadcastClose') {
  495. //语音弹窗关闭
  496. this.$set(this, 'broadcastPage', false);
  497. } else if (type == 'conditioningOpen') {
  498. //空调弹窗开启
  499. this.$set(this, 'airConditioningData', row);
  500. this.$set(this, 'conditioningPage', true);
  501. } else if (type == 'conditioningClose') {
  502. //空调弹窗关闭
  503. this.$set(this, 'conditioningPage', false);
  504. } else if (type == 'back') {
  505. this.$set(this, 'pageType', 2);
  506. }
  507. },
  508. //展开/收起操作
  509. unfoldPackUp(type, index) {
  510. if (type == 'subAdminShowType') {
  511. this.$set(this.newData, 'subAdminShowType', !this.newData.subAdminShowType);
  512. } else if (type == 'adminShowType') {
  513. this.$set(this.newData, 'adminShowType', !this.newData.adminShowType);
  514. } else if (type == 'list') {
  515. this.$set(this.newData.labInfoBrandModels[index], 'showType', !this.newData.labInfoBrandModels[index]
  516. .showType);
  517. }
  518. },
  519. //顶部tab点击
  520. tabClick(index) {
  521. if (this.pageType != index) {
  522. this.$set(this, 'pageType', index);
  523. }
  524. },
  525. goPage(type) {
  526. if (!pageRestrictVerify(type)) {
  527. uni.showToast({
  528. title: '没有相关权限,请联系管理员',
  529. icon: "none",
  530. mask: true,
  531. duration: 2000
  532. });
  533. return
  534. }
  535. if (type == 'securityCheck') {
  536. //安全检查
  537. this.securityAppCheckPlanAppTitleList();
  538. /* uni.navigateTo({
  539. url: "/pages_safetyCheck/views/safetyCheck",
  540. }); */
  541. } else if (type == 'snapshot') {
  542. console.log(this.newData)
  543. this.$set(this.form, "subId", this.newData.subId)
  544. this.$set(this.form, "subName", this.newData.subName)
  545. this.$set(this.form, "subRoom", this.newData.roomNum)
  546. this.$set(this.form, "deptId", this.newData.deptId)
  547. this.$set(this.form, "deptName", this.newData.deptName)
  548. this.$set(this.form, "buildId", this.newData.buildId)
  549. this.$set(this.form, "buildName", this.newData.buildName)
  550. this.$set(this.form, "floorId", this.newData.floorId)
  551. this.$set(this.form, "floorName", this.newData.floorName)
  552. this.$set(this.form, "typeId", this.newData.typeId)
  553. this.$set(this.form, "classTypeNames", this.newData.typeName)
  554. this.$set(this.form, "levelId", this.newData.levelId)
  555. this.$set(this.form, "classLevelName", this.newData.levelName)
  556. uni.navigateTo({
  557. url: '/pages_safetyCheck/views/snapshotManage/snapshotList?form=' +
  558. encodeURIComponent(JSON.stringify(this.form))
  559. });
  560. }
  561. },
  562. }
  563. }
  564. </script>
  565. <style lang="stylus" scoped>
  566. .safetyCardScan {
  567. height: 100%;
  568. #fontColor-A {
  569. color: #00DEDE;
  570. }
  571. #fontColor-B {
  572. color: #FF8C00;
  573. }
  574. #fontColor-C {
  575. color: #0083FD;
  576. }
  577. .header {
  578. height: 192rpx;
  579. width: 100%;
  580. // position: fixed;
  581. // top: 0rpx;
  582. // z-index: 100;
  583. background: #fff;
  584. .tabTitle {
  585. width: 750rpx;
  586. height: 188rpx;
  587. display flex;
  588. justify-content: flex-start;
  589. align-items: center;
  590. border-bottom: 4rpx solid #F5F5F5;
  591. .tabTitle_li {
  592. height: 188rpx;
  593. flex: 1;
  594. position: relative;
  595. text-align center;
  596. .tabTitle_text {
  597. display: flex;
  598. justify-content: center;
  599. flex-direction: column;
  600. align-items: center;
  601. >img {
  602. width: 80rpx;
  603. height: 80rpx;
  604. margin-top: 20rpx;
  605. }
  606. >view:nth-of-type(1) {
  607. font-size: 30rpx;
  608. color: #333333;
  609. line-height: 42rpx;
  610. text-align: left;
  611. margin-top: 10rpx;
  612. }
  613. >view:nth-of-type(2) {
  614. font-size: 24rpx;
  615. color: #666666;
  616. line-height: 34rpx;
  617. text-align: left;
  618. }
  619. position: relative;
  620. &.on {}
  621. }
  622. .line {
  623. width: 2rpx;
  624. height: 40rpx;
  625. background: #D8D8D8;
  626. position: absolute;
  627. top: 40%;
  628. }
  629. .tabTitle_across {
  630. /* width: 50rpx;
  631. height: 4rpx;
  632. background: #0183FA;
  633. border-radius: 2rpx; */
  634. margin-left: 38%;
  635. margin-top: 12rpx;
  636. display none;
  637. >img {
  638. width: 40rpx;
  639. height: 26rpx;
  640. }
  641. &.on {
  642. display block;
  643. }
  644. }
  645. }
  646. }
  647. }
  648. /* 安全信息牌 */
  649. .safetyCard {
  650. padding-bottom: 150rpx;
  651. .lab-info {
  652. background: #FFFFFF;
  653. display: flex;
  654. justify-content: space-between;
  655. .lab-info-l {
  656. width: 80rpx;
  657. height: 80rpx;
  658. background: #0183FA;
  659. border-radius: 10rpx 10rpx 10rpx 10rpx;
  660. margin-left: 30rpx;
  661. margin-top: 30rpx;
  662. }
  663. .lab-info-c {
  664. width: 500rpx;
  665. margin: 24rpx 30rpx 0 20rpx;
  666. .lab-info-c-t {
  667. display: flex;
  668. justify-content: space-between;
  669. .lab-info-c-t-l {
  670. font-size: 30rpx;
  671. color: #333333;
  672. line-height: 42rpx;
  673. text-align: left;
  674. overflow: hidden;
  675. text-overflow: ellipsis;
  676. white-space: nowrap;
  677. }
  678. .lab-info-c-t-r {
  679. display: flex;
  680. justify-content: flex-start;
  681. background: rgba(255, 0, 0, 0.2);
  682. border-radius: 10rpx 10rpx 10rpx 10rpx;
  683. border: 2rpx solid #FF0000;
  684. width: 180rpx;
  685. height: 40rpx;
  686. margin-left: 10rpx;
  687. >text {
  688. display: inline-block;
  689. flex: 1;
  690. text-align: center;
  691. font-size: 24rpx;
  692. color: #FF0000;
  693. line-height: 40rpx;
  694. text-align: center;
  695. }
  696. >text:nth-of-type(1) {
  697. border-right: 2rpx solid #FF0000;
  698. }
  699. >text:nth-of-type(2) {}
  700. }
  701. }
  702. .lab-info-c-b {
  703. font-size: 30rpx;
  704. color: #666666;
  705. line-height: 42rpx;
  706. text-align: left;
  707. margin-top: 10rpx;
  708. }
  709. }
  710. .lab-info-r {
  711. width: 100rpx;
  712. height: 150rpx;
  713. background: rgba(1, 131, 250, 0.2);
  714. border-radius: 0rpx 0rpx 0rpx 0rpx;
  715. font-size: 28rpx;
  716. color: #0183FA;
  717. line-height: 150rpx;
  718. text-align: center;
  719. }
  720. }
  721. .liability-unit {
  722. width: 750rpx;
  723. height: 80rpx;
  724. background: #FFFFFF;
  725. border-bottom: 1rpx solid #E0E0E0;
  726. padding: 0 30rpx;
  727. box-sizing: border-box;
  728. display: flex;
  729. justify-content: space-between;
  730. margin-top: 14rpx;
  731. >view:nth-of-type(1) {
  732. font-size: 30rpx;
  733. color: #333333;
  734. line-height: 80rpx;
  735. text-align: left;
  736. }
  737. >view:nth-of-type(2) {
  738. font-size: 30rpx;
  739. color: #666666;
  740. line-height: 80rpx;
  741. text-align: left;
  742. }
  743. }
  744. .small-title {
  745. width: 750rpx;
  746. height: 80rpx;
  747. background: #FFFFFF;
  748. border-bottom: 1rpx solid #E0E0E0;
  749. padding: 0 30rpx;
  750. box-sizing: border-box;
  751. display: flex;
  752. justify-content: space-between;
  753. align-items: center;
  754. >view {
  755. font-size: 30rpx;
  756. color: #333333;
  757. line-height: 80rpx;
  758. text-align: left;
  759. }
  760. >img {
  761. width: 24rpx;
  762. height: 12rpx;
  763. }
  764. }
  765. .sub-head {
  766. width: 750rpx;
  767. height: 80rpx;
  768. background: #fff;
  769. padding: 0 30rpx;
  770. box-sizing: border-box;
  771. display: flex;
  772. justify-content: space-between;
  773. align-items: center;
  774. border-bottom: 1rpx solid #E0E0E0;
  775. >view:nth-of-type(1) {
  776. font-family: PingFang SC;
  777. font-weight: 500;
  778. font-size: 30rpx;
  779. color: #666666;
  780. line-height: 30rpx;
  781. }
  782. >view:nth-of-type(2) {
  783. display: flex;
  784. justify-content: flex-end;
  785. align-items: center;
  786. >img {
  787. width: 34rpx;
  788. height: 34rpx;
  789. margin-right: 14rpx;
  790. }
  791. >view {
  792. font-family: PingFang SC;
  793. font-weight: 500;
  794. font-size: 30rpx;
  795. color: #0183FA;
  796. line-height: 30rpx;
  797. }
  798. }
  799. }
  800. .sub-head:last-child {
  801. border-bottom: none;
  802. }
  803. .small-title-new {
  804. width: 750rpx;
  805. height: 80rpx;
  806. background: #FFFFFF;
  807. border-bottom: 1rpx solid #E0E0E0;
  808. padding: 0 30rpx;
  809. box-sizing: border-box;
  810. display: flex;
  811. justify-content: space-between;
  812. align-items: center;
  813. >view {
  814. font-size: 30rpx;
  815. color: #333333;
  816. line-height: 80rpx;
  817. text-align: left;
  818. }
  819. >img {
  820. width: 24rpx;
  821. height: 12rpx;
  822. }
  823. }
  824. .classify {
  825. .small-items-new {
  826. padding-left: 20rpx;
  827. box-sizing: border-box;
  828. background: #fff;
  829. display: flex;
  830. justify-content: flex-start;
  831. padding: 30rpx;
  832. box-sizing: border-box;
  833. border-bottom: 1rpx solid #E0E0E0;
  834. >view:nth-of-type(1) {
  835. color: #999999;
  836. font-weight: 500;
  837. font-size: 28rpx;
  838. margin-right: 12rpx;
  839. line-height: 34rpx;
  840. }
  841. >view:nth-of-type(2) {
  842. display: block;
  843. font-family: PingFang SC;
  844. font-weight: 500;
  845. font-size: 28rpx;
  846. line-height: 34rpx;
  847. color: #999999;
  848. }
  849. }
  850. .logotype-img-new {
  851. padding: 26rpx 0 34rpx 0;
  852. box-sizing: border-box;
  853. background: #fff;
  854. >img {
  855. display: inline-block;
  856. width: 86rpx;
  857. height: 114rpx;
  858. margin-left: 30rpx;
  859. margin-bottom: 20rpx;
  860. }
  861. }
  862. .small-items {
  863. padding-left: 20rpx;
  864. box-sizing: border-box;
  865. background: #fff;
  866. display: flex;
  867. justify-content: flex-start;
  868. padding: 20rpx;
  869. box-sizing: border-box;
  870. >view:nth-of-type(1) {
  871. color: #999999;
  872. font-weight: 500;
  873. font-size: 28rpx;
  874. margin-right: 12rpx;
  875. line-height: 34rpx;
  876. }
  877. >view:nth-of-type(2) {
  878. display: block;
  879. font-family: PingFang SC;
  880. font-weight: 500;
  881. font-size: 28rpx;
  882. line-height: 34rpx;
  883. color: #999999;
  884. }
  885. }
  886. .logotype {
  887. width: 750rpx;
  888. height: 100rpx;
  889. font-family: PingFang SC;
  890. font-weight: 500;
  891. font-size: 32rpx;
  892. color: #333333;
  893. line-height: 100rpx;
  894. padding-left: 20rpx;
  895. box-sizing: border-box;
  896. background: #0183FA;
  897. color: #fff;
  898. }
  899. .logotype-img {
  900. padding: 26rpx 0 34rpx 0;
  901. box-sizing: border-box;
  902. background: #fff;
  903. >img {
  904. display: inline-block;
  905. width: 86rpx;
  906. height: 114rpx;
  907. margin-left: 30rpx;
  908. margin-bottom: 20rpx;
  909. }
  910. }
  911. }
  912. }
  913. .position-button-box {
  914. position: fixed;
  915. bottom: 26rpx;
  916. display: flex;
  917. justify-content: center;
  918. >img {
  919. width: 130rpx;
  920. height: 130rpx;
  921. }
  922. .position-button-p-1 {
  923. margin-left: 174rpx;
  924. margin-right: 120rpx;
  925. }
  926. .position-button-p-2 {}
  927. }
  928. .shade {
  929. height: 100%;
  930. width: 100%;
  931. position: fixed;
  932. display: flex;
  933. flex-direction: column;
  934. z-index: 200;
  935. background: rgba(0, 0, 0, 0.2);
  936. top: 0;
  937. .null-box {
  938. flex: 1;
  939. }
  940. .shade_n {
  941. position: absolute;
  942. bottom: 0;
  943. left: 0;
  944. width: 750rpx;
  945. height: 466rpx;
  946. background: #FFFFFF;
  947. border-radius: 20rpx 20rpx 0rpx 0rpx;
  948. overflow-y: auto;
  949. .title {
  950. display: flex;
  951. justify-content: space-between;
  952. align-items: center;
  953. padding: 0 50rpx 0 284rpx;
  954. box-sizing: border-box;
  955. border-bottom: 1rpx solid #E0E0E0;
  956. >view {
  957. font-size: 30rpx;
  958. color: #3D3D3D;
  959. line-height: 90rpx;
  960. text-align: left;
  961. }
  962. >img {
  963. width: 24rpx;
  964. height: 12rpx;
  965. }
  966. }
  967. .batch {
  968. padding: 0 30rpx;
  969. box-sizing: border-box;
  970. .batch-li {
  971. display: flex;
  972. justify-content: space-between;
  973. align-items: center;
  974. border-bottom: 1rpx solid #E0E0E0;
  975. padding: 20rpx 0 16rpx 0rpx;
  976. box-sizing: border-box;
  977. .batch-li-l {
  978. >text:nth-of-type(1) {
  979. display: block;
  980. font-size: 30rpx;
  981. color: #333333;
  982. line-height: 42rpx;
  983. text-align: left;
  984. }
  985. >text:nth-of-type(2) {
  986. display: block;
  987. font-size: 28rpx;
  988. color: #666666;
  989. line-height: 39rpx;
  990. text-align: left;
  991. margin-top: 6rpx;
  992. }
  993. }
  994. .batch-li-r {
  995. font-size: 28rpx;
  996. color: #666666;
  997. line-height: 39rpx;
  998. text-align: left;
  999. display: flex;
  1000. justify-content: flex-start;
  1001. align-items: center;
  1002. >img {
  1003. width: 24rpx;
  1004. height: 24rpx;
  1005. margin-left: 9rpx;
  1006. }
  1007. }
  1008. }
  1009. }
  1010. }
  1011. }
  1012. }
  1013. </style>