inspectList.vue 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473
  1. <!-- 检查和自查列表 -->
  2. <template>
  3. <view class="snapshotList">
  4. <scroll-view scroll-y @scrolltolower="scrollGet" class="info-max-box">
  5. <view class="title" @click="planClick()">
  6. <view class="title-l">
  7. <view class="title-l-t">{{optionData.planTitle}}</view>
  8. <view class="title-l-b">
  9. <view v-if="optionData.checkCategory">
  10. {{optionData.checkCategory==1?'校院巡查':(optionData.checkCategory==2?'学院自查':'')}}
  11. </view>
  12. <view v-if="optionData.checkTypeName">{{optionData.checkTypeName}}</view>
  13. <view v-if="optionData.crossCheck==1">交叉互检</view>
  14. </view>
  15. </view>
  16. <img class="title-r" :src="imagesUrl('commonality/icon_wd_gd@1x.png')">
  17. </view>
  18. <view class="tabTitleTow">
  19. <view :class="tabIndexTow==index?'tab-C':'tab-D'" v-for="(item,index) in tabListTow"
  20. @click="tabClickTow(index)">{{item}}</view>
  21. </view>
  22. <view>
  23. <view class="dept-max-bix-box">
  24. <div class="dept-check-box">
  25. <picker class="dept-picker" @change="deptChange" :value="deptData.index" :range="deptData.list" range-key="deptName">
  26. <view>
  27. <view class="dept-check-min-box" :class="deptData.name?'check-dept':'no-check-dept'">
  28. {{deptData.name?deptData.name:'选择二级单位'}}
  29. </view>
  30. </view>
  31. </picker>
  32. <view class="triangle"></view>
  33. </div>
  34. <view class="level-r" v-if="tabIndexTow == 0">
  35. <view :class="manageStatus == 0 ?'level-r-B':'level-r-A'" @click="checkFlagChange(0)">未检查</view>
  36. <view :class="manageStatus == 1 ?'level-r-B':'level-r-A'" @click="checkFlagChange(1)">检查中</view>
  37. <view :class="manageStatus == 2 ?'level-r-B':'level-r-A'" @click="checkFlagChange(2)">已检查</view>
  38. </view>
  39. </view>
  40. <view class="level" v-if="tabIndexTow != 1">
  41. <view class="level-li"
  42. :style="levelId==item.levelId?'border:1rpx solid '+item.levelColor+';background:'+item.levelColorTow+';':'levelColor-B'"
  43. @click="levelClick(item.levelId)" v-for="(item,index) in levelList">{{item.levelName}}</view>
  44. </view>
  45. <view class="uni-data-picker-box" v-if="tabIndexTow == 1">
  46. <uni-data-picker
  47. placeholder="请选择楼栋/楼层" v-model="classes"
  48. @change="bindPickerChange" :localdata="dataListTow" ref='picker'>
  49. </uni-data-picker>
  50. </view>
  51. <!-- 搜索 -->
  52. <view class="header">
  53. <view class="search">
  54. <view class="search-r">
  55. <img :src="imagesUrl('commonality/icon_aqjc_ss.png')" @click="searchBtn">
  56. <input type="text" v-model="searchValue" placeholder="实验室名称或房间号" name="search"
  57. @confirm='searchBtn' confirm-type='search' maxlength="50"
  58. style="color:#333"
  59. placeholder-style="color: #999;font-size:24rpx;">
  60. <!-- <view v-if="searchValue" class="left-icons" @click="delSearchValue()">
  61. <uni-icons color="#0183FA" type="clear" size="20"></uni-icons>
  62. </view> -->
  63. </view>
  64. <view class="cancel" @click="cancelBtn()">重置</view>
  65. </view>
  66. </view>
  67. <!-- <view class="srearch">
  68. <view class="srearch-n" @click="srearchClick()">
  69. <view class="srearch-l">
  70. <img :src="imagesUrl('commonality/icon_aqjc_ss.png')">
  71. </view>
  72. <input class="srearch-c" type="text" v-model="searchValue" placeholder="实验室名称或房间号"/>
  73. </view>
  74. </view> -->
  75. </view>
  76. <view class="list">
  77. <view class="list-li" @click="listClick(item)" v-for="(item,index) in dataList">
  78. <view class="list-li-t">
  79. <img class="list-li-t-l" :src="imagesUrl('commonality/icon_aqjc_shiyanshi.png')">
  80. <view class="list-li-t-c">{{item.subName}}</view>
  81. <view class="list-li-t-r"
  82. :style="'border:1rpx solid '+item.classLevelColor+';background:'+item.classLevelColorTow+';'">
  83. <text
  84. :style="'border-right:1rpx solid '+item.classLevelColor+';color:'+item.classLevelColor+';'">{{item.classLevelName?item.classLevelName:''}}</text>
  85. <text
  86. :style="'color:'+item.classLevelColor+';'">{{item.classTypeNames?item.classTypeNames:''}}</text>
  87. </view>
  88. </view>
  89. <view class="list-li-b">
  90. <view class="list-li-b-t">
  91. <img :src="imagesUrl('commonality/icon_sy_zc@1x.png')">
  92. {{tabIndexTow==0?(item.roomNum?item.roomNum:'-'):(item.subRoom?item.subRoom:'-')}}房间&{{item.buildName?item.buildName:''}}
  93. </view>
  94. <view class="list-li-b-b">
  95. <view class="list-li-b-b-l">
  96. <img :src="imagesUrl('commonality/icon_sy_zc@1x.png')">
  97. {{item.deptName}}
  98. </view>
  99. <view :class="item.manageStatus==0?'notFinished':(item.manageStatus==1?'finished-b':(item.manageStatus==2?'finished':''))" v-if="tabIndexTow==0">
  100. {{item.manageStatus==0?'未检查':(item.manageStatus==1?'检查中':(item.manageStatus==2?'已检查':''))}}
  101. </view>
  102. </view>
  103. </view>
  104. </view>
  105. <view class="get-data-null-p" v-if="getDataType">- 没有更多数据 -</view>
  106. </view>
  107. <img v-if="tabIndexTow==0" class="saoCode" @click="saoCode()"
  108. :src="imagesUrl('safetyCheck/icon_aqjc_saoma.png')">
  109. </scroll-view>
  110. <view class="shade-box" v-if="securityCheck">
  111. <view class="null-box" @click="goPage('securityCheck',false)"></view>
  112. <view class="shade_n">
  113. <view class="title">
  114. <view>请选择实验室</view>
  115. </view>
  116. <view class="batch">
  117. <view class="batch-li" @click="batchClickTow(item)" v-for="(item,index) in subjectData">
  118. <view class="batch-li-l">
  119. <text>{{item.planTitle}}-{{item.checkName}}</text>
  120. <text>{{item.subName}}{{item.roomNum?'('+item.roomNum+')':''}}</text>
  121. </view>
  122. <view class="batch-li-r">
  123. <img :src="imagesUrl('commonality/icon_wd_gd@1x.png')">
  124. </view>
  125. </view>
  126. </view>
  127. </view>
  128. </view>
  129. </view>
  130. </template>
  131. <script>
  132. import {
  133. config
  134. } from '@/api/request/config.js'
  135. import {
  136. systemDeptDropList,
  137. } from '@/pages/api/index.js'
  138. import {
  139. laboratorySubRelInfoGetRelList,
  140. laboratoryLevelConfigGetWebLevelTitleList,
  141. securityAppCheckManageList,
  142. securityAppCheckDangerGetCheckDangerSubList,
  143. securityAppCheckDangerReviewSubList,
  144. securityAppCheckSetOptionList,
  145. securityAppCheckDangerBuildAndFloorList,
  146. securityAppCheckPlanScanCode,
  147. } from '@/pages_safetyCheck/api/index.js'
  148. export default {
  149. name: "snapshotList",
  150. data() {
  151. return {
  152. baseUrl: config.base_url,
  153. pageType: 0,
  154. userType: 1,
  155. tabListTow: ['检查任务', '复查验证', '隐患整改'],
  156. tabIndexTow: 0,
  157. //学院选择
  158. deptData: {
  159. index: null,
  160. list: [],
  161. id: null,
  162. name: null
  163. },
  164. deptIndex: null,
  165. deptList: [],
  166. //弹层实验室数据
  167. popupType: false,
  168. roomList: [],
  169. //级别
  170. levelList: [],
  171. levelId: null,
  172. optionData: null,
  173. //实验室/房间号
  174. searchValue: '',
  175. subId: '',
  176. planSetId: null,
  177. // 查询参数
  178. queryParams: {
  179. page: 1,
  180. pageSize: 20,
  181. },
  182. dataList: [],
  183. total: 0,
  184. getDataType: false,
  185. manageStatus: null,
  186. securityCheck:false,
  187. subjectData: [],
  188. //楼栋楼层数据
  189. dataListTow: [],
  190. //楼栋楼层绑定数据
  191. classes:[],
  192. //楼栋楼层ID
  193. buildId:'',
  194. floorId:'',
  195. }
  196. },
  197. onLoad(option) {
  198. let optionData = JSON.parse(decodeURIComponent(option.infoData))
  199. uni.setNavigationBarTitle({
  200. title: optionData.checkPlanSetVoList.checkName
  201. })
  202. this.$set(this, 'tabListTow',
  203. optionData.checkCategory == 1 ? ['检查任务', '复查验证', '隐患整改'] :
  204. (optionData.checkCategory == 2 ? ['自查任务', '复查验证', '隐患整改'] : [])
  205. )
  206. this.$set(this, 'optionData', optionData);
  207. this.$set(this, 'planSetId', optionData.checkPlanSetVoList.planSetId);
  208. },
  209. created() {
  210. this.systemDeptDropList();
  211. this.laboratoryLevelConfigGetWebLevelTitleList();
  212. },
  213. mounted() {
  214. let self = this;
  215. setTimeout(() => {
  216. self.securityAppCheckDangerBuildAndFloorList();
  217. self.getList();
  218. }, 100);
  219. },
  220. methods: {
  221. //楼栋楼层选择
  222. bindPickerChange: function(e) {
  223. console.log('e',e.detail.value)
  224. let self = this;
  225. if(!e.detail.value[0]){
  226. //清除
  227. this.$set(this,'buildId','');
  228. this.$set(this,'floorId','');
  229. }else{
  230. //选中
  231. this.$set(this,'buildId',e.detail.value[0].value);
  232. this.$set(this,'floorId',e.detail.value[1].value);
  233. }
  234. this.$set(this.queryParams, 'page', 1);
  235. this.getList();
  236. },
  237. //实验室搜索
  238. searchBtn() {
  239. this.$set(this.queryParams, 'page', 1);
  240. this.$set(this, 'dataList', []);
  241. this.$set(this, 'total', 0);
  242. this.$nextTick(() => {
  243. this.getList();
  244. })
  245. },
  246. //滚动事件
  247. scrollGet() {
  248. let self = this;
  249. if (self.total / self.queryParams.pageSize <= self.queryParams.page) {
  250. this.$set(this, 'getDataType', true);
  251. } else {
  252. this.queryParams.page += 1;
  253. this.$nextTick(() => {
  254. this.getList();
  255. })
  256. }
  257. },
  258. //级别切换
  259. levelClick(id) {
  260. if (this.levelId == id) {
  261. this.$set(this, 'levelId', null);
  262. } else {
  263. this.$set(this, 'levelId', id);
  264. }
  265. this.$set(this, 'getDataType', false);
  266. this.$set(this.queryParams, 'page', 1);
  267. this.getList();
  268. },
  269. //符合/不符合
  270. checkFlagChange(type) {
  271. if (this.manageStatus == type) {
  272. this.$set(this, 'manageStatus', null);
  273. } else {
  274. this.$set(this, 'manageStatus', type);
  275. }
  276. this.$set(this.queryParams, 'page', 1);
  277. this.getList()
  278. },
  279. //查询类型切换
  280. tabClickTow(index) {
  281. this.$set(this.queryParams, 'page', 1);
  282. this.$set(this, 'deptData', {
  283. index: null,
  284. list: this.deptData.list,
  285. id: null,
  286. name: null
  287. });
  288. this.$set(this, 'searchValue', '');
  289. this.$set(this, 'levelId', null);
  290. this.$set(this, 'getDataType', false);
  291. this.$set(this, 'dataList', []);
  292. this.$set(this, 'total', 0);
  293. this.$set(this, 'classes', []);
  294. this.$set(this, 'buildId', '');
  295. this.$set(this, 'floorId', '');
  296. this.$set(this, 'tabIndexTow', index);
  297. this.$nextTick(() => {
  298. this.getList();
  299. })
  300. },
  301. //重置按钮
  302. cancelBtn(){
  303. this.$set(this.queryParams, 'page', 1);
  304. this.$set(this, 'deptData', {
  305. index: null,
  306. list: this.deptData.list,
  307. id: null,
  308. name: null
  309. });
  310. this.$set(this, 'searchValue', '');
  311. this.$set(this, 'levelId', null);
  312. this.$set(this, 'getDataType', false);
  313. this.$set(this, 'dataList', []);
  314. this.$set(this, 'total', 0);
  315. this.$set(this, 'classes', []);
  316. this.$set(this, 'buildId', '');
  317. this.$set(this, 'floorId', '');
  318. this.$nextTick(() => {
  319. this.getList();
  320. })
  321. },
  322. //实验室搜索框跳转
  323. srearchClick() {
  324. let infoData = this.optionData;
  325. infoData.pageType = this.tabIndexTow;
  326. infoData.laboratoryStatus = this.tabIndexTow;
  327. infoData.tabIndexTow = this.tabIndexTow;
  328. uni.navigateTo({
  329. url: '/pages_safetyCheck/views/snapshotManage/laboratorySearch?form=' + encodeURIComponent(
  330. JSON.stringify(infoData))
  331. });
  332. },
  333. //计划详情
  334. planClick() {
  335. let infoData = {
  336. planId: this.optionData.planId
  337. };
  338. uni.navigateTo({
  339. url: '/pages_safetyCheck/views/planDetail?infoData=' + encodeURIComponent(JSON.stringify(
  340. infoData))
  341. });
  342. },
  343. //实验室列表数据选择
  344. listClick(row) {
  345. let infoData = row;
  346. infoData.pageType = this.tabIndexTow;
  347. infoData.planTitle = this.optionData.planTitle;
  348. infoData.checkCategory = this.optionData.checkCategory;
  349. infoData.checkTypeName = this.optionData.checkTypeName;
  350. infoData.crossCheck = this.optionData.crossCheck;
  351. infoData.checkPlanSetVoList = this.optionData.checkPlanSetVoList;
  352. uni.navigateTo({
  353. url: '/pages_safetyCheck/views/itemsManage/hiddenDangerItems?infoData=' + encodeURIComponent(
  354. JSON.stringify(infoData))
  355. });
  356. },
  357. //搜索房间接口
  358. async buildBySub() {
  359. let self = this;
  360. const {
  361. data
  362. } = await laboratorySubRelInfoGetRelList({
  363. 'searchValue': this.form.searchValue,
  364. });
  365. if (data.code == 200) {
  366. if (data.data[0]) {
  367. this.roomList = data.data;
  368. } else {
  369. uni.showToast({
  370. title: '未找到相关实验室',
  371. icon: "none",
  372. mask: true,
  373. duration: 2000
  374. });
  375. }
  376. }
  377. },
  378. async securityAppCheckDangerBuildAndFloorList(){
  379. let obj = {
  380. planId:this.optionData.planId,
  381. planSetId:this.planSetId,
  382. }
  383. const {
  384. data
  385. } = await securityAppCheckDangerBuildAndFloorList(obj);
  386. if(data.code == 200){
  387. this.$set(this,'dataListTow',data.data);
  388. }
  389. },
  390. //查询检查项
  391. async securityAppCheckSetOptionList(item) {
  392. let self = this;
  393. let upData = item;
  394. let obj = {
  395. page: 1,
  396. pageSize: 20,
  397. checkStatus: '0',
  398. manageId: upData.manageId,
  399. }
  400. const {
  401. data
  402. } = await securityAppCheckSetOptionList(obj);
  403. if (data.code == 200) {
  404. if (data.data.records[0]) {
  405. let infoData = self.optionData;
  406. infoData.pageType = self.tabIndexTow;;
  407. infoData.itemsStatus = 0;
  408. infoData.subName = upData.subName;
  409. infoData.roomNum = upData.roomNum;
  410. infoData.subId = data.data.records[0].subId;
  411. infoData.manageId = data.data.records[0].manageId;
  412. infoData.setOptionId = data.data.records[0].setOptionId;
  413. infoData.hazardCheckPro = data.data.records[0].hazardCheckPro;
  414. uni.navigateTo({
  415. url: '/pages_safetyCheck/views/inspectManage/conductInspections?infoData=' +
  416. encodeURIComponent(
  417. JSON
  418. .stringify(infoData))
  419. });
  420. } else {
  421. self.dialogStatus = 0;
  422. self.dialogVisible = false;
  423. uni.showToast({
  424. title: '该实验室暂无检查项!',
  425. icon: "none",
  426. mask: true,
  427. duration: 2000
  428. });
  429. return
  430. }
  431. }
  432. },
  433. /******调用摄像头******/
  434. /******调用摄像头******/
  435. saoCode() {
  436. let self = this;
  437. uni.scanCode({
  438. onlyFromCamera: true,
  439. success: function(res) {
  440. let list = res.result.split("?")[1].split("&");
  441. let codeData = {};
  442. list.forEach((item) => {
  443. codeData[item.split("=")[0]] = item.split("=")[1];
  444. })
  445. if (codeData.code) {
  446. self.securityAppCheckPlanScanCode(codeData.subId,self.planSetId);
  447. // self.$set(self.subjectData, 'subId', codeData.subId);
  448. // self.$set(self.subjectData, 'planSetId', self.planSetId);
  449. // self.$set(self, "securityCheck", true)
  450. } else {
  451. uni.showToast({
  452. title: '请扫描正确的二维码',
  453. icon: "none",
  454. mask: true,
  455. duration: 2000
  456. });
  457. }
  458. }
  459. });
  460. },
  461. //查询计划
  462. async securityAppCheckPlanScanCode(subId,planSetId) {
  463. let self = this;
  464. let checkCategory = null;
  465. if(uni.getStorageSync('identityData')){
  466. if(uni.getStorageSync('identityData').type=='collegeAdmin'){
  467. checkCategory=2
  468. }else if(uni.getStorageSync('identityData').type=='schoolAdmin'){
  469. checkCategory=1
  470. }
  471. }
  472. let obj = {
  473. subId:subId,
  474. checkCategory:checkCategory,
  475. };
  476. if(planSetId){
  477. obj.planSetId = planSetId;
  478. }
  479. const {
  480. data
  481. } = await securityAppCheckPlanScanCode(obj);
  482. if (data.code == 200) {
  483. if(data.data[0]){
  484. if(data.data[1]){
  485. //多个
  486. self.$set(self,'subjectData',data.data);
  487. self.$set(self,'securityCheck',true);
  488. }else{
  489. //单个
  490. let infoData = data.data[0];
  491. infoData.pageType = 0;
  492. uni.navigateTo({
  493. url: '/pages_safetyCheck/views/itemsManage/hiddenDangerItems?infoData=' + encodeURIComponent(
  494. JSON.stringify(infoData))
  495. });
  496. }
  497. }else{
  498. //没有
  499. uni.showToast({
  500. title: '该实验室暂无检查计划!',
  501. icon: "none",
  502. mask: true,
  503. duration: 2000
  504. });
  505. }
  506. }
  507. },
  508. batchClickTow(row) {
  509. let infoData = row;
  510. infoData.pageType = 0;
  511. uni.navigateTo({
  512. url: '/pages_safetyCheck/views/itemsManage/hiddenDangerItems?infoData=' + encodeURIComponent(
  513. JSON.stringify(infoData))
  514. });
  515. },
  516. //扫一扫查询数据
  517. async saoList(subId) {
  518. let obj = {
  519. planSetId: this.planSetId,
  520. subId: subId,
  521. }
  522. if (this.tabIndexTow == 0) {
  523. //检查计划
  524. const {
  525. data
  526. } = await securityAppCheckManageList(obj);
  527. if (data.code == 200) {
  528. if (data.data.records[0]) {
  529. this.securityAppCheckSetOptionListTow(data.data.records[0], 0)
  530. //跳转检查项列表页面
  531. /* let infoData = data.data.records[0];
  532. infoData.pageType = this.tabIndexTow;
  533. infoData.checkPlanSetVoList = this.optionData.checkPlanSetVoList;
  534. uni.navigateTo({
  535. url: '/pages_safetyCheck/views/itemsManage/hiddenDangerItems?infoData=' +
  536. encodeURIComponent(
  537. JSON.stringify(infoData))
  538. }); */
  539. } else {
  540. //未找到数据提示
  541. uni.showToast({
  542. title: '未找到该实验室与本计划批次关联的数据',
  543. icon: "none",
  544. mask: true,
  545. duration: 2000
  546. });
  547. }
  548. }
  549. } else if (this.tabIndexTow == 1) {
  550. //复查计划
  551. obj.planId = this.optionData.planId;
  552. const {
  553. data
  554. } = await securityAppCheckDangerReviewSubList(obj);
  555. if (data.code == 200) {
  556. if (data.data[0] && data.data[0].stayExamineCheckNum != 0) {
  557. //跳转检查项列表页面
  558. let infoData = data.data[0];
  559. infoData.pageType = this.tabIndexTow;
  560. infoData.checkPlanSetVoList = this.optionData.checkPlanSetVoList;
  561. uni.navigateTo({
  562. url: '/pages_safetyCheck/views/itemsManage/hiddenDangerItems?infoData=' +
  563. encodeURIComponent(
  564. JSON.stringify(infoData))
  565. });
  566. } else {
  567. //未找到数据提示
  568. uni.showToast({
  569. title: '未找到该实验室与本计划批次关联的数据',
  570. icon: "none",
  571. mask: true,
  572. duration: 2000
  573. });
  574. }
  575. }
  576. } else if (this.tabIndexTow == 2) {
  577. //整改计划
  578. obj.planId = this.optionData.planId;
  579. obj.userId = uni.getStorageSync('userId');
  580. const {
  581. data
  582. } = await securityAppCheckDangerGetCheckDangerSubList(obj);
  583. if (data.code == 200) {
  584. if (data.data[0]) {
  585. //跳转检查项列表页面
  586. let infoData = data.data[0];
  587. infoData.pageType = this.tabIndexTow;
  588. infoData.checkPlanSetVoList = this.optionData.checkPlanSetVoList;
  589. uni.navigateTo({
  590. url: '/pages_safetyCheck/views/itemsManage/hiddenDangerItems?infoData=' +
  591. encodeURIComponent(
  592. JSON.stringify(infoData))
  593. });
  594. } else {
  595. //未找到数据提示
  596. uni.showToast({
  597. title: '未找到该实验室与本计划批次关联的数据',
  598. icon: "none",
  599. mask: true,
  600. duration: 2000
  601. });
  602. }
  603. }
  604. }
  605. },
  606. async securityAppCheckSetOptionListTow(item, checkStatus) {
  607. let self = this;
  608. let upData = item;
  609. let obj = {
  610. page: 1,
  611. pageSize: 20,
  612. checkStatus: checkStatus,
  613. manageId: upData.manageId,
  614. }
  615. this.inspectRemporaryList = [];
  616. const {
  617. data
  618. } = await securityAppCheckSetOptionList(obj);
  619. if (data.code == 200 && checkStatus == 0) { //先查询待检查数据
  620. if (data.data.records[0]) {
  621. let infoData = self.optionData;
  622. infoData.pageType = 0;
  623. infoData.subName = upData.subName;
  624. infoData.roomNum = upData.roomNum;
  625. infoData.subId = data.data.records[0].subId;
  626. infoData.manageId = data.data.records[0].manageId;
  627. infoData.setOptionId = data.data.records[0].setOptionId;
  628. infoData.hazardCheckPro = data.data.records[0].hazardCheckPro;
  629. infoData.checkCategory = data.data.records[0].checkCategory;
  630. uni.navigateTo({
  631. url: '/pages_safetyCheck/views/inspectManage/conductInspections?infoData=' +
  632. encodeURIComponent(
  633. JSON
  634. .stringify(infoData))
  635. });
  636. } else {
  637. uni.showToast({
  638. title: '该实验室暂无检查工作!',
  639. icon: "none",
  640. mask: true,
  641. duration: 2000
  642. });
  643. }
  644. }
  645. },
  646. //学院选择
  647. deptChange(e) {
  648. let self = this;
  649. self.deptData.list.forEach(function(item, index) {
  650. if (index == e.detail.value) {
  651. if (!item.deptId) {
  652. self.$set(self.deptData, 'id', null)
  653. self.$set(self.deptData, 'name', null)
  654. } else {
  655. self.$set(self.deptData, 'id', item.deptId)
  656. self.$set(self.deptData, 'name', item.deptName)
  657. }
  658. }
  659. })
  660. this.$set(this, 'getDataType', false);
  661. this.$set(this.queryParams, 'page', 1);
  662. this.getList();
  663. },
  664. //获取院系
  665. async systemDeptDropList() {
  666. const {
  667. data
  668. } = await systemDeptDropList({
  669. deptName: '',
  670. level: 2,
  671. deptType: 1
  672. });
  673. if (data.code == 200) {
  674. data.data.unshift({
  675. deptid: null,
  676. deptName: '全部'
  677. })
  678. this.$set(this.deptData, 'list', data.data);
  679. }
  680. },
  681. //获取分级
  682. async laboratoryLevelConfigGetWebLevelTitleList() {
  683. let self = this;
  684. const {
  685. data
  686. } = await laboratoryLevelConfigGetWebLevelTitleList({});
  687. if (data.code == 200) {
  688. data.data.forEach(function(item) {
  689. item.levelName = item.levelName.split('/')[0]
  690. if (item.levelColor) {
  691. item.levelColorTow = self.hexToRgb(item.levelColor, 0.2)
  692. }
  693. })
  694. this.$set(this, 'levelList', data.data);
  695. }
  696. },
  697. //回车触发
  698. carriageReturnRequest() {
  699. this.$set(this, 'getDataType', false);
  700. this.$set(this.queryParams, 'page', 1);
  701. this.getList();
  702. },
  703. //清除输入框内容
  704. delSearchValue() {
  705. if (this.searchValue) {
  706. this.$set(this, 'searchValue', '');
  707. this.$set(this, 'dataList', []);
  708. this.$nextTick(() => {
  709. this.getList();
  710. })
  711. }
  712. },
  713. //检查任务
  714. async getList() {
  715. let self = this;
  716. let obj = JSON.parse(JSON.stringify(this.queryParams));
  717. obj.planSetId = this.planSetId;
  718. obj.deptId = this.deptData.id ? this.deptData.id : '';
  719. obj.searchValue = this.searchValue ? this.searchValue : '';
  720. obj.levelId = this.levelId ? this.levelId : '';
  721. if (this.manageStatus == 0 || this.manageStatus == 1 || this.manageStatus == 2) {
  722. obj.manageStatus = this.manageStatus;
  723. } else {
  724. obj.manageStatus = '';
  725. }
  726. if (this.tabIndexTow == 0) {
  727. //检查计划
  728. const {
  729. data
  730. } = await securityAppCheckManageList(obj);
  731. if (data.code == 200) {
  732. data.data.records.forEach(function(item) {
  733. if (item.classLevelColor) {
  734. item.classLevelColorTow = self.hexToRgb(item.classLevelColor, 0.2)
  735. }
  736. })
  737. if (self.queryParams.page == 1) {
  738. this.dataList = data.data.records;
  739. this.total = data.data.total;
  740. if (data.data.total / self.queryParams.pageSize <= self.queryParams.page) {
  741. this.$set(this, 'getDataType', true);
  742. }
  743. } else {
  744. this.dataList = [...this.dataList, ...data.data.records]
  745. this.total = data.data.total;
  746. if (data.data.total / self.queryParams.pageSize <= self.queryParams.page) {
  747. this.$set(this, 'getDataType', true);
  748. }
  749. }
  750. }
  751. } else if (this.tabIndexTow == 1) {
  752. //复查计划
  753. obj.planId = this.optionData.planId;
  754. obj.buildId = this.buildId;
  755. obj.floorId = this.floorId;
  756. const {
  757. data
  758. } = await securityAppCheckDangerReviewSubList(obj);
  759. if (data.code == 200) {
  760. this.dataList = data.data;
  761. this.$set(this, 'getDataType', true);
  762. // 后台接口暂时不支持分页
  763. // if (self.queryParams.page == 1) {
  764. // this.dataList = data.data.records;
  765. // this.total = data.data.total;
  766. // if (data.data.total / self.queryParams.pageSize <= self.queryParams.page) {
  767. // this.$set(this, 'getDataType', true);
  768. // }
  769. // } else {
  770. // this.dataList = [...this.dataList, ...data.data.records]
  771. // this.total = data.data.total;
  772. // if (data.data.total / self.queryParams.pageSize <= self.queryParams.page) {
  773. // this.$set(this, 'getDataType', true);
  774. // }
  775. // }
  776. }
  777. } else if (this.tabIndexTow == 2) {
  778. //整改计划
  779. obj.planId = this.optionData.planId;
  780. obj.userId = uni.getStorageSync('userId');
  781. const {
  782. data
  783. } = await securityAppCheckDangerGetCheckDangerSubList(obj);
  784. if (data.code == 200) {
  785. this.dataList = data.data;
  786. this.$set(this, 'getDataType', true);
  787. // 后台接口暂时不支持分页
  788. // if (self.queryParams.page == 1) {
  789. // this.dataList = data.data.records;
  790. // this.total = data.data.total;
  791. // if (data.data.total / self.queryParams.pageSize <= self.queryParams.page) {
  792. // this.$set(this, 'getDataType', true);
  793. // }
  794. // } else {
  795. // this.dataList = [...this.dataList, ...data.data.records]
  796. // this.total = data.data.total;
  797. // if (data.data.total / self.queryParams.pageSize <= self.queryParams.page) {
  798. // this.$set(this, 'getDataType', true);
  799. // }
  800. // }
  801. }
  802. }
  803. },
  804. //十六进制颜色值和RGB格式转换
  805. hexToRgb(hex, opacity = 1) {
  806. // 去除#号
  807. var color = hex.replace("#", "");
  808. // 分割成红、绿、蓝三部分的16进制字符串
  809. var red = parseInt(color.substring(0, 2), 16);
  810. var green = parseInt(color.substring(2, 4), 16);
  811. var blue = parseInt(color.substring(4, 6), 16);
  812. return `RGB(${red}, ${green}, ${blue},${opacity})`;
  813. },
  814. }
  815. }
  816. </script>
  817. <style lang="stylus" scoped>
  818. .snapshotList {
  819. height: 100%;
  820. display flex;
  821. overflow: hidden;
  822. .info-max-box {
  823. padding-top: 20rpx;
  824. }
  825. .title {
  826. width: 690rpx;
  827. margin: 0 30rpx 20rpx;
  828. height: 150rpx;
  829. background: #FFFFFF;
  830. border-radius: 20rpx 20rpx 20rpx 20rpx;
  831. display: flex;
  832. justify-content: space-between;
  833. align-items: center;
  834. padding: 0 30rpx;
  835. box-sizing: border-box;
  836. .title-l {
  837. width: 594rpx;
  838. .title-l-t {
  839. font-size: 30rpx;
  840. color: #333333;
  841. line-height: 42rpx;
  842. text-align: left;
  843. overflow: hidden;
  844. text-overflow: ellipsis;
  845. white-space: nowrap;
  846. }
  847. .title-l-b {
  848. display: flex;
  849. justify-content: flex-start;
  850. margin-top: 16rpx;
  851. >view {
  852. width: 130rpx;
  853. height: 50rpx;
  854. background: rgba(1, 131, 250, 0.2);
  855. border-radius: 6rpx 6rpx 6rpx 6rpx;
  856. font-size: 24rpx;
  857. color: #0183FA;
  858. line-height: 50rpx;
  859. text-align: center;
  860. margin-right: 14rpx;
  861. }
  862. }
  863. }
  864. .title-r {
  865. width: 24rpx;
  866. height: 24rpx;
  867. }
  868. }
  869. .tabTitleTow {
  870. width: 690rpx;
  871. height: 80rpx;
  872. display: flex;
  873. justify-content: center;
  874. margin: 20rpx 0 0 30rpx;
  875. >view:nth-of-type(1) {
  876. width: 230rpx;
  877. height: 80rpx;
  878. border-radius: 50rpx 0rpx 0rpx 50rpx;
  879. }
  880. >view:nth-of-type(2) {
  881. width: 230rpx;
  882. height: 80rpx;
  883. border-radius: 0rpx 0rpx 0rpx 0rpx;
  884. }
  885. >view:nth-of-type(3) {
  886. width: 230rpx;
  887. height: 80rpx;
  888. border-radius: 0rpx 50rpx 50rpx 0rpx;
  889. }
  890. .tab-C {
  891. font-size: 30rpx;
  892. color: #FFFFFF;
  893. line-height: 80rpx;
  894. text-align: center;
  895. background: #0183FA;
  896. }
  897. .tab-D {
  898. font-size: 30rpx;
  899. color: #333333;
  900. line-height: 80rpx;
  901. text-align: center;
  902. background: #FFFFFF;
  903. }
  904. }
  905. .header {
  906. width: 100%;
  907. z-index: 100;
  908. background: #fff;
  909. .search {
  910. width: 750rpx;
  911. height: 100rpx;
  912. background: #FFFFFF;
  913. border-radius: 0rpx 0rpx 0rpx 0rpx;
  914. display: flex;
  915. align-items: center;
  916. .search-r {
  917. margin-left:30rpx;
  918. width: 560rpx;
  919. height: 60rpx;
  920. background: #FFFFFF;
  921. border-radius: 50rpx 50rpx 50rpx 50rpx;
  922. border: 1rpx solid #E0E0E0;
  923. font-size: 24rpx;
  924. color: #999999;
  925. line-height: 60rpx;
  926. text-align: left;
  927. display: flex;
  928. justify-content: flex-start;
  929. align-items: center;
  930. padding: 0 20rpx;
  931. box-sizing: border-box;
  932. >img {
  933. width: 30rpx;
  934. height: 30rpx;
  935. margin-right: 20rpx;
  936. }
  937. >input {
  938. width: 500rpx;
  939. }
  940. }
  941. }
  942. .cancel {
  943. width:110rpx;
  944. height:60rpx;
  945. line-height:60rpx;
  946. font-size: 28rpx;
  947. color: #0183FA;
  948. text-align: center;
  949. margin-left: 18rpx;
  950. }
  951. }
  952. // .srearch {
  953. // width: 750rpx;
  954. // height: 100rpx;
  955. // background: #FFFFFF;
  956. // border-radius: 0rpx 0rpx 0rpx 0rpx;
  957. // overflow: hidden;
  958. // display: flex;
  959. // display: flex;
  960. // justify-content: space-between;
  961. // align-items: center;
  962. // padding: 0 30rpx;
  963. // box-sizing: border-box;
  964. // .college {
  965. // width: 200rpx;
  966. // height: 60rpx;
  967. // border-radius: 50rpx 50rpx 50rpx 50rpx;
  968. // border: 2rpx solid #E0E0E0;
  969. // font-size: 24rpx;
  970. // color: #333333;
  971. // line-height: 60rpx;
  972. // text-align: left;
  973. // display: flex;
  974. // justify-content: space-between;
  975. // align-items: center;
  976. // padding: 0 26rpx;
  977. // box-sizing: border-box;
  978. // overflow: hidden;
  979. // text-overflow: ellipsis;
  980. // white-space: nowrap;
  981. // >view {
  982. // width: 124rpx;
  983. // display: block;
  984. // overflow: hidden;
  985. // text-overflow: ellipsis;
  986. // white-space: nowrap;
  987. // }
  988. // >img {
  989. // display: block;
  990. // width: 24rpx;
  991. // height: 12rpx;
  992. // }
  993. // }
  994. // .srearch-n {
  995. // width: 690rpx;
  996. // height: 60rpx;
  997. // border-radius: 50rpx 50rpx 50rpx 50rpx;
  998. // border: 2rpx solid #E0E0E0;
  999. // display: flex;
  1000. // justify-content: flex-start;
  1001. // align-items: center;
  1002. // .srearch-l {
  1003. // width: 60rpx;
  1004. // height: 60rpx;
  1005. // >img {
  1006. // width: 20rpx;
  1007. // height: 20rpx;
  1008. // margin: 20rpx 0 0 26rpx;
  1009. // }
  1010. // }
  1011. // .srearch-c {
  1012. // flex: 1;
  1013. // height: 58rpx;
  1014. // font-size: 24rpx;
  1015. // color: #999999;
  1016. // line-height: 30rpx;
  1017. // text-align: left;
  1018. // }
  1019. // .srearch-r {
  1020. // width: 90rpx;
  1021. // height: 60rpx;
  1022. // >img {
  1023. // width: 30rpx;
  1024. // height: 30rpx;
  1025. // margin: 14rpx 22rpx 0 30rpx;
  1026. // }
  1027. // }
  1028. // }
  1029. // }
  1030. .dept-max-bix-box{
  1031. margin-top: 20rpx;
  1032. width: 750rpx;
  1033. height: 90rpx;
  1034. background: #FFFFFF;
  1035. display: flex;
  1036. .dept-check-box{
  1037. flex:1;
  1038. line-height:60rpx;
  1039. height:60rpx;
  1040. margin:20rpx 20rpx 0 30rpx;
  1041. border:1rpx solid #E0E0E0;
  1042. border-radius: 50rpx;
  1043. display: flex;
  1044. .dept-picker{
  1045. flex:1;
  1046. .dept-check-min-box{
  1047. font-size:24rpx;
  1048. padding:0 30rpx;
  1049. overflow: hidden;
  1050. }
  1051. .check-dept{
  1052. color:#333;
  1053. }
  1054. .no-check-dept{
  1055. color:#999;
  1056. }
  1057. }
  1058. .triangle {
  1059. margin:25rpx 20rpx 0 20rpx;
  1060. width: 0;
  1061. height: 0;
  1062. border-left: 10rpx solid transparent;
  1063. border-right: 10rpx solid transparent;
  1064. border-top: 15rpx solid #999; /* 可以根据需要调整颜色 */
  1065. }
  1066. }
  1067. .level-r {
  1068. display: flex;
  1069. justify-content: flex-start;
  1070. align-items: center;
  1071. margin: 18rpx 20rpx 0 0;
  1072. .level-r-A {
  1073. border-radius: 50rpx 50rpx 50rpx 50rpx;
  1074. border: 1rpx solid #E0E0E0;
  1075. width: 100rpx;
  1076. height: 60rpx;
  1077. background: #E0E0E0;
  1078. font-weight: normal;
  1079. font-size: 24rpx;
  1080. color: #333333;
  1081. line-height: 60rpx;
  1082. text-align: center;
  1083. margin-right: 10rpx;
  1084. }
  1085. .level-r-B {
  1086. border-radius: 50rpx 50rpx 50rpx 50rpx;
  1087. border: 1rpx solid #0183FA;
  1088. width: 100rpx;
  1089. height: 60rpx;
  1090. background: #0183FA;
  1091. font-weight: normal;
  1092. font-size: 24rpx;
  1093. color: #FFFFFF;
  1094. line-height: 60rpx;
  1095. text-align: center;
  1096. margin-right: 10rpx;
  1097. }
  1098. }
  1099. #levelColor-A {
  1100. background: rgba(255, 0, 0, 0.2);
  1101. color: #FF0000;
  1102. border: 1rpx solid #FF0000;
  1103. }
  1104. #levelColor-B {
  1105. background: #F5F5F5;
  1106. color: #333333;
  1107. border: 2rpx solid #E0E0E0;
  1108. }
  1109. }
  1110. .level {
  1111. width: 750rpx;
  1112. height: 70rpx;
  1113. background: #FFFFFF;
  1114. display: flex;
  1115. justify-content: flex-start;
  1116. padding: 15rpx 30rpx 0;
  1117. box-sizing: border-box;
  1118. .level-li {
  1119. width: 100rpx;
  1120. height: 50rpx;
  1121. background: #F5F5F5;
  1122. border-radius: 50rpx 50rpx 50rpx 50rpx;
  1123. border: 2rpx solid #E0E0E0;
  1124. margin-right: 10rpx;
  1125. font-size: 24rpx;
  1126. color: #333333;
  1127. line-height: 50rpx;
  1128. text-align: center;
  1129. }
  1130. }
  1131. .uni-data-picker-box{
  1132. background-color: #fff;
  1133. padding:10rpx 20rpx 0 30rpx;
  1134. /deep/.input-value-border{
  1135. border-radius:50rpx!important;
  1136. padding-right:12rpx!important;
  1137. }
  1138. /deep/.input-value{
  1139. font-size:24rpx!important;
  1140. line-height:60rpx!important;
  1141. }
  1142. /deep/.selected-area{
  1143. padding-left:18rpx!important;
  1144. }
  1145. /deep/.placeholder{
  1146. color:#999!important;
  1147. }
  1148. /deep/.icon-clear{
  1149. line-height:40rpx;
  1150. }
  1151. /deep/.uni-icons{
  1152. font-size:34rpx!important;
  1153. color:#999!important;
  1154. }
  1155. }
  1156. .list {
  1157. width: 750rpx;
  1158. padding: 0 30rpx;
  1159. box-sizing: border-box;
  1160. .list-li {
  1161. width: 690rpx;
  1162. min-height: 240rpx;
  1163. background: #FFFFFF;
  1164. border-radius: 10rpx 10rpx 10rpx 10rpx;
  1165. padding: 0 30rpx;
  1166. box-sizing: border-box;
  1167. margin-top: 20rpx;
  1168. .list-li-t {
  1169. display: flex;
  1170. justify-content: flex-start;
  1171. align-items: center;
  1172. height: 90rpx;
  1173. border-bottom: 2rpx dashed #D8D8D8;
  1174. .list-li-t-l {
  1175. width: 40rpx;
  1176. height: 40rpx;
  1177. margin-right: 16rpx;
  1178. }
  1179. .list-li-t-c {
  1180. width: 264rpx;
  1181. font-size: 30rpx;
  1182. color: #333333;
  1183. line-height: 30rpx;
  1184. text-align: left;
  1185. overflow: hidden;
  1186. text-overflow: ellipsis;
  1187. white-space: nowrap;
  1188. margin-right: 24rpx;
  1189. }
  1190. .list-li-t-r {
  1191. display: flex;
  1192. justify-content: flex-start;
  1193. border-radius: 10rpx 10rpx 10rpx 10rpx;
  1194. width: 200rpx;
  1195. height: 40rpx;
  1196. margin-left: 10rpx;
  1197. >text {
  1198. display: inline-block;
  1199. flex: 1;
  1200. text-align: center;
  1201. font-size: 24rpx;
  1202. line-height: 40rpx;
  1203. text-align: center;
  1204. overflow: hidden;
  1205. text-overflow: ellipsis;
  1206. white-space: nowrap;
  1207. }
  1208. }
  1209. }
  1210. .list-li-b {
  1211. overflow: hidden;
  1212. .list-li-b-t {
  1213. display: flex;
  1214. justify-content: flex-start;
  1215. align-items: center;
  1216. >img {
  1217. width: 28rpx;
  1218. height: 26rpx;
  1219. margin-right: 16rpx;
  1220. }
  1221. font-size: 28rpx;
  1222. color: #666666;
  1223. line-height: 30rpx;
  1224. text-align: left;
  1225. margin-top: 32rpx;
  1226. overflow: hidden;
  1227. text-overflow: ellipsis;
  1228. white-space: nowrap;
  1229. }
  1230. .list-li-b-b {
  1231. display: flex;
  1232. justify-content: space-between;
  1233. align-items: center;
  1234. margin-top: 20rpx;
  1235. .list-li-b-b-l {
  1236. display: flex;
  1237. justify-content: flex-start;
  1238. align-items: center;
  1239. >img {
  1240. width: 28rpx;
  1241. height: 26rpx;
  1242. margin-right: 16rpx;
  1243. }
  1244. font-size: 28rpx;
  1245. color: #666666;
  1246. line-height: 30rpx;
  1247. text-align: left;
  1248. overflow: hidden;
  1249. text-overflow: ellipsis;
  1250. white-space: nowrap;
  1251. }
  1252. .finished {
  1253. width: 110rpx;
  1254. height: 40rpx;
  1255. background: rgba(1, 131, 250, 0.2);
  1256. border-radius: 20rpx 20rpx 20rpx 20rpx;
  1257. font-size: 24rpx;
  1258. color: #0183FA;
  1259. line-height: 40rpx;
  1260. text-align: center;
  1261. }
  1262. .finished-b {
  1263. width: 110rpx;
  1264. height: 40rpx;
  1265. background: rgba(255, 182, 0, 0.2);
  1266. border-radius: 20rpx 20rpx 20rpx 20rpx;
  1267. font-size: 24rpx;
  1268. color: #ffb600;
  1269. line-height: 40rpx;
  1270. text-align: center;
  1271. }
  1272. .notFinished {
  1273. width: 110rpx;
  1274. height: 40rpx;
  1275. background: #E0E0E0;
  1276. border-radius: 20rpx 20rpx 20rpx 20rpx;
  1277. font-size: 24rpx;
  1278. color: #666666;
  1279. line-height: 40rpx;
  1280. text-align: center;
  1281. }
  1282. }
  1283. }
  1284. }
  1285. }
  1286. .get-data-null-p {
  1287. height: 100rpx;
  1288. line-height: 100rpx;
  1289. text-align: center;
  1290. }
  1291. #color-A {
  1292. color: #0183FA;
  1293. }
  1294. #color-B {
  1295. color: #FF8C00;
  1296. }
  1297. #color-C {
  1298. color: #16B531;
  1299. }
  1300. .saoCode {
  1301. position: fixed;
  1302. left: 288rpx;
  1303. bottom: 20rpx;
  1304. width: 160rpx;
  1305. height: 160rpx;
  1306. }
  1307. .shade-box {
  1308. height: 100%;
  1309. width: 100%;
  1310. position: fixed;
  1311. display: flex;
  1312. flex-direction: column;
  1313. z-index: 200;
  1314. background: rgba(0, 0, 0, 0.2);
  1315. top: 0;
  1316. .null-box {
  1317. flex: 1;
  1318. }
  1319. .shade_n {
  1320. position: absolute;
  1321. bottom: 0;
  1322. left: 0;
  1323. width: 750rpx;
  1324. height: 466rpx;
  1325. background: #FFFFFF;
  1326. border-radius: 20rpx 20rpx 0rpx 0rpx;
  1327. overflow-y: auto;
  1328. .title {
  1329. display: flex;
  1330. justify-content: space-between;
  1331. align-items: center;
  1332. padding: 0 50rpx 0 284rpx;
  1333. box-sizing: border-box;
  1334. border-bottom: 1rpx solid #E0E0E0;
  1335. >view {
  1336. font-size: 30rpx;
  1337. color: #3D3D3D;
  1338. line-height: 90rpx;
  1339. text-align: left;
  1340. }
  1341. >img {
  1342. width: 24rpx;
  1343. height: 12rpx;
  1344. }
  1345. }
  1346. .batch {
  1347. padding: 0 30rpx;
  1348. box-sizing: border-box;
  1349. .batch-li {
  1350. display: flex;
  1351. justify-content: space-between;
  1352. align-items: center;
  1353. border-bottom: 1rpx solid #E0E0E0;
  1354. padding: 20rpx 0 16rpx 0rpx;
  1355. box-sizing: border-box;
  1356. .batch-li-l {
  1357. >text:nth-of-type(1) {
  1358. display: block;
  1359. font-size: 30rpx;
  1360. color: #333333;
  1361. line-height: 42rpx;
  1362. text-align: left;
  1363. }
  1364. >text:nth-of-type(2) {
  1365. display: block;
  1366. font-size: 28rpx;
  1367. color: #666666;
  1368. line-height: 39rpx;
  1369. text-align: left;
  1370. margin-top: 6rpx;
  1371. }
  1372. }
  1373. .batch-li-r {
  1374. font-size: 28rpx;
  1375. color: #666666;
  1376. line-height: 39rpx;
  1377. text-align: left;
  1378. display: flex;
  1379. justify-content: flex-start;
  1380. align-items: center;
  1381. >img {
  1382. width: 24rpx;
  1383. height: 24rpx;
  1384. margin-left: 9rpx;
  1385. }
  1386. }
  1387. }
  1388. }
  1389. }
  1390. }
  1391. }
  1392. </style>