editCheckList.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950
  1. <template>
  2. <view class="editCheckList">
  3. <view class="searchBar" v-if="checkList.length>0">
  4. <view class="filter">
  5. <view class="selecter" @click="selecterHandle">
  6. <text>{{selectedStr}}</text>
  7. <image src="../../static/fillBlackArrow.png" mode=""></image>
  8. </view>
  9. <view class="searchBar">
  10. <image class="serachIcon" src="../../static/searchIcon.png" mode=""></image>
  11. <tm-input class="searchVal" :clear="ifclearSearch" @onChange="searchInputHandle"
  12. placeholder="请输入单位名称"></tm-input>
  13. <view class="searchBtn" @click="searchHandle">搜索</view>
  14. </view>
  15. </view>
  16. </view>
  17. <view class="check-map-list">
  18. <scroll-view :class="[ifAllPlanListHasDistribution==true?'scroll-y noBottom':'scroll-y']" scroll-y="true"
  19. v-if="checkList.length > 0">
  20. <view class="item" v-for="(item, index) in copiedCheckList" :key="index">
  21. <view v-if="item.finishedStatus != 1"
  22. :class="{'checkPoint':true,checked:(checkedList.findIndex(t=>t.deptId == item.deptId) != -1)}"
  23. @click="checkedHandle(item)">
  24. <image class="innerImg" v-if="(checkedList.findIndex(t=>t.deptId == item.deptId) != -1)"
  25. src="../../static/check-checkbox.png" mode=""></image>
  26. </view>
  27. <view class="title-wrap">
  28. <text>{{item.deptName}}</text>
  29. <view>
  30. <image src="../../static/icon-map.png"></image>
  31. <text>{{item.deptClassName}}</text>
  32. </view>
  33. <view :class="getStatus(item.completeDes)">{{item.completeDes}}</view>
  34. </view>
  35. <view class="content">
  36. <text>{{item.decs}}</text>
  37. <text>
  38. 要点概览:{{item.checkPointNames}}
  39. </text>
  40. </view>
  41. <view class="footer">
  42. <view class="row" @click="checkEdit(item, index, '指派查核人员')">
  43. <text class="label">查核人</text>
  44. <view class="content">
  45. <text :class="['base-text', item.empName ? 'black-color' : '']">
  46. {{ item.empName?item.empName : '选择查核成员'}}
  47. </text>
  48. </view>
  49. <image class="arrow" src="/static/images/icon-more.png"></image>
  50. </view>
  51. <view class="row" @click="checkEdit(item, index, '设置查核时间')">
  52. <text class="label">计划时间</text>
  53. <view class="content">
  54. <text :class="['base-text', item.startDate ? 'black-color' : '']">
  55. {{ item.startDate ? item.startDate : '选择起始时间' }}
  56. </text>
  57. <text class="center-text">至</text>
  58. <text :class="['base-text', item.endDate ? 'black-color' : '']">
  59. {{ item.endDate ? item.endDate : '选择结束时间' }}
  60. </text>
  61. </view>
  62. <image class="arrow" src="/static/images/icon-more.png"></image>
  63. </view>
  64. </view>
  65. </view>
  66. </scroll-view>
  67. <view class="null" v-else>暂无数据</view>
  68. <view class="fixed-buttom-btn" @click="submit" v-if="multiple == 'true'">
  69. <text class="btn-text">完成</text>
  70. </view>
  71. <view class="bottomBtnGroup" v-if="multiple != 'true'">
  72. <view class="selectAll" @click="bottomBtnClickHandle('left')">{{ifSlectedAllCheckList?'取消':'全选'}}</view>
  73. <view class="leftBtn" @click="bottomBtnClickHandle('middle')">{{`(已选${checkedList.length}项)撤销分配`}}
  74. </view>
  75. <view class="rightBtn" @click="bottomBtnClickHandle('right')">{{`(已选${checkedList.length}项)批量分配`}}
  76. </view>
  77. </view>
  78. </view>
  79. <uni-popup ref="popup" type="bottom" :maskClick="true">
  80. <view class="selectableList">
  81. <scroll-view scroll-y="true" class="listWrap">
  82. <view :class="getClass(v.id)" v-for="(v,i) in selectables" @click="listClickHandle(v)">{{v.name}}
  83. </view>
  84. </scroll-view>
  85. <view class="btnGroup">
  86. <view class="cancelBtn btn" @click="btnGroupClickHandle(false)">取消</view>
  87. <view class="confirmBtn btn" @click="btnGroupClickHandle(true)">确定</view>
  88. </view>
  89. </view>
  90. </uni-popup>
  91. </view>
  92. </template>
  93. <script>
  94. // 查核列表(查核人和计划时间可编辑)
  95. import {
  96. mapState
  97. } from "vuex";
  98. import moment from 'moment';
  99. export default {
  100. computed: {
  101. ...mapState({
  102. checkList: state => state.editCheckList.checkList
  103. }),
  104. //计算当所有查核计划都已分配完时掩藏底部批量按钮
  105. ifAllPlanListHasDistribution: function() {
  106. const tempData = this.checkList.filter(item => (!item.empId && !item.empName));
  107. return tempData.length == 0
  108. },
  109. ifSlectedAllCheckList: function() {
  110. if (this.checkedList.length == this.checkList.length) { //选中集合==总集合
  111. this.ifCheckAll = true;
  112. return true;
  113. } else {
  114. this.ifCheckAll = false;
  115. return false;
  116. }
  117. },
  118. selectedStr() {
  119. const {
  120. status
  121. } = this.filter;
  122. return (status.map(t => t.name)).join(',')
  123. },
  124. },
  125. watch:{
  126. filter(val, oldVal) {
  127. if (val.keyword.length == 0) {
  128. this.searchHandle();
  129. }
  130. }
  131. },
  132. data() {
  133. return {
  134. // 查核组id
  135. checkGroupId: 0,
  136. // 情境id (批量修改有,不然为0)
  137. situationId: 0,
  138. // 查核id
  139. checkId: 0,
  140. // 计划开始时间
  141. startDate: '',
  142. // 计划结束时间
  143. endDate: '',
  144. multiple: false,
  145. planList: [],
  146. hasStartedCheck: [], //查核已经开始的集合
  147. ifInit: null,
  148. ifshowBottom: false,
  149. checkedList: [], //批量选中的集合
  150. ifCheckAll: false, //是否全选
  151. copiedCheckList:[],
  152. ifclearSearch: false,
  153. filter: {
  154. keyword: '',
  155. status: [{
  156. name: '全部',
  157. id: 0
  158. }]
  159. },
  160. selectables: [{
  161. id: 0,
  162. name: '全部'
  163. },
  164. {
  165. id: 1,
  166. name: '进行中'
  167. },
  168. {
  169. id: 2,
  170. name: '未分配'
  171. }
  172. ]
  173. };
  174. },
  175. onLoad({
  176. situationId,
  177. checkId,
  178. checkGroupId,
  179. startDate,
  180. endDate,
  181. multiple,
  182. situationType,
  183. checkNo
  184. }) {
  185. this.init(situationId,
  186. checkId,
  187. checkGroupId,
  188. startDate,
  189. endDate,
  190. multiple,
  191. situationType,
  192. checkNo
  193. );
  194. },
  195. onShow() {
  196. let pages = getCurrentPages(); // 获取当前页面栈
  197. let curPage = pages[pages.length - 1]; // 当前页面
  198. if (curPage.ifInit) {
  199. curPage.ifInit = false;
  200. this.init(
  201. this.situationId,
  202. this.checkId,
  203. this.checkGroupId,
  204. this.startDate,
  205. this.endDate,
  206. this.multiple,
  207. this.situationType,
  208. this.checkNo
  209. ) // A页面 method中的方法,用来刷新页面A
  210. }
  211. },
  212. mounted() {},
  213. onUnload() {
  214. //页面卸载或返回
  215. this.$store.commit('planList/comChangeState', {
  216. key: 'ifReloadData',
  217. data: true
  218. })
  219. },
  220. methods: {
  221. init(situationId,
  222. checkId,
  223. checkGroupId,
  224. startDate,
  225. endDate,
  226. multiple,
  227. situationType,
  228. checkNo) {
  229. this.getCheckList(checkId, situationType);
  230. this.checkGroupId = checkGroupId ? +checkGroupId : 0;
  231. this.situationId = situationId ? +situationId : 0;
  232. this.checkId = checkId ? +checkId : 0;
  233. this.startDate = startDate;
  234. this.endDate = endDate;
  235. this.multiple = multiple;
  236. this.checkedList = [];
  237. this.situationType = situationType;
  238. this.checkNo = checkNo;
  239. },
  240. ifStartCheck(timeStr) {
  241. if (timeStr) {
  242. const currentTime = new Date().getTime();
  243. const startTime = Date.parse(timeStr.replace(/-/g, '/'));
  244. if (currentTime < startTime) {
  245. this.ifshowBottom = true;
  246. }
  247. return currentTime < startTime;
  248. }
  249. this.ifshowBottom = true;
  250. return true;
  251. },
  252. /**
  253. * @str string [noStart,checking,completed]
  254. */
  255. getStatus: function(str) { //设置状态颜色
  256. switch (str) {
  257. case '未分配':
  258. return 'status noStart'
  259. break;
  260. case '进行中':
  261. return 'status checking'
  262. break;
  263. case '已完成':
  264. return 'status completed'
  265. break;
  266. }
  267. },
  268. getClass(id) {
  269. const ids = this.filter.status.map(item => item.id);
  270. if (ids.indexOf(id) != -1) {
  271. return "list on"
  272. }
  273. return "list"
  274. },
  275. /**
  276. * @param {boolean} flag true确定按钮点击,false取消按钮
  277. */
  278. btnGroupClickHandle(flag) {
  279. this.$refs.popup.close();
  280. //清空搜索
  281. this.filter = {
  282. ...this.filter,
  283. keyword: ''
  284. }
  285. },
  286. listClickHandle(item) {
  287. const _filter = this.filter;
  288. const {
  289. status
  290. } = _filter;
  291. const index = _filter.status.findIndex(t => t.id == item.id);
  292. if (item.id == 0) {
  293. //全部
  294. this.filter = {
  295. ...this.filter,
  296. status: [{
  297. name: '全部',
  298. id: 0
  299. }]
  300. };
  301. return;
  302. }
  303. //去除全部选项选中
  304. status.splice(_filter.status.findIndex(t => t.id == 0), 1);
  305. if (index != -1) {
  306. status.splice(index, 1)
  307. } else {
  308. status.push({
  309. name: item.name,
  310. id: item.id
  311. })
  312. }
  313. this.filter = _filter;
  314. },
  315. selecterHandle() {
  316. this.$refs.popup.open();
  317. },
  318. searchInputHandle(val) {
  319. this.filter = {
  320. ...this.filter,
  321. keyword: val
  322. };
  323. },
  324. searchHandle() {
  325. let tempArr = this.checkList;
  326. if (this.filter.status[0].id == 1) {
  327. //进行中
  328. tempArr = this.checkList.filter(item => item.completeDes == '进行中');
  329. }
  330. if (this.filter.status[0].id == 2) {
  331. //未分配
  332. tempArr = this.checkList.filter(item => item.completeDes == '未分配');
  333. }
  334. this.copiedCheckList = tempArr.filter(item => item.deptName.indexOf(this.filter.keyword) != -1);
  335. },
  336. batchCancelDistri() { //批量撤销
  337. const _that = this;
  338. this.$store.dispatch({
  339. type: 'editCheckList/commActions',
  340. key: "batchCancelCheckDistribution",
  341. data: {
  342. checkId: this.checkId,
  343. deptIds: this.checkedList.map(t => t.deptId)
  344. }
  345. }).then(data => {
  346. if (data) {
  347. uni.showModal({
  348. title: '提示',
  349. content: '撤销分配成功!',
  350. showCancel: false,
  351. success(res) {
  352. if (res.confirm) {
  353. _that.checkedList = [];
  354. _that.getCheckList(_that.checkId, _that.situationType);
  355. }
  356. }
  357. });
  358. }
  359. })
  360. },
  361. bottomBtnClickHandle(key) {
  362. let details = {
  363. index: '', // 修改的下标
  364. title: '', // 标题
  365. empId: '',
  366. empName: '',
  367. startDate: '',
  368. endDate: '',
  369. situationType: this.situationType,
  370. checkNo: this.checkNo,
  371. checkedList: this.checkedList.map(t => t.deptId),
  372. situationId: this.situationId, // 情境id (批量修改有,不然为0)
  373. checkId: this.checkId, // 查核id
  374. checkGroupId: this.checkGroupId, //查核组id
  375. planStartDate: this.startDate, // 计划开始时间
  376. planEndDate: this.endDate // 计划结束时间
  377. }
  378. if (key == 'left') { //全选
  379. this.ifCheckAll = !this.ifCheckAll;
  380. if (this.ifCheckAll) {
  381. this.checkedList = this.checkList;
  382. } else {
  383. this.checkedList = [];
  384. }
  385. }
  386. if (key == 'middle') { //批量撤销
  387. if (this.checkedList.findIndex(item => item.completeDes == '未分配') != -1) {
  388. //选中项包含未分配
  389. uni.showModal({
  390. title: '提示',
  391. content: '选择的病区里包含未分配项!是否继续操作?',
  392. success: (res) => {
  393. if (res.confirm) {
  394. this.batchCancelDistri();
  395. }
  396. }
  397. });
  398. } else {
  399. this.batchCancelDistri();
  400. }
  401. }
  402. if (key == 'right') { //批量分配
  403. if (this.checkedList.length > 0) {
  404. if (this.checkedList.findIndex(item => item.completeDes == '进行中') != -1) {
  405. //选中项包含已分配
  406. uni.showModal({
  407. title: '提示',
  408. content: '选择的病区里包含已进行中项!是否继续操作?',
  409. success: (res) => {
  410. if (res.confirm) {
  411. uni.navigateTo({
  412. url: `/pages/batchDistribution/batchDistribution?details=${encodeURIComponent(JSON.stringify(details))}`
  413. });
  414. }
  415. }
  416. });
  417. } else {
  418. uni.navigateTo({
  419. url: `/pages/batchDistribution/batchDistribution?details=${encodeURIComponent(JSON.stringify(details))}`
  420. });
  421. }
  422. } else {
  423. uni.showModal({
  424. title: '提示',
  425. content: '请先选择分配项!',
  426. showCancel: false
  427. });
  428. }
  429. }
  430. },
  431. checkedHandle(item) {
  432. let temp = this.checkedList;
  433. let index = temp.findIndex(val => val.deptId == item.deptId)
  434. if (index != -1) {
  435. temp.splice(index, 1);
  436. this.checkedList = temp;
  437. } else {
  438. this.checkedList = this.checkedList.concat([item]);
  439. }
  440. },
  441. // 完成
  442. submit() {
  443. const hadDistributionList = this.checkList.filter((item, index) => {
  444. return item.isDistribution || item.empId;
  445. });
  446. const commitData = hadDistributionList.map(item => ({
  447. "checkId": item.checkId,
  448. "deptId": item.deptId,
  449. "empId": item.empId,
  450. "empName": item.empName,
  451. "startDate": item.startDate,
  452. "endDate": item.endDate,
  453. "categoryIds": item.categoryIds
  454. }));
  455. // console.log({commitData});
  456. this.batchDistribute(commitData);
  457. },
  458. /**
  459. * 获取时间字符串
  460. * @param {Number} startTimestamp 计划开始时间戳
  461. * @param {Number} endTimestamp 计划结束时间戳
  462. * @param {Number} diffTimestamp 第一次计划中的时间差
  463. * @param {String} endDateStr 计划结束时间字符串
  464. */
  465. getDateStr(startTimestamp, endTimestamp, diffTimestamp, endDateStr) {
  466. if ((startTimestamp + diffTimestamp) > endTimestamp) { // 超出计划结束时间, 则取计划结束时间
  467. return endDateStr;
  468. } else {
  469. return moment(startTimestamp + diffTimestamp).format('YYYY-MM-DD HH:mm');
  470. }
  471. },
  472. // 分配单位查核人员
  473. batchDistribute(empList) {
  474. if (empList.length === 0) { // 未作修改直接跳转页面
  475. return this.redirectToPlanList();
  476. }
  477. this.$store.dispatch({
  478. type: 'editCheckList/commActions',
  479. key: "batchDistribute",
  480. data: {
  481. empList
  482. }
  483. }).then(data => {
  484. if (data) {
  485. this.redirectToPlanList();
  486. }
  487. });
  488. },
  489. // 跳转页面
  490. redirectToPlanList() {
  491. uni.redirectTo({
  492. url: `/pages/planList/planList?situationId=${this.situationId}&checkGroupId=${this.checkGroupId}`
  493. });
  494. },
  495. // 日期时间转换为时间戳
  496. dateToTimestamp(dataStr) {
  497. return dataStr ? moment(dataStr).valueOf() : -1
  498. },
  499. checkEdit(data, index, title) {
  500. // console.log({data});
  501. if (data.completeState) { // 计划已开始, 不能编辑查核人和计划时间
  502. uni.showModal({
  503. content: '因查核计划已结束,故不可修改',
  504. showCancel: false
  505. });
  506. } else { // 跳转编辑页面
  507. const {
  508. empId,
  509. empName,
  510. startDate,
  511. endDate,
  512. deptId,
  513. categoryId,
  514. isDistribution,
  515. } = data;
  516. let details = {
  517. index, // 修改的下标
  518. title, // 标题
  519. empId,
  520. empName,
  521. startDate,
  522. endDate,
  523. deptId,
  524. categoryId,
  525. isDistribution,
  526. situationType: this.situationType,
  527. checkNo: this.checkNo,
  528. situationId: this.situationId, // 情境id (批量修改有,不然为0)
  529. checkId: this.checkId, // 查核id
  530. checkGroupId: this.checkGroupId, //查核组id
  531. planStartDate: this.startDate, // 计划开始时间
  532. planEndDate: this.endDate // 计划结束时间
  533. }
  534. if (this.multiple == 'true') {
  535. uni.navigateTo({
  536. url: `/pages/allocationPerson/allocationPerson?details=${encodeURIComponent(JSON.stringify(details))}`
  537. });
  538. }
  539. if (this.multiple == 'false') {
  540. const _detailsTwo = {
  541. ...details,
  542. checkedList: [deptId]
  543. }
  544. uni.navigateTo({
  545. url: `/pages/batchDistribution/batchDistribution?details=${encodeURIComponent(JSON.stringify(_detailsTwo))}`
  546. });
  547. }
  548. }
  549. },
  550. // 获取查核列表
  551. getCheckList(checkId, situationType) {
  552. const that = this;
  553. this.$store.dispatch({
  554. type: 'editCheckList/commActions',
  555. key: "getCheckList",
  556. data: {
  557. checkId,
  558. situationType
  559. }
  560. }).then(data => {
  561. this.$store.dispatch({
  562. type: "commActions",
  563. key: "getDateStr",
  564. }).then((dateStr) => {
  565. if (dateStr) {
  566. const _data = data.map(item => {
  567. if (item.endDate && moment(item.endDate)
  568. .valueOf() < moment(dateStr).valueOf()) {
  569. return {
  570. ...item,
  571. completeState: true // true:说明计划已结束, 不能编辑查核人和计划时间
  572. }
  573. } else {
  574. return item
  575. }
  576. });
  577. //copiedCheckList用于搜索/筛选
  578. that.copiedCheckList = _data;
  579. this.$store.commit({
  580. type: 'editCheckList/comChangeState',
  581. key: 'checkList',
  582. data: _data
  583. });
  584. }
  585. });
  586. });
  587. },
  588. // 获取计划列表
  589. getPlanList() {
  590. this.$store.dispatch({
  591. type: 'planList/commActions',
  592. payload: {
  593. key: 'planList',
  594. data: {
  595. situationId: this.situationId,
  596. }
  597. }
  598. }).then((data) => {
  599. this.planList = data || [];
  600. })
  601. }
  602. }
  603. }
  604. </script>
  605. <style lang="less" scoped>
  606. .editCheckList {
  607. padding-top: 30rpx;
  608. }
  609. .selectableList {
  610. display: flex;
  611. width: 100%;
  612. flex-direction: column;
  613. height: 50vh;
  614. padding-top: 50rpx;
  615. box-sizing: border-box;
  616. border-radius: 25rpx 25rpx 0px 0px;
  617. background-color: #FFFFFF;
  618. .listWrap {
  619. height: calc(50vh - 75rpx);
  620. overflow-y: scroll;
  621. .list {
  622. height: 87.5rpx;
  623. line-height: 87.5rpx;
  624. text-align: center;
  625. font-size: 30rpx;
  626. font-family: SourceHanSansCN-Normal, SourceHanSansCN;
  627. font-weight: 400;
  628. color: #8A8F99;
  629. &.on {
  630. font-weight: 500;
  631. color: #3377FF;
  632. }
  633. }
  634. }
  635. .btnGroup {
  636. display: flex;
  637. width: 100%;
  638. flex-direction: row;
  639. justify-content: center;
  640. align-items: center;
  641. .btn {
  642. width: 50%;
  643. height: 75rpx;
  644. line-height: 75rpx;
  645. text-align: center;
  646. font-size: 22.5rpx;
  647. font-family: SourceHanSansCN-Normal, SourceHanSansCN;
  648. font-weight: 400;
  649. color: #3377FF;
  650. }
  651. .cancelBtn {
  652. border-top: 0.62rpx solid #DADEE6;
  653. }
  654. .confirmBtn {
  655. color: #FFFFFF;
  656. background: #3377FF;
  657. }
  658. }
  659. }
  660. .searchBar {
  661. width: 93%;
  662. margin: 0 auto;
  663. .filter {
  664. display: flex;
  665. flex-direction: row;
  666. justify-content: space-between;
  667. align-items: center;
  668. margin-bottom: 15rpx;
  669. padding: 0 25rpx;
  670. background: #FFFFFF;
  671. .selecter {
  672. display: flex;
  673. width: 25%;
  674. height: 70rpx;
  675. flex-direction: row;
  676. justify-content: space-between;
  677. align-items: center;
  678. padding-right: 25rpx;
  679. border-right: 0.62rpx solid #DADEE6;
  680. &>text {
  681. width: 112.5rpx;
  682. font-size: 25rpx;
  683. font-family: SourceHanSansCN-Medium, SourceHanSansCN;
  684. font-weight: 500;
  685. color: #292C33;
  686. text-overflow: ellipsis;
  687. overflow: hidden;
  688. white-space: nowrap;
  689. }
  690. &>image {
  691. width: 11.25rpx;
  692. height: 7.5rpx;
  693. }
  694. }
  695. .searchBar {
  696. display: flex;
  697. width: 75%;
  698. flex-direction: row;
  699. align-items: center;
  700. height: 70rpx;
  701. padding-left: 25rpx;
  702. .serachIcon {
  703. width: 25rpx;
  704. height: 25rpx;
  705. }
  706. .searchVal {
  707. width: 79%;
  708. padding-left: 25rpx;
  709. font-size: 25rpx;
  710. font-family: SourceHanSansCN-Normal, SourceHanSansCN;
  711. font-weight: 400;
  712. color: #292C33;
  713. }
  714. .searchBtn {
  715. padding-left: 25rpx;
  716. font-size: 25rpx;
  717. font-family: SourceHanSansCN-Normal, SourceHanSansCN;
  718. font-weight: 400;
  719. color: #3377FF;
  720. white-space: nowrap;
  721. border-left: 1rpx solid #DADEE6;
  722. }
  723. }
  724. }
  725. }
  726. .check-map-list {
  727. display: flex;
  728. flex-direction: column;
  729. height: 100%;
  730. .scroll-y {
  731. flex: 1;
  732. height: 100%;
  733. padding-bottom: 95rpx;
  734. &.noBottom {
  735. padding-bottom: 0;
  736. }
  737. .item {
  738. position: relative;
  739. .title-wrap {
  740. text {
  741. white-space: nowrap;
  742. text-overflow: ellipsis;
  743. overflow: hidden;
  744. }
  745. }
  746. .status {
  747. display: flex;
  748. justify-content: center;
  749. width: 100rpx;
  750. height: 35rpx;
  751. color: #FFFFFF;
  752. text-align: center;
  753. line-height: 35rpx;
  754. border-radius: 20rpx;
  755. &.noStart {
  756. background-color: #eee;
  757. }
  758. &.checking {
  759. background-color: #FFCC66;
  760. }
  761. &.completed {
  762. background-color: #29CC96;
  763. }
  764. }
  765. }
  766. .checkPoint {
  767. position: absolute;
  768. top: 30rpx;
  769. right: 25rpx;
  770. width: 25rpx;
  771. height: 25rpx;
  772. z-index: 2;
  773. border-radius: 50%;
  774. border: 2.5rpx solid #C3CAD9;
  775. .innerImg {
  776. width: 100%;
  777. height: 100%;
  778. }
  779. &.checked {
  780. border: none;
  781. }
  782. }
  783. .footer {
  784. .row {
  785. display: flex;
  786. align-items: center;
  787. justify-content: space-between;
  788. border-top: 1px solid #DADEE6;
  789. height: 62.5rpx;
  790. padding: 0 25rpx;
  791. font-size: 22.5rpx;
  792. .label {
  793. color: #525866;
  794. width: 100rpx;
  795. }
  796. .content {
  797. display: flex;
  798. flex-direction: row;
  799. align-items: center;
  800. flex: 1;
  801. height: 100%;
  802. padding: 0 25rpx;
  803. .base-text {
  804. flex: 1;
  805. line-height: 62.5rpx;
  806. color: #B8BECC;
  807. font-weight: normal;
  808. margin-bottom: 0;
  809. }
  810. .center-text {
  811. padding: 0 25rpx;
  812. color: #292C33;
  813. }
  814. .black-color {
  815. color: #292C33;
  816. }
  817. }
  818. .arrow {
  819. width: 12.5rpx;
  820. height: 21.25rpx;
  821. }
  822. }
  823. }
  824. }
  825. .bottomBtnGroup {
  826. position: fixed;
  827. width: 100%;
  828. height: 87.5rpx;
  829. bottom: 0;
  830. left: 0;
  831. display: flex;
  832. flex-direction: row;
  833. background-color: #FFFFFF;
  834. .selectAll {
  835. position: relative;
  836. display: flex;
  837. width: 20%;
  838. height: 100%;
  839. justify-content: center;
  840. align-items: center;
  841. font-size: 22.5rpx;
  842. font-family: SourceHanSansCN-Normal, SourceHanSansCN;
  843. font-weight: 400;
  844. color: #3377FF;
  845. &::after {
  846. position: absolute;
  847. display: inline-block;
  848. content: '';
  849. right: 0;
  850. width: 1rpx;
  851. height: 40%;
  852. background-color: #82848A;
  853. }
  854. }
  855. .leftBtn,
  856. .rightBtn {
  857. display: flex;
  858. width: 40%;
  859. height: 100%;
  860. justify-content: center;
  861. align-items: center;
  862. font-size: 22.5rpx;
  863. font-family: SourceHanSansCN-Normal, SourceHanSansCN;
  864. font-weight: 400;
  865. color: #3377FF;
  866. }
  867. .rightBtn {
  868. color: #FFFFFF;
  869. background-color: #3377FF;
  870. }
  871. }
  872. .null {
  873. margin-top: 375rpx;
  874. text-align: center;
  875. color: #999;
  876. }
  877. }
  878. </style>