patrolPlanAdd.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892
  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==2 && _this.form.subjectNum==0){
  405. uni.showToast({
  406. title: '请选择学院',
  407. icon:"none",
  408. mask:true,
  409. duration: 2000
  410. });
  411. return;
  412. }
  413. if(_this.form.checkRange==3 && _this.form.subjectNum==0){
  414. uni.showToast({
  415. title: '请选择实验室',
  416. icon:"none",
  417. mask:true,
  418. duration: 2000
  419. });
  420. return;
  421. }
  422. if( _this.form.checkType==1 &&_this.form.checkMemberDtoList.length<=0){
  423. uni.showToast({
  424. title: '请选择巡查组',
  425. icon:"none",
  426. mask:true,
  427. duration: 2000
  428. });
  429. return;
  430. }
  431. const {data} = await checkPlanAdd(_this.form);
  432. if(data.code == 200){
  433. uni.showToast({
  434. title: '提交成功',
  435. icon:"none",
  436. mask:true,
  437. duration: 2000
  438. });
  439. uni.redirectTo({
  440. url: '/pages_safetyExamine/patrolPlan/patrolPlanList?pageType='+this.form.checkType
  441. });
  442. }
  443. },
  444. }
  445. }
  446. </script>
  447. <style lang="stylus" scoped>
  448. .examine{
  449. height:100%;
  450. display flex;
  451. // padding: 0 30rpx;
  452. // box-sizing: border-box;
  453. padding-bottom: 126rpx;
  454. box-sizing: border-box;
  455. .info-max-box{
  456. flex: 1;
  457. overflow: scroll;
  458. padding: 0 30rpx;
  459. box-sizing: border-box;
  460. }
  461. .basics{
  462. width: 690rpx;
  463. background: #FFFFFF;
  464. border-radius: 20rpx;
  465. margin-top: 20rpx;
  466. padding: 60rpx 26rpx 32rpx;
  467. box-sizing: border-box;
  468. .title{
  469. .title_t{
  470. font-size: 30rpx;
  471. font-family: PingFang SC-Medium, PingFang SC;
  472. font-weight: 400;
  473. color: #333333;
  474. line-height: 42rpx;
  475. margin-bottom: 12rpx;
  476. }
  477. .title_b{
  478. width: 636rpx;
  479. height: 150rpx;
  480. border-radius: 10rpx;
  481. opacity: 1;
  482. border: 1rpx solid #E0E0E0;
  483. padding: 26rpx 23rpx;
  484. box-sizing: border-box;
  485. }
  486. }
  487. .type{
  488. display: flex;
  489. justify-content: flex-start;
  490. align-items: center;
  491. margin-top: 20rpx;
  492. .type_l{
  493. width: 146rpx;
  494. font-size: 30rpx;
  495. font-family: PingFang SC-Medium, PingFang SC;
  496. font-weight: 400;
  497. color: #333333;
  498. line-height: 42rpx;
  499. text-align: left;
  500. }
  501. .type_r{
  502. width: 490rpx;
  503. height: 80rpx;
  504. border-radius: 10rpx;
  505. padding-left:22rpx;
  506. box-sizing: border-box;
  507. background: #F5F5F5;
  508. }
  509. }
  510. .period{
  511. display: flex;
  512. justify-content: flex-start;
  513. align-items: center;
  514. margin-top: 26rpx;
  515. .period_l{
  516. width: 146rpx;
  517. font-size: 30rpx;
  518. font-family: PingFang SC-Medium, PingFang SC;
  519. font-weight: 400;
  520. color: #333333;
  521. line-height: 42rpx;
  522. text-align: left;
  523. }
  524. .period_r{
  525. width: 490rpx;
  526. height: 80rpx;
  527. border-radius: 10rpx;
  528. border: 1rpx solid #E0E0E0;
  529. display: flex;
  530. justify-content: flex-start;
  531. align-items: center;
  532. .picker-text{
  533. font-size: 30rpx;
  534. font-family: PingFang SC-Medium, PingFang SC;
  535. font-weight: 400;
  536. color: #999999;
  537. line-height: 80rpx;
  538. width: 230rpx;
  539. text-align: center;
  540. }
  541. .picker-text2{
  542. font-size: 30rpx;
  543. font-family: PingFang SC-Medium, PingFang SC;
  544. font-weight: 400;
  545. color: #999999;
  546. line-height: 80rpx;
  547. width: 230rpx;
  548. text-align: center;
  549. }
  550. }
  551. }
  552. .tiem_quick{
  553. margin-left: 146rpx;
  554. display: flex;
  555. justify-content: flex-start;
  556. margin-top: 20rpx;
  557. >view{
  558. width: 130rpx;
  559. height: 80rpx;
  560. opacity: 1;
  561. border: 1rpx solid #E0E0E0;
  562. font-size: 30rpx;
  563. font-family: PingFang SC-Medium, PingFang SC;
  564. font-weight: 400;
  565. line-height: 80rpx;
  566. text-align: center;
  567. }
  568. >view:nth-of-type(1){
  569. border-radius: 10rpx 0rpx 0rpx 10rpx;
  570. }
  571. >view:nth-of-type(3){
  572. border-radius: 0rpx 10rpx 10rpx 0rpx;
  573. }
  574. .tiem_quick_a{
  575. background: #0183FA;
  576. color: #FFFFFF;
  577. }
  578. .tiem_quick_b{
  579. background: #F5F5F5;
  580. color: #333333;
  581. }
  582. }
  583. .scope{
  584. display: flex;
  585. justify-content: flex-start;
  586. align-items: center;
  587. margin-top: 26rpx;
  588. .scope_l{
  589. width: 146rpx;
  590. font-size: 30rpx;
  591. font-family: PingFang SC-Medium, PingFang SC;
  592. font-weight: 400;
  593. color: #333333;
  594. line-height: 42rpx;
  595. text-align: left;
  596. }
  597. .scope_r{
  598. flex: 1;
  599. .scope_r_n{
  600. width: 490rpx;
  601. height: 80rpx;
  602. border-radius: 10rpx;
  603. border: 1rpx solid #E0E0E0;
  604. display: flex;
  605. justify-content: flex-start;
  606. align-items: center;
  607. >view{
  608. flex:1;
  609. line-height:80rpx;
  610. margin-left:20rpx;
  611. color: #999999;
  612. font-size:28rpx;
  613. }
  614. >img{
  615. width: 14rpx;
  616. height: 8rpx;
  617. margin-right: 30rpx;
  618. }
  619. }
  620. }
  621. }
  622. .scope_btn{
  623. display: inline-block;
  624. background: #0183FA;
  625. border-radius: 10rpx;
  626. font-size: 30rpx;
  627. font-family: PingFang SC-Medium, PingFang SC;
  628. font-weight: 400;
  629. color: #FFFFFF;
  630. line-height: 80rpx;
  631. text-align: center;
  632. padding: 0 16rpx;
  633. box-sizing: border-box;
  634. margin-top: 40rpx;
  635. margin-left: 146rpx;
  636. }
  637. .scope_text{
  638. margin-left: 146rpx;
  639. font-size: 30rpx;
  640. font-family: PingFang SC-Medium, PingFang SC;
  641. font-weight: 400;
  642. color: #333333;
  643. margin-top: 32rpx;
  644. line-height: 42rpx;
  645. >text{
  646. color: #0183FA;
  647. }
  648. }
  649. }
  650. .patrol_group{
  651. width: 690rpx;
  652. background: #FFFFFF;
  653. border-radius: 20rpx;
  654. margin-top: 20rpx;
  655. padding: 40rpx 30rpx 64rpx;
  656. box-sizing: border-box;
  657. .patrol{
  658. display: flex;
  659. justify-content: flex-start;
  660. align-items: center;
  661. margin-top: 26rpx;
  662. .patrol_l{
  663. width: 146rpx;
  664. font-size: 30rpx;
  665. font-family: PingFang SC-Medium, PingFang SC;
  666. font-weight: 400;
  667. color: #333333;
  668. line-height: 42rpx;
  669. text-align: left;
  670. }
  671. .patrol_r_n{
  672. width: 490rpx;
  673. height: 80rpx;
  674. border-radius: 10rpx;
  675. border: 1rpx solid #E0E0E0;
  676. display: flex;
  677. justify-content: flex-start;
  678. align-items: center;
  679. >view{
  680. flex:1;
  681. line-height:80rpx;
  682. margin-left:20rpx;
  683. color: #999999;
  684. font-size:28rpx;
  685. }
  686. >img{
  687. width: 14rpx;
  688. height: 8rpx;
  689. margin-right: 30rpx;
  690. }
  691. }
  692. }
  693. .list{
  694. margin-top: 42rpx;
  695. .list_title{
  696. display: flex;
  697. justify-content: flex-start;
  698. align-items: center;
  699. height: 80rpx;
  700. background: #F5F5F5;
  701. border-radius: 10rpx 10rpx 0rpx 0rpx;
  702. font-size: 30rpx;
  703. font-family: PingFang SC-Medium, PingFang SC;
  704. font-weight: 400;
  705. color: #333333;
  706. line-height: 80rpx;
  707. >img{
  708. width: 30rpx;
  709. height: 30rpx;
  710. margin: 0 20rpx;
  711. }
  712. }
  713. .list_header{
  714. display: flex;
  715. justify-content: flex-start;
  716. >text{
  717. flex: 1;
  718. height: 80rpx;
  719. background: #F5F5F5;
  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. }
  731. }
  732. .list_li{
  733. display: flex;
  734. justify-content: flex-start;
  735. >text{
  736. flex: 1;
  737. height: 80rpx;
  738. font-size: 30rpx;
  739. font-family: PingFang SC-Medium, PingFang SC;
  740. font-weight: 400;
  741. color: #333333;
  742. line-height: 80rpx;
  743. text-align: center;
  744. border: 1rpx solid #E0E0E0;
  745. }
  746. >text:nth-of-type(1){
  747. border-right: none;
  748. border-top: none;
  749. }
  750. >text:nth-of-type(2){
  751. border-top: none;
  752. }
  753. }
  754. .list_bottom{
  755. flex: 1;
  756. height: 80rpx;
  757. font-size: 30rpx;
  758. font-family: PingFang SC-Medium, PingFang SC;
  759. font-weight: 400;
  760. color: #999999;
  761. line-height: 80rpx;
  762. text-align: center;
  763. border: 1rpx solid #E0E0E0;
  764. border-top: none;
  765. }
  766. }
  767. }
  768. .bottom_btn{
  769. position: fixed;
  770. bottom: 26rpx;
  771. left: 30rpx;
  772. font-size: 30rpx;
  773. font-family: PingFang SC-Medium, PingFang SC;
  774. font-weight: 400;
  775. color: #FFFFFF;
  776. line-height: 90rpx;
  777. width: 690rpx;
  778. height: 90rpx;
  779. background: #0183FA;
  780. border-radius: 20rpx;
  781. text-align: center;
  782. }
  783. /* 指纹采集 */
  784. .shade {
  785. height: 100%;
  786. width: 100%;
  787. position: fixed;
  788. display: flex;
  789. flex-direction: column;
  790. z-index: 10;
  791. background: rgba(0, 0, 0, 0.2);
  792. .null-box {
  793. flex: 1;
  794. }
  795. .shade_n {
  796. position: absolute;
  797. bottom: 0;
  798. left: 0;
  799. width: 750rpx;
  800. height: 560rpx;
  801. background: #FFFFFF;
  802. border-radius: 20rpx 20rpx 0rpx 0rpx;
  803. .shade_n_title{
  804. height: 100rpx;
  805. padding: 0 30rpx;
  806. box-sizing: border-box;
  807. display: flex;
  808. justify-content:space-between;
  809. border-bottom: 1rpx solid #E0E0E0;
  810. >text:nth-of-type(1){
  811. font-size: 30rpx;
  812. font-family: PingFang SC-Medium, PingFang SC;
  813. font-weight: 400;
  814. color: #333333;
  815. line-height: 100rpx;
  816. }
  817. >text:nth-of-type(2){
  818. font-size: 30rpx;
  819. font-family: PingFang SC-Medium, PingFang SC;
  820. font-weight: 400;
  821. color: #0183FA;
  822. line-height: 100rpx;
  823. }
  824. }
  825. .shade_n_b{
  826. height: 460rpx;
  827. padding: 0 30rpx;
  828. box-sizing: border-box;
  829. overflow-y: auto;
  830. .shade_n_b_li{
  831. display: flex;
  832. justify-content:space-between;
  833. align-items: center;
  834. height: 80rpx;
  835. border-bottom: 1rpx solid #E0E0E0;
  836. >text{
  837. font-size: 28rpx;
  838. font-family: PingFang SC-Medium, PingFang SC;
  839. font-weight: 400;
  840. line-height: 80rpx;
  841. overflow: hidden;
  842. text-overflow:ellipsis;
  843. white-space: nowrap;
  844. }
  845. >img{
  846. width: 24rpx;
  847. height: 16rpx;
  848. margin-right: 14rpx;
  849. }
  850. }
  851. .color_A{
  852. color: #333333;
  853. }
  854. .color_B{
  855. color: #0183FA;
  856. }
  857. }
  858. }
  859. }
  860. }
  861. </style>