safetyCardScan.vue 26 KB

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