patrolPlanAdd.vue 23 KB

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