checkItemModule.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741
  1. <!--
  2. //参数说明
  3. propsData参数下
  4. infoType 为必要参数 0.检查 1.复查 2.整改
  5. checkType 为必要参数 infoType为0时 代表检查状态 为1时代表复查状态 为2时代表整改状态
  6. //检查时的必要参数
  7. manageId
  8. //复查时的必要参数
  9. planId
  10. planSetId
  11. subId
  12. //隐患时的必要参数
  13. planId
  14. planSetId
  15. subId
  16. //引用方法
  17. <checkItemModule :propsData="propsData" v-if="checkItemModuleType"></checkItemModule>
  18. import {
  19. checkItemModule
  20. } from '@/pages/checkItemModule.vue'
  21. components: {
  22. checkItemModule
  23. },
  24. checkItemModuleType:false,
  25. propsData:{
  26. infoType:0,
  27. manageId:'1839113478692855815',
  28. checkType:0,
  29. planId:'',
  30. planSetId:'',
  31. subId:'',
  32. searchValue:'',
  33. },
  34. checkItemModuleButton(type,item){
  35. if(type = 'open'){
  36. this.$set(this,'propsData',{
  37. infoType:0,
  38. manageId:'1839113478692855815',
  39. checkType:0,
  40. planId:'',
  41. planSetId:'',
  42. subId:'',
  43. searchValue:'',
  44. });
  45. this.$set(this,'checkItemModuleType',true);
  46. }else if(type = 'out'){
  47. this.$set(this,'checkItemModuleType',false);
  48. this.$set(this,'propsData',{});
  49. }else if(type = 'submit'){
  50. console.log('已选中-item', item)
  51. }
  52. },
  53. -->
  54. <template>
  55. <scroll-view scroll-y style="overflow-y: scroll;">
  56. <view class="checkItemModule">
  57. <!-- 标签选项卡 -->
  58. <view class="checkItemModule-title-box">
  59. <view class="checkItemModule-title-p" @click="checkTitleButton(1)"
  60. :class="pageType==1?'.checkItemModule-title-check':''">
  61. <view>关键字</view>
  62. <view></view>
  63. </view>
  64. <view class="checkItemModule-title-p" @click="checkTitleButton(2)"
  65. :class="pageType==2?'.checkItemModule-title-check':''">
  66. <view>按层级</view>
  67. <view></view>
  68. </view>
  69. </view>
  70. <!-- 输入搜索模块 -->
  71. <view class="input-max-big-box" v-if="pageType == 1">
  72. <view class="input-big-box">
  73. <view class="input-box">
  74. <view class="left-icons">
  75. <uni-icons color="#A2A2A2" type="search" size="20"></uni-icons>
  76. </view>
  77. <input type="text" v-model="searchValue" placeholder="搜索检查项" name="search" @confirm='getSearchValue'
  78. confirm-type='search' @input="theBlur" maxlength="50"
  79. placeholder-style="color: #666;font-size:24rpx;">
  80. <view v-if="searchValue" class="left-icons" @click="delSearchValue()">
  81. <uni-icons color="#0183FA" type="clear" size="20"></uni-icons>
  82. </view>
  83. </view>
  84. <view class="out-button" @click="outButton()">取消</view>
  85. </view>
  86. <view class="input-for-max-box">
  87. <view class="for-box" v-for="(item,index) in dataList" :key="index" v-if="optionData.infoType==0">
  88. <view v-html="brightenKeyword(item.hazardCheckCode1,item.hazardCheckName1,searchValue)" class="for-box-n">
  89. {{item.hazardCheckCode1}} {{item.hazardCheckName1}}
  90. </view>
  91. <view v-for="(item2,index2) in item.children">
  92. <view v-html="brightenKeyword(item2.hazardCheckCode2,item2.hazardCheckName2,searchValue)" class="for-box-n">
  93. {{item2.hazardCheckCode2}} {{item2.hazardCheckName2}}
  94. </view>
  95. <view class="for-box-n"
  96. v-for="(item3,index3) in item2.children">
  97. <view v-html="brightenKeyword(item3.hazardCheckCode,item3.hazardCheckName,searchValue)">{{item3.hazardCheckCode}} {{item3.hazardCheckName}}</view>
  98. <view class="for-box-n-b" @click="checkItemButton(item3,item4)"
  99. v-for="(item4,index4) in item3.hazardCheckPointList">
  100. <view v-html="brightenKeyword('',item4,searchValue)">{{item4}}</view>
  101. </view>
  102. </view>
  103. </view>
  104. </view>
  105. </view>
  106. </view>
  107. <!-- 级联选择模块 -->
  108. <view class="check-max-big-box" v-if="pageType == 2">
  109. <view class="check-big-box">
  110. <view v-if="levelListOne" @click="cascadeButton(1)">一级检查</view>
  111. <view v-if="levelListTwo" @click="cascadeButton(2)">二级检查</view>
  112. <view v-if="levelListThree" @click="cascadeButton(3)">三级检查</view>
  113. </view>
  114. <view class="check-for-max-box">
  115. <view v-for="(item,index) in checkList" :key="item.id" @click="cascadeItemButton(item)">
  116. <view>{{item.code}} {{item.name}}</view>
  117. <view v-for="(minItem,minIndex) in item.hazardCheckPointList" :key="item.id" @click="checkItemButton(item,minItem)">{{minItem}}</view>
  118. </view>
  119. </view>
  120. </view>
  121. </view>
  122. </scroll-view>
  123. </template>
  124. <script>
  125. import {
  126. securityCheckOptionSelAllList,
  127. securityAppCheckSetOptionList,
  128. securityAppCheckSetOptionGetReviewList,
  129. securityAppCheckDangerGetCheckDangerSubId,
  130. securityAppCheckPlanSetGetOptionList,
  131. } from '@/pages_safetyCheck/api/index.js'
  132. export default {
  133. name: "checkItemModule",
  134. props: {
  135. propsData: {}
  136. },
  137. data() {
  138. return {
  139. //父级参数
  140. optionData: {},
  141. //选项卡状态
  142. pageType: 1,
  143. //输入框数据
  144. searchValue: "",
  145. //输入搜索返回列表
  146. dataList: [],
  147. //当前级联数据
  148. cascadeButtonType:1,
  149. //一级-级联数据
  150. levelListOne: null,
  151. //二级-级联数据
  152. levelListTwo: null,
  153. //三级-级联数据
  154. levelListThree: null,
  155. //级联列表
  156. checkList: [],
  157. }
  158. },
  159. onLoad() {
  160. },
  161. mounted() {
  162. this.$set(this, 'optionData', JSON.parse(JSON.stringify(this.propsData)));
  163. this.$nextTick(() => {
  164. this.securityCheckOptionSelAllList();
  165. })
  166. },
  167. methods: {
  168. theBlur(e) {
  169. this.searchValue = e.target.value
  170. },
  171. //输入框查询
  172. getSearchValue() {
  173. if (this.optionData.infoType == 0) {
  174. //检查
  175. // this.securityAppCheckSetOptionList();
  176. this.securityCheckOptionSelAllList();
  177. } else if (this.optionData.infoType == 1) {
  178. //复查
  179. this.securityAppCheckSetOptionGetReviewList();
  180. } else if (this.optionData.infoType == 2) {
  181. //整改
  182. this.securityAppCheckDangerGetCheckDangerSubId();
  183. }
  184. },
  185. //选项卡title切换
  186. checkTitleButton(type) {
  187. if (this.pageType != type) {
  188. this.$set(this, 'pageType', type);
  189. }
  190. },
  191. //退出页面
  192. outButton() {
  193. // #ifdef WEB
  194. this.$parent.$parent.checkItemModuleButton('out');
  195. // #endif
  196. // #ifdef MP-WEIXIN
  197. this.$parent.checkItemModuleButton('out');
  198. // #endif
  199. },
  200. //清除输入框内容
  201. delSearchValue() {
  202. if (this.searchValue) {
  203. this.$set(this, 'searchValue', '');
  204. this.$set(this, 'dataList', []);
  205. this.getSearchValue();
  206. }
  207. },
  208. //级联等级点击
  209. cascadeButton(type) {
  210. this.$set(this,'cascadeButtonType',type);
  211. if (type == 1) {
  212. this.$set(this, 'levelListTwo', null);
  213. this.$set(this, 'levelListThree', null);
  214. this.$set(this, 'checkList', this.levelListOne.children);
  215. } else if (type == 2) {
  216. this.$set(this, 'levelListThree', null);
  217. this.$set(this, 'checkList', this.levelListTwo.children);
  218. }
  219. },
  220. //级联检查项选中
  221. cascadeItemButton(item) {
  222. if (item.level == 1) {
  223. this.$set(this, 'levelListTwo', item);
  224. this.$set(this, 'checkList', item.children);
  225. } else if (item.level == 2) {
  226. this.$set(this, 'levelListThree', item);
  227. if (item.children[0]) {
  228. item.children.forEach(function(item) {
  229. if (item.hazardCheckPoint) {
  230. item.hazardCheckPointList = item.hazardCheckPoint.split('#')
  231. }
  232. })
  233. }
  234. this.$set(this, 'checkList', item.children);
  235. }
  236. },
  237. //选中检查项
  238. checkItemButton(item, item2) {
  239. // #ifdef WEB
  240. this.$parent.$parent.checkItemModuleButton('submit', item, item2);
  241. // #endif
  242. // #ifdef MP-WEIXIN
  243. this.$parent.checkItemModuleButton('submit', item, item2);
  244. // #endif
  245. },
  246. //高亮
  247. brightenKeyword(code,val, editKeyword) {
  248. const Reg = new RegExp(editKeyword);
  249. if (val) {
  250. const res = code + ' ' + val.replace(Reg, `<span style="color: #0183FA;">${editKeyword }</span>`);
  251. return res;
  252. }
  253. },
  254. //基础检查项检查
  255. async securityCheckOptionSelAllList() {
  256. let self = this;
  257. const {
  258. data
  259. } = await securityCheckOptionSelAllList({});
  260. if (data.code == 200) {
  261. let maxList = this.getCascaderData(JSON.parse(JSON.stringify(data.data)), 2)
  262. this.$nextTick(() => {
  263. if (this.optionData.infoType == 0) {
  264. this.securityAppCheckPlanSetGetOptionList(maxList);
  265. // this.securityAppCheckSetOptionList(maxList);
  266. } else if (this.optionData.infoType == 1) {
  267. this.securityAppCheckSetOptionGetReviewList(maxList);
  268. } else if (this.optionData.infoType == 2) {
  269. this.securityAppCheckDangerGetCheckDangerSubId(maxList);
  270. }
  271. })
  272. }
  273. },
  274. //查询批次下-检查项
  275. async securityAppCheckPlanSetGetOptionList(maxList){
  276. let self = this;
  277. const {
  278. data
  279. } = await securityAppCheckPlanSetGetOptionList({
  280. planSetId:this.optionData.planSetId,
  281. searchValue: this.searchValue
  282. });
  283. if (data.code == 200) {
  284. if (data.data[0]) {
  285. let minList = JSON.parse(JSON.stringify(data.data))
  286. this.newCascadeData(maxList, minList);
  287. }else{
  288. this.$set(this, 'levelListOne', JSON.parse(JSON.stringify({
  289. level: 0,
  290. children: []
  291. })));
  292. this.$set(this, 'dataList', []);
  293. this.$set(this, 'checkList', []);
  294. this.$set(this, 'cascadeButtonType', 1);
  295. this.$set(this, 'levelListOne', null);
  296. this.$set(this, 'levelListTwo', null);
  297. this.$set(this, 'levelListThree', null);
  298. }
  299. // //查询数据
  300. // let map = new Map();
  301. // for (let item of data.data) {
  302. // let hazardCheckCode2 = item.hazardCheckCode2;
  303. // if (!map.has(hazardCheckCode2)) {
  304. // map.set(hazardCheckCode2, {
  305. // hazardCheckCode2: hazardCheckCode2,
  306. // hazardCheckName2: item.hazardCheckName2,
  307. // hazardCheckCode1: item.hazardCheckCode1,
  308. // hazardCheckName1: item.hazardCheckName1,
  309. // data: [item]
  310. // });
  311. // } else {
  312. // map.get(hazardCheckCode2).data.push(item);
  313. // }
  314. // }
  315. // let finalResult = Array.from(map.values());
  316. // this.$set(this, 'dataList', finalResult);
  317. }
  318. },
  319. /********************** 检查相关查询 **********************/
  320. async securityAppCheckSetOptionList(maxList) {
  321. let self = this;
  322. const {
  323. data
  324. } = await securityAppCheckSetOptionList({
  325. manageId: this.optionData.manageId,
  326. checkStatus: this.optionData.checkType,
  327. searchValue: this.searchValue
  328. });
  329. if (data.code == 200) {
  330. //级联数据
  331. if (maxList) {
  332. let minList = JSON.parse(JSON.stringify(data.data))
  333. this.cascadeData(maxList, minList);
  334. }
  335. if(this.optionData.editStatus){
  336. data.data.unshift(this.optionData.editItem);
  337. }
  338. if (data.data[0]) {
  339. data.data.forEach(function(item) {
  340. if (item.hazardCheckPoint) {
  341. item.hazardCheckPointList = item.hazardCheckPoint.split('#')
  342. }
  343. })
  344. }
  345. //查询数据
  346. let map = new Map();
  347. for (let item of data.data) {
  348. let hazardCheckCode2 = item.hazardCheckCode2;
  349. if (!map.has(hazardCheckCode2)) {
  350. map.set(hazardCheckCode2, {
  351. hazardCheckCode2: hazardCheckCode2,
  352. hazardCheckName2: item.hazardCheckName2,
  353. hazardCheckCode1: item.hazardCheckCode1,
  354. hazardCheckName1: item.hazardCheckName1,
  355. data: [item]
  356. });
  357. } else {
  358. map.get(hazardCheckCode2).data.push(item);
  359. }
  360. }
  361. let finalResult = Array.from(map.values());
  362. this.$set(this, 'dataList', finalResult);
  363. }
  364. },
  365. /********************** 复查相关查询 **********************/
  366. async securityAppCheckSetOptionGetReviewList(maxList) {
  367. let self = this;
  368. const {
  369. data
  370. } = await securityAppCheckSetOptionGetReviewList({
  371. planId: this.optionData.planId,
  372. planSetId: this.optionData.planSetId,
  373. subId: this.optionData.subId,
  374. appReviewStatus: this.optionData.checkType,
  375. searchValue: this.searchValue
  376. });
  377. if (data.code == 200) {
  378. //级联数据
  379. if (maxList) {
  380. let minList = JSON.parse(JSON.stringify(data.data.records))
  381. this.cascadeData(maxList, minList);
  382. }
  383. //查询数据
  384. this.$set(this, 'dataList', JSON.parse(JSON.stringify(data.data.records)));
  385. }
  386. },
  387. /********************** 整改相关查询 **********************/
  388. async securityAppCheckDangerGetCheckDangerSubId(maxList) {
  389. let self = this;
  390. const {
  391. data
  392. } = await securityAppCheckDangerGetCheckDangerSubId({
  393. planId: this.optionData.planId,
  394. planSetId: this.optionData.planSetId,
  395. subId: this.optionData.subId,
  396. appReviewStatus: this.optionData.checkType,
  397. searchValue: this.searchValue
  398. });
  399. if (data.code == 200) {
  400. //级联数据
  401. if (maxList) {
  402. let minList = JSON.parse(JSON.stringify(data.data.records))
  403. this.cascadeData(maxList, minList);
  404. }
  405. //查询数据
  406. this.$set(this, 'dataList', JSON.parse(JSON.stringify(data.data.records)));
  407. }
  408. },
  409. /********************** 处理级联数据 **********************/
  410. cascadeData(maxList, minList) {
  411. for (let i = 0; i < maxList.length; i++) {
  412. for (let o = 0; o < maxList[i].children.length; o++) {
  413. for (let x = 0; x < minList.length; x++) {
  414. if (maxList[i].children[o].id == minList[x].hazardCheckPro2) {
  415. minList[x].level = 3;
  416. if (maxList[i].children[o].children) {
  417. maxList[i].children[o].children.push(minList[x])
  418. } else {
  419. maxList[i].children[o].children = [minList[x]]
  420. }
  421. }
  422. }
  423. }
  424. }
  425. let list = this.getCascaderData(JSON.parse(JSON.stringify(maxList)), 3)
  426. this.$nextTick(() => {
  427. this.$set(this, 'levelListOne', JSON.parse(JSON.stringify({
  428. level: 0,
  429. children: list
  430. })));
  431. this.$set(this, 'checkList', JSON.parse(JSON.stringify(list)));
  432. this.$set(this, 'cascadeButtonType', 1);
  433. this.$set(this, 'levelListTwo', null);
  434. this.$set(this, 'levelListThree', null);
  435. this.$forceUpdate();
  436. })
  437. },
  438. newCascadeData(maxList, minList) {
  439. for (let i = 0; i < maxList.length; i++) {
  440. for (let o = 0; o < maxList[i].children.length; o++) {
  441. for (let x = 0; x < minList.length; x++) {
  442. if (maxList[i].children[o].id == minList[x].parentId) {
  443. //一级
  444. maxList[i].hazardCheckPro = minList[x].id
  445. maxList[i].hazardCheckCode = minList[x].code
  446. maxList[i].hazardCheckName = minList[x].name
  447. maxList[i].hazardCheckPro2 = maxList[i].children[o].id
  448. maxList[i].hazardCheckCode2 = maxList[i].children[o].code
  449. maxList[i].hazardCheckName2 = maxList[i].children[o].name
  450. maxList[i].hazardCheckPro1 = maxList[i].id
  451. maxList[i].hazardCheckCode1 = maxList[i].code
  452. maxList[i].hazardCheckName1 = maxList[i].name
  453. //二级
  454. maxList[i].children[o].hazardCheckPro = minList[x].id
  455. maxList[i].children[o].hazardCheckCode = minList[x].code
  456. maxList[i].children[o].hazardCheckName = minList[x].name
  457. maxList[i].children[o].hazardCheckPro2 = maxList[i].children[o].id
  458. maxList[i].children[o].hazardCheckCode2 = maxList[i].children[o].code
  459. maxList[i].children[o].hazardCheckName2 = maxList[i].children[o].name
  460. maxList[i].children[o].hazardCheckPro1 = maxList[i].id
  461. maxList[i].children[o].hazardCheckCode1 = maxList[i].code
  462. maxList[i].children[o].hazardCheckName1 = maxList[i].name
  463. //三级
  464. minList[x].level = 3;
  465. minList[x].hazardCheckPro = minList[x].id
  466. minList[x].hazardCheckCode = minList[x].code
  467. minList[x].hazardCheckName = minList[x].name
  468. minList[x].hazardCheckPro2 = maxList[i].children[o].id
  469. minList[x].hazardCheckCode2 = maxList[i].children[o].code
  470. minList[x].hazardCheckName2 = maxList[i].children[o].name
  471. minList[x].hazardCheckPro1 = maxList[i].id
  472. minList[x].hazardCheckCode1 = maxList[i].code
  473. minList[x].hazardCheckName1 = maxList[i].name
  474. minList[x].hazardCheckPointList = minList[x].mainPoint.split('#')
  475. if (maxList[i].children[o].children) {
  476. maxList[i].children[o].children.push(minList[x])
  477. } else {
  478. maxList[i].children[o].children = [minList[x]]
  479. }
  480. }
  481. }
  482. }
  483. }
  484. let list = this.getCascaderData(JSON.parse(JSON.stringify(maxList)), 3)
  485. this.$nextTick(() => {
  486. this.$set(this, 'levelListOne', JSON.parse(JSON.stringify({
  487. level: 0,
  488. children: list
  489. })));
  490. this.$set(this, 'dataList', JSON.parse(JSON.stringify(list)));
  491. this.$set(this, 'checkList', JSON.parse(JSON.stringify(list)));
  492. this.$set(this, 'cascadeButtonType', 1);
  493. this.$set(this, 'levelListTwo', null);
  494. this.$set(this, 'levelListThree', null);
  495. })
  496. },
  497. /********************** 检查项格式处理 **********************/
  498. getCascaderData(list, type) {
  499. let self = this
  500. for (let i = 0; i < list.length; i++) {
  501. if (list[i].level == type) {
  502. delete list[i].children
  503. } else if (list[i].children) {
  504. if (list[i].children[0]) {
  505. list[i].children = self.getCascaderData(list[i].children, type)
  506. } else {
  507. list.splice(i, 1)
  508. i--
  509. }
  510. } else {
  511. list.splice(i, 1)
  512. i--
  513. }
  514. }
  515. for (let i = 0; i < list.length; i++) {
  516. if (list[i].level == type) {
  517. delete list[i].children
  518. } else if (list[i].children) {
  519. if (list[i].children[0]) {
  520. list[i].children = self.getCascaderData(list[i].children, type)
  521. } else {
  522. list.splice(i, 1)
  523. i--
  524. }
  525. } else {
  526. list.splice(i, 1)
  527. i--
  528. }
  529. }
  530. for (let i = 0; i < list.length; i++) {
  531. if (list[i].level == type) {
  532. delete list[i].children
  533. } else if (list[i].children) {
  534. if (list[i].children[0]) {
  535. list[i].children = self.getCascaderData(list[i].children, type)
  536. } else {
  537. list.splice(i, 1)
  538. i--
  539. }
  540. } else {
  541. list.splice(i, 1)
  542. i--
  543. }
  544. }
  545. return list
  546. },
  547. }
  548. }
  549. </script>
  550. <style lang="stylus" scoped>
  551. .checkItemModule {
  552. position: fixed;
  553. top: 0;
  554. left: 0;
  555. height: 100%;
  556. width: 100%;
  557. flex: 1;
  558. overflow: hidden;
  559. display: flex;
  560. flex-direction: column;
  561. background-color: #fff;
  562. // #ifdef WEB
  563. margin-top:80rpx;
  564. // #endif
  565. .checkItemModule-title-box {
  566. display: flex;
  567. height: 100rpx;
  568. background-color: #FFFFFF;
  569. border-bottom: 1rpx solid #dedede;
  570. .checkItemModule-title-p {
  571. width: 140rpx;
  572. height: 100rpx;
  573. >view:nth-child(1) {
  574. color: #333;
  575. text-align: center;
  576. font-size: 29rpx;
  577. line-height: 30rpx;
  578. margin: 35rpx 0 20rpx 0;
  579. }
  580. >view:nth-child(2) {
  581. width: 56rpx;
  582. height: 6rpx;
  583. border-radius: 14rpx;
  584. margin: 0 auto;
  585. }
  586. }
  587. .checkItemModule-title-check {
  588. >view:nth-child(1) {
  589. color: #0183FA;
  590. }
  591. >view:nth-child(2) {
  592. background: #0183FA;
  593. }
  594. }
  595. }
  596. .input-max-big-box {
  597. flex: 1;
  598. display: flex;
  599. flex-direction: column;
  600. overflow: hidden;
  601. .input-big-box {
  602. height: 104rpx;
  603. display: flex;
  604. background-color: #fff;
  605. border-bottom: 1rpx solid #E0E0E0;
  606. .input-box {
  607. width: 611rpx;
  608. height: 69rpx;
  609. border: 1px solid #E0E0E0;
  610. display: flex;
  611. border-radius: 35px 35px 35px 35px;
  612. margin: 17rpx 0 17rpx 21rpx;
  613. .left-icons {
  614. padding: 15rpx 18rpx 0 22rpx;
  615. }
  616. .right-icons {
  617. padding: 15rpx 15rpx 0 22rpx;
  618. }
  619. >input {
  620. flex: 1;
  621. height: 69rpx;
  622. line-height: 69rpx;
  623. }
  624. }
  625. .out-button {
  626. width: 100rpx;
  627. margin: 17rpx 0 17rpx 15rpx;
  628. text-align: center;
  629. line-height: 69rpx;
  630. color: #0183FA;
  631. font-size: 29rpx;
  632. }
  633. }
  634. .input-for-max-box {
  635. flex: 1;
  636. display: flex;
  637. flex-direction: column;
  638. overflow-y: scroll;
  639. background-color: #fff;
  640. .for-box {
  641. .for-box-n {
  642. margin: 0 21rpx;
  643. font-size: 32rpx;
  644. line-height: 40rpx;
  645. padding: 20rpx 0;
  646. background-color: #fff;
  647. border-bottom: 1rpx solid #E0E0E0;
  648. }
  649. .for-box-n-b {
  650. margin: 0 21rpx;
  651. font-size: 32rpx;
  652. line-height: 40rpx;
  653. padding: 20rpx 0;
  654. background-color: #fff;
  655. }
  656. }
  657. }
  658. }
  659. .check-max-big-box {
  660. flex: 1;
  661. display: flex;
  662. flex-direction: column;
  663. overflow: hidden;
  664. .check-big-box {
  665. height: 70rpx;
  666. display: flex;
  667. background-color: #fff;
  668. border-bottom: 1rpx solid #E0E0E0;
  669. >view {
  670. width: 200rpx;
  671. line-height: 70rpx;
  672. text-align: center;
  673. color: #333;
  674. font-size: 29rpx;
  675. }
  676. .checkView {
  677. color: #0183FA;
  678. }
  679. }
  680. .check-for-max-box {
  681. flex: 1;
  682. display: flex;
  683. flex-direction: column;
  684. overflow-y: scroll;
  685. background-color: #fff;
  686. >view {
  687. >view {
  688. font-size: 32rpx;
  689. line-height: 70rpx;
  690. margin: 0 21rpx;
  691. border-bottom: 1px solid #dedede;
  692. }
  693. }
  694. }
  695. }
  696. }
  697. </style>