snapshotList.vue 22 KB

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