safetyExamineWorkbench.vue 50 KB

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