snapshotList.vue 23 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000
  1. <!-- 随手拍列表 -->
  2. <template>
  3. <view class="snapshotList">
  4. <scroll-view scroll-y @scrolltolower="scrollGet" class="info-max-box">
  5. <view class="tabTitle" v-if="userType==0">
  6. <view :class="tabIndex==index?'tab-A':'tab-B'" v-for="(item,index) in tabList" :key='index'
  7. @click="tabClick(index)">
  8. {{item}}
  9. </view>
  10. </view>
  11. <view class="tabTitleTow" v-if="userType==1">
  12. <view :class="tabIndexTow==index?'tab-C':'tab-D'" v-for="(item,index) in tabListTow" :key='index'
  13. @click="tabClickTow(index)">{{item}}</view>
  14. </view>
  15. <view v-if="pageType==0">
  16. <view class="list">
  17. <view class="list-li srearch" @click="laboratoryClick()">
  18. <view class="srearch-l">{{form.subName?form.subName:'实验室名称'}}</view>
  19. <img class="srearch-r" :src="imagesUrl('commonality/icon_wd_gd@1x.png')">
  20. </view>
  21. <view class="list-li" style="margin-bottom: 20rpx;border:none;">
  22. <view>{{form.subRoom?form.subRoom:''}}房间&{{form.buildName?form.buildName:'楼栋'}}&{{form.deptName?form.deptName:'学院单位'}}</view>
  23. </view>
  24. <view class="list-li">
  25. <view>现场照片</view>
  26. <view></view>
  27. </view>
  28. <view class="check-for-img-max-box" v-if="form.imgDtoList[0]">
  29. <view class="left-title-p"></view>
  30. <view class="right-img-box">
  31. <view class="img-box" v-for="(imgUrl,imgIndex) in form.imgDtoList" :key="imgIndex">
  32. <img class="img-data" :src="baseUrl+imgUrl.fileUrl">
  33. <img class="position-img" :src="imagesUrl('commonality/icon_ssp_closure.png')"
  34. @click="delImg(imgIndex)">
  35. </view>
  36. <!-- <img class="add-button" :src="imagesUrl('safetyCheck/img_ssp_pz@1x.png')"
  37. @click="selectImage()" v-if="form.imgDtoList.length<5"> -->
  38. </view>
  39. </view>
  40. <picker @change="bindPickerChange" :value="pickerIndex" :range="pickerList" range-key="name">
  41. <view class="list-li">
  42. <view>安全类别</view>
  43. <view style="color: #0183FA;">
  44. {{pickerList[pickerIndex].name}}
  45. <img :src="imagesUrl('commonality/icon_wd_gd@1x.png')">
  46. </view>
  47. </view>
  48. </picker>
  49. <view class="list-li">
  50. <view>隐患描述</view>
  51. <view></view>
  52. </view>
  53. <view class="describe">
  54. <textarea class="describe-n" type="text" v-model="form.hazardDescribe" maxlength="200"
  55. placeholder="请填写隐患描述" placeholder-style="font-size:24rpx;color:#999;"></textarea>
  56. </view>
  57. </view>
  58. <view class="subBtn">
  59. <img class="subBtn-l" @click="saoCode()" :src="imagesUrl('safetyCheck/icon_aqjc_saoma.png')"/>
  60. <img class="subBtn-c" @click="selectImage()" :src="imagesUrl('safetyCheck/icon_aqjc_paizhao.png')"/>
  61. <img class="subBtn-r" @click="submitForm()" :src="imagesUrl('safetyCheck/icon_aqjc_tijiao.png')"/>
  62. </view>
  63. </view>
  64. <!-- 上报记录 -->
  65. <view class="escalation" v-if="pageType==1">
  66. <view class="escalation-li" @click="recordClick(item)" v-for="(item,index) in dataList">
  67. <view class="escalation-li-t">
  68. <view>{{item.subName}} ({{item.subRoom?item.subRoom:'-'}})</view>
  69. <view
  70. :id="item.rectifyStatus==0?'color-A':(item.rectifyStatus==1?'color-B':(item.rectifyStatus==2?'color-C':''))">
  71. {{item.rectifyStatus==0?'待整改':(item.rectifyStatus==1?'已整改':(item.rectifyStatus==2?'暂无法整改':''))}}
  72. <img :src="imagesUrl('commonality/icon_wd_gd@1x.png')">
  73. </view>
  74. </view>
  75. <view class="escalation-li-b">
  76. <view>上报时间</view>
  77. <view>{{item.createTime}}</view>
  78. </view>
  79. </view>
  80. </view>
  81. <!-- 隐患整改 -->
  82. <view class="hidden" v-if="pageType==2">
  83. <view class="hidden-li" @click="hiddenClick(item)" v-for="(item,index) in dataList">
  84. <img class="hidden-li-l" :src="imagesUrl('commonality/icon_sys_xz@1x.png')">
  85. <view class="hidden-li-c">{{item.subName}}</view>
  86. <view class="hidden-li-r">
  87. <view v-if="item.stayhRectifyCheckNum!=0">待整改{{item.stayhRectifyCheckNum}}项</view>
  88. <img :src="imagesUrl('commonality/icon_wd_gd@1x.png')">
  89. </view>
  90. </view>
  91. </view>
  92. <!-- <view class="get-data-null-p" v-if="getDataType">- 没有更多数据 -</view> -->
  93. </scroll-view>
  94. <view class="popup-max-box" v-if="popupType">
  95. <view class="popup-null" @click="popupClick(2)"></view>
  96. <view class="popup-big-box">
  97. <view class="popup-input-box">
  98. <input type="text" maxlength="10" v-model="form.searchValue" placeholder="请输入关键字">
  99. <view @click="buildBySub">搜索</view>
  100. </view>
  101. <view class="popup-for-max-box">
  102. <view class="popup-for-null" v-if="!roomList[0]">暂无数据</view>
  103. <view class="popup-for-box" v-for="(item,index) in roomList" :key="index">
  104. <view class="name-p">{{item.subName}} ({{item.roomNum?item.roomNum:'-'}})</view>
  105. <view class="button-p" @click="popupClickItem(item)">确定</view>
  106. </view>
  107. </view>
  108. </view>
  109. </view>
  110. </view>
  111. </template>
  112. <script>
  113. import {
  114. config
  115. } from '@/api/request/config.js'
  116. import {laboratoryAppletGetSubDetailInfo} from '@/pages/api/index.js'
  117. import {
  118. laboratorySubRelInfoGetRelList,
  119. securityAppCheckPhotoMyAdd,
  120. securityAppCheckPhotoMyList,
  121. securityAppCheckPhotoRectifyList,
  122. securityCheckOptionList,
  123. } from '@/pages_safetyCheck/api/index.js'
  124. import { pageScanCode } from '@/utils/scanTheCode'
  125. export default {
  126. name: "snapshotList",
  127. components: {
  128. },
  129. data() {
  130. return {
  131. baseUrl: config.base_url,
  132. pageType: 0,
  133. userType: 1,
  134. tabList: ['随手拍上报', '上报记录'],
  135. tabIndex: 0,
  136. tabListTow: ['随手拍上报', '上报记录', '隐患整改'],
  137. tabIndexTow: 0,
  138. newData: {
  139. },
  140. form: {
  141. rectifyDescribe: '',
  142. imgDtoList: [],
  143. hazardCheckName: '',
  144. },
  145. popupType: false,
  146. roomList: [],
  147. checkOptionList: [],
  148. getDataType: false,
  149. // 查询参数
  150. queryParams: {
  151. page: 1,
  152. pageSize: 20,
  153. },
  154. total: 0,
  155. dataList: [],
  156. pickerIndex: 5,
  157. pickerList: [],
  158. photoMaxNun:0,
  159. }
  160. },
  161. onLoad(option) {
  162. if (option.form) {
  163. this.form = JSON.parse(decodeURIComponent(option.form));
  164. this.$set(this.form, "rectifyDescribe", '')
  165. this.$set(this.form, "imgDtoList", [])
  166. }
  167. },
  168. onShow() {
  169. this.acceptSaoCode();
  170. },
  171. onHide() {
  172. uni.$off('acceptSaoCode');
  173. },
  174. mounted() {
  175. this.treeselect();
  176. },
  177. methods: {
  178. //滚动事件
  179. scrollGet() {
  180. let self = this;
  181. if (self.total / self.queryParams.pageSize <= self.queryParams.page) {
  182. this.$set(this, 'getDataType', true);
  183. } else {
  184. this.queryParams.page += 1;
  185. this.$nextTick(() => {
  186. if (this.pageType == 1) {
  187. this.getList();
  188. } else if (this.pageType == 2) {
  189. this.getListTow();
  190. }
  191. })
  192. }
  193. },
  194. //上报记录
  195. async getList() {
  196. let self = this;
  197. const {
  198. data
  199. } = await securityAppCheckPhotoMyList(this.queryParams);
  200. if (data.code == 200) {
  201. if (self.queryParams.page == 1) {
  202. this.dataList = data.data.records;
  203. this.total = data.data.total;
  204. if (data.data.total / self.queryParams.pageSize <= self.queryParams.page) {
  205. this.$set(this, 'getDataType', true);
  206. }
  207. } else {
  208. this.dataList = [...this.dataList, ...data.data.records]
  209. this.total = data.data.total;
  210. if (data.data.total / self.queryParams.pageSize <= self.queryParams.page) {
  211. this.$set(this, 'getDataType', true);
  212. }
  213. }
  214. }
  215. },
  216. //隐患整改
  217. async getListTow() {
  218. let self = this;
  219. const {
  220. data
  221. } = await securityAppCheckPhotoRectifyList();
  222. if (data.code == 200) {
  223. if (data.data[0]) {
  224. this.dataList = data.data;
  225. } else {
  226. this.$set(this, 'getDataType', true);
  227. }
  228. }
  229. },
  230. //实验室
  231. laboratoryClick(){
  232. this.form.subId='';
  233. this.form.laboratoryStatus=3// 标识是从那个页面进入的实验室搜索页面
  234. uni.navigateTo({
  235. url: '/pages_safetyCheck/views/snapshotManage/laboratorySearch?form=' + encodeURIComponent(
  236. JSON.stringify(this.form))
  237. });
  238. },
  239. //上报记录跳转详情
  240. recordClick(row) {
  241. let infoData = row;
  242. uni.navigateTo({
  243. url: '/pages_safetyCheck/views/snapshotManage/snapshotDetail?infoData=' + encodeURIComponent(
  244. JSON.stringify(infoData))
  245. });
  246. },
  247. //隐患整改跳转详情
  248. hiddenClick(row) {
  249. let infoData = row;
  250. infoData.pageType = 2;
  251. uni.navigateTo({
  252. url: '/pages_safetyCheck/views/snapshotManage/snapshotItems?infoData=' + encodeURIComponent(
  253. JSON.stringify(infoData))
  254. });
  255. },
  256. //安全类别
  257. bindPickerChange(data) {
  258. this.pickerIndex = data.detail.value;
  259. this.form.hazardCheckName = this.pickerList[data.detail.value].name
  260. this.form.hazardCheckCode = this.pickerList[data.detail.value].code
  261. this.form.hazardCheckId = this.pickerList[data.detail.value].id
  262. },
  263. //隐患项
  264. async treeselect() {
  265. let self = this;
  266. const {
  267. data
  268. } = await securityCheckOptionList({
  269. searchValue: this.searchValue
  270. });
  271. if (data.code == 200) {
  272. let list = [];
  273. data.data.forEach(function(item,index) {
  274. if(index==5){
  275. console.log(item)
  276. self.form.hazardCheckName = item.name
  277. self.form.hazardCheckCode = item.code
  278. self.form.hazardCheckId = item.id
  279. }
  280. list.push(item)
  281. })
  282. this.pickerList = list;
  283. }
  284. },
  285. tabClick(index) {
  286. this.tabIndex = index;
  287. this.pageType = index;
  288. this.dataList = [];
  289. if (index == 1) {
  290. this.getList();
  291. } else if (index == 2) {
  292. this.getListTow();
  293. }
  294. },
  295. tabClickTow(index) {
  296. this.tabIndexTow = index;
  297. this.pageType = index;
  298. this.dataList = [];
  299. if (index == 1) {
  300. this.getList();
  301. } else if (index == 2) {
  302. this.getListTow();
  303. }
  304. },
  305. /******图片上传******/
  306. selectImage() {
  307. let self = this;
  308. let photoMaxNun=0;
  309. if (this.form.imgDtoList.length > 5) {
  310. uni.showToast({
  311. title: '最多上传6张图片',
  312. icon: "none",
  313. mask: true,
  314. duration: 2000
  315. });
  316. return
  317. }
  318. photoMaxNun=6-this.form.imgDtoList.length;
  319. uni.chooseImage({
  320. count: photoMaxNun,
  321. sizeType: ["original", "compressed"],
  322. sourceType: ["album", "camera"],
  323. success: function(res) {
  324. if (res.tempFilePaths[0]) {
  325. res.tempFilePaths.forEach(function(item, index) {
  326. self.uploadImg(item);
  327. })
  328. }
  329. }
  330. });
  331. },
  332. async uploadImg(tempFilePaths) {
  333. var self = this;
  334. uni.showLoading({
  335. title: '上传中',
  336. mask: true
  337. });
  338. uni.uploadFile({
  339. url: config.base_url + '/system/file/upload', //仅为示例,非真实的接口地址
  340. header: {
  341. 'Authorization': uni.getStorageSync('token')
  342. },
  343. filePath: tempFilePaths,
  344. name: 'file',
  345. formData: {
  346. 'user': 'test'
  347. },
  348. success: (uploadFileRes) => {
  349. let res = JSON.parse(uploadFileRes.data);
  350. if (res.code == 200) {
  351. this.form.imgDtoList.push({
  352. 'fileUrl': res.data.url,
  353. 'fileName': res.data.name
  354. });
  355. } else {
  356. uni.showToast({
  357. title: res.msg,
  358. icon: "none",
  359. mask: true,
  360. duration: 2000
  361. });
  362. }
  363. },
  364. fail: err => {},
  365. complete: () => {
  366. uni.hideLoading()
  367. }
  368. });
  369. },
  370. //删除图片
  371. delImg(minIndex) {
  372. this.form.imgDtoList.splice(minIndex, 1);
  373. this.$forceUpdate();
  374. },
  375. /******搜索房间弹层开关******/
  376. popupClick(type) {
  377. if (type == 1) {
  378. this.room = "";
  379. this.roomList = [];
  380. this.popupType = true;
  381. this.buildBySub();
  382. } else if (type == 2) {
  383. this.popupType = false;
  384. }
  385. },
  386. //搜索房间接口
  387. async buildBySub() {
  388. let self = this;
  389. const {
  390. data
  391. } = await laboratorySubRelInfoGetRelList({
  392. 'searchValue': this.form.searchValue,
  393. 'subId': this.form.subId,
  394. });
  395. if (data.code == 200) {
  396. if (data.data[0]) {
  397. this.roomList = data.data;
  398. } else {
  399. uni.showToast({
  400. title: '未找到相关实验室',
  401. icon: "none",
  402. mask: true,
  403. duration: 2000
  404. });
  405. }
  406. }
  407. },
  408. //确认搜索房间
  409. popupClickItem(item) {
  410. this.$set(this.form, "subId", item.subId)
  411. this.$set(this.form, "subName", item.subName)
  412. this.$set(this.form, "subRoom", item.roomNum)
  413. this.$set(this.form, "deptId", item.deptId)
  414. this.$set(this.form, "deptName", item.deptName)
  415. this.$set(this.form, "buildId", item.buildId)
  416. this.$set(this.form, "buildName", item.buildName)
  417. this.$set(this.form, "floorId", item.floorId)
  418. this.$set(this.form, "floorName", item.floorName)
  419. this.$set(this.form, "typeId", item.typeId)
  420. this.$set(this.form, "classTypeNames", item.classTypeNames)
  421. this.$set(this.form, "levelId", item.levelId)
  422. this.$set(this.form, "classLevelName", item.classLevelName)
  423. this.popupType = false;
  424. },
  425. //实验室详情
  426. async laboratoryAppletGetSubDetailInfo(infoId) {
  427. const {
  428. data
  429. } = await laboratoryAppletGetSubDetailInfo({
  430. infoId: infoId
  431. });
  432. if (data.code == 200) {
  433. this.$set(this.form, "subId", data.data.subId)
  434. this.$set(this.form, "subName", data.data.subName)
  435. this.$set(this.form, "subRoom", data.data.roomNum)
  436. this.$set(this.form, "deptId", data.data.deptId)
  437. this.$set(this.form, "deptName", data.data.deptName)
  438. this.$set(this.form, "buildId", data.data.buildId)
  439. this.$set(this.form, "buildName", data.data.buildName)
  440. this.$set(this.form, "floorId", data.data.floorId)
  441. this.$set(this.form, "floorName", data.data.floorName)
  442. this.$set(this.form, "typeId", data.data.typeId)
  443. this.$set(this.form, "classTypeNames", data.data.classTypeNames)
  444. this.$set(this.form, "levelId", data.data.levelId)
  445. this.$set(this.form, "classLevelName", data.data.classLevelName)
  446. }
  447. },
  448. /******调用摄像头******/
  449. saoCode() {
  450. pageScanCode()
  451. },
  452. acceptSaoCode(){
  453. let self = this;
  454. uni.$on('acceptSaoCode', (codeData) => {
  455. if (codeData.code) {
  456. self.laboratoryAppletGetSubDetailInfo(codeData.code)
  457. } else {
  458. uni.showToast({
  459. title: '请扫描正确的二维码',
  460. icon: "none",
  461. mask: true,
  462. duration: 2000
  463. });
  464. }
  465. });
  466. },
  467. //上报
  468. async submitForm() {
  469. let self = this;
  470. if (!this.form.subId) {
  471. uni.showToast({
  472. title: '请选择实验室!',
  473. icon: "none",
  474. mask: true,
  475. duration: 2000
  476. });
  477. return
  478. }
  479. if (!this.form.hazardDescribe) {
  480. uni.showToast({
  481. title: '请输入隐患描述!',
  482. icon: "none",
  483. mask: true,
  484. duration: 2000
  485. });
  486. return
  487. }
  488. if (this.form.imgDtoList.length <= 0) {
  489. uni.showToast({
  490. title: '请选择现场照片!',
  491. icon: "none",
  492. mask: true,
  493. duration: 2000
  494. });
  495. return
  496. }
  497. const {
  498. data
  499. } = await securityAppCheckPhotoMyAdd(self.form);
  500. if (data.code == 200) {
  501. uni.showToast({
  502. title: '提交成功',
  503. icon: "none",
  504. mask: true,
  505. duration: 2000
  506. });
  507. let infoData = {
  508. photoId: data.data
  509. };
  510. uni.navigateTo({
  511. url: '/pages_safetyCheck/views/snapshotManage/snapshotDetail?infoData=' +
  512. encodeURIComponent(JSON.stringify(infoData))
  513. });
  514. }
  515. },
  516. }
  517. }
  518. </script>
  519. <style lang="stylus" scoped>
  520. .snapshotList {
  521. height: 100%;
  522. display flex;
  523. .tabTitle {
  524. width: 600rpx;
  525. height: 80rpx;
  526. display: flex;
  527. justify-content: center;
  528. margin: 20rpx 0 0 74rpx;
  529. >view:nth-of-type(1) {
  530. width: 300rpx;
  531. height: 80rpx;
  532. border-radius: 50rpx 0rpx 0rpx 50rpx;
  533. }
  534. >view:nth-of-type(2) {
  535. width: 300rpx;
  536. height: 80rpx;
  537. border-radius: 0rpx 50rpx 50rpx 0rpx;
  538. }
  539. .tab-A {
  540. font-size: 30rpx;
  541. color: #FFFFFF;
  542. line-height: 80rpx;
  543. text-align: center;
  544. background: #0183FA;
  545. }
  546. .tab-B {
  547. font-size: 30rpx;
  548. color: #333333;
  549. line-height: 80rpx;
  550. text-align: center;
  551. background: #FFFFFF;
  552. }
  553. }
  554. .tabTitleTow {
  555. width: 690rpx;
  556. height: 80rpx;
  557. display: flex;
  558. justify-content: center;
  559. margin: 20rpx 0 0 30rpx;
  560. >view:nth-of-type(1) {
  561. width: 230rpx;
  562. height: 80rpx;
  563. border-radius: 50rpx 0rpx 0rpx 50rpx;
  564. }
  565. >view:nth-of-type(2) {
  566. width: 230rpx;
  567. height: 80rpx;
  568. border-radius: 0rpx 0rpx 0rpx 0rpx;
  569. }
  570. >view:nth-of-type(3) {
  571. width: 230rpx;
  572. height: 80rpx;
  573. border-radius: 0rpx 50rpx 50rpx 0rpx;
  574. }
  575. .tab-C {
  576. font-size: 30rpx;
  577. color: #FFFFFF;
  578. line-height: 80rpx;
  579. text-align: center;
  580. background: #0183FA;
  581. }
  582. .tab-D {
  583. font-size: 30rpx;
  584. color: #333333;
  585. line-height: 80rpx;
  586. text-align: center;
  587. background: #FFFFFF;
  588. }
  589. }
  590. .list {
  591. width: 750rpx;
  592. min-height: 765rpx;
  593. margin: 20rpx 0 0 0;
  594. .list-li {
  595. height: 100rpx;
  596. display: flex;
  597. justify-content: space-between;
  598. border-bottom: 1rpx solid #E0E0E0;
  599. padding: 0 30rpx;
  600. box-sizing: border-box;
  601. background: #FFFFFF;
  602. >view:nth-of-type(1) {
  603. font-size: 30rpx;
  604. color: #333333;
  605. line-height: 100rpx;
  606. text-align: left;
  607. }
  608. >view:nth-of-type(2) {
  609. font-size: 28rpx;
  610. color: #666666;
  611. line-height: 100rpx;
  612. text-align: left;
  613. display: flex;
  614. justify-content: flex-start;
  615. align-items: center;
  616. >img {
  617. width: 30rpx;
  618. height: 30rpx;
  619. margin-left: 16rpx;
  620. }
  621. }
  622. .project_r {
  623. width: 510rpx;
  624. min-height: 80rpx;
  625. display: flex;
  626. justify-content: flex-end;
  627. align-items: center;
  628. padding-left: 20rpx;
  629. box-sizing: border-box;
  630. color: #666;
  631. }
  632. }
  633. .srearch {
  634. display: flex;
  635. justify-content: space-between;
  636. align-items: center;
  637. .srearch-l {
  638. font-size: 30rpx;
  639. color: #333333;
  640. line-height: 100rpx;
  641. text-align: left;
  642. }
  643. .srearch-r {
  644. width: 30rpx;
  645. height: 30rpx;
  646. margin-right: 0rpx;
  647. }
  648. }
  649. .describe {
  650. width: 750rpx;
  651. background: #fff;
  652. overflow: hidden;
  653. .describe-n {
  654. width: 690rpx;
  655. min-height: 180rpx;
  656. border-radius: 10rpx 10rpx 10rpx 10rpx;
  657. border: 1rpx solid #E0E0E0;
  658. margin: 40rpx;
  659. padding: 22rpx;
  660. box-sizing: border-box;
  661. background: #F5F5F5;
  662. }
  663. }
  664. .check-for-img-max-box {
  665. padding: 20px 28rpx;
  666. box-sizing: border-box;
  667. background: #fff;
  668. border-bottom: 1rpx solid #E0E0E0;
  669. .left-title-p {
  670. width: 100%;
  671. text-align: left;
  672. font-size: 30rpx;
  673. font-family: PingFang SC-Medium, PingFang SC;
  674. font-weight: 400;
  675. color: #333333;
  676. line-height: 80rpx;
  677. }
  678. .right-img-box {
  679. .img-box {
  680. display inline-block;
  681. height: 150rpx;
  682. width: 150rpx;
  683. position relative;
  684. margin: 0 10rpx 20rpx 0;
  685. border-radius 10rpx;
  686. overflow hidden;
  687. .img-data {
  688. height: 150rpx;
  689. width: 150rpx;
  690. }
  691. .position-img {
  692. position absolute;
  693. right: 0;
  694. top: 0;
  695. width: 36rpx;
  696. height: 36rpx;
  697. }
  698. }
  699. .img-box:nth-of-type(4n+4) {
  700. margin-right: 0rpx;
  701. }
  702. .add-button {
  703. margin: 0 0rpx 20rpx 0;
  704. border-radius 10rpx;
  705. overflow hidden;
  706. display inline-block;
  707. height: 150rpx;
  708. width: 150rpx;
  709. }
  710. }
  711. }
  712. }
  713. /* 实验室弹框 */
  714. .popup-max-box {
  715. z-index: 10;
  716. height: 100%;
  717. width: 100%;
  718. position fixed;
  719. background rgba(0, 0, 0, 0.2);
  720. display flex;
  721. flex-direction column;
  722. .popup-null {
  723. flex: 1;
  724. }
  725. .popup-big-box {
  726. border-top-left-radius: 20rpx;
  727. border-top-right-radius: 20rpx;
  728. background #fff;
  729. .popup-input-box {
  730. padding: 30rpx 20rpx;
  731. display: flex;
  732. input {
  733. flex: 1;
  734. height: 70rpx;
  735. border: 1rpx solid #e0e0e0;
  736. border-radius: 10rpx;
  737. margin-right: 20rpx;
  738. padding: 0 20rpx;
  739. }
  740. view {
  741. background #0183FA;
  742. color: #fff;
  743. border-radius: 10rpx;
  744. width: 140rpx;
  745. line-height: 70rpx;
  746. text-align center;
  747. font-size: 28rpx;
  748. }
  749. }
  750. .popup-for-max-box {
  751. margin: 0 20rpx 30rpx;
  752. height: 600rpx;
  753. overflow-y scroll;
  754. .popup-for-null {
  755. line-height: 100rpx;
  756. text-align center;
  757. color: #999;
  758. }
  759. .popup-for-box {
  760. display: flex;
  761. padding: 10px 0;
  762. .name-p {
  763. flex: 1;
  764. line-height: 60rpx;
  765. }
  766. .button-p {
  767. background #0183FA;
  768. color: #fff;
  769. text-align center;
  770. width: 100rpx;
  771. line-height: 60rpx;
  772. height: 60rpx;
  773. border-radius: 10rpx;
  774. }
  775. }
  776. }
  777. }
  778. }
  779. .subBtn {
  780. width: 750rpx;
  781. position: fixed;
  782. bottom: 30rpx;
  783. display: flex;
  784. justify-content: space-between;
  785. padding: 0 50rpx;
  786. box-sizing: border-box;
  787. z-index: 200;
  788. >img {
  789. width: 130rpx;
  790. height: 130rpx;
  791. }
  792. }
  793. /* 上报记录 */
  794. .escalation {
  795. .escalation-li {
  796. width: 690rpx;
  797. height: 162rpx;
  798. background: #FFFFFF;
  799. border-radius: 20rpx 20rpx 20rpx 20rpx;
  800. margin: 20rpx 30rpx;
  801. padding: 0 30rpx;
  802. box-sizing: border-box;
  803. .escalation-li-t {
  804. display: flex;
  805. justify-content: space-between;
  806. align-items: center;
  807. border-bottom: 1rpx solid #E0E0E0;
  808. >view:nth-of-type(1) {
  809. font-weight: 400;
  810. font-size: 30rpx;
  811. color: #333333;
  812. line-height: 80rpx;
  813. text-align: left;
  814. }
  815. >view:nth-of-type(2) {
  816. font-weight: 400;
  817. font-size: 28rpx;
  818. color: #0183FA;
  819. line-height: 80rpx;
  820. text-align: left;
  821. display: flex;
  822. justify-content: flex-start;
  823. align-items: center;
  824. >img {
  825. width: 24rpx;
  826. height: 24rpx;
  827. }
  828. }
  829. }
  830. .escalation-li-b {
  831. display: flex;
  832. justify-content: space-between;
  833. align-items: center;
  834. >view:nth-of-type(1) {
  835. font-weight: 400;
  836. font-size: 30rpx;
  837. color: #333333;
  838. line-height: 80rpx;
  839. text-align: left;
  840. }
  841. >view:nth-of-type(2) {
  842. font-weight: 400;
  843. font-size: 30rpx;
  844. color: #666666;
  845. line-height: 80rpx;
  846. text-align: left;
  847. }
  848. }
  849. }
  850. }
  851. /* 隐患整改 */
  852. .hidden {
  853. width: 690rpx;
  854. border-radius: 20rpx 20rpx 20rpx 20rpx;
  855. background: #FFFFFF;
  856. padding: 0 30rpx;
  857. box-sizing: border-box;
  858. margin: 20rpx 30rpx;
  859. .hidden-li {
  860. height: 80rpx;
  861. border-bottom: 1rpx solid #E0E0E0;
  862. display: flex;
  863. justify-content: flex-start;
  864. align-items: center;
  865. .hidden-li-l {
  866. width: 34rpx;
  867. height: 34rpx;
  868. }
  869. .hidden-li-c {
  870. font-size: 28rpx;
  871. color: #333333;
  872. line-height: 30rpx;
  873. text-align: left;
  874. flex: 1;
  875. overflow: hidden;
  876. text-overflow: ellipsis;
  877. white-space: nowrap;
  878. margin: 0 84rpx 0 12rpx;
  879. }
  880. .hidden-li-r {
  881. font-size: 28rpx;
  882. color: #0183FA;
  883. line-height: 80rpx;
  884. text-align: left;
  885. display: flex;
  886. justify-content: flex-start;
  887. align-items: center;
  888. >img {
  889. width: 24rpx;
  890. height: 24rpx;
  891. }
  892. }
  893. }
  894. .hidden-li:last-of-type {
  895. border: none;
  896. }
  897. }
  898. #color-A {
  899. color: #0183FA;
  900. }
  901. #color-B {
  902. color: #16B531;
  903. }
  904. #color-C {
  905. color: #FF8C00;
  906. }
  907. .get-data-null-p {
  908. text-align: center;
  909. height: 100rpx;
  910. line-height: 100rpx;
  911. color: #999;
  912. padding-bottom: 200rpx;
  913. }
  914. }
  915. </style>