patrolPlanAdd.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872
  1. <!-- 安全检查-发起巡查计划 -->
  2. <template>
  3. <view class="examine">
  4. <scroll-view scroll-y @scrolltolower="scrollGet" class="info-max-box">
  5. <view class="basics">
  6. <view class="title">
  7. <view class="title_t">计划标题</view>
  8. <textarea class="title_b" type="text" v-model="form.title" maxlength="200" placeholder="请输入检查计划标题" placeholder-style="color:#999999;font-size:30rpx;"></textarea>
  9. </view>
  10. <view class="type">
  11. <view class="type_l">检查类型</view>
  12. <input class="type_r" type="text" v-model="form.checkTypeName" placeholder="" disabled maxlength="20">
  13. </view>
  14. <view class="period">
  15. <view class="period_l">检查周期</view>
  16. <view class="period_r">
  17. <picker mode="date" @change="startChange(form,$event)">
  18. <input class="picker-text" disabled type="text" v-model="form.cycleStartTime" placeholder="开始时间">
  19. </picker>
  20. <view>至</view>
  21. <picker mode="date" @change="endChange(form,$event)">
  22. <input class="picker-text2" disabled type="text" v-model="form.cycleEndTime" placeholder="结束时间">
  23. </picker>
  24. </view>
  25. </view>
  26. <view class="tiem_quick">
  27. <view @click="tiemQuick(index)" :class="item.type?'tiem_quick_a':'tiem_quick_b'" v-for="(item,index) in tiemQuickList">{{item.name}}</view>
  28. </view>
  29. <view class="scope">
  30. <view class="scope_l">检查范围</view>
  31. <picker @change="scopeChange" :value="scopeIndex" :range="scopeArray" class="scope_r">
  32. <view class="scope_r_n">
  33. <view>{{form.checkRange?(form.checkRange==1?'全校':(form.checkRange==2?'学院':'实验室')):'选择检查范围'}}</view>
  34. <img src="@/pages_safetyExamine/images/icon_06.png">
  35. </view>
  36. </picker>
  37. </view>
  38. <view class="scope_btn" v-if="scopeIndex==1 || scopeIndex==2" @click="collegeOrLab()">{{scopeIndex==1?'选择学院':'选择实验室'}}</view>
  39. <view class="scope_text" v-if="scopeIndex==0 || scopeIndex==1">已选择<text>{{form.collegeNum}}</text>个学院,共<text>{{form.subjectNum}}</text>间实验室</view>
  40. <view class="scope_text" v-if="scopeIndex==2">已选择<text>{{form.subjectNum}}</text>间实验室</view>
  41. <view class="title">
  42. <view class="title_t">检查要求</view>
  43. <textarea class="title_b" type="text" v-model="form.checkDemand" maxlength="200" placeholder="请输入检查要求" placeholder-style="color:#999999;font-size:30rpx;"></textarea>
  44. </view>
  45. </view>
  46. <view class="patrol_group" v-if="form.checkType==1">
  47. <view class="patrol">
  48. <view class="patrol_l">巡查组</view>
  49. <view class="patrol_r_n" @click="patrolChange">
  50. <view>{{form.checkGroupName?form.checkGroupName:'请选择巡查组'}}</view>
  51. <img src="@/pages_safetyExamine/images/icon_06.png">
  52. </view>
  53. </view>
  54. <view class="list">
  55. <view class="list_title"><img src="@/pages_safetyExamine/images/icon_jcjh_cy.png">成员</view>
  56. <view class="list_header"><text>工号</text><text>姓名</text></view>
  57. <view class="list_li" v-for="(item,index) in form.checkMemberDtoList"><text>{{item.jobNum}}</text><text>{{item.name}}</text></view>
  58. <view class="list_bottom" v-if="form.checkMemberDtoList.length==0">无数据</view>
  59. </view>
  60. </view>
  61. </scroll-view>
  62. <view class="bottom_btn" @click="submitForm()">保存</view>
  63. <!-- 选择学院-->
  64. <view class="shade" v-if="dialogVisible">
  65. <view class="null-box" @click="dialogClose()"></view>
  66. <view class="shade_n">
  67. <view class="shade_n_title"><text>选择学院</text><text @click="collegeConfirm">确定</text></view>
  68. <view class="shade_n_b">
  69. <view class="shade_n_b_li" v-for="(item,index) in collegeList" :key="index" @click="collegeSelete(index)">
  70. <text :class="item.type?'color_B':'color_A'">{{item.deptName}}</text>
  71. <img v-if="item.type" src="@/pages_safetyExamine/images/icon_xzwt_xz.png">
  72. </view>
  73. </view>
  74. </view>
  75. </view>
  76. </view>
  77. </template>
  78. <script>
  79. import { config } from '@/api/request/config.js'
  80. import { checkPlanAdd,conditionCollegeInfo,getAllSubNum,isSCollege} from '@/api/index.js'
  81. export default {
  82. name: "rectifyList",
  83. components: {
  84. },
  85. data() {
  86. return {
  87. pageType:0,
  88. //列表请求参数
  89. getData:{
  90. pageNum:1,
  91. pageSize:20,
  92. },
  93. form:{
  94. title:'',
  95. checkType:'1',//1校院巡查 2实验室自查
  96. checkTypeName:'校院巡查',//1校院巡查 2实验室自查
  97. cycleStartTime:'',
  98. cycleEndTime:'',
  99. checkRange:'',//检查范围 1全校 2学院 3实验室
  100. checkLevel:'',//巡查组层级
  101. seleteListMember:[],//临时存储选中巡查组
  102. checkMemberDtoList:[],//巡查组成员
  103. collegeIds:'',//学院id组
  104. collegeNum:0,//学院数量
  105. subIds:'',//实验室id组
  106. subjectNum:0,//实验室数量
  107. checkDemand:'',//检查要求
  108. tiemQuickList:[],
  109. scopeIndex:'',//0 全校 1学院 2实验室
  110. seleteListLab:[],
  111. groupDataType:'',//巡查组状态 院级/校级
  112. },
  113. tiemQuickList:[{name:'本月',type:false},{name:'本季度',type:false},{name:'全年',type:false}],
  114. scopeIndex:0,
  115. scopeArray:['全校','学院','实验室'],
  116. dialogVisible:false,
  117. collegeList:[]
  118. }
  119. },
  120. onLoad(option) {
  121. if(option.form){
  122. this.form=JSON.parse(decodeURIComponent(option.form));
  123. this.tiemQuickList=this.form.tiemQuickList//时间快捷
  124. this.scopeIndex=this.form.scopeIndex//检查范围
  125. console.log(this.form)
  126. }
  127. if(option.pageType){
  128. if(option.pageType==1){//校院巡查
  129. this.form.checkType=option.pageType;
  130. this.form.checkTypeName='校院巡查';
  131. }else if(option.pageType==2){//实验室自查
  132. this.form.checkType=option.pageType;
  133. this.form.checkTypeName='实验室自查';
  134. }
  135. }
  136. },
  137. onShow() {
  138. },
  139. mounted(){
  140. this.isSCollege();
  141. },
  142. methods: {
  143. //滚动事件
  144. scrollGet(){
  145. },
  146. //顶部tab点击
  147. tabClick(index) {
  148. this.curTab = index;
  149. },
  150. //开始时间选中事件
  151. startChange(form,e){
  152. if(new Date(e.target.value).getTime()>new Date(form.cycleEndTime).getTime()){
  153. uni.showToast({
  154. title: '结束时间不能小于开始时间',
  155. icon:"none",
  156. mask:true,
  157. duration: 2000
  158. });
  159. }else{
  160. form.cycleStartTime=e.target.value
  161. }
  162. },
  163. //结束时间选中事件
  164. endChange(form,e){
  165. if(new Date(form.cycleStartTime).getTime()>new Date(e.target.value).getTime()){
  166. uni.showToast({
  167. title: '结束时间不能小于开始时间',
  168. icon:"none",
  169. mask:true,
  170. duration: 2000
  171. });
  172. }else{
  173. form.cycleEndTime=e.target.value
  174. }
  175. },
  176. //检查周期快捷
  177. tiemQuick(index){
  178. this.tiemQuickList[index].type = !this.tiemQuickList[index].type
  179. let _this = this;
  180. if (_this.tiemQuickList[index].type == true) {
  181. _this.tiemQuickList.forEach(function(item2) {
  182. if (item2.name == _this.tiemQuickList[index].name) {
  183. item2.type = true
  184. } else {
  185. item2.type = false
  186. }
  187. })
  188. //快捷本月-本季度-全年
  189. _this.timeSlotChange(_this.tiemQuickList[index].name)
  190. }else{
  191. console.log('取消选中')
  192. _this.form.cycleStartTime='';
  193. _this.form.cycleEndTime='';
  194. }
  195. },
  196. //查询当前用户是否是院级
  197. async isSCollege(){
  198. let _this = this;
  199. const {data} = await isSCollege();
  200. if(data.code == 200){
  201. if(data.data.userFlg){
  202. // 院级
  203. this.$set(this,'scopeArray',['学院','实验室']);
  204. this.form.groupDataType=2;
  205. }else{
  206. // 校级
  207. this.$set(this,'scopeArray',['全校','学院','实验室']);
  208. this.form.groupDataType=0;
  209. }
  210. }
  211. },
  212. //检查范围
  213. scopeChange(e){
  214. let _this=this;
  215. console.log(this.scopeArray[e.target.value])
  216. if(this.scopeArray[e.target.value]=='全校'){
  217. _this.scopeIndex=0;
  218. _this.form.checkRange=1;
  219. }else if(this.scopeArray[e.target.value]=='学院'){
  220. _this.scopeIndex=1;
  221. _this.form.checkRange=2;
  222. }else if(this.scopeArray[e.target.value]=='实验室'){
  223. _this.scopeIndex=2;
  224. _this.form.checkRange=3;
  225. }
  226. if(this.form.subjectNum>0){
  227. uni.showModal({
  228. content: '重新选择会删除现有选择的实验室,是否重选?',
  229. cancelColor:"#999",
  230. confirmColor:"#0183FA",
  231. success: function (res) {
  232. if (res.confirm) {
  233. _this.form.collegeIds ='';
  234. _this.form.collegeNum =0;
  235. _this.form.subIds ='';
  236. _this.form.subjectNum =0;
  237. if(_this.scopeIndex==0){//全校
  238. _this.getAllSubNum();
  239. }else if(_this.scopeIndex==1){//选择学院
  240. _this.conditionCollegeInfo();
  241. }else if(_this.scopeIndex==2){
  242. console.log('选择实验室')
  243. }
  244. } else if (res.cancel) {
  245. }
  246. }
  247. });
  248. }else{
  249. if(_this.scopeIndex==0){//全校
  250. _this.getAllSubNum();
  251. }else if(_this.scopeIndex==1){//选择学院
  252. _this.conditionCollegeInfo();
  253. }else if(_this.scopeIndex==2){
  254. console.log('选择实验室')
  255. }
  256. }
  257. },
  258. timeSlotChange (val) {
  259. let _this=this;
  260. let cycleStartTime, cycleEndTime;
  261. let now = new Date(); //当前日期
  262. let nowDayOfWeek = now.getDay(); //今天本周的第几天
  263. let nowDay = now.getDate(); //当前日
  264. let nowMonth = now.getMonth(); //当前月
  265. let nowYear = now.getFullYear(); //当前年
  266. let jd=Math.ceil((nowMonth + 1) / 3)
  267. switch (val) {
  268. case "本周":
  269. cycleStartTime = new Date(nowYear, nowMonth, nowDay - nowDayOfWeek)
  270. cycleEndTime = new Date(nowYear, nowMonth, nowDay + 6 - nowDayOfWeek)
  271. break;
  272. case "本月":
  273. cycleStartTime = new Date(nowYear, nowMonth, 1)
  274. cycleEndTime = new Date(nowYear, nowMonth + 1, 0)
  275. break;
  276. case "本季度":
  277. cycleStartTime = new Date(nowYear, (jd-1)*3, 1)
  278. cycleEndTime = new Date(nowYear, jd*3, 0)
  279. break
  280. case "全年":
  281. cycleStartTime = new Date(nowYear, 0, 1)
  282. cycleEndTime = new Date(nowYear, 11, 31)
  283. break
  284. }
  285. _this.form.cycleStartTime=_this.formatDateTime(cycleStartTime)
  286. _this.form.cycleEndTime=_this.formatDateTime(cycleEndTime)
  287. },
  288. // 中国标准时间 转换成 年月日
  289. formatDateTime (date) {
  290. var y = date.getFullYear();
  291. var m = date.getMonth() + 1;
  292. m = m < 10 ? ('0' + m) : m;
  293. var d = date.getDate();
  294. d = d < 10 ? ('0' + d) : d;
  295. var h = date.getHours();
  296. var minute = date.getMinutes();
  297. minute = minute < 10 ? ('0' + minute) : minute;
  298. // return y + '-' + m + '-' + d+' '+h+':'+minute;
  299. return y + '-' + m + '-' + d
  300. },
  301. //巡查组
  302. patrolChange(){
  303. this.form.tiemQuickList=this.tiemQuickList//检查周期快捷存储
  304. this.form.scopeIndex=this.scopeIndex//检查范围
  305. uni.redirectTo({
  306. url: '/pages_safetyExamine/patrolPlan/patrolPlanAddMember?form='+encodeURIComponent(JSON.stringify(this.form))+'&pageType=1'
  307. });
  308. },
  309. //选择学院或者实验室
  310. collegeOrLab(){
  311. console.log(this.scopeIndex)
  312. if(this.scopeIndex==1){//学院
  313. this.dialogVisible=true;
  314. }else if(this.scopeIndex==2){//实验室
  315. this.form.tiemQuickList=this.tiemQuickList//检查周期快捷存储
  316. this.form.scopeIndex=this.scopeIndex//检查范围
  317. uni.redirectTo({
  318. url: '/pages_safetyExamine/patrolPlan/patrolPlanAddLab?form='+encodeURIComponent(JSON.stringify(this.form))+'&pageType=1'
  319. });
  320. }
  321. },
  322. //选择学院弹窗关闭
  323. dialogClose(){
  324. this.dialogVisible=false;
  325. },
  326. //选择学院确定
  327. collegeConfirm(){
  328. let _this=this;
  329. this.dialogVisible=false;
  330. let list=[];
  331. let collegeIds=[];
  332. let subjectNum=0;
  333. _this.collegeList.forEach(function(item){
  334. if(item.type==true){
  335. list.push(item)
  336. collegeIds.push(item.deptId);
  337. subjectNum+=item.subNum;
  338. }
  339. })
  340. _this.form.collegeIds=collegeIds.join(',');
  341. _this.form.subjectNum=subjectNum;
  342. _this.form.collegeNum=list.length;
  343. },
  344. //学院选择
  345. collegeSelete(index){
  346. this.collegeList[index].type = !this.collegeList[index].type
  347. },
  348. //查询学院列表
  349. async conditionCollegeInfo(){
  350. let _this = this;
  351. const {data} = await conditionCollegeInfo();
  352. if(data.code == 200){
  353. data.data.forEach(function(item){
  354. item.type=false;
  355. })
  356. _this.collegeList=data.data;
  357. }
  358. },
  359. //查询全校学院和实验室数量
  360. async getAllSubNum(){
  361. let _this = this;
  362. const {data} = await getAllSubNum();
  363. if(data.code == 200){
  364. this.form.collegeNum=data.data.collegeCount
  365. this.form.subjectNum=data.data.subCount
  366. }
  367. },
  368. handleClick(doType){
  369. let self=this;
  370. if( doType=='subBtn'){//
  371. console.log(11)
  372. }
  373. },
  374. //巡查计划-添加
  375. async submitForm(){
  376. let _this = this;
  377. if(!_this.form.title){
  378. uni.showToast({
  379. title: '请输入计划标题',
  380. icon:"none",
  381. mask:true,
  382. duration: 2000
  383. });
  384. return;
  385. }
  386. if(!_this.form.cycleStartTime || !_this.form.cycleEndTime){
  387. uni.showToast({
  388. title: '请选择计划周期',
  389. icon:"none",
  390. mask:true,
  391. duration: 2000
  392. });
  393. return;
  394. }
  395. if(!_this.form.checkRange){
  396. uni.showToast({
  397. title: '请选择检查范围',
  398. icon:"none",
  399. mask:true,
  400. duration: 2000
  401. });
  402. return;
  403. }
  404. if(_this.form.checkRange==3 && _this.form.subjectNum==0){
  405. uni.showToast({
  406. title: '请选择实验室',
  407. icon:"none",
  408. mask:true,
  409. duration: 2000
  410. });
  411. return;
  412. }
  413. const {data} = await checkPlanAdd(_this.form);
  414. if(data.code == 200){
  415. uni.showToast({
  416. title: '提交成功',
  417. icon:"none",
  418. mask:true,
  419. duration: 2000
  420. });
  421. uni.redirectTo({
  422. url: '/pages_safetyExamine/patrolPlan/patrolPlanList?pageType='+this.form.checkType
  423. });
  424. }
  425. },
  426. }
  427. }
  428. </script>
  429. <style lang="stylus" scoped>
  430. .examine{
  431. height:100%;
  432. display flex;
  433. // padding: 0 30rpx;
  434. // box-sizing: border-box;
  435. padding-bottom: 126rpx;
  436. box-sizing: border-box;
  437. .info-max-box{
  438. flex: 1;
  439. overflow: scroll;
  440. padding: 0 30rpx;
  441. box-sizing: border-box;
  442. }
  443. .basics{
  444. width: 690rpx;
  445. background: #FFFFFF;
  446. border-radius: 20rpx;
  447. margin-top: 20rpx;
  448. padding: 60rpx 26rpx 32rpx;
  449. box-sizing: border-box;
  450. .title{
  451. .title_t{
  452. font-size: 30rpx;
  453. font-family: PingFang SC-Medium, PingFang SC;
  454. font-weight: 400;
  455. color: #333333;
  456. line-height: 42rpx;
  457. margin-bottom: 12rpx;
  458. }
  459. .title_b{
  460. width: 636rpx;
  461. height: 150rpx;
  462. border-radius: 10rpx;
  463. opacity: 1;
  464. border: 1rpx solid #E0E0E0;
  465. padding: 26rpx 23rpx;
  466. box-sizing: border-box;
  467. }
  468. }
  469. .type{
  470. display: flex;
  471. justify-content: flex-start;
  472. align-items: center;
  473. margin-top: 20rpx;
  474. .type_l{
  475. width: 146rpx;
  476. font-size: 30rpx;
  477. font-family: PingFang SC-Medium, PingFang SC;
  478. font-weight: 400;
  479. color: #333333;
  480. line-height: 42rpx;
  481. text-align: left;
  482. }
  483. .type_r{
  484. width: 490rpx;
  485. height: 80rpx;
  486. border-radius: 10rpx;
  487. padding-left:22rpx;
  488. box-sizing: border-box;
  489. background: #F5F5F5;
  490. }
  491. }
  492. .period{
  493. display: flex;
  494. justify-content: flex-start;
  495. align-items: center;
  496. margin-top: 26rpx;
  497. .period_l{
  498. width: 146rpx;
  499. font-size: 30rpx;
  500. font-family: PingFang SC-Medium, PingFang SC;
  501. font-weight: 400;
  502. color: #333333;
  503. line-height: 42rpx;
  504. text-align: left;
  505. }
  506. .period_r{
  507. width: 490rpx;
  508. height: 80rpx;
  509. border-radius: 10rpx;
  510. border: 1rpx solid #E0E0E0;
  511. display: flex;
  512. justify-content: flex-start;
  513. align-items: center;
  514. .picker-text{
  515. font-size: 30rpx;
  516. font-family: PingFang SC-Medium, PingFang SC;
  517. font-weight: 400;
  518. color: #999999;
  519. line-height: 80rpx;
  520. width: 230rpx;
  521. text-align: center;
  522. }
  523. .picker-text2{
  524. font-size: 30rpx;
  525. font-family: PingFang SC-Medium, PingFang SC;
  526. font-weight: 400;
  527. color: #999999;
  528. line-height: 80rpx;
  529. width: 230rpx;
  530. text-align: center;
  531. }
  532. }
  533. }
  534. .tiem_quick{
  535. margin-left: 146rpx;
  536. display: flex;
  537. justify-content: flex-start;
  538. margin-top: 20rpx;
  539. >view{
  540. width: 130rpx;
  541. height: 80rpx;
  542. opacity: 1;
  543. border: 1rpx solid #E0E0E0;
  544. font-size: 30rpx;
  545. font-family: PingFang SC-Medium, PingFang SC;
  546. font-weight: 400;
  547. line-height: 80rpx;
  548. text-align: center;
  549. }
  550. >view:nth-of-type(1){
  551. border-radius: 10rpx 0rpx 0rpx 10rpx;
  552. }
  553. >view:nth-of-type(3){
  554. border-radius: 0rpx 10rpx 10rpx 0rpx;
  555. }
  556. .tiem_quick_a{
  557. background: #0183FA;
  558. color: #FFFFFF;
  559. }
  560. .tiem_quick_b{
  561. background: #F5F5F5;
  562. color: #333333;
  563. }
  564. }
  565. .scope{
  566. display: flex;
  567. justify-content: flex-start;
  568. align-items: center;
  569. margin-top: 26rpx;
  570. .scope_l{
  571. width: 146rpx;
  572. font-size: 30rpx;
  573. font-family: PingFang SC-Medium, PingFang SC;
  574. font-weight: 400;
  575. color: #333333;
  576. line-height: 42rpx;
  577. text-align: left;
  578. }
  579. .scope_r{
  580. flex: 1;
  581. .scope_r_n{
  582. width: 490rpx;
  583. height: 80rpx;
  584. border-radius: 10rpx;
  585. border: 1rpx solid #E0E0E0;
  586. display: flex;
  587. justify-content: flex-start;
  588. align-items: center;
  589. >view{
  590. flex:1;
  591. line-height:80rpx;
  592. margin-left:20rpx;
  593. color: #999999;
  594. font-size:28rpx;
  595. }
  596. >img{
  597. width: 14rpx;
  598. height: 8rpx;
  599. margin-right: 30rpx;
  600. }
  601. }
  602. }
  603. }
  604. .scope_btn{
  605. display: inline-block;
  606. background: #0183FA;
  607. border-radius: 10rpx;
  608. font-size: 30rpx;
  609. font-family: PingFang SC-Medium, PingFang SC;
  610. font-weight: 400;
  611. color: #FFFFFF;
  612. line-height: 80rpx;
  613. text-align: center;
  614. padding: 0 16rpx;
  615. box-sizing: border-box;
  616. margin-top: 40rpx;
  617. margin-left: 146rpx;
  618. }
  619. .scope_text{
  620. margin-left: 146rpx;
  621. font-size: 30rpx;
  622. font-family: PingFang SC-Medium, PingFang SC;
  623. font-weight: 400;
  624. color: #333333;
  625. margin-top: 32rpx;
  626. line-height: 42rpx;
  627. >text{
  628. color: #0183FA;
  629. }
  630. }
  631. }
  632. .patrol_group{
  633. width: 690rpx;
  634. background: #FFFFFF;
  635. border-radius: 20rpx;
  636. margin-top: 20rpx;
  637. padding: 40rpx 30rpx 64rpx;
  638. box-sizing: border-box;
  639. .patrol{
  640. display: flex;
  641. justify-content: flex-start;
  642. align-items: center;
  643. margin-top: 26rpx;
  644. .patrol_l{
  645. width: 146rpx;
  646. font-size: 30rpx;
  647. font-family: PingFang SC-Medium, PingFang SC;
  648. font-weight: 400;
  649. color: #333333;
  650. line-height: 42rpx;
  651. text-align: left;
  652. }
  653. .patrol_r_n{
  654. width: 490rpx;
  655. height: 80rpx;
  656. border-radius: 10rpx;
  657. border: 1rpx solid #E0E0E0;
  658. display: flex;
  659. justify-content: flex-start;
  660. align-items: center;
  661. >view{
  662. flex:1;
  663. line-height:80rpx;
  664. margin-left:20rpx;
  665. color: #999999;
  666. font-size:28rpx;
  667. }
  668. >img{
  669. width: 14rpx;
  670. height: 8rpx;
  671. margin-right: 30rpx;
  672. }
  673. }
  674. }
  675. .list{
  676. margin-top: 42rpx;
  677. .list_title{
  678. display: flex;
  679. justify-content: flex-start;
  680. align-items: center;
  681. height: 80rpx;
  682. background: #F5F5F5;
  683. border-radius: 10rpx 10rpx 0rpx 0rpx;
  684. font-size: 30rpx;
  685. font-family: PingFang SC-Medium, PingFang SC;
  686. font-weight: 400;
  687. color: #333333;
  688. line-height: 80rpx;
  689. >img{
  690. width: 30rpx;
  691. height: 30rpx;
  692. margin: 0 20rpx;
  693. }
  694. }
  695. .list_header{
  696. display: flex;
  697. justify-content: flex-start;
  698. >text{
  699. flex: 1;
  700. height: 80rpx;
  701. background: #F5F5F5;
  702. font-size: 30rpx;
  703. font-family: PingFang SC-Medium, PingFang SC;
  704. font-weight: 400;
  705. color: #333333;
  706. line-height: 80rpx;
  707. text-align: center;
  708. border: 1rpx solid #E0E0E0;
  709. }
  710. >text:nth-of-type(1){
  711. border-right: none;
  712. }
  713. }
  714. .list_li{
  715. display: flex;
  716. justify-content: flex-start;
  717. >text{
  718. flex: 1;
  719. height: 80rpx;
  720. font-size: 30rpx;
  721. font-family: PingFang SC-Medium, PingFang SC;
  722. font-weight: 400;
  723. color: #333333;
  724. line-height: 80rpx;
  725. text-align: center;
  726. border: 1rpx solid #E0E0E0;
  727. }
  728. >text:nth-of-type(1){
  729. border-right: none;
  730. border-top: none;
  731. }
  732. >text:nth-of-type(2){
  733. border-top: none;
  734. }
  735. }
  736. .list_bottom{
  737. flex: 1;
  738. height: 80rpx;
  739. font-size: 30rpx;
  740. font-family: PingFang SC-Medium, PingFang SC;
  741. font-weight: 400;
  742. color: #999999;
  743. line-height: 80rpx;
  744. text-align: center;
  745. border: 1rpx solid #E0E0E0;
  746. border-top: none;
  747. }
  748. }
  749. }
  750. .bottom_btn{
  751. position: fixed;
  752. bottom: 26rpx;
  753. left: 30rpx;
  754. font-size: 30rpx;
  755. font-family: PingFang SC-Medium, PingFang SC;
  756. font-weight: 400;
  757. color: #FFFFFF;
  758. line-height: 90rpx;
  759. width: 690rpx;
  760. height: 90rpx;
  761. background: #0183FA;
  762. border-radius: 20rpx;
  763. text-align: center;
  764. }
  765. /* 指纹采集 */
  766. .shade {
  767. height: 100%;
  768. width: 100%;
  769. position: fixed;
  770. display: flex;
  771. flex-direction: column;
  772. z-index: 10;
  773. background: rgba(0, 0, 0, 0.2);
  774. .null-box {
  775. flex: 1;
  776. }
  777. .shade_n {
  778. position: absolute;
  779. bottom: 0;
  780. left: 0;
  781. width: 750rpx;
  782. height: 560rpx;
  783. background: #FFFFFF;
  784. border-radius: 20rpx 20rpx 0rpx 0rpx;
  785. .shade_n_title{
  786. height: 100rpx;
  787. padding: 0 30rpx;
  788. box-sizing: border-box;
  789. display: flex;
  790. justify-content:space-between;
  791. border-bottom: 1rpx solid #E0E0E0;
  792. >text:nth-of-type(1){
  793. font-size: 30rpx;
  794. font-family: PingFang SC-Medium, PingFang SC;
  795. font-weight: 400;
  796. color: #333333;
  797. line-height: 100rpx;
  798. }
  799. >text:nth-of-type(2){
  800. font-size: 30rpx;
  801. font-family: PingFang SC-Medium, PingFang SC;
  802. font-weight: 400;
  803. color: #0183FA;
  804. line-height: 100rpx;
  805. }
  806. }
  807. .shade_n_b{
  808. height: 460rpx;
  809. padding: 0 30rpx;
  810. box-sizing: border-box;
  811. overflow-y: auto;
  812. .shade_n_b_li{
  813. display: flex;
  814. justify-content:space-between;
  815. align-items: center;
  816. height: 80rpx;
  817. border-bottom: 1rpx solid #E0E0E0;
  818. >text{
  819. font-size: 28rpx;
  820. font-family: PingFang SC-Medium, PingFang SC;
  821. font-weight: 400;
  822. line-height: 80rpx;
  823. overflow: hidden;
  824. text-overflow:ellipsis;
  825. white-space: nowrap;
  826. }
  827. >img{
  828. width: 24rpx;
  829. height: 16rpx;
  830. margin-right: 14rpx;
  831. }
  832. }
  833. .color_A{
  834. color: #333333;
  835. }
  836. .color_B{
  837. color: #0183FA;
  838. }
  839. }
  840. }
  841. }
  842. }
  843. </style>