snapshotList.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986
  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 {} 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. saoCode() {
  422. let self = this;
  423. uni.scanCode({
  424. onlyFromCamera: true,
  425. success: function(res) {
  426. console.log(res)
  427. let list = res.result.split("?")[1].split("&");
  428. let codeData = {};
  429. list.forEach((item) => {
  430. codeData[item.split("=")[0]] = item.split("=")[1];
  431. })
  432. console.log('二维码', codeData)
  433. if (codeData.code) {
  434. self.$set(self.form, "subId", codeData.subId)
  435. self.$set(self.form, "laboratoryStatus", 3)// 标识是从那个页面进入的实验室搜索页面
  436. uni.navigateTo({
  437. url: '/pages_safetyCheck/views/snapshotManage/laboratorySearch?form=' + encodeURIComponent(
  438. JSON.stringify(self.form))
  439. });
  440. } else {
  441. uni.showToast({
  442. title: '请扫描正确的二维码',
  443. icon: "none",
  444. mask: true,
  445. duration: 2000
  446. });
  447. }
  448. }
  449. });
  450. },
  451. //上报
  452. async submitForm() {
  453. let self = this;
  454. if (!this.form.subId) {
  455. uni.showToast({
  456. title: '请选择实验室!',
  457. icon: "none",
  458. mask: true,
  459. duration: 2000
  460. });
  461. return
  462. }
  463. if (!this.form.hazardDescribe) {
  464. uni.showToast({
  465. title: '请输入隐患描述!',
  466. icon: "none",
  467. mask: true,
  468. duration: 2000
  469. });
  470. return
  471. }
  472. if (this.form.imgDtoList.length <= 0) {
  473. uni.showToast({
  474. title: '请选择现场照片!',
  475. icon: "none",
  476. mask: true,
  477. duration: 2000
  478. });
  479. return
  480. }
  481. const {
  482. data
  483. } = await securityAppCheckPhotoMyAdd(self.form);
  484. if (data.code == 200) {
  485. uni.showToast({
  486. title: '提交成功',
  487. icon: "none",
  488. mask: true,
  489. duration: 2000
  490. });
  491. let infoData = {
  492. photoId: data.data
  493. };
  494. uni.navigateTo({
  495. url: '/pages_safetyCheck/views/snapshotManage/snapshotDetail?infoData=' +
  496. encodeURIComponent(JSON.stringify(infoData))
  497. });
  498. }
  499. },
  500. }
  501. }
  502. </script>
  503. <style lang="stylus" scoped>
  504. .snapshotList {
  505. height: 100%;
  506. display flex;
  507. .tabTitle {
  508. width: 600rpx;
  509. height: 80rpx;
  510. display: flex;
  511. justify-content: center;
  512. margin: 20rpx 0 0 74rpx;
  513. >view:nth-of-type(1) {
  514. width: 300rpx;
  515. height: 80rpx;
  516. border-radius: 50rpx 0rpx 0rpx 50rpx;
  517. }
  518. >view:nth-of-type(2) {
  519. width: 300rpx;
  520. height: 80rpx;
  521. border-radius: 0rpx 50rpx 50rpx 0rpx;
  522. }
  523. .tab-A {
  524. font-size: 30rpx;
  525. color: #FFFFFF;
  526. line-height: 80rpx;
  527. text-align: center;
  528. background: #0183FA;
  529. }
  530. .tab-B {
  531. font-size: 30rpx;
  532. color: #333333;
  533. line-height: 80rpx;
  534. text-align: center;
  535. background: #FFFFFF;
  536. }
  537. }
  538. .tabTitleTow {
  539. width: 690rpx;
  540. height: 80rpx;
  541. display: flex;
  542. justify-content: center;
  543. margin: 20rpx 0 0 30rpx;
  544. >view:nth-of-type(1) {
  545. width: 230rpx;
  546. height: 80rpx;
  547. border-radius: 50rpx 0rpx 0rpx 50rpx;
  548. }
  549. >view:nth-of-type(2) {
  550. width: 230rpx;
  551. height: 80rpx;
  552. border-radius: 0rpx 0rpx 0rpx 0rpx;
  553. }
  554. >view:nth-of-type(3) {
  555. width: 230rpx;
  556. height: 80rpx;
  557. border-radius: 0rpx 50rpx 50rpx 0rpx;
  558. }
  559. .tab-C {
  560. font-size: 30rpx;
  561. color: #FFFFFF;
  562. line-height: 80rpx;
  563. text-align: center;
  564. background: #0183FA;
  565. }
  566. .tab-D {
  567. font-size: 30rpx;
  568. color: #333333;
  569. line-height: 80rpx;
  570. text-align: center;
  571. background: #FFFFFF;
  572. }
  573. }
  574. .list {
  575. width: 750rpx;
  576. min-height: 765rpx;
  577. margin: 20rpx 0 0 0;
  578. .list-li {
  579. height: 100rpx;
  580. display: flex;
  581. justify-content: space-between;
  582. border-bottom: 1rpx solid #E0E0E0;
  583. padding: 0 30rpx;
  584. box-sizing: border-box;
  585. background: #FFFFFF;
  586. >view:nth-of-type(1) {
  587. font-size: 30rpx;
  588. color: #333333;
  589. line-height: 100rpx;
  590. text-align: left;
  591. }
  592. >view:nth-of-type(2) {
  593. font-size: 28rpx;
  594. color: #666666;
  595. line-height: 100rpx;
  596. text-align: left;
  597. display: flex;
  598. justify-content: flex-start;
  599. align-items: center;
  600. >img {
  601. width: 30rpx;
  602. height: 30rpx;
  603. margin-left: 16rpx;
  604. }
  605. }
  606. .project_r {
  607. width: 510rpx;
  608. min-height: 80rpx;
  609. display: flex;
  610. justify-content: flex-end;
  611. align-items: center;
  612. padding-left: 20rpx;
  613. box-sizing: border-box;
  614. color: #666;
  615. }
  616. }
  617. .srearch {
  618. display: flex;
  619. justify-content: space-between;
  620. align-items: center;
  621. .srearch-l {
  622. font-size: 30rpx;
  623. color: #333333;
  624. line-height: 100rpx;
  625. text-align: left;
  626. }
  627. .srearch-r {
  628. width: 30rpx;
  629. height: 30rpx;
  630. margin-right: 0rpx;
  631. }
  632. }
  633. .describe {
  634. width: 750rpx;
  635. background: #fff;
  636. overflow: hidden;
  637. .describe-n {
  638. width: 690rpx;
  639. min-height: 180rpx;
  640. border-radius: 10rpx 10rpx 10rpx 10rpx;
  641. border: 1rpx solid #E0E0E0;
  642. margin: 40rpx;
  643. padding: 22rpx;
  644. box-sizing: border-box;
  645. background: #F5F5F5;
  646. }
  647. }
  648. .check-for-img-max-box {
  649. padding: 20px 28rpx;
  650. box-sizing: border-box;
  651. background: #fff;
  652. border-bottom: 1rpx solid #E0E0E0;
  653. .left-title-p {
  654. width: 100%;
  655. text-align: left;
  656. font-size: 30rpx;
  657. font-family: PingFang SC-Medium, PingFang SC;
  658. font-weight: 400;
  659. color: #333333;
  660. line-height: 80rpx;
  661. }
  662. .right-img-box {
  663. .img-box {
  664. display inline-block;
  665. height: 150rpx;
  666. width: 150rpx;
  667. position relative;
  668. margin: 0 10rpx 20rpx 0;
  669. border-radius 10rpx;
  670. overflow hidden;
  671. .img-data {
  672. height: 150rpx;
  673. width: 150rpx;
  674. }
  675. .position-img {
  676. position absolute;
  677. right: 0;
  678. top: 0;
  679. width: 36rpx;
  680. height: 36rpx;
  681. }
  682. }
  683. .img-box:nth-of-type(4n+4) {
  684. margin-right: 0rpx;
  685. }
  686. .add-button {
  687. margin: 0 0rpx 20rpx 0;
  688. border-radius 10rpx;
  689. overflow hidden;
  690. display inline-block;
  691. height: 150rpx;
  692. width: 150rpx;
  693. }
  694. }
  695. }
  696. }
  697. /* 实验室弹框 */
  698. .popup-max-box {
  699. z-index: 10;
  700. height: 100%;
  701. width: 100%;
  702. position fixed;
  703. background rgba(0, 0, 0, 0.2);
  704. display flex;
  705. flex-direction column;
  706. .popup-null {
  707. flex: 1;
  708. }
  709. .popup-big-box {
  710. border-top-left-radius: 20rpx;
  711. border-top-right-radius: 20rpx;
  712. background #fff;
  713. .popup-input-box {
  714. padding: 30rpx 20rpx;
  715. display: flex;
  716. input {
  717. flex: 1;
  718. height: 70rpx;
  719. border: 1rpx solid #e0e0e0;
  720. border-radius: 10rpx;
  721. margin-right: 20rpx;
  722. padding: 0 20rpx;
  723. }
  724. view {
  725. background #0183FA;
  726. color: #fff;
  727. border-radius: 10rpx;
  728. width: 140rpx;
  729. line-height: 70rpx;
  730. text-align center;
  731. font-size: 28rpx;
  732. }
  733. }
  734. .popup-for-max-box {
  735. margin: 0 20rpx 30rpx;
  736. height: 600rpx;
  737. overflow-y scroll;
  738. .popup-for-null {
  739. line-height: 100rpx;
  740. text-align center;
  741. color: #999;
  742. }
  743. .popup-for-box {
  744. display: flex;
  745. padding: 10px 0;
  746. .name-p {
  747. flex: 1;
  748. line-height: 60rpx;
  749. }
  750. .button-p {
  751. background #0183FA;
  752. color: #fff;
  753. text-align center;
  754. width: 100rpx;
  755. line-height: 60rpx;
  756. height: 60rpx;
  757. border-radius: 10rpx;
  758. }
  759. }
  760. }
  761. }
  762. }
  763. .subBtn {
  764. width: 750rpx;
  765. position: fixed;
  766. bottom: 30rpx;
  767. display: flex;
  768. justify-content: space-between;
  769. padding: 0 50rpx;
  770. box-sizing: border-box;
  771. z-index: 200;
  772. >img {
  773. width: 130rpx;
  774. height: 130rpx;
  775. }
  776. }
  777. /* 上报记录 */
  778. .escalation {
  779. .escalation-li {
  780. width: 690rpx;
  781. height: 162rpx;
  782. background: #FFFFFF;
  783. border-radius: 20rpx 20rpx 20rpx 20rpx;
  784. margin: 20rpx 30rpx;
  785. padding: 0 30rpx;
  786. box-sizing: border-box;
  787. .escalation-li-t {
  788. display: flex;
  789. justify-content: space-between;
  790. align-items: center;
  791. border-bottom: 1rpx solid #E0E0E0;
  792. >view:nth-of-type(1) {
  793. font-weight: 400;
  794. font-size: 30rpx;
  795. color: #333333;
  796. line-height: 80rpx;
  797. text-align: left;
  798. }
  799. >view:nth-of-type(2) {
  800. font-weight: 400;
  801. font-size: 28rpx;
  802. color: #0183FA;
  803. line-height: 80rpx;
  804. text-align: left;
  805. display: flex;
  806. justify-content: flex-start;
  807. align-items: center;
  808. >img {
  809. width: 24rpx;
  810. height: 24rpx;
  811. }
  812. }
  813. }
  814. .escalation-li-b {
  815. display: flex;
  816. justify-content: space-between;
  817. align-items: center;
  818. >view:nth-of-type(1) {
  819. font-weight: 400;
  820. font-size: 30rpx;
  821. color: #333333;
  822. line-height: 80rpx;
  823. text-align: left;
  824. }
  825. >view:nth-of-type(2) {
  826. font-weight: 400;
  827. font-size: 30rpx;
  828. color: #666666;
  829. line-height: 80rpx;
  830. text-align: left;
  831. }
  832. }
  833. }
  834. }
  835. /* 隐患整改 */
  836. .hidden {
  837. width: 690rpx;
  838. border-radius: 20rpx 20rpx 20rpx 20rpx;
  839. background: #FFFFFF;
  840. padding: 0 30rpx;
  841. box-sizing: border-box;
  842. margin: 20rpx 30rpx;
  843. .hidden-li {
  844. height: 80rpx;
  845. border-bottom: 1rpx solid #E0E0E0;
  846. display: flex;
  847. justify-content: flex-start;
  848. align-items: center;
  849. .hidden-li-l {
  850. width: 34rpx;
  851. height: 34rpx;
  852. }
  853. .hidden-li-c {
  854. font-size: 28rpx;
  855. color: #333333;
  856. line-height: 30rpx;
  857. text-align: left;
  858. flex: 1;
  859. overflow: hidden;
  860. text-overflow: ellipsis;
  861. white-space: nowrap;
  862. margin: 0 84rpx 0 12rpx;
  863. }
  864. .hidden-li-r {
  865. font-size: 28rpx;
  866. color: #0183FA;
  867. line-height: 80rpx;
  868. text-align: left;
  869. display: flex;
  870. justify-content: flex-start;
  871. align-items: center;
  872. >img {
  873. width: 24rpx;
  874. height: 24rpx;
  875. }
  876. }
  877. }
  878. .hidden-li:last-of-type {
  879. border: none;
  880. }
  881. }
  882. #color-A {
  883. color: #0183FA;
  884. }
  885. #color-B {
  886. color: #16B531;
  887. }
  888. #color-C {
  889. color: #FF8C00;
  890. }
  891. .get-data-null-p {
  892. text-align: center;
  893. height: 100rpx;
  894. line-height: 100rpx;
  895. color: #999;
  896. padding-bottom: 200rpx;
  897. }
  898. }
  899. </style>