safetyCardScan.vue 26 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057
  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.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. }
  209. },
  210. // 父页面
  211. onReachBottom() {
  212. uni.$emit('onReachBottom') // 设置监听事件
  213. },
  214. onPullDownRefresh() {
  215. uni.$emit('onPullDownRefresh') // 设置监听事件
  216. },
  217. onLoad(option) {
  218. let newData = JSON.parse(decodeURIComponent(option.infoData));
  219. newData.subAdminShowType = true;
  220. newData.adminShowType = true;
  221. if (newData.labInfoBrandModels) {
  222. for (let i = 0; i < newData.labInfoBrandModels.length; i++) {
  223. newData.labInfoBrandModels[i].showType = true;
  224. }
  225. }
  226. if (newData.levelColor) {
  227. newData.levelColorTow = this.hexToRgb(newData.levelColor, 0.2)
  228. }
  229. this.$nextTick(() => {
  230. this.$set(this, 'newData', newData);
  231. this.$set(this, 'subjectData', newData);
  232. this.$set(this, 'pageType', 0);
  233. })
  234. },
  235. onShow() {
  236. },
  237. mounted() {
  238. },
  239. methods: {
  240. dialogClose() {
  241. this.dialogVisible = false;
  242. },
  243. //十六进制颜色值和RGB格式转换
  244. hexToRgb(hex, opacity = 1) {
  245. // 去除#号
  246. var color = hex.replace("#", "");
  247. // 分割成红、绿、蓝三部分的16进制字符串
  248. var red = parseInt(color.substring(0, 2), 16);
  249. var green = parseInt(color.substring(2, 4), 16);
  250. var blue = parseInt(color.substring(4, 6), 16);
  251. return `RGB(${red}, ${green}, ${blue},${opacity})`;
  252. },
  253. batchClick(row) {
  254. let self = this;
  255. if (this.dialogStatus == 0) { //计划点击
  256. if (row.checkPlanSetVoList.length == 1) {
  257. //如果只有1个检查批次不弹窗
  258. let planSetId = row.checkPlanSetVoList[0].planSetId
  259. self.checkPlanSetVoList = row.checkPlanSetVoList[0];
  260. self.securityAppCheckManageList(planSetId)
  261. } else if (row.checkPlanSetVoList.length == 0) {
  262. this.dialogStatus = 0;
  263. uni.showToast({
  264. title: '该实验室暂无检查计划!',
  265. icon: "none",
  266. mask: true,
  267. duration: 2000
  268. });
  269. return
  270. } else {
  271. this.$set(this, 'batchList', row.checkPlanSetVoList);
  272. this.dialogStatus = 1;
  273. this.dialogTtile = '批次';
  274. this.dialogVisible = true;
  275. }
  276. } else if (this.dialogStatus == 1) { //批次点击
  277. /* this.dialogStatus = 2;
  278. this.dialogTtile = '实验室'; */
  279. let planSetId = row.planSetId
  280. self.checkPlanSetVoList = row;
  281. this.securityAppCheckManageList(planSetId)
  282. }
  283. },
  284. //查询计划
  285. async securityAppCheckPlanAppTitleList() {
  286. console.log(this.newData.subId)
  287. this.queryParams.subId = this.newData.subId;
  288. this.queryParams.checkStatus = 0;
  289. let self = this;
  290. const {
  291. data
  292. } = await securityAppCheckPlanAppTitleList(this.queryParams);
  293. if (data.code == 200 && data.data.records[0]) {
  294. //循环过滤掉当前计划中批次中已经检查完成的
  295. data.data.records.forEach(function(item,index){
  296. let list=[];
  297. item.checkPlanSetVoList.forEach(function(item2){
  298. if (item2.checkSetProgress != 100) {
  299. list.push(item2)
  300. }
  301. })
  302. item.checkPlanSetVoList=list
  303. })
  304. let list2=[]
  305. list2 = data.data.records.filter(function(item) {
  306. return item.checkPlanSetVoList.length!=0
  307. });
  308. data.data.records=list2
  309. if (data.data.records.length == 1) { //一个计划
  310. if (data.data.records[0].checkPlanSetVoList.length == 1) { //1个批次
  311. let planSetId = data.data.records[0]
  312. if (data.data.records[0].checkPlanSetVoList[0]) { //一个批次
  313. let planSetId = data.data.records[0].checkPlanSetVoList[0].planSetId
  314. self.checkPlanSetVoList = data.data.records[0].checkPlanSetVoList[0];
  315. self.securityAppCheckManageList(planSetId)
  316. }
  317. } else if (data.data.records[0].checkPlanSetVoList.length == 0) {
  318. this.dialogStatus = 0;
  319. uni.showToast({
  320. title: '该实验室暂无检查计划!',
  321. icon: "none",
  322. mask: true,
  323. duration: 2000
  324. });
  325. return
  326. } else { //多个批次
  327. this.dialogStatus = 1;
  328. this.batchList = data.data.records[0].checkPlanSetVoList;
  329. this.dialogVisible = true;
  330. this.dialogTtile = '批次';
  331. }
  332. } else { //多个计划
  333. this.batchList = data.data.records;
  334. this.dialogVisible = true;
  335. this.dialogTtile = '计划标题';
  336. }
  337. } else {
  338. this.dialogStatus = 0;
  339. uni.showToast({
  340. title: '该实验室暂无检查计划!',
  341. icon: "none",
  342. mask: true,
  343. duration: 2000
  344. });
  345. return
  346. }
  347. },
  348. //检查任务-在此结果里对比实验室Id判断是否有实验室
  349. async securityAppCheckManageList(planSetId) {
  350. let self = this;
  351. let obj = {
  352. page: 1,
  353. pageSize: 20,
  354. planSetId: planSetId,
  355. subId: self.newData.subId,
  356. }
  357. const {
  358. data
  359. } = await securityAppCheckManageList(obj);
  360. if (data.code == 200) {
  361. //this.shadeList = data.data.records;
  362. if (data.data.records[0]) {
  363. let manageId = data.data.records[0].manageId;
  364. self.securityAppCheckSetOptionList(data.data.records[0]);
  365. } else {
  366. self.dialogStatus = 0;
  367. self.dialogVisible = false;
  368. uni.showToast({
  369. title: '该实验室暂无检查计划!',
  370. icon: "none",
  371. mask: true,
  372. duration: 2000
  373. });
  374. return
  375. }
  376. }
  377. },
  378. //查询检查项
  379. async securityAppCheckSetOptionList(item) {
  380. let self = this;
  381. let upData = item;
  382. let obj = {
  383. page: 1,
  384. pageSize: 20,
  385. checkStatus: '0',
  386. manageId: upData.manageId,
  387. }
  388. const {
  389. data
  390. } = await securityAppCheckSetOptionList(obj);
  391. if (data.code == 200) {
  392. if (data.data.records[0]) {
  393. let infoData = {};
  394. infoData.pageType = 0;
  395. infoData.itemsStatus = 0;
  396. infoData.subName = upData.subName;
  397. infoData.checkPlanSetVoList = self.checkPlanSetVoList;
  398. infoData.roomNum = upData.roomNum;
  399. infoData.subId = data.data.records[0].subId;
  400. infoData.manageId = data.data.records[0].manageId;
  401. infoData.setOptionId = data.data.records[0].setOptionId;
  402. infoData.hazardCheckPro = data.data.records[0].hazardCheckPro;
  403. uni.redirectTo({
  404. url: '/pages_safetyCheck/views/inspectManage/conductInspections?infoData=' +
  405. encodeURIComponent(
  406. JSON
  407. .stringify(infoData))
  408. });
  409. } else {
  410. self.dialogStatus = 0;
  411. self.dialogVisible = false;
  412. uni.showToast({
  413. title: '该实验室暂无检查项!',
  414. icon: "none",
  415. mask: true,
  416. duration: 2000
  417. });
  418. return
  419. }
  420. }
  421. },
  422. //拨打电话
  423. callPhone(tel) {
  424. uni.makePhoneCall({
  425. phoneNumber: tel
  426. })
  427. },
  428. goVideoPage() {
  429. console.log('视频')
  430. let obj = {
  431. type: 4,
  432. subId: this.newData.subId
  433. }
  434. uni.navigateTo({
  435. url: '/pages_manage/views/laboratory/videoPlayer?item=' + encodeURIComponent(JSON.stringify(
  436. obj))
  437. });
  438. },
  439. getIotControlData() {
  440. this.$refs['iotControl'].iotAppHardwareFindByType();
  441. },
  442. buttonClick(type, row) {
  443. let self = this;
  444. if (type == 'subDetail') {
  445. //实验室详情
  446. } else if (type == 'broadcastOpen') {
  447. //语音弹窗开启
  448. this.$set(this, 'broadcastPage', true);
  449. } else if (type == 'broadcastClose') {
  450. //语音弹窗关闭
  451. this.$set(this, 'broadcastPage', false);
  452. } else if (type == 'conditioningOpen') {
  453. //空调弹窗开启
  454. this.$set(this, 'airConditioningData', row);
  455. this.$set(this, 'conditioningPage', true);
  456. } else if (type == 'conditioningClose') {
  457. //空调弹窗关闭
  458. this.$set(this, 'conditioningPage', false);
  459. } else if (type == 'back') {
  460. this.$set(this, 'pageType', 2);
  461. }
  462. },
  463. //展开/收起操作
  464. unfoldPackUp(type, index) {
  465. if (type == 'subAdminShowType') {
  466. this.$set(this.newData, 'subAdminShowType', !this.newData.subAdminShowType);
  467. } else if (type == 'adminShowType') {
  468. this.$set(this.newData, 'adminShowType', !this.newData.adminShowType);
  469. } else if (type == 'list') {
  470. this.$set(this.newData.labInfoBrandModels[index], 'showType', !this.newData.labInfoBrandModels[index]
  471. .showType);
  472. }
  473. },
  474. //顶部tab点击
  475. tabClick(index) {
  476. if (this.pageType != index) {
  477. this.$set(this, 'pageType', index);
  478. }
  479. },
  480. goPage(type) {
  481. if (!pageRestrictVerify(type)) {
  482. uni.showToast({
  483. title: '没有相关权限,请联系管理员',
  484. icon: "none",
  485. mask: true,
  486. duration: 2000
  487. });
  488. return
  489. }
  490. if (type == 'securityCheck') {
  491. //安全检查
  492. this.securityAppCheckPlanAppTitleList();
  493. /* uni.navigateTo({
  494. url: "/pages_safetyCheck/views/safetyCheck",
  495. }); */
  496. } else if (type == 'snapshot') {
  497. console.log(this.newData)
  498. this.$set(this.form, "subId", this.newData.subId)
  499. this.$set(this.form, "subName", this.newData.subName)
  500. this.$set(this.form, "subRoom", this.newData.roomNum)
  501. this.$set(this.form, "deptId", this.newData.deptId)
  502. this.$set(this.form, "deptName", this.newData.deptName)
  503. this.$set(this.form, "buildId", this.newData.buildId)
  504. this.$set(this.form, "buildName", this.newData.buildName)
  505. this.$set(this.form, "floorId", this.newData.floorId)
  506. this.$set(this.form, "floorName", this.newData.floorName)
  507. this.$set(this.form, "typeId", this.newData.typeId)
  508. this.$set(this.form, "classTypeNames", this.newData.typeName)
  509. this.$set(this.form, "levelId", this.newData.levelId)
  510. this.$set(this.form, "classLevelName", this.newData.levelName)
  511. uni.redirectTo({
  512. url: '/pages_safetyCheck/views/snapshotManage/snapshotList?form=' +
  513. encodeURIComponent(JSON.stringify(this.form))
  514. });
  515. }
  516. },
  517. }
  518. }
  519. </script>
  520. <style lang="stylus" scoped>
  521. .safetyCardScan {
  522. height: 100%;
  523. #fontColor-A {
  524. color: #00DEDE;
  525. }
  526. #fontColor-B {
  527. color: #FF8C00;
  528. }
  529. #fontColor-C {
  530. color: #0083FD;
  531. }
  532. .header {
  533. height: 192rpx;
  534. width: 100%;
  535. // position: fixed;
  536. // top: 0rpx;
  537. // z-index: 100;
  538. background: #fff;
  539. .tabTitle {
  540. width: 750rpx;
  541. height: 188rpx;
  542. display flex;
  543. justify-content: flex-start;
  544. align-items: center;
  545. border-bottom: 4rpx solid #F5F5F5;
  546. .tabTitle_li {
  547. height: 188rpx;
  548. flex: 1;
  549. position: relative;
  550. text-align center;
  551. .tabTitle_text {
  552. display: flex;
  553. justify-content: center;
  554. flex-direction: column;
  555. align-items: center;
  556. >img {
  557. width: 80rpx;
  558. height: 80rpx;
  559. margin-top: 20rpx;
  560. }
  561. >view:nth-of-type(1) {
  562. font-size: 30rpx;
  563. color: #333333;
  564. line-height: 42rpx;
  565. text-align: left;
  566. margin-top: 10rpx;
  567. }
  568. >view:nth-of-type(2) {
  569. font-size: 24rpx;
  570. color: #666666;
  571. line-height: 34rpx;
  572. text-align: left;
  573. }
  574. position: relative;
  575. &.on {}
  576. }
  577. .line {
  578. width: 2rpx;
  579. height: 40rpx;
  580. background: #D8D8D8;
  581. position: absolute;
  582. top: 40%;
  583. }
  584. .tabTitle_across {
  585. /* width: 50rpx;
  586. height: 4rpx;
  587. background: #0183FA;
  588. border-radius: 2rpx; */
  589. margin-left: 38%;
  590. margin-top: 12rpx;
  591. display none;
  592. >img {
  593. width: 40rpx;
  594. height: 26rpx;
  595. }
  596. &.on {
  597. display block;
  598. }
  599. }
  600. }
  601. }
  602. }
  603. /* 安全信息牌 */
  604. .safetyCard {
  605. padding-bottom: 150rpx;
  606. .lab-info {
  607. background: #FFFFFF;
  608. display: flex;
  609. justify-content: space-between;
  610. .lab-info-l {
  611. width: 80rpx;
  612. height: 80rpx;
  613. background: #0183FA;
  614. border-radius: 10rpx 10rpx 10rpx 10rpx;
  615. margin-left: 30rpx;
  616. margin-top: 30rpx;
  617. }
  618. .lab-info-c {
  619. width: 500rpx;
  620. margin: 24rpx 30rpx 0 20rpx;
  621. .lab-info-c-t {
  622. display: flex;
  623. justify-content: space-between;
  624. .lab-info-c-t-l {
  625. font-size: 30rpx;
  626. color: #333333;
  627. line-height: 42rpx;
  628. text-align: left;
  629. overflow: hidden;
  630. text-overflow: ellipsis;
  631. white-space: nowrap;
  632. }
  633. .lab-info-c-t-r {
  634. display: flex;
  635. justify-content: flex-start;
  636. background: rgba(255, 0, 0, 0.2);
  637. border-radius: 10rpx 10rpx 10rpx 10rpx;
  638. border: 2rpx solid #FF0000;
  639. width: 180rpx;
  640. height: 40rpx;
  641. margin-left: 10rpx;
  642. >text {
  643. display: inline-block;
  644. flex: 1;
  645. text-align: center;
  646. font-size: 24rpx;
  647. color: #FF0000;
  648. line-height: 40rpx;
  649. text-align: center;
  650. }
  651. >text:nth-of-type(1) {
  652. border-right: 2rpx solid #FF0000;
  653. }
  654. >text:nth-of-type(2) {}
  655. }
  656. }
  657. .lab-info-c-b {
  658. font-size: 30rpx;
  659. color: #666666;
  660. line-height: 42rpx;
  661. text-align: left;
  662. margin-top: 10rpx;
  663. }
  664. }
  665. .lab-info-r {
  666. width: 100rpx;
  667. height: 150rpx;
  668. background: rgba(1, 131, 250, 0.2);
  669. border-radius: 0rpx 0rpx 0rpx 0rpx;
  670. font-size: 28rpx;
  671. color: #0183FA;
  672. line-height: 150rpx;
  673. text-align: center;
  674. }
  675. }
  676. .liability-unit {
  677. width: 750rpx;
  678. height: 80rpx;
  679. background: #FFFFFF;
  680. border-bottom: 1rpx solid #E0E0E0;
  681. padding: 0 30rpx;
  682. box-sizing: border-box;
  683. display: flex;
  684. justify-content: space-between;
  685. margin-top: 14rpx;
  686. >view:nth-of-type(1) {
  687. font-size: 30rpx;
  688. color: #333333;
  689. line-height: 80rpx;
  690. text-align: left;
  691. }
  692. >view:nth-of-type(2) {
  693. font-size: 30rpx;
  694. color: #666666;
  695. line-height: 80rpx;
  696. text-align: left;
  697. }
  698. }
  699. .small-title {
  700. width: 750rpx;
  701. height: 80rpx;
  702. background: #FFFFFF;
  703. border-bottom: 1rpx solid #E0E0E0;
  704. padding: 0 30rpx;
  705. box-sizing: border-box;
  706. display: flex;
  707. justify-content: space-between;
  708. align-items: center;
  709. >view {
  710. font-size: 30rpx;
  711. color: #333333;
  712. line-height: 80rpx;
  713. text-align: left;
  714. }
  715. >img {
  716. width: 24rpx;
  717. height: 12rpx;
  718. }
  719. }
  720. .sub-head {
  721. width: 750rpx;
  722. height: 80rpx;
  723. background: #fff;
  724. padding: 0 30rpx;
  725. box-sizing: border-box;
  726. display: flex;
  727. justify-content: space-between;
  728. align-items: center;
  729. border-bottom: 1rpx solid #E0E0E0;
  730. >view:nth-of-type(1) {
  731. font-family: PingFang SC;
  732. font-weight: 500;
  733. font-size: 30rpx;
  734. color: #666666;
  735. line-height: 30rpx;
  736. }
  737. >view:nth-of-type(2) {
  738. display: flex;
  739. justify-content: flex-end;
  740. align-items: center;
  741. >img {
  742. width: 34rpx;
  743. height: 34rpx;
  744. margin-right: 14rpx;
  745. }
  746. >view {
  747. font-family: PingFang SC;
  748. font-weight: 500;
  749. font-size: 30rpx;
  750. color: #0183FA;
  751. line-height: 30rpx;
  752. }
  753. }
  754. }
  755. .sub-head:last-child {
  756. border-bottom: none;
  757. }
  758. .small-title-new {
  759. width: 750rpx;
  760. height: 80rpx;
  761. background: #FFFFFF;
  762. border-bottom: 1rpx solid #E0E0E0;
  763. padding: 0 30rpx;
  764. box-sizing: border-box;
  765. display: flex;
  766. justify-content: space-between;
  767. align-items: center;
  768. >view {
  769. font-size: 30rpx;
  770. color: #333333;
  771. line-height: 80rpx;
  772. text-align: left;
  773. }
  774. >img {
  775. width: 24rpx;
  776. height: 12rpx;
  777. }
  778. }
  779. .classify {
  780. .small-items-new {
  781. padding-left: 20rpx;
  782. box-sizing: border-box;
  783. background: #fff;
  784. display: flex;
  785. justify-content: flex-start;
  786. padding: 30rpx;
  787. box-sizing: border-box;
  788. border-bottom: 1rpx solid #E0E0E0;
  789. >view:nth-of-type(1) {
  790. color: #999999;
  791. font-weight: 500;
  792. font-size: 28rpx;
  793. margin-right: 12rpx;
  794. line-height: 34rpx;
  795. }
  796. >view:nth-of-type(2) {
  797. display: block;
  798. font-family: PingFang SC;
  799. font-weight: 500;
  800. font-size: 28rpx;
  801. line-height: 34rpx;
  802. color: #999999;
  803. }
  804. }
  805. .logotype-img-new {
  806. padding: 26rpx 0 34rpx 0;
  807. box-sizing: border-box;
  808. background: #fff;
  809. >img {
  810. display: inline-block;
  811. width: 86rpx;
  812. height: 114rpx;
  813. margin-left: 30rpx;
  814. margin-bottom: 20rpx;
  815. }
  816. }
  817. .small-items {
  818. padding-left: 20rpx;
  819. box-sizing: border-box;
  820. background: #fff;
  821. display: flex;
  822. justify-content: flex-start;
  823. padding: 20rpx;
  824. box-sizing: border-box;
  825. >view:nth-of-type(1) {
  826. color: #999999;
  827. font-weight: 500;
  828. font-size: 28rpx;
  829. margin-right: 12rpx;
  830. line-height: 34rpx;
  831. }
  832. >view:nth-of-type(2) {
  833. display: block;
  834. font-family: PingFang SC;
  835. font-weight: 500;
  836. font-size: 28rpx;
  837. line-height: 34rpx;
  838. color: #999999;
  839. }
  840. }
  841. .logotype {
  842. width: 750rpx;
  843. height: 100rpx;
  844. font-family: PingFang SC;
  845. font-weight: 500;
  846. font-size: 32rpx;
  847. color: #333333;
  848. line-height: 100rpx;
  849. padding-left: 20rpx;
  850. box-sizing: border-box;
  851. background: #0183FA;
  852. color: #fff;
  853. }
  854. .logotype-img {
  855. padding: 26rpx 0 34rpx 0;
  856. box-sizing: border-box;
  857. background: #fff;
  858. >img {
  859. display: inline-block;
  860. width: 86rpx;
  861. height: 114rpx;
  862. margin-left: 30rpx;
  863. margin-bottom: 20rpx;
  864. }
  865. }
  866. }
  867. }
  868. .position-button-box {
  869. position: fixed;
  870. bottom: 26rpx;
  871. display: flex;
  872. justify-content: center;
  873. >img {
  874. width: 130rpx;
  875. height: 130rpx;
  876. }
  877. .position-button-p-1 {
  878. margin-left: 174rpx;
  879. margin-right: 120rpx;
  880. }
  881. .position-button-p-2 {}
  882. }
  883. .shade {
  884. height: 100%;
  885. width: 100%;
  886. position: fixed;
  887. display: flex;
  888. flex-direction: column;
  889. z-index: 200;
  890. background: rgba(0, 0, 0, 0.2);
  891. top: 0;
  892. .null-box {
  893. flex: 1;
  894. }
  895. .shade_n {
  896. position: absolute;
  897. bottom: 0;
  898. left: 0;
  899. width: 750rpx;
  900. height: 466rpx;
  901. background: #FFFFFF;
  902. border-radius: 20rpx 20rpx 0rpx 0rpx;
  903. overflow-y: auto;
  904. .title {
  905. display: flex;
  906. justify-content: space-between;
  907. align-items: center;
  908. padding: 0 50rpx 0 284rpx;
  909. box-sizing: border-box;
  910. border-bottom: 1rpx solid #E0E0E0;
  911. >view {
  912. font-size: 30rpx;
  913. color: #3D3D3D;
  914. line-height: 90rpx;
  915. text-align: left;
  916. }
  917. >img {
  918. width: 24rpx;
  919. height: 12rpx;
  920. }
  921. }
  922. .batch {
  923. padding: 0 30rpx;
  924. box-sizing: border-box;
  925. .batch-li {
  926. display: flex;
  927. justify-content: space-between;
  928. align-items: center;
  929. border-bottom: 1rpx solid #E0E0E0;
  930. padding: 20rpx 0 16rpx 0rpx;
  931. box-sizing: border-box;
  932. .batch-li-l {
  933. >text:nth-of-type(1) {
  934. display: block;
  935. font-size: 30rpx;
  936. color: #333333;
  937. line-height: 42rpx;
  938. text-align: left;
  939. }
  940. >text:nth-of-type(2) {
  941. display: block;
  942. font-size: 28rpx;
  943. color: #666666;
  944. line-height: 39rpx;
  945. text-align: left;
  946. margin-top: 6rpx;
  947. }
  948. }
  949. .batch-li-r {
  950. font-size: 28rpx;
  951. color: #666666;
  952. line-height: 39rpx;
  953. text-align: left;
  954. display: flex;
  955. justify-content: flex-start;
  956. align-items: center;
  957. >img {
  958. width: 24rpx;
  959. height: 24rpx;
  960. margin-left: 9rpx;
  961. }
  962. }
  963. }
  964. }
  965. }
  966. }
  967. }
  968. </style>