safetyExamineWorkbench.vue 50 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886
  1. <!-- 安全检查-工作台 -->
  2. <template>
  3. <view class="examine">
  4. <scroll-view scroll-y @scrolltolower="scrollGet" class="info-max-box">
  5. <view>
  6. <view class="statistics" v-if="pageType==1 || pageType==2">
  7. <view class="statistics_li" v-for="(item,index) in statisticsList" :key="index">
  8. <text>{{item.name}}</text>
  9. <text>{{item.value}}</text>
  10. </view>
  11. </view>
  12. <viwe class="inspect_btn" v-if="pageType==1 || pageType==2">
  13. <view class="inspect_btn_li" @click="handleClick('','patrolPlan')">
  14. <img src="@/images/Version3.3.3/icon_xyxc_xyxc.png"/>
  15. <text>校院巡查</text>
  16. </view>
  17. <text class="line"></text>
  18. <view class="inspect_btn_li" @click="handleClick('','selfPlan')">
  19. <img src="@/images/Version3.3.3/icon_xyxc_syszc.png"/>
  20. <text>实验室自查</text>
  21. </view>
  22. <text class="line"></text>
  23. <view class="inspect_btn_li" @click="handleClick('','dangerPlan')">
  24. <img src="@/images/Version3.3.3/icon_xyxc_aqyh.png"/>
  25. <text>安全隐患</text>
  26. </view>
  27. <text class="line"></text>
  28. <view class="inspect_btn_li" @click="handleClick('','snapshot')">
  29. <img src="@/images/Version3.3.3/icon_aqjc_ssp.png"/>
  30. <text>随手拍</text>
  31. </view>
  32. </viwe>
  33. <!--管理员------------- -->
  34. <view class="tabTitle" v-if="pageType==1">
  35. <view class="tabTitle_li" @tap="tabClick(index)" :key="index" v-for="(item,index) in tabText">
  36. <view :class="{on:curTab==index}" class="tabTitle_text">{{item.name}}<text>{{item.num}}</text></view>
  37. <view :class="{on:curTab==index}" class="tabTitle_across"></view>
  38. </view>
  39. </view>
  40. <view class="list" v-if="pageType==1">
  41. <view class="list_li" v-for="(item,index) in dataList" :key="index" @click="handleClick(item,'edit')">
  42. <view class="list_li_t">
  43. <view class="list_li_t_l">
  44. <img v-if="item.checkRange==1" src="@/images/Version3.3.3/icon_xyxc_qx.png"/>
  45. <img v-if="item.checkRange==2" src="@/images/Version3.3.3/icon_xyxc_xy.png"/>
  46. <img v-if="item.checkRange==3" src="@/images/Version3.3.3/icon_xyxc_sys.png"/>
  47. <text></text>
  48. </view>
  49. <view class="list_li_t_c">{{item.title}}</view>
  50. <view class="list_li_t_r"></view>
  51. </view>
  52. <view class="list_li_m">
  53. <view class="list_li_m_t">计划周期:{{item.cycleStartTime}}至{{item.cycleEndTime}}</view>
  54. <view class="list_li_m_b">
  55. <text class="blue_color" v-if="item.checkStatus==1">未开始</text>
  56. <text class="red_color" v-if="item.checkStatus==2">进行中</text>
  57. <text>{{item.checkType==1?'校院巡查':'实验室自查'}}</text>
  58. </view>
  59. </view>
  60. <view class="list_li_b">
  61. <img src="@/images/Version3.3.3/icon_djcsys.png"/>
  62. <text v-if="item.checkStatus==1">待检查实验室:</text>
  63. <text v-if="item.checkStatus==1">{{item.subjectNum}}间</text>
  64. <text v-if="item.checkStatus==2">检查进度:</text>
  65. <text v-if="item.checkStatus==2">{{item.checkSchedule}}间</text>
  66. </view>
  67. </view>
  68. </view>
  69. <!--检查者------------- -->
  70. <view class="tabTitle_tow" v-if="pageType==2">
  71. <view class="tabTitle_tow_li" @tap="tabClickTow(index)" :key="index" v-for="(item,index) in tabTextTow">
  72. <view :class="{on:curTabTow==index}" class="tabTitle_tow_text">{{item.name}}<text>{{item.num}}</text></view>
  73. <view :class="{on:curTabTow==index}" class="tabTitle_tow_across"></view>
  74. </view>
  75. </view>
  76. <view class="list_tow" v-if="pageType==2">
  77. <view class="list_tow_li" v-for="(item,index) in dataList2" :key="index">
  78. <view class="list_tow_li_t">
  79. <view class="list_tow_li_t_l">
  80. <img v-if="item.checkRange==1" src="@/images/Version3.3.3/icon_xyxc_qx.png"/>
  81. <img v-if="item.checkRange==2" src="@/images/Version3.3.3/icon_xyxc_xy.png"/>
  82. <img v-if="item.checkRange==3" src="@/images/Version3.3.3/icon_xyxc_sys.png"/>
  83. <text></text>
  84. </view>
  85. <view class="list_tow_li_t_c" v-if="curTabTow==0 || curTabTow==1">{{item.subjectName}}-{{item.roomNumber}}</view>
  86. <view class="list_tow_li_t_c" v-if="curTabTow==2 && item.rectifyStatus==3">{{item.subRoom}}</view>
  87. <view class="list_tow_li_t_c2" v-if="(curTabTow==0 || curTabTow==1) && item.isOverdue==1">已逾期</view>
  88. <view class="list_tow_li_t_c2" v-if="curTabTow==2 && item.overdueStatus==3">已逾期</view>
  89. <view class="list_tow_li_t_r"></view>
  90. </view>
  91. <view class="list_tow_li_m">
  92. <view class="list_tow_li_m_t">{{item.title}}</view>
  93. <view class="list_tow_li_m_b">
  94. <text class="blue_color" v-if="item.manageStatus==0">待检查</text>
  95. <text class="red_color" v-if="item.manageStatus==1">检查中</text>
  96. <text class="green_color" v-if="item.manageStatus==2">已检查</text>
  97. <text class="orange_color" v-if="curTabTow==2 && item.rectifyStatus==3">待审核</text>
  98. <text v-if="item.manageStatus==0 || item.manageStatus==1 || item.manageStatus==2">{{item.checkType==1?'校院巡查':'实验室自查'}}</text>
  99. <text v-if="curTabTow==2 && item.rectifyStatus==3">{{item.hazardType==1?'校院巡查':'实验室自查'}}</text>
  100. <text>{{item.collegeName}}</text>
  101. </view>
  102. </view>
  103. <!-- 开始检查 -->
  104. <view v-if="curTabTow==2 && item.rectifyStatus==3" class="list_tow_li_b" @click="handleTowClick(item,'check')">{{item.applyGentle?'复核':'详情'}}</view>
  105. <view v-if="item.buttonHide && item.isSelfData==1">
  106. <view v-if="(curTabTow==0 || curTabTow==1) && item.manageStatus==0 && item.notStarted" class="list_tow_li_b" @click="handleTowClick(item,'add')">开始检查</view>
  107. <view v-if="(curTabTow==0 || curTabTow==1) &&item.manageStatus==1 && item.notStarted" class="list_tow_li_b" @click="handleTowClick(item,'edit')">编辑</view>
  108. <view v-if="(curTabTow==0 || curTabTow==1) &&!item.notStarted" class="list_tow_li_b_tow"><img src="@/images/Version3.3.3/icon_xyxcgl_jhwks.png"/>计划未开始</view>
  109. <view v-if="(curTabTow==0 || curTabTow==1) &&item.manageStatus==2 && item.notStarted" class="list_tow_li_b_three">
  110. <img src="@/images/Version3.3.3/icon_djcsys.png"/>
  111. <text>整改进度:</text>
  112. <text>{{item.rectifySchedule}}</text>
  113. <text class="report">整改报告</text>
  114. </view>
  115. </view>
  116. </view>
  117. </view>
  118. <!-- 整改人----------- -->
  119. <view class="statistics_three" v-if="pageType==3">
  120. <view class="statistics_three_li" v-for="(item,index) in statisticsListThree" :key="index">
  121. <text>{{item.name}}</text>
  122. <text>{{item.value}}</text>
  123. </view>
  124. </view>
  125. <viwe class="inspect_btn_three" v-if="pageType==3">
  126. <view class="inspect_btn_three_li" @click="handleClick('','schoolDanger')">
  127. <img src="@/images/Version3.3.3/icon_xyxc_xyxc.png"/>
  128. <text>校院巡查隐患</text>
  129. </view>
  130. <text class="line"></text>
  131. <view class="inspect_btn_three_li" @click="handleClick('','labDanger')">
  132. <img src="@/images/Version3.3.3/icon_xyxc_syszc.png"/>
  133. <text>实验室自查隐患</text>
  134. </view>
  135. <text class="line"></text>
  136. <view class="inspect_btn_three_li" @click="handleClick('','snapshot')">
  137. <img src="@/images/Version3.3.3/icon_aqjc_ssp.png"/>
  138. <text>随手拍</text>
  139. </view>
  140. </viwe>
  141. <view class="tabTitle_three" v-if="pageType==3">
  142. <view class="tabTitle_three_li" @tap="tabClickThree(index)" :key="index" v-for="(item,index) in tabTextThree">
  143. <view :class="{on:curTabThree==index}" class="tabTitle_three_text">{{item.name}}<text>{{item.num}}</text></view>
  144. <view :class="{on:curTabThree==index}" class="tabTitle_three_across"></view>
  145. </view>
  146. </view>
  147. <view class="list_three" v-if="pageType==3">
  148. <view class="list_three_li" v-for="(item,index) in dataList3" :key="index" @click="handleThreeClick(item,'detail')">
  149. <view class="list_three_li_t">
  150. <view class="list_three_li_t_l">
  151. <img v-if="item.checkRange==1" src="@/images/Version3.3.3/icon_xyxc_qx.png"/>
  152. <img v-if="item.checkRange==2" src="@/images/Version3.3.3/icon_xyxc_xy.png"/>
  153. <img v-if="item.checkRange==3" src="@/images/Version3.3.3/icon_xyxc_sys.png"/>
  154. <text></text>
  155. </view>
  156. <!-- 隐患 -->
  157. <view class="list_three_li_t_c" v-if="curTabThree==0">{{item.subRoom}}</view>
  158. <!-- 随手拍 -->
  159. <view class="list_three_li_t_c" v-if="curTabThree==1">{{item.subName}}</view>
  160. <view class="list_three_li_t_c2" v-if="item.overdueStatus==1">已逾期</view>
  161. <view class="list_three_li_t_r"></view>
  162. </view>
  163. <view class="list_three_li_m">
  164. <!-- 隐患 -->
  165. <view class="list_three_li_m_t" v-if="curTabThree==0">{{item.hazardDescribe}}</view>
  166. <!-- 随手拍 -->
  167. <view class="list_three_li_m_t" v-if="curTabThree==1">{{item.hazardDescribe}}</view>
  168. <view class="list_three_li_m_b">
  169. <!-- 隐患 -->
  170. <text class="green_color" v-if="curTabThree==0 && item.rectifyStatus==1">已完成</text>
  171. <text class="blue_color" v-if="curTabThree==0 && item.rectifyStatus==2">待整改</text>
  172. <text class="orange_color" v-if="curTabThree==0 && curTabThree==0 && item.rectifyStatus==3">待复核</text>
  173. <text class="gray_color" v-if="curTabThree==0 && item.rectifyStatus==4">暂无法整改</text>
  174. <text class="type" v-if="curTabThree==0">{{item.hazardType==1?'校院巡查':'实验室自查'}}</text>
  175. <text class="college" v-if="curTabThree==0">{{item.collegeName}}</text>
  176. <!-- 随手拍 -->
  177. <text class="blue_color" v-if="curTabThree==1 && item.rectifyStatus==0">待整改</text>
  178. <text class="green_color" v-if="curTabThree==1 && item.rectifyStatus==1">已整改</text>
  179. <text class="orange_color" v-if="curTabThree==1 && item.rectifyStatus==2">暂无法整改</text>
  180. <text class="college" v-if="curTabThree==1">{{item.deptName}}</text>
  181. </view>
  182. </view>
  183. <!-- 隐患 -->
  184. <view class="list_three_li_b" v-if="curTabThree==0">
  185. <text >整改期限:{{item.rectifyDeadline}}</text>
  186. </view>
  187. <!-- 随手拍 -->
  188. <view class="list_three_li_b2" v-if="curTabThree==1">
  189. <view class="list_three_li_b_l">
  190. <img src="@/images/Version3.3.3/icon_ssp_ry.png"/>
  191. <text>上报人:{{item.createName}}</text>
  192. </view>
  193. <view class="list_three_li_b_r">{{item.timeFlag}}</view>
  194. </view>
  195. </view>
  196. </view>
  197. </view>
  198. </scroll-view>
  199. <!-- <view class="bottom_btn" v-if="pageType==1" @click="handleClick('','start')">开展检查</view> -->
  200. <img class="scan_btn" @click.stop="saoCode" src="@/images/Version3.3.3/icon_xyxc_sm.png"/>
  201. <!-- 选择学院-->
  202. <view class="shade" v-if="dialogVisible">
  203. <view class="null-box" @click="dialogClose()"></view>
  204. <view class="shade_n">
  205. <view class="shade_n_title"><text>选择该实验室隐患项</text><text @click="hiddenConfirm">确定</text></view>
  206. <view class="shade_n_b">
  207. <view class="shade_n_b_li" v-for="(item,index) in hiddenList" :key="index" @click="hiddenSelete(index)">
  208. <text :class="item.type?'color_B':'color_A'">{{item.hazardDescribe}}</text>
  209. <img v-if="item.type" src="@/images/Version3.3.3/icon_xzwt_xz.png">
  210. </view>
  211. </view>
  212. </view>
  213. </view>
  214. </view>
  215. </template>
  216. <script>
  217. import { config } from '@/api/request/config.js'
  218. import {checkPlanList,getCheckStatusCount,getManageStatusCount,dataStatistics,checkManageList,checkHazardAppList,checkClapList,getCheckPlanBySubId} from '@/api/index.js'
  219. export default {
  220. name: "rectifyList",
  221. data() {
  222. return {
  223. pageType:uni.getStorageSync('gentleIdentifier'),//人员类型 3整改人 2检查人 1管理员
  224. //列表请求参数
  225. getData:{
  226. pageNum:1,
  227. pageSize:20,
  228. checkStatus:1,
  229. },
  230. getData2:{
  231. pageNum:1,
  232. pageSize:20,
  233. isSelf: 0,//是否本人查询
  234. checkType:0,
  235. manageStatus:0,//管理状态(-1全部 0待检查,1检查中,2已检查)
  236. rectifyStatus:'',
  237. },
  238. getData3:{
  239. pageNum:1,
  240. pageSize:20,
  241. hazardType:'',//1是院校巡查,2是实验室自查
  242. rectifyStatus:'',//1已完成 2待整改 3待复核 4 暂无法整改
  243. },
  244. userType:1,//人员类型 3整改人 2检查人 1管理员
  245. statisticsList:[
  246. {name:'本月已检查',value:'0'},
  247. {name:'本月检查隐患',value:'0'},
  248. {name:'本月已整改',value:'0'},
  249. {name:'本月检查合格率',value:'0%'},
  250. {name:'本月已检查',value:'0'},
  251. {name:'本月复核通过率',value:'0%'},
  252. ],
  253. statisticsListThree:[
  254. {name:'本月已检查',value:'0'},
  255. {name:'本月已整改',value:'0%'},
  256. {name:'本月复核通过率',value:'0%'},
  257. ],
  258. tabText:[{name:'未开始',num:0,},{name:'进行中',num:0}],
  259. curTab:0,
  260. tabTextTow:[{name:'待检查',num:0,},{name:'检查中',num:0,},{name:'待复核',num:0,}],
  261. curTabTow:0,
  262. tabTextThree:[{name:'隐患待整改',num:0,},{name:'随手拍整改',num:0,}],
  263. curTabThree:0,
  264. total:0,
  265. dataList:[],//管理员
  266. total2:0,
  267. dataList2:[],//检查者
  268. total3:0,
  269. dataList3:[],//整改者
  270. currentDate:'',
  271. dangerAllNum:0,
  272. snapshotAllNum:0,
  273. isSubPlan:false,//判断管理员和检查者扫码的实验室是否有检查计划
  274. dialogVisible:false,
  275. hiddenList:[],
  276. myApplyGentle:'',//自查身份 校院巡查管理 里操作按钮隐藏
  277. applyGentle:'',//检查组身份 实验室自查管理 里操作按钮隐藏
  278. buttonHide:false,//判断按钮显示隐藏
  279. }
  280. },
  281. onLoad() {
  282. },
  283. onShow() {
  284. },
  285. beforeCreate() {
  286. },
  287. mounted(){
  288. this.myApplyGentle=uni.getStorageSync('gentleIdentifierData').myApplyGentle
  289. this.applyGentle=uni.getStorageSync('gentleIdentifierData').applyGentle
  290. //获取当前日期
  291. this.currentDate=this.getNowFormatDate()
  292. this.getCheckStatusCount();
  293. //this.getManageStatusCount();
  294. this.dataStatistics();
  295. this.checkClapListAllNum();//随手拍待整改总数
  296. if(this.pageType==1){//管理员
  297. this.getList();
  298. }else if(this.pageType==2){//检查者
  299. this.getList2();
  300. this.checkManageListAllNum();//检查者-待检查总数
  301. this.checkManageListAllNum2();//检查者-待整改总数
  302. this.checkHazardAppListAllNum();//检查者-待复核-总数
  303. }else if(this.pageType==3){//整改者
  304. this.checkHazardAppList();
  305. }
  306. },
  307. methods: {
  308. //滚动事件
  309. scrollGet(){
  310. let self=this;
  311. if(this.pageType==1){//管理员
  312. if(self.total/self.getData.pageSize<=self.getData.pageNum){
  313. console.log('没有更多数据!')
  314. }else{
  315. setTimeout(function(){
  316. self.getData.pageNum += 1;
  317. self.getList();
  318. },1000)
  319. }
  320. }else if(this.pageType==2){//检查者
  321. if(self.total2/self.getData2.pageSize<=self.getData2.pageNum){
  322. console.log('没有更多数据!')
  323. }else{
  324. setTimeout(function(){
  325. self.getData2.pageNum += 1;
  326. if(self.curTabTow==2){//待复核
  327. self.checkHazardAppList()
  328. }else {
  329. self.getList2();
  330. }
  331. },1000)
  332. }
  333. }else if(this.pageType==3){//整改者
  334. if(self.total3/self.getData3.pageSize<=self.getData3.pageNum){
  335. console.log('没有更多数据!')
  336. }else{
  337. setTimeout(function(){
  338. self.getData3.pageNum += 1;
  339. if(self.curTabThree==0){//隐患
  340. self.checkHazardAppList()
  341. }else {//随手拍
  342. self.checkClapList()
  343. }
  344. },1000)
  345. }
  346. }
  347. },
  348. //管理员
  349. tabClick(index) {
  350. this.curTab = index;
  351. this.getData.pageNum=1;
  352. this.dataList=[];
  353. if(index==0){//未开始
  354. this.getData.checkStatus=1
  355. this.getList()
  356. }else if(index==1){//进行中
  357. this.getData.checkStatus=2
  358. this.getList()
  359. }
  360. },
  361. tabClickTow(index) {
  362. this.curTabTow = index;
  363. this.getData2.pageNum=1;
  364. this.dataList2=[];
  365. if(index==0){//未开始
  366. this.getData2.manageStatus=0
  367. this.getList2()
  368. }else if(index==1){//进行中
  369. this.getData2.manageStatus=1
  370. this.getList2()
  371. }else if(index==2){//待复核
  372. this.getData2.rectifyStatus=3
  373. this.checkHazardAppList()
  374. }
  375. },
  376. tabClickThree(index) {//整改者
  377. this.curTabThree = index;
  378. this.getData3.pageNum=1;
  379. this.dataList3=[];
  380. if(index==0){//隐患待整改
  381. this.getData3.rectifyStatus=2
  382. this.checkHazardAppList()
  383. }else if(index==1){//随手拍待整改
  384. this.checkClapList();
  385. }
  386. },
  387. handleClick(row,doType){
  388. let self=this;
  389. if(self.pageType==1 && doType=='patrolPlan'){//校院巡查-计划
  390. uni.navigateTo({
  391. url: '/pages_safetyExamine/patrolPlan/patrolPlanList?pageType=1'
  392. });
  393. }else if(self.pageType==1 && doType=='selfPlan'){//实验室自查-计划
  394. uni.navigateTo({
  395. url: '/pages_safetyExamine/patrolPlan/patrolPlanList?pageType=2'
  396. });
  397. }else if(self.pageType==1 && doType=='dangerPlan'){//安全隐患-计划
  398. uni.navigateTo({
  399. url: '/pages_safetyExamine/dangerManage/dangerManage?pageType=1'
  400. });
  401. }else if(self.pageType==2 && doType=='patrolPlan'){//校院巡查-检查
  402. uni.navigateTo({
  403. url: '/pages_safetyExamine/examineManage/examineList?pageType=1'
  404. });
  405. }else if(self.pageType==2 && doType=='selfPlan'){//实验室自查-检查
  406. uni.navigateTo({
  407. url: '/pages_safetyExamine/examineManage/examineList?pageType=2'
  408. });
  409. }else if(self.pageType==2 && doType=='dangerPlan'){//安全隐患-检查
  410. uni.navigateTo({
  411. url: '/pages_safetyExamine/dangerManage/dangerManage?pageType=2'
  412. });
  413. }else if(self.pageType==3 && doType=='schoolDanger'){//校院巡查隐患
  414. uni.navigateTo({
  415. url: '/pages_safetyExamine/dangerManage/dangerList?pageType=1'
  416. });
  417. }else if(self.pageType==3 && doType=='labDanger'){//实验室自查隐患
  418. uni.navigateTo({
  419. url: '/pages_safetyExamine/dangerManage/dangerList?pageType=2'
  420. });
  421. }else if(doType=='edit'){//编辑
  422. uni.navigateTo({
  423. url: '/pages_safetyExamine/patrolPlan/patrolPlanEdit?pageType='+row.checkType+'&id='+row.id
  424. });
  425. }else if(doType=='snapshot'){//随手拍
  426. uni.navigateTo({
  427. url: '/pages_safetyExamine/snapshotManage/snapshotAdd'
  428. });
  429. }else if(doType=='start'){//开展检查
  430. uni.navigateTo({
  431. url: '/pages_safetyExamine/examineManage/examineAdd'
  432. });
  433. }
  434. },
  435. //检查者
  436. handleTowClick(row,doType){
  437. if(doType=='add'){//开始检查
  438. uni.navigateTo({
  439. url: '/pages_safetyExamine/examineManage/examineAdd?id='+row.id
  440. });
  441. }else if(doType=='edit'){//编辑
  442. uni.navigateTo({
  443. url: '/pages_safetyExamine/examineManage/examineAdd?id='+row.id
  444. });
  445. }else if(doType=='check'){//复核
  446. uni.navigateTo({
  447. url: '/pages_safetyExamine/dangerManage/dangerDetail?item='+encodeURIComponent(JSON.stringify(row))
  448. })
  449. }
  450. },
  451. //整改者
  452. handleThreeClick(row,doType){
  453. if(doType=='detail'){
  454. if(this.curTabThree==0){//隐患待整改详情
  455. uni.navigateTo({
  456. url: '/pages_safetyExamine/dangerManage/dangerDetail?item='+encodeURIComponent(JSON.stringify(row))
  457. })
  458. }else if(this.curTabThree==1){
  459. uni.navigateTo({
  460. url: '/pages_safetyExamine/snapshotManage/snapshotDetail?id='+row.id+'&rectifyStatus='+row.rectifyStatus
  461. })
  462. }
  463. }
  464. },
  465. /* 扫一扫*/
  466. saoCode(){
  467. let self = this;
  468. uni.scanCode({
  469. onlyFromCamera: true,
  470. success: function (res) {
  471. console.log(res)
  472. if(res.result.indexOf("code") != -1 && res.result.indexOf("-") != -1 && res.result.indexOf("&") != -1){
  473. let subId = "";
  474. let newList = res.result.split("?")[1].split("&")
  475. let list = newList[0].split("=")[1].split("-")
  476. subId = list[0];
  477. if(subId){
  478. uni.setStorageSync('saoCodeId',subId);
  479. if(self.pageType==1 || self.pageType==2){//管理员和检查者
  480. self.getCheckPlanBySubId(subId)
  481. }else if(self.pageType==3){//整改者
  482. let obj={
  483. pageNum:1,
  484. pageSize:100,
  485. subId:subId,
  486. }
  487. self.checkHazardAppList2(obj);
  488. }
  489. }else{
  490. uni.showToast({
  491. title: '请扫描正确的二维码',
  492. icon:"none",
  493. mask:true,
  494. duration: 2000
  495. });
  496. }
  497. }else{
  498. uni.showToast({
  499. title: '请扫描正确的二维码',
  500. icon:"none",
  501. mask:true,
  502. duration: 2000
  503. });
  504. }
  505. }
  506. });
  507. },
  508. //根据实验室id查询该实验室有关计划
  509. async getCheckPlanBySubId(subId){
  510. let _this = this;
  511. let id=subId;
  512. const {data} = await getCheckPlanBySubId({'subId':id});
  513. if(data.code == 200){
  514. if(data.data){
  515. uni.navigateTo({
  516. url: '/pages_safetyExamine/examineManage/examineAdd?subId='+id
  517. });
  518. }else{
  519. uni.redirectTo({
  520. url: '/pages_safetyExamine/inforSign'
  521. })
  522. }
  523. }
  524. },
  525. //根据实验室id查询隐患
  526. async checkHazardAppList2(obj){
  527. let self = this;
  528. this.hiddenList=[];
  529. const {data} = await checkHazardAppList(obj);
  530. if(data.code==200){
  531. if(data.data.records.length>0){
  532. for(let i=0;i<data.data.records.length;i++){
  533. data.data.records[i].type=false;
  534. if(data.data.records[i].rectifyStatus==2 || data.data.records[i].rectifyStatus==3){
  535. this.hiddenList.push(data.data.records[i])
  536. }
  537. }
  538. this.dialogVisible=true;
  539. }else{
  540. uni.redirectTo({
  541. url: '/pages_safetyExamine/inforSign'
  542. })
  543. }
  544. }
  545. },
  546. //选择学院弹窗关闭
  547. dialogClose(){
  548. this.dialogVisible=false;
  549. },
  550. //学院选择
  551. hiddenSelete(index){
  552. let _this=this;
  553. this.hiddenList[index].type = !this.hiddenList[index].type
  554. if (_this.hiddenList[index].type == true) {
  555. _this.hiddenList.forEach(function(item2) {
  556. if (item2.id == _this.hiddenList[index].id) {
  557. item2.type = true
  558. } else {
  559. item2.type = false
  560. }
  561. })
  562. }
  563. },
  564. hiddenConfirm(){
  565. let _this=this;
  566. _this.hiddenList.forEach(function(item){
  567. if(item.type==true){
  568. uni.redirectTo({
  569. url: '/pages_safetyExamine/dangerManage/dangerDetail?item='+encodeURIComponent(JSON.stringify(item))
  570. })
  571. }
  572. })
  573. },
  574. //数据统计
  575. async dataStatistics(){
  576. let self = this;
  577. const {data} = await dataStatistics();
  578. if(data.code==200){
  579. if(data.data.userType==1 || data.data.userType==2){//管理员和检查者
  580. this.statisticsList=[
  581. {name:'本月已检查',value:data.data.checkTotal},
  582. {name:'本月检查隐患',value:data.data.hazardTotal},
  583. {name:'本月已整改',value:data.data.rectifyTotal},
  584. {name:'本月检查合格率',value:data.data.qualifyRate},
  585. {name:'本月整改率',value:data.data. rectificationRate},
  586. {name:'本月复核通过率',value:data.data.passRate},
  587. ]
  588. }else if(data.data.userType==3){//整改者
  589. this.statisticsListThree=[
  590. {name:'本月已整改',value:data.data.rectifyTotal},
  591. {name:'本月整改率',value:data.data.rectificationRate},
  592. {name:'本月复核通过率',value:data.data.passRate},
  593. ]
  594. }
  595. }
  596. },
  597. //获取当前日期函数
  598. getNowFormatDate() {
  599. let date = new Date(),
  600. year = date.getFullYear(), //获取完整的年份(4位)
  601. month = date.getMonth() + 1, //获取当前月份(0-11,0代表1月)
  602. strDate = date.getDate() // 获取当前日(1-31)
  603. if (month < 10) month = `0${month}` // 如果月份是个位数,在前面补0
  604. if (strDate < 10) strDate = `0${strDate}` // 如果日是个位数,在前面补0
  605. return `${year}-${month}-${strDate}`
  606. },
  607. //是否可以开始检查
  608. compareTime(date1){
  609. if(!date1){
  610. return false
  611. } else {
  612. const oDate1 = new Date(date1);
  613. const oDate2 = new Date(this.currentDate)
  614. if(oDate1.getTime() <= oDate2.getTime()){
  615. return true; //可以开始
  616. } else {
  617. return false; //不能开始
  618. }
  619. }
  620. },
  621. //检查计划各检查状态数据数量
  622. async getCheckStatusCount(){
  623. let self = this;
  624. const {data} = await getCheckStatusCount();
  625. if(data.code==200){
  626. this.tabText[0].num=data.data.noStart;
  627. this.tabText[1].num=data.data.start;
  628. }
  629. },
  630. //检查各检查状态数据数量
  631. async getManageStatusCount(){
  632. let self = this;
  633. const {data} = await getManageStatusCount();
  634. if(data.code==200){
  635. this.tabTextTow[0].num=data.data.noCheck;
  636. this.tabTextTow[1].num=data.data.checking;
  637. this.tabTextTow[2].num=data.data.applyNum;
  638. }
  639. },
  640. //管理员
  641. async getList(){
  642. let self = this;
  643. const {data} = await checkPlanList(this.getData);
  644. if(data.code==200){
  645. this.dataList=[...this.dataList,...data.data.records]
  646. this.total=data.data.total;
  647. }
  648. },
  649. //检查者
  650. async getList2(){
  651. let self = this;
  652. const {data} = await checkManageList(this.getData2);
  653. if(data.code==200){
  654. //判断计划是否开始
  655. self.buttonHide=false;
  656. for(let i=0;i<data.data.records.length;i++){
  657. if(data.data.records[i].checkType==1){
  658. if(self.myApplyGentle && !self.applyGentle){
  659. data.data.records[i].buttonHide=false
  660. }if(!self.myApplyGentle && !self.applyGentle){
  661. data.data.records[i].buttonHide=false
  662. }else{
  663. data.data.records[i].buttonHide=true;
  664. }
  665. }else if(data.data.records[i].checkType==2){
  666. if(!self.myApplyGentle && self.applyGentle){
  667. data.data.records[i].buttonHide=false
  668. }if(!self.myApplyGentle && !self.applyGentle){
  669. data.data.records[i].buttonHide=false
  670. }else{
  671. data.data.records[i].buttonHide=true;
  672. }
  673. }
  674. data.data.records[i].notStarted=self.compareTime(data.data.records[i].cycleStartTime)
  675. }
  676. self.dataList2=[...self.dataList2,...data.data.records]
  677. self.total2=data.data.total;
  678. }
  679. },
  680. //待复核列表
  681. async checkHazardAppList(){
  682. let self = this;
  683. let obj={};
  684. if(this.pageType==2){//检查者
  685. obj={
  686. pageNum:this.getData2.pageNum,
  687. pageSize:this.getData2.pageSize,
  688. hazardType:'',
  689. rectifyStatus:'3',
  690. };
  691. }else if(this.pageType==3){//整改者
  692. obj={
  693. pageNum:this.getData3.pageNum,
  694. pageSize:this.getData3.pageSize,
  695. hazardType:'',
  696. rectifyStatus:'2',
  697. };
  698. }
  699. const {data} = await checkHazardAppList(obj);
  700. if(data.code==200){
  701. if(self.pageType==2){//检查者
  702. this.dataList2=[...this.dataList2,...data.data.records]
  703. this.total2=data.data.total;
  704. }else if(self.pageType==3){
  705. this.dataList3=[...this.dataList3,...data.data.records]
  706. this.total3=data.data.total;
  707. this.tabTextThree[0].num=data.data.total;
  708. }
  709. }
  710. },
  711. //随手拍待整改
  712. async checkClapList(){
  713. let self = this;
  714. let obj={
  715. pageNum:this.getData3.pageNum,
  716. pageSize:this.getData3.pageSize,
  717. rectifyStatus:0,
  718. };
  719. const {data} = await checkClapList(obj);
  720. if(data.code==200){
  721. this.dataList3=[...this.dataList3,...data.data.records]
  722. this.total3=data.data.total;
  723. }
  724. },
  725. //整改者-随手拍待整改总数
  726. async checkClapListAllNum(){
  727. let self = this;
  728. let obj={
  729. pageNum:this.getData3.pageNum,
  730. pageSize:this.getData3.pageSize,
  731. rectifyStatus:0,
  732. };
  733. const {data} = await checkClapList(obj);
  734. if(data.code==200){
  735. this.tabTextThree[1].num=data.data.total;
  736. }
  737. },
  738. //检查者 总数---------------------------------
  739. //待检查
  740. async checkManageListAllNum(){
  741. let self = this;
  742. let obj={
  743. pageNum:this.getData2.pageNum,
  744. pageSize:this.getData2.pageSize,
  745. isSelf: 0,//是否本人查询
  746. manageStatus:0,
  747. checkType:0,
  748. };
  749. const {data} = await checkManageList(obj);
  750. if(data.code==200){
  751. this.tabTextTow[0].num=data.data.total;
  752. }
  753. },
  754. //待检查
  755. async checkManageListAllNum2(){
  756. let self = this;
  757. let obj={
  758. pageNum:this.getData2.pageNum,
  759. pageSize:this.getData2.pageSize,
  760. isSelf: 0,//是否本人查询
  761. manageStatus:1,
  762. checkType:0,
  763. };
  764. const {data} = await checkManageList(obj);
  765. if(data.code==200){
  766. this.tabTextTow[1].num=data.data.total;
  767. }
  768. },
  769. //待复核
  770. async checkHazardAppListAllNum(){
  771. let self = this;
  772. let obj={
  773. pageNum:this.getData2.pageNum,
  774. pageSize:this.getData2.pageSize,
  775. rectifyStatus:3,
  776. hazardType:'',
  777. };
  778. const {data} = await checkHazardAppList(obj);
  779. if(data.code==200){
  780. this.tabTextTow[2].num=data.data.total;
  781. }
  782. },
  783. }
  784. }
  785. </script>
  786. <style lang="stylus" scoped>
  787. .examine{
  788. height:100%;
  789. display flex;
  790. .info-max-box{
  791. flex: 1;
  792. overflow: scroll;
  793. }
  794. .blue_color{
  795. color: #0183FA;
  796. border: 1rpx solid #0183FA;
  797. }
  798. .red_color{
  799. color: #FF4545;
  800. border: 1rpx solid #FF4545;
  801. }
  802. .green_color{
  803. color: #1FA50D;
  804. border: 1rpx solid #1FA50D;
  805. }
  806. .orange_color{
  807. color: #FA8E1B;
  808. border: 1rpx solid #FA8E1B;
  809. }
  810. .gray_color{
  811. color: #A2A2A2;
  812. border: 1rpx solid #A2A2A2;
  813. }
  814. .statistics{
  815. background: #fff;
  816. display: flex;
  817. justify-content: flex-start;
  818. flex-wrap: wrap;
  819. padding: 38rpx 26rpx;
  820. box-sizing: border-box;
  821. .statistics_li{
  822. width: 230rpx;
  823. border-right: 1rpx solid #D8D8D8;
  824. border-bottom: 1rpx solid #D8D8D8;
  825. >text{
  826. display: block;
  827. text-align: center;
  828. }
  829. >text:nth-of-type(1){
  830. font-size: 26rpx;
  831. font-family: PingFang SC-Medium, PingFang SC;
  832. font-weight: 400;
  833. color: #666666;
  834. line-height: 26rpx;
  835. margin-top: 24rpx;
  836. }
  837. >text:nth-of-type(2){
  838. font-size: 34rpx;
  839. font-family: PingFang SC-Heavy, PingFang SC;
  840. font-weight: 400;
  841. color: #1FA50D;
  842. line-height: 34rpx;
  843. margin-top: 28rpx;
  844. }
  845. }
  846. >view:nth-of-type(1){
  847. >text:nth-of-type(1){
  848. margin-top: 4rpx;
  849. }
  850. >text:nth-of-type(2){
  851. margin-bottom: 18rpx;
  852. color: #1FA50D;
  853. }
  854. }
  855. >view:nth-of-type(2){
  856. >text:nth-of-type(1){
  857. margin-top: 4rpx;
  858. }
  859. >text:nth-of-type(2){
  860. margin-bottom: 18rpx;
  861. color: #FA8201;
  862. }
  863. }
  864. >view:nth-of-type(3){
  865. border-right:none;
  866. >text:nth-of-type(1){
  867. margin-top: 4rpx;
  868. }
  869. >text:nth-of-type(2){
  870. margin-bottom: 18rpx;
  871. color: #0183FA;
  872. }
  873. }
  874. >view:nth-of-type(4){
  875. border-bottom:none;
  876. >text:nth-of-type(2){
  877. color: #1FA50D;
  878. }
  879. }
  880. >view:nth-of-type(5){
  881. border-bottom:none;
  882. >text:nth-of-type(2){
  883. color: #FA8201;
  884. }
  885. }
  886. >view:nth-of-type(6){
  887. border-right:none;border-bottom:none;
  888. >text:nth-of-type(2){
  889. color: #0183FA;
  890. }
  891. }
  892. }
  893. .inspect_btn{
  894. height: 150rpx;
  895. background: #fff;
  896. display: flex;
  897. justify-content: space-between;
  898. align-items: center;
  899. margin-top: 20rpx;
  900. padding: 0 30rpx;
  901. box-sizing: border-box;
  902. .inspect_btn_li{
  903. >img{
  904. width: 60rpx;
  905. height: 60rpx;
  906. margin:0 auto;
  907. }
  908. >text{
  909. font-size: 28rpx;
  910. font-family: PingFang SC-Medium, PingFang SC;
  911. font-weight: 400;
  912. color: #333333;
  913. line-height: 28rpx;
  914. margin-top: 14rpx;
  915. }
  916. }
  917. .line{
  918. display: inline-block;
  919. height: 60rpx;
  920. width: 1rpx;
  921. background: #E0E0E0;
  922. }
  923. }
  924. /* 切换按钮 */
  925. .tabTitle{
  926. width:100%;
  927. height: 100rpx;
  928. background: #fff;
  929. display flex;
  930. justify-content: center;
  931. align-items: center;
  932. margin-top: 20rpx;
  933. position: sticky;
  934. top: 0;
  935. z-index: 100;
  936. box-shadow: 0rpx 3rpx 8rpx 0rpx rgba(0,0,0,0.16);
  937. .tabTitle_li{
  938. position: relative;
  939. width:372rpx;
  940. text-align center;
  941. .tabTitle_text{
  942. display: inline-block;
  943. font-size: 30rpx;
  944. font-family: PingFang SC;
  945. font-weight: 500;
  946. color: #333333;
  947. line-height: 46rpx;
  948. position: relative;
  949. >text{
  950. position:absolute;
  951. min-width: 30rpx;
  952. min-height: 30rpx;
  953. border-radius:54%;
  954. background: #E80000;
  955. font-size: 18rpx;
  956. font-family: PingFang SC-Medium, PingFang SC;
  957. font-weight: 400;
  958. color: #FFFFFF;
  959. text-align: center;
  960. line-height: 30rpx;
  961. margin-left: 6rpx;
  962. padding:2rpx;
  963. box-sizing: border-box;
  964. }
  965. &.on{
  966. color:#0183FA;
  967. }
  968. }
  969. .tabTitle_across{
  970. width: 50rpx;
  971. height: 4rpx;
  972. background: #0183FA;
  973. border-radius: 2rpx;
  974. margin-left 162rpx;
  975. display none;
  976. &.on{
  977. display block;
  978. }
  979. }
  980. }
  981. .tabTitle_li:nth-of-type(1)::after{
  982. content: '';
  983. position: absolute;
  984. top: 0rpx;
  985. right: 0rpx;
  986. width: 1rpx;
  987. height: 50rpx;
  988. background: #E0E0E0;
  989. }
  990. }
  991. .list{
  992. padding: 0 30rpx;
  993. box-sizing: border-box;
  994. margin-top: 20rpx;
  995. .list_li{
  996. position: relative;
  997. width: 690rpx;
  998. height: 360rpx;
  999. background: #fff;
  1000. border-radius: 10rpx;
  1001. overflow: hidden;
  1002. margin-bottom: 20rpx;
  1003. .list_li_t{
  1004. width: 100%;
  1005. position: absolute;
  1006. left: 0;
  1007. top: 0;
  1008. .list_li_t_l{
  1009. >img{
  1010. width: 70rpx;
  1011. height: 70rpx;
  1012. }
  1013. >text{
  1014. position: absolute;
  1015. left: -15rpx;
  1016. top: 76rpx;
  1017. display: inline-block;
  1018. width: 30rpx;
  1019. height: 30rpx;
  1020. background: #F5F5F5;
  1021. border-radius: 15rpx;
  1022. }
  1023. }
  1024. .list_li_t_c{
  1025. width: 630rpx;
  1026. height: 110rpx;
  1027. position: absolute;
  1028. left: 30rpx;
  1029. top: 0;
  1030. font-size: 30rpx;
  1031. font-family: PingFang SC-Medium, PingFang SC;
  1032. font-weight: 400;
  1033. color: #333333;
  1034. line-height: 110rpx;
  1035. border-bottom: 1rpx dashed #D8D8D8;
  1036. overflow: hidden;
  1037. text-overflow:ellipsis;
  1038. white-space: nowrap;
  1039. }
  1040. .list_li_t_r{
  1041. position: absolute;
  1042. right:-15rpx;
  1043. top: 76rpx;
  1044. width: 30rpx;
  1045. height: 30rpx;
  1046. background:#F5F5F5;
  1047. border-radius: 15rpx;
  1048. }
  1049. }
  1050. .list_li_m{
  1051. position: absolute;
  1052. top: 110rpx;
  1053. left: 0;
  1054. width: 690rpx;
  1055. height: 168rpx;
  1056. border-bottom: 1rpx solid #E0E0E0;
  1057. padding-left: 30rpx;
  1058. box-sizing: border-box;
  1059. .list_li_m_t{
  1060. font-size: 28rpx;
  1061. font-family: PingFang SC-Medium, PingFang SC;
  1062. font-weight: 400;
  1063. color: #666666;
  1064. line-height: 40rpx;
  1065. margin-top:22rpx;
  1066. }
  1067. .list_li_m_b{
  1068. margin-top:26rpx;
  1069. >text:nth-of-type(1){
  1070. font-size: 26rpx;
  1071. font-family: PingFang SC-Medium, PingFang SC;
  1072. font-weight: 400;
  1073. line-height: 40rpx;
  1074. border-radius: 6rpx;
  1075. padding: 0 20rpx;
  1076. margin-right: 14rpx;
  1077. }
  1078. >text:nth-of-type(2){
  1079. font-size: 26rpx;
  1080. font-family: PingFang SC-Medium, PingFang SC;
  1081. font-weight: 400;
  1082. color: #0183FA;
  1083. line-height: 40rpx;
  1084. padding: 0 8rpx;
  1085. border-radius: 6rpx;
  1086. background: rgba(1,131,250,0.1);
  1087. }
  1088. }
  1089. }
  1090. .list_li_b{
  1091. height: 80rpx;
  1092. position: absolute;
  1093. top: 278rpx;
  1094. left: 0;
  1095. display: flex;
  1096. justify-content: flex-start;
  1097. align-items: center;
  1098. >img{
  1099. width: 24rpx;
  1100. height: 30rpx;
  1101. margin-right: 26rpx;
  1102. margin-left: 30rpx;
  1103. }
  1104. >text:nth-of-type(1){
  1105. font-size: 28rpx;
  1106. font-family: PingFang SC-Medium, PingFang SC;
  1107. font-weight: 400;
  1108. color: #333333;
  1109. line-height: 28rpx;
  1110. }
  1111. >text:nth-of-type(2){
  1112. font-size: 28rpx;
  1113. font-family: PingFang SC-Medium, PingFang SC;
  1114. font-weight: 400;
  1115. color: #0183FA;
  1116. line-height: 28rpx;
  1117. }
  1118. }
  1119. }
  1120. }
  1121. /* 检查者 */
  1122. .tabTitle_tow{
  1123. width:100%;
  1124. height: 100rpx;
  1125. background: #fff;
  1126. display flex;
  1127. justify-content: flex-start;
  1128. align-items: center;
  1129. margin-top: 20rpx;
  1130. position: sticky;
  1131. top: 0;
  1132. z-index: 100;
  1133. box-shadow: 0rpx 3rpx 8rpx 0rpx rgba(0,0,0,0.16);
  1134. .tabTitle_tow_li{
  1135. position: relative;
  1136. width:162rpx;
  1137. text-align center;
  1138. .tabTitle_tow_text{
  1139. display: inline-block;
  1140. font-size: 30rpx;
  1141. font-family: PingFang SC;
  1142. font-weight: 500;
  1143. color: #333333;
  1144. line-height: 46rpx;
  1145. position: relative;
  1146. >text{
  1147. position:absolute;
  1148. min-width: 30rpx;
  1149. min-height: 30rpx;
  1150. border-radius:54%;
  1151. background: #E80000;
  1152. font-size: 18rpx;
  1153. font-family: PingFang SC-Medium, PingFang SC;
  1154. font-weight: 400;
  1155. color: #FFFFFF;
  1156. text-align: center;
  1157. line-height: 30rpx;
  1158. margin-left: 6rpx;
  1159. padding:2rpx;
  1160. box-sizing: border-box;
  1161. }
  1162. &.on{
  1163. color:#0183FA;
  1164. }
  1165. }
  1166. .tabTitle_tow_across{
  1167. width: 50rpx;
  1168. height: 4rpx;
  1169. background: #0183FA;
  1170. border-radius: 2rpx;
  1171. margin-left 56rpx;
  1172. display none;
  1173. &.on{
  1174. display block;
  1175. }
  1176. }
  1177. }
  1178. }
  1179. .list_tow{
  1180. padding: 0 30rpx;
  1181. box-sizing: border-box;
  1182. margin-top: 20rpx;
  1183. .list_tow_li{
  1184. position: relative;
  1185. width: 690rpx;
  1186. height: auto;
  1187. background: #fff;
  1188. border-radius: 10rpx;
  1189. overflow: hidden;
  1190. margin-bottom: 20rpx;
  1191. .list_tow_li_t{
  1192. width: 100%;
  1193. height: 110rpx;
  1194. position: relative;
  1195. left: 0;
  1196. top: 0;
  1197. .list_tow_li_t_l{
  1198. >img{
  1199. width: 70rpx;
  1200. height: 70rpx;
  1201. }
  1202. >text{
  1203. position: absolute;
  1204. left: -15rpx;
  1205. top: 76rpx;
  1206. display: inline-block;
  1207. width: 30rpx;
  1208. height: 30rpx;
  1209. background: #F5F5F5;
  1210. border-radius: 15rpx;
  1211. }
  1212. }
  1213. .list_tow_li_t_c{
  1214. width: 630rpx;
  1215. height: 110rpx;
  1216. position: absolute;
  1217. left: 30rpx;
  1218. top: 0;
  1219. font-size: 30rpx;
  1220. font-family: PingFang SC-Medium, PingFang SC;
  1221. font-weight: 400;
  1222. color: #333333;
  1223. line-height: 110rpx;
  1224. border-bottom: 1rpx dashed #D8D8D8;
  1225. overflow: hidden;
  1226. text-overflow:ellipsis;
  1227. white-space: nowrap;
  1228. padding-right: 120rpx;
  1229. box-sizing: border-box;
  1230. }
  1231. .list_tow_li_t_c2{
  1232. position: absolute;
  1233. right: 20rpx;
  1234. top: 38rpx;
  1235. width: 120rpx;
  1236. height: 40rpx;
  1237. font-size: 28rpx;
  1238. font-family: PingFang SC-Medium, PingFang SC;
  1239. font-weight: 400;
  1240. color: #FF5757;
  1241. line-height: 40rpx;
  1242. border: 1rpx solid #FF5757;
  1243. border-radius: 6rpx;
  1244. text-align: center;
  1245. }
  1246. .list_tow_li_t_r{
  1247. position: absolute;
  1248. right:-15rpx;
  1249. top: 76rpx;
  1250. width: 30rpx;
  1251. height: 30rpx;
  1252. background:#F5F5F5;
  1253. border-radius: 15rpx;
  1254. }
  1255. }
  1256. .list_tow_li_m{
  1257. // position: absolute;
  1258. // top: 110rpx;
  1259. // left: 0;
  1260. width: 690rpx;
  1261. height: 168rpx;
  1262. padding-left: 30rpx;
  1263. box-sizing: border-box;
  1264. .list_tow_li_m_t{
  1265. font-size: 28rpx;
  1266. font-family: PingFang SC-Medium, PingFang SC;
  1267. font-weight: 400;
  1268. color: #666666;
  1269. line-height: 40rpx;
  1270. margin-top:22rpx;
  1271. overflow: hidden;
  1272. text-overflow:ellipsis;
  1273. white-space: nowrap;
  1274. }
  1275. .list_tow_li_m_b{
  1276. margin-top:26rpx;
  1277. >text:nth-of-type(1){
  1278. font-size: 26rpx;
  1279. font-family: PingFang SC-Medium, PingFang SC;
  1280. font-weight: 400;
  1281. line-height: 40rpx;
  1282. border-radius: 6rpx;
  1283. padding: 0 20rpx;
  1284. margin-right: 14rpx;
  1285. }
  1286. >text:nth-of-type(2){
  1287. font-size: 26rpx;
  1288. font-family: PingFang SC-Medium, PingFang SC;
  1289. font-weight: 400;
  1290. color: #0183FA;
  1291. line-height: 40rpx;
  1292. padding: 0 8rpx;
  1293. border-radius: 6rpx;
  1294. background: rgba(1,131,250,0.1);
  1295. margin-right: 24rpx;
  1296. }
  1297. >text:nth-of-type(3){
  1298. display: inline-block;
  1299. width: 350rpx;
  1300. font-size: 26rpx;
  1301. font-family: PingFang SC-Medium, PingFang SC;
  1302. font-weight: 400;
  1303. color: #333333;
  1304. line-height: 26rpx;
  1305. overflow: hidden;
  1306. text-overflow:ellipsis;
  1307. white-space: nowrap;
  1308. }
  1309. }
  1310. }
  1311. .list_tow_li_b{
  1312. height: 80rpx;
  1313. width: 100%;
  1314. // position: absolute;
  1315. // top: 278rpx;
  1316. // left: 0;
  1317. border-top: 1rpx solid #E0E0E0;
  1318. font-size: 28rpx;
  1319. font-family: PingFang SC-Medium, PingFang SC;
  1320. font-weight: 400;
  1321. color: #0183FA;
  1322. line-height: 80rpx;
  1323. text-align: center;
  1324. }
  1325. .list_tow_li_b_tow{
  1326. height: 80rpx;
  1327. width: 100%;
  1328. // position: absolute;
  1329. // top: 278rpx;
  1330. // left: 0;
  1331. border-top: 1rpx solid #E0E0E0;
  1332. font-size: 28rpx;
  1333. font-family: PingFang SC-Medium, PingFang SC;
  1334. font-weight: 400;
  1335. color: #0183FA;
  1336. line-height: 80rpx;
  1337. display: flex;
  1338. justify-content: center;
  1339. align-items: center;
  1340. >img{
  1341. width: 28rpx;
  1342. height: 30rpx;
  1343. margin-right: 12rpx;
  1344. }
  1345. }
  1346. .list_tow_li_b_three{
  1347. height: 80rpx;
  1348. // position: absolute;
  1349. // top: 278rpx;
  1350. // left: 0;
  1351. display: flex;
  1352. justify-content: flex-start;
  1353. align-items: center;
  1354. width: 100%;
  1355. border-top: 1rpx solid #E0E0E0;
  1356. >img{
  1357. width: 24rpx;
  1358. height: 30rpx;
  1359. margin-right: 26rpx;
  1360. margin-left: 30rpx;
  1361. }
  1362. >text:nth-of-type(1){
  1363. font-size: 28rpx;
  1364. font-family: PingFang SC-Medium, PingFang SC;
  1365. font-weight: 400;
  1366. color: #333333;
  1367. line-height: 28rpx;
  1368. }
  1369. >text:nth-of-type(2){
  1370. flex:1;
  1371. font-size: 28rpx;
  1372. font-family: PingFang SC-Medium, PingFang SC;
  1373. font-weight: 400;
  1374. color: #0183FA;
  1375. line-height: 28rpx;
  1376. white-space: nowrap;
  1377. overflow: hidden;
  1378. text-overflow: ellipsis;
  1379. }
  1380. .report{
  1381. font-size: 28rpx;
  1382. font-family: PingFang SC-Medium, PingFang SC;
  1383. font-weight: 400;
  1384. color: #0183FA;
  1385. line-height: 28rpx;
  1386. margin-right: 40rpx;
  1387. }
  1388. }
  1389. }
  1390. }
  1391. /* 整改人 */
  1392. .statistics_three{
  1393. background: #fff;
  1394. display: flex;
  1395. justify-content: flex-start;
  1396. flex-wrap: wrap;
  1397. padding: 38rpx 30rpx;
  1398. box-sizing: border-box;
  1399. .statistics_three_li{
  1400. width: 230rpx;
  1401. position: relative;
  1402. >text{
  1403. display: block;
  1404. text-align: center;
  1405. }
  1406. >text:nth-of-type(1){
  1407. font-size: 26rpx;
  1408. font-family: PingFang SC-Medium, PingFang SC;
  1409. font-weight: 400;
  1410. color: #666666;
  1411. line-height: 26rpx;
  1412. }
  1413. >text:nth-of-type(2){
  1414. font-size: 34rpx;
  1415. font-family: PingFang SC-Heavy, PingFang SC;
  1416. font-weight: 400;
  1417. color: #1FA50D;
  1418. line-height: 34rpx;
  1419. margin-top: 28rpx;
  1420. }
  1421. }
  1422. .statistics_three_li::after{
  1423. content:'';
  1424. position: absolute;
  1425. top: 20rpx;
  1426. right:0rpx;
  1427. width: 1rpx;
  1428. height: 60rpx;
  1429. background: #D8D8D8;
  1430. }
  1431. .statistics_three_li:nth-of-type(3)::after{
  1432. display: none;
  1433. }
  1434. >view:nth-of-type(1){
  1435. >text:nth-of-type(2){
  1436. color: #1FA50D;
  1437. }
  1438. }
  1439. >view:nth-of-type(2){
  1440. >text:nth-of-type(2){
  1441. color: #FA8201;
  1442. }
  1443. }
  1444. >view:nth-of-type(3){
  1445. >text:nth-of-type(2){
  1446. color: #0183FA;
  1447. }
  1448. }
  1449. }
  1450. .inspect_btn_three{
  1451. height: 150rpx;
  1452. background: #fff;
  1453. display: flex;
  1454. justify-content: space-between;
  1455. align-items: center;
  1456. margin-top: 20rpx;
  1457. padding: 0 74rpx;
  1458. box-sizing: border-box;
  1459. .inspect_btn_three_li{
  1460. >img{
  1461. width: 60rpx;
  1462. height: 60rpx;
  1463. margin:0 auto;
  1464. }
  1465. >text{
  1466. font-size: 28rpx;
  1467. font-family: PingFang SC-Medium, PingFang SC;
  1468. font-weight: 400;
  1469. color: #333333;
  1470. line-height: 28rpx;
  1471. margin-top: 14rpx;
  1472. }
  1473. }
  1474. .line{
  1475. display: inline-block;
  1476. height: 60rpx;
  1477. width: 1rpx;
  1478. background: #E0E0E0;
  1479. }
  1480. }
  1481. /* 切换按钮 */
  1482. .tabTitle_three{
  1483. width:100%;
  1484. height: 100rpx;
  1485. background: #fff;
  1486. display flex;
  1487. justify-content: center;
  1488. align-items: center;
  1489. margin-top: 20rpx;
  1490. position: sticky;
  1491. top: 0;
  1492. z-index: 100;
  1493. box-shadow: 0rpx 3rpx 8rpx 0rpx rgba(0,0,0,0.16);
  1494. .tabTitle_three_li{
  1495. position: relative;
  1496. width:372rpx;
  1497. text-align center;
  1498. .tabTitle_three_text{
  1499. display: inline-block;
  1500. font-size: 30rpx;
  1501. font-family: PingFang SC;
  1502. font-weight: 500;
  1503. color: #333333;
  1504. line-height: 46rpx;
  1505. position: relative;
  1506. >text{
  1507. position:absolute;
  1508. min-width: 30rpx;
  1509. min-height: 30rpx;
  1510. border-radius:54%;
  1511. background: #E80000;
  1512. font-size: 18rpx;
  1513. font-family: PingFang SC-Medium, PingFang SC;
  1514. font-weight: 400;
  1515. color: #FFFFFF;
  1516. text-align: center;
  1517. line-height: 30rpx;
  1518. margin-left: 6rpx;
  1519. padding:2rpx;
  1520. box-sizing: border-box;
  1521. }
  1522. &.on{
  1523. color:#0183FA;
  1524. }
  1525. }
  1526. .tabTitle_three_across{
  1527. width: 50rpx;
  1528. height: 4rpx;
  1529. background: #0183FA;
  1530. border-radius: 2rpx;
  1531. margin-left 162rpx;
  1532. display none;
  1533. &.on{
  1534. display block;
  1535. }
  1536. }
  1537. }
  1538. .tabTitle_three_li:nth-of-type(1)::after{
  1539. content: '';
  1540. position: absolute;
  1541. top: 0rpx;
  1542. right: 0rpx;
  1543. width: 1rpx;
  1544. height: 50rpx;
  1545. background: #E0E0E0;
  1546. }
  1547. }
  1548. .list_three{
  1549. padding: 0 30rpx;
  1550. box-sizing: border-box;
  1551. margin-top: 20rpx;
  1552. .list_three_li{
  1553. position: relative;
  1554. width: 690rpx;
  1555. height: 348rpx;
  1556. background: #fff;
  1557. border-radius: 10rpx;
  1558. overflow: hidden;
  1559. margin-bottom: 20rpx;
  1560. .list_three_li_t{
  1561. width: 100%;
  1562. position: absolute;
  1563. left: 0;
  1564. top: 0;
  1565. .list_three_li_t_l{
  1566. >img{
  1567. width: 70rpx;
  1568. height: 70rpx;
  1569. }
  1570. >text{
  1571. position: absolute;
  1572. left: -15rpx;
  1573. top: 76rpx;
  1574. display: inline-block;
  1575. width: 30rpx;
  1576. height: 30rpx;
  1577. background: #F5F5F5;
  1578. border-radius: 15rpx;
  1579. }
  1580. }
  1581. .list_three_li_t_c{
  1582. width: 630rpx;
  1583. height: 110rpx;
  1584. position: absolute;
  1585. left: 30rpx;
  1586. top: 0;
  1587. font-size: 30rpx;
  1588. font-family: PingFang SC-Medium, PingFang SC;
  1589. font-weight: 400;
  1590. color: #333333;
  1591. line-height: 110rpx;
  1592. border-bottom: 1rpx dashed #D8D8D8;
  1593. overflow: hidden;
  1594. text-overflow:ellipsis;
  1595. white-space: nowrap;
  1596. padding-right: 60rpx;
  1597. box-sizing: border-box;
  1598. }
  1599. .list_three_li_t_c2{
  1600. position: absolute;
  1601. right: 20rpx;
  1602. top: 38rpx;
  1603. width: 120rpx;
  1604. height: 40rpx;
  1605. font-size: 28rpx;
  1606. font-family: PingFang SC-Medium, PingFang SC;
  1607. font-weight: 400;
  1608. color: #FF5757;
  1609. line-height: 40rpx;
  1610. border: 1rpx solid #FF5757;
  1611. border-radius: 6rpx;
  1612. text-align: center;
  1613. }
  1614. .list_three_li_t_r{
  1615. position: absolute;
  1616. right:-15rpx;
  1617. top: 76rpx;
  1618. width: 30rpx;
  1619. height: 30rpx;
  1620. background:#F5F5F5;
  1621. border-radius: 15rpx;
  1622. }
  1623. }
  1624. .list_three_li_m{
  1625. position: absolute;
  1626. top: 110rpx;
  1627. left: 0;
  1628. width: 690rpx;
  1629. height: 158rpx;
  1630. padding-left: 30rpx;
  1631. box-sizing: border-box;
  1632. .list_three_li_m_t{
  1633. font-size: 28rpx;
  1634. font-family: PingFang SC-Medium, PingFang SC;
  1635. font-weight: 400;
  1636. color: #666666;
  1637. line-height: 40rpx;
  1638. margin-top:22rpx;
  1639. overflow: hidden;
  1640. text-overflow:ellipsis;
  1641. white-space: nowrap;
  1642. }
  1643. .list_three_li_m_b{
  1644. margin-top:26rpx;
  1645. >text:nth-of-type(1){
  1646. font-size: 26rpx;
  1647. font-family: PingFang SC-Medium, PingFang SC;
  1648. font-weight: 400;
  1649. line-height: 40rpx;
  1650. border-radius: 6rpx;
  1651. padding: 0 20rpx;
  1652. margin-right: 14rpx;
  1653. }
  1654. .type{
  1655. font-size: 26rpx;
  1656. font-family: PingFang SC-Medium, PingFang SC;
  1657. font-weight: 400;
  1658. color: #0183FA;
  1659. line-height: 40rpx;
  1660. padding: 0 8rpx;
  1661. border-radius: 6rpx;
  1662. background: rgba(1,131,250,0.1);
  1663. margin-right: 24rpx;
  1664. }
  1665. .college{
  1666. display: inline-block;
  1667. width: 280rpx;
  1668. font-size: 26rpx;
  1669. font-family: PingFang SC-Medium, PingFang SC;
  1670. font-weight: 400;
  1671. color: #333333;
  1672. line-height: 26rpx;
  1673. overflow: hidden;
  1674. text-overflow:ellipsis;
  1675. white-space: nowrap;
  1676. }
  1677. }
  1678. }
  1679. .list_three_li_b{
  1680. height: 80rpx;
  1681. width: 100%;
  1682. position: absolute;
  1683. top: 268rpx;
  1684. left: 0;
  1685. padding-left: 30rpx;
  1686. box-sizing: border-box;
  1687. >text:nth-of-type(1){
  1688. font-size: 26rpx;
  1689. font-family: PingFang SC-Medium, PingFang SC;
  1690. font-weight: 400;
  1691. color: #333333;
  1692. line-height: 26rpx;
  1693. }
  1694. }
  1695. .list_three_li_b2{
  1696. height: 76rpx;
  1697. width: 100%;
  1698. position: absolute;
  1699. top: 258rpx;
  1700. left: 0;
  1701. padding:0 30rpx;
  1702. box-sizing: border-box;
  1703. display: flex;
  1704. justify-content: space-between;
  1705. align-items: center;
  1706. .list_three_li_b_l{
  1707. display: flex;
  1708. justify-content: space-between;
  1709. align-items: center;
  1710. >img{
  1711. width: 28rpx;
  1712. height: 30rpx;
  1713. margin-right: 14rpx;
  1714. }
  1715. >text{
  1716. font-size: 28rpx;
  1717. font-family: PingFang SC-Medium, PingFang SC;
  1718. font-weight: 400;
  1719. color: #666666;
  1720. line-height: 76rpx;
  1721. }
  1722. }
  1723. .list_three_li_b_r{
  1724. font-size: 24rpx;
  1725. font-family: PingFang SC-Medium, PingFang SC;
  1726. font-weight: 400;
  1727. color: #999999;
  1728. line-height: 76rpx;
  1729. }
  1730. }
  1731. }
  1732. }
  1733. .bottom_btn{
  1734. position: fixed;
  1735. bottom: 20rpx;
  1736. left: 30rpx;
  1737. font-size: 30rpx;
  1738. font-family: PingFang SC-Medium, PingFang SC;
  1739. font-weight: 400;
  1740. color: #FFFFFF;
  1741. line-height: 90rpx;
  1742. width: 690rpx;
  1743. height: 90rpx;
  1744. background: #0183FA;
  1745. border-radius: 20rpx;
  1746. text-align: center;
  1747. }
  1748. .scan_btn{
  1749. position: fixed;
  1750. bottom: 210rpx;
  1751. right: 0rpx;
  1752. width: 130rpx;
  1753. height: 130rpx;
  1754. }
  1755. /* 根据实验室id查询隐患列表 */
  1756. .shade {
  1757. height: 100%;
  1758. width: 100%;
  1759. position: fixed;
  1760. display: flex;
  1761. flex-direction: column;
  1762. z-index: 100;
  1763. background: rgba(0, 0, 0, 0.2);
  1764. .null-box {
  1765. flex: 1;
  1766. }
  1767. .shade_n {
  1768. position: absolute;
  1769. bottom: 0;
  1770. left: 0;
  1771. width: 750rpx;
  1772. height: 560rpx;
  1773. background: #FFFFFF;
  1774. border-radius: 20rpx 20rpx 0rpx 0rpx;
  1775. .shade_n_title{
  1776. height: 100rpx;
  1777. padding: 0 30rpx;
  1778. box-sizing: border-box;
  1779. display: flex;
  1780. justify-content:space-between;
  1781. border-bottom: 1rpx solid #E0E0E0;
  1782. >text:nth-of-type(1){
  1783. font-size: 30rpx;
  1784. font-family: PingFang SC-Medium, PingFang SC;
  1785. font-weight: 400;
  1786. color: #333333;
  1787. line-height: 100rpx;
  1788. }
  1789. >text:nth-of-type(2){
  1790. font-size: 30rpx;
  1791. font-family: PingFang SC-Medium, PingFang SC;
  1792. font-weight: 400;
  1793. color: #0183FA;
  1794. line-height: 100rpx;
  1795. }
  1796. }
  1797. .shade_n_b{
  1798. height: 460rpx;
  1799. padding: 0 30rpx;
  1800. box-sizing: border-box;
  1801. overflow-y: auto;
  1802. .shade_n_b_li{
  1803. display: flex;
  1804. justify-content:space-between;
  1805. align-items: center;
  1806. height: 80rpx;
  1807. border-bottom: 1rpx solid #E0E0E0;
  1808. >text{
  1809. font-size: 28rpx;
  1810. font-family: PingFang SC-Medium, PingFang SC;
  1811. font-weight: 400;
  1812. line-height: 80rpx;
  1813. overflow: hidden;
  1814. text-overflow:ellipsis;
  1815. white-space: nowrap;
  1816. }
  1817. >img{
  1818. width: 24rpx;
  1819. height: 16rpx;
  1820. margin-right: 14rpx;
  1821. }
  1822. }
  1823. .color_A{
  1824. color: #333333;
  1825. }
  1826. .color_B{
  1827. color: #0183FA;
  1828. }
  1829. }
  1830. }
  1831. }
  1832. }
  1833. </style>