snapshotList.vue 22 KB

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