snapshotList.vue 23 KB

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