snapshotList.vue 22 KB

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