snapshotList.vue 22 KB

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