checkMainPoints.vue 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464
  1. <template>
  2. <view class="checkMainPoints">
  3. <u-navbar :title="ifSearchMod?'':'查核要点'" title-color="#292C33">
  4. <view v-if="ifSearchMod" class="slot-wrap" back-icon-size="25rpx">
  5. <input confirm-type="search" class="searchBar" type="text" v-model="searchKey" @input="filterFromName"
  6. placeholder-class="searchBarHolder" placeholder="搜索查核要点或查核项" />
  7. <image @click="clearSearch" v-if="searchKey" class="clearIcon" src="../../static/text-clear.png"
  8. mode=""></image>
  9. </view>
  10. <view v-if="ifSearchMod" class="navbar-right" slot="right">
  11. <text @click="cancelSearchMod" class="searchActiveBtn">取消</text>
  12. </view>
  13. </u-navbar>
  14. <uni-popup ref="popup" type="center" :maskClick="true" @change="onMaskChange">
  15. </uni-popup>
  16. <tm-top-menu v-if="!ifSearchMod" class="tm-top-menu">
  17. <template v-if="situationType != 2">
  18. <view class="top-search">
  19. <view class="search">
  20. <input confirm-type="search" @input="filterFromName" placeholder="搜索查核要点或查核项" />
  21. <image src="../../static/search.png"></image>
  22. </view>
  23. <view class="btnGroup">
  24. <image @click="toBindPeople(true)" class="searchBtn" src="../../static/bindPeople.png" mode="">
  25. </image>
  26. <image @click="openFilter" class="filterBtn" src="../../static/filterIcon.png" mode="">
  27. </image>
  28. </view>
  29. </view>
  30. </template>
  31. <!-- 查核分页模式下// -->
  32. <template v-if="situationType == 2">
  33. <view class="top-search-two">
  34. <view class="rowOne" v-if="nowPermission == 3 && situationType == 2">
  35. <view class="selectPeople" @click="toSelectVisiter">
  36. <template v-if="investigationUsers.length>0">
  37. <image
  38. v-if="currentSelectedInvestigationUser&&currentSelectedInvestigationUser['investigationStatus'] != 1"
  39. class="completePeopleIcon" src="../../static/peopleIcon.png" mode=""></image>
  40. <image
  41. v-if="currentSelectedInvestigationUser&&currentSelectedInvestigationUser['investigationStatus'] == 1"
  42. class="completePeopleIcon" src="../../static/completePeopleIcon.png" mode="">
  43. </image>
  44. <text
  45. class="peopleName">{{currentSelectedInvestigationUser?currentSelectedInvestigationUser['contentVOs'][0].value:''}}</text>
  46. <image class="fullArrow" src="../../static/close-icon.png" mode=""></image>
  47. </template>
  48. <template v-if="investigationUsers.length==0">
  49. <image @click="toSelectVisiter" class="addPeopleBtn" src="../../static/icon-add.png"
  50. mode=""></image>
  51. </template>
  52. </view>
  53. <view class="btnGroup">
  54. <image @click="toSearch" class="searchBtn" src="../../static/search.png" mode=""></image>
  55. <image @click="openFilter" class="filterBtn" src="../../static/filterIcon.png" mode="">
  56. </image>
  57. </view>
  58. </view>
  59. </view>
  60. </template>
  61. <!-- 只有当查核者进入才展示 -->
  62. <view ref="rowTwoWraper">
  63. <view class="rowTwo"v-if="nowPermission == 3||nowPermission == 1||nowPermission == 7||nowPermission == 8||nowPermission == 6" :animation="animationData" v-for="(v,i) in btnArr">
  64. <text class="rowTwoName">{{v.key}}</text>
  65. <view class="filterBtnWrap" :style="{paddingBottom:i==2?'20px':0}">
  66. <com-button v-for="(item, index) in v.list" :btnText="item.label" :width="`${32}%`" :height="80" :marginBottom="20"
  67. :marginRight="(index+1)%3==0?0:`2%`"
  68. :type="setFilterBtnType(item.value,v.key)" v-on:btnClick="btnClick(item.value,v.key,item.code)" />
  69. </view>
  70. </view>
  71. </view>
  72. </tm-top-menu>
  73. <tm-modal v-show="showModal" v-on:click="toggleModal(false)">
  74. <view class="content-list">
  75. <view class="list-item" v-for="(item, index) in point"
  76. :class="{active: checkPointId === item.checkPointId}" @click="checkPointHandle(item.checkPointId)">
  77. <text>{{item.checkPointName}}</text>
  78. <image class="check-img" v-if="checkPointId === item.checkPointId"
  79. src="../../static/checkStatus.png"></image>
  80. </view>
  81. </view>
  82. </tm-modal>
  83. <view class="contentContainer">
  84. <image class="dataEmptyimg" v-if="detailList.length==0" src="../../static/no-data.png"></image>
  85. <scroll-view @scroll="scrollHandle" scroll-y="true"
  86. v-if="detailList.length>0"
  87. :class="(detailList.length>0&&active != 2&&finishedStatus != 1)?'scroll-Y':'scroll-Y noBtn'">
  88. <view class="list" v-for="(item, index) in detailList" :key="index">
  89. <view class="title" v-if="item.responseList.length > 0">查核要点:{{formatCheckPointTitle(item)}}</view>
  90. <view class="item" v-for="(child, n) in item.responseList"
  91. @click="childClick(child,item.checkPointId)" :key="n">
  92. <view class="top-box">
  93. <view class="top-box-left">
  94. <view :class="[child.completeFlag?'index-icon done':'index-icon']">{{n + 1}}</view>
  95. <text>{{child.checkItemName}}</text>
  96. <!-- <text>ICU病房查看危重病人的抢救全过程(访谈)ICU病房查看危重病人的抢救全过程(访谈)ICU病房查看危重病人的抢救全过程(访谈)的抢救全过程(访谈)</text> -->
  97. </view>
  98. <view class="topRightGroup">
  99. <!-- showNotApplicable==0展示,1不展示 -->
  100. <view class="checkStatus" v-if="!child.showNotApplicable"
  101. @click.stop="checkNoApplicable(child)">
  102. <!-- <image v-if="child.isNoApplicable&&!notApplicableList.includes(child.id)"
  103. class="checkIcon" src="../../static/check-no.png" mode=""></image>
  104. <image v-if="notApplicableList.includes(child.id)||!child.isNoApplicable"
  105. class="checkIcon" src="../../static/check-checkbox.png" mode=""></image> -->
  106. <image v-if="child.isNoApplicable"
  107. class="checkIcon" src="../../static/check-no.png" mode=""></image>
  108. <image v-if="!child.isNoApplicable"
  109. class="checkIcon" src="../../static/check-checkbox.png" mode=""></image>
  110. <text class="checkStatusText">{{child.notApplicableName}}</text>
  111. </view>
  112. <image src="../../static/tuli.png"
  113. @tap.stop="goLegendDetails($event ,child.checkItemId, item.checkPointId)"></image>
  114. </view>
  115. </view>
  116. <view class="children">
  117. <view class="child">
  118. <text>{{child.deptName || '--'}}</text>
  119. <text>查核单位</text>
  120. </view>
  121. <view class="child">
  122. <text>{{child.checkModelName || '--'}}</text>
  123. <text>查核方式</text>
  124. </view>
  125. <view class="child">
  126. <text :style="{color:`#${child.lastResultColor}`}">{{isZichaDucha?child.lastResultName:child.lastResult || '--'}}</text>
  127. <text>上次结果</text>
  128. </view>
  129. <view class="child">
  130. <text :style="{color:`#${child.checkResultColor}`}">{{isZichaDucha?child.checkResultName:child.checkResult || '--'}}</text>
  131. <text>本次结果</text>
  132. </view>
  133. </view>
  134. </view>
  135. </view>
  136. </scroll-view>
  137. </view>
  138. <tm-callback-listpage />
  139. <view class="bottomBtnGroup" v-if="!ifSearchMod">
  140. <view v-if="!isShowSubtotal" class="score">
  141. <view class="box">
  142. <text class="label">得分</text>
  143. <text class="currentScore">{{currentScore}}</text>
  144. </view>
  145. <view class="midLine"></view>
  146. <view class="box">
  147. <text class="label">总分</text>
  148. <text class="totalScore">{{totalScore}}</text>
  149. </view>
  150. </view>
  151. <view v-if="isShowSubtotal" class="score scoreTypeTwo">
  152. <view class="box">
  153. <view class="rowOne">
  154. <text class="currentScore">{{currentScore}}</text>
  155. <text class="subLabel">得分</text>
  156. </view>
  157. <view class="rowTwo">
  158. <text class="label">总分:</text>
  159. <text class="currentScore">{{totalScore}}</text>
  160. </view>
  161. </view>
  162. <view class="midLine"></view>
  163. <view class="box">
  164. <view class="rowOne">
  165. <text class="currentScore xiaoji">{{subtotalScore}}</text>
  166. <text class="subLabel">小计</text>
  167. </view>
  168. <view class="rowTwo">
  169. <text class="label">总分:</text>
  170. <text class="currentScore">{{totalSubtotalScore}}</text>
  171. </view>
  172. </view>
  173. </view>
  174. <!--查核列表为空&&dang q -->
  175. <view v-if="detailList.length>0&&active != 2&&finishedStatus != 1" @click="onkeyCheckHandle"
  176. :class="[subtotalScore != null&&subtotalScore>=0?'botOneKeyCheck typeTwo':'botOneKeyCheck']">完成</view>
  177. </view>
  178. </view>
  179. </template>
  180. <script>
  181. import {
  182. mapState
  183. } from 'vuex';
  184. import {
  185. _stopPropagation
  186. } from "../../utils/compatible.js";
  187. export default {
  188. data() {
  189. return {
  190. btnArr: [],
  191. showModal: false,
  192. detailList: [],
  193. copyDetailList: [],
  194. point: [{
  195. checkPointId: 'all',
  196. checkPointName: '全部要点'
  197. }],
  198. checkPointId: 'all',
  199. nowPermission: uni.getStorageSync('nowPermission'),
  200. active:{
  201. result:['全部'],
  202. resultCode:-1,
  203. checkStatus:'全部',
  204. checkStatusCode:-1,
  205. other:'全部',
  206. otherCode:-1,
  207. }, //筛选tab下标
  208. checkId: '',
  209. deptId: '',
  210. currentScrollHeight: 0,
  211. finishedStatus: 0, //所有计划里的查核项是否都以完成
  212. totalScore: 0,
  213. currentScore: 0,
  214. subtotalScore: 0, //小计得分
  215. totalSubtotalScore: 0, //小计总分
  216. isShowSubtotal:false,//是否展示小计
  217. animationData: {}, //动画对象
  218. ifOpenFilter: false,
  219. searchKey: '', //搜索关键字
  220. ifSearchMod: false, //搜索模式
  221. applicable: true, //是否适用
  222. situationType: null, //情境类型
  223. notApplicableList: [], //保存本次check的查核项id
  224. scoreType:null, //计分方式类型 add by yfb 20230417
  225. customScoreTotal:null, //自定义计分总分分值
  226. deductPointTotal:null, //扣分汇总
  227. iOrder:1,// 查核项明细中,下一步顺序是否按要点结束,1:按要点结束;2:按顺序结束
  228. };
  229. },
  230. computed: {
  231. ...mapState({
  232. investigationUsers: state => state.checkMainPoints.investigationUsers,
  233. currentSelectedInvestigationUser: state => state.checkMainPoints.currentSelectedInvestigationUser,
  234. ifReloadPageData: state => state.checkMainPoints.ifReloadPageData,
  235. }),
  236. getCheckPointName() {
  237. let item = this.point.find((item) => item.checkPointId === this.checkPointId);
  238. return item ? item.checkPointName : '';
  239. }
  240. },
  241. watch: {
  242. currentSelectedInvestigationUser(newVal, oldVal) {
  243. if (this.situationType == 2) {
  244. //更换受访对象时拉取新数据
  245. if (newVal && newVal.investigationUserName == '') {
  246. //已删除所有访查对象
  247. this.$store.commit('checkMainPoints/comChangeState', {
  248. key: 'detailList',
  249. data: []
  250. });
  251. this.detailList = [];
  252. } else {
  253. this.loadItemData();
  254. }
  255. }
  256. },
  257. ifReloadPageData(newVal){
  258. if(newVal){
  259. this.loadItemData();
  260. }
  261. }
  262. },
  263. goBack() {
  264. this.$store.commit('checkList/comChangeState', { //刷新前一页数据
  265. key: 'ifReloadPageData',
  266. data: true
  267. });
  268. this.$store.commit('todayCheck/comChangeState', { //刷新todayCheck页面计划
  269. key: 'isReloadPageData',
  270. data: true
  271. });
  272. },
  273. onLoad: function({
  274. checkId,
  275. deptId,
  276. finishedStatus,
  277. situationType,
  278. pageTemplateId,
  279. isZichaDucha,
  280. functionId, //计划id 用于自查督查
  281. departmentId,//科室id 用于自查督查
  282. systemSituationType,
  283. pointsetType, //计分方式类型 add by yfb 20230417
  284. checkOrder,//下一项 功能类型 add by yfb 20230609
  285. }) {
  286. this.deptId = deptId;
  287. this.checkId = checkId;
  288. this.finishedStatus = finishedStatus;
  289. this.situationType = situationType;
  290. this.pageTemplateId = pageTemplateId;
  291. this.functionId = functionId;
  292. this.isZichaDucha = isZichaDucha?JSON.parse(isZichaDucha):false;
  293. this.departmentId = departmentId; //用于自查督查作为科室id
  294. this.systemSituationType = systemSituationType;
  295. this.pointsetType=pointsetType;
  296. if (situationType == 2) {
  297. //分页模式
  298. this.getInvestigationUsers();
  299. }
  300. //非分页情况下
  301. if (situationType != 2) {
  302. this.loadItemData();
  303. }
  304. if(this.currentSelectedInvestigationUser){
  305. this.getFilterList(checkId,deptId,this.currentSelectedInvestigationUser.investigationId);
  306. }else{
  307. this.getFilterList(checkId?checkId:functionId,deptId?deptId:departmentId);
  308. //this.getFilterList(checkId,departmentId);
  309. }
  310. this.iOrder=checkOrder;
  311. },
  312. onShow: function() {
  313. if (this.ifReloadPageData) {
  314. //页面重新拉取数据
  315. this.loadItemData();
  316. }
  317. //创建动画实例
  318. const animation = uni.createAnimation({
  319. duration: 100,
  320. timingFunction: 'ease',
  321. })
  322. this.animation = animation;
  323. },
  324. onBackPress(e) {
  325. this.$store.commit('checkGroup/comChangeState', {
  326. key: 'ifReloadPageData',
  327. data: true
  328. });
  329. },
  330. onUnload() {
  331. this.$store.commit('checkMainPoints/comChangeState', {
  332. key: 'ifReloadPageData',
  333. data: false
  334. });
  335. this.$store.commit('todayCheck/comChangeState', { //刷新todayCheck页面计划
  336. key: 'isReloadPageData',
  337. data: true
  338. });
  339. },
  340. methods: {
  341. // 生成查核要点展示名称,带上 pointSort 前缀
  342. formatCheckPointTitle(item) {
  343. const { pointSort, checkPointName } = item || {};
  344. const sort = (pointSort || pointSort === 0) ? String(pointSort).trim() : '';
  345. return sort ? `${sort}.${checkPointName}` : checkPointName;
  346. },
  347. /**
  348. * @param {number} checkId 查核id
  349. * @param {number} deptId 部门id
  350. * @param {number} responsibleUserId 责任对象id 非必传
  351. */
  352. getFilterList(checkId,deptId,responsibleUserId){
  353. this.$store.dispatch({
  354. type: 'checkMainPoints/commActions',
  355. key: 'getPointConditions',
  356. data: {
  357. checkId:checkId,
  358. responsibleUserId,
  359. deptId:deptId,
  360. indicatorType:this.isZichaDucha?1:0 //0 普通的 1自查督查
  361. }
  362. }).then(data=>{
  363. const {checkResults=[],checkStatuses=[],others=[]} = data;
  364. const _checkResults = checkResults.map(t=>({label:`${t.value}(${t.num})`,id:Math.random(),value:t.value,code:t.code}));
  365. const _checkStatuses = checkStatuses.map(t=>({label:`${t.value}(${t.num})`,id:Math.random(),value:t.value,code:t.code}));
  366. const _others = others.map(t=>({label:`${t.value}(${t.num})`,id:Math.random(),value:t.value,code:t.code}));
  367. this.btnArr = [
  368. {key:'查核状态',list:_checkStatuses},
  369. {key:'查核结果',list:_checkResults},
  370. {key:'其他',list:_others},
  371. ];
  372. console.log('2023070503',this.btnArr);
  373. })
  374. },
  375. //绑定当事人
  376. /**
  377. * @param {Boolean} bool true直接执行设置当事人,忽略本地以缓存的deptTd
  378. */
  379. toBindPeople(bool) {
  380. if (this.isBindResponsible && bool) {
  381. uni.showToast({
  382. icon: 'none',
  383. title: '已绑定过当事人!',
  384. duration: 2000
  385. });
  386. return;
  387. };
  388. let notNowBindPeopledeptIds = uni.getStorageSync('notNowBindPeopledeptIds');
  389. if (!notNowBindPeopledeptIds) {
  390. notNowBindPeopledeptIds = []
  391. } else {
  392. notNowBindPeopledeptIds = JSON.parse(notNowBindPeopledeptIds);
  393. }
  394. if (!notNowBindPeopledeptIds.includes(this.deptId) || bool) {
  395. const nowPermission = JSON.parse(uni.getStorageSync('nowPermission'));
  396. // console.log(this.isBindResponsible,this.checkDetailMapResponses.length > 0,nowPermission);
  397. if (!this.isBindResponsible && this.checkDetailMapResponses.length > 0 && (nowPermission == 3||nowPermission == 7||nowPermission == 8)) {
  398. //当是否已绑定当事人状态为false,可查核项大于0且当前角色是查核组员时
  399. //只有从查核列表进来才提示
  400. uni.showModal({
  401. title: '提示',
  402. content: '目前未批量分配当事人,是否前往选择?',
  403. confirmText: '前往设置',
  404. cancelText: '暂不设置',
  405. success: (res) => {
  406. if (res.confirm) {
  407. uni.navigateTo({
  408. url: `/pages/responsibleList/responsibleList?deptId=${this.isZichaDucha?this.departmentId:this.deptId}&isFromCheckMainPoints=true&isZichaDucha=${this.isZichaDucha}`,
  409. });
  410. } else if (res.cancel) {
  411. //将当前病区保存,之后不在提示
  412. notNowBindPeopledeptIds.push(this.deptId);
  413. uni.setStorageSync('notNowBindPeopledeptIds', JSON.stringify(
  414. notNowBindPeopledeptIds));
  415. }
  416. }
  417. });
  418. }else{
  419. if(!this.isBindResponsible){
  420. //已绑定当事人不弹提示!
  421. uni.showModal({
  422. title: '提示',
  423. content: '你目前无法批量分配当事人',
  424. confirmText: '确定',
  425. showCancel:false
  426. });
  427. }
  428. }
  429. }
  430. },
  431. loadItemData() {
  432. console.log('2023070404',this.active);
  433. if(this.isZichaDucha){
  434. console.log('2023070401',this.active);
  435. //自查督查的情况下
  436. this.$store.dispatch({
  437. type: 'checkMainPoints/commActions',
  438. key: 'getZichaduchaCheckItems',
  439. data:{
  440. functionId:this.functionId,
  441. //filter:"",
  442. checkStatus:this.active.checkStatusCode,
  443. checkResult:this.active.resultCode,//this.active.result.join(','),
  444. checkImages:this.active.otherCode
  445. }
  446. }).then(data => {
  447. if (data) {
  448. let renderList = data.checkDetailMapResponses?data.checkDetailMapResponses:[];
  449. this.$store.commit('checkMainPoints/comChangeState', {
  450. key: 'detailList',
  451. data: renderList
  452. });
  453. this.isBindResponsible = data.isBindResponsible;
  454. this.detailList = renderList;
  455. this.copyDetailList = renderList;
  456. this.subtotalScore = data.subtotalScore;
  457. this.isShowSubtotal = data.isShowSubtotal;
  458. //add by yfb 20230417
  459. this.scoreType=data.scoreType;
  460. this.customScoreTotal=data.customScoreTotal;
  461. this.deductPointTotal=data.deductPointTotal;
  462. if (data.scoreType==2){
  463. this.totalScore=data.customScore;
  464. this.currentScore=data.customScoreTotal;
  465. }else{
  466. this.currentScore = data.getScore;
  467. this.totalScore = data.totalScore;
  468. }
  469. this.totalSubtotalScore = data.totalSubtotalScore;
  470. this.checkDetailMapResponses = renderList;
  471. renderList.map(({
  472. checkPointId,
  473. checkPointName
  474. }) => {
  475. this.point.push({
  476. checkPointId,
  477. checkPointName
  478. });
  479. });
  480. //检查是否需要弹绑定当事人弹窗
  481. //this.toBindPeople();
  482. //add by yfb 20230609
  483. this.iOrder=data.checkOrder;
  484. }
  485. });
  486. return
  487. }
  488. //非自查督查的情况下
  489. if(this.situationType == 2&&!this.currentSelectedInvestigationUser){
  490. //分页模式下且未选择访谈对象时拒绝请求数据同时清空历史数据
  491. this.$store.commit('checkMainPoints/comChangeState', {
  492. key: 'detailList',
  493. data:[]
  494. });
  495. this.detailList = [];
  496. this.isBindResponsible = false;
  497. this.copyDetailList = [];
  498. this.currentScore =0;
  499. this.totalScore = 0;
  500. this.subtotalScore = 0;
  501. this.totalSubtotalScore = 0;
  502. this.checkDetailMapResponses = [];
  503. this.point = [];
  504. return false
  505. }
  506. this.checkTaskDetailList({
  507. 'deptId': this.deptId,
  508. 'checkId': this.checkId,
  509. 'situationType': this.situationType,
  510. 'investigationId': this.currentSelectedInvestigationUser && this
  511. .currentSelectedInvestigationUser.investigationId
  512. })
  513. },
  514. //不适用回调
  515. checkNoApplicable({
  516. id,
  517. isNoApplicable
  518. }) {
  519. this.$store.dispatch({
  520. type: 'checkMainPoints/commActions',
  521. key: 'oneKeyNotApplicable',
  522. data: {
  523. id,
  524. type:this.isZichaDucha?1:0, //0 普通的 1自查督查
  525. }
  526. }).then(data => {
  527. if (data) {
  528. //重新拉去列表数据
  529. this.loadItemData();
  530. }
  531. })
  532. },
  533. toSelectVisiter() {
  534. //更新受访对象状态,可能已经是进行中了
  535. this.$store.dispatch({
  536. type: 'checkMainPoints/commActions',
  537. key: 'getInvestigationUsers',
  538. data: {
  539. checkId: this.checkId,
  540. situationType: this.situationType,
  541. deptId: this.deptId
  542. }
  543. }).then(data => {
  544. this.$store.commit('checkMainPoints/comChangeState', {
  545. key: 'investigationUsers',
  546. data: data.map((t,index)=>({...t,id:t.investigationId}))
  547. });
  548. uni.navigateTo({
  549. url: `/pages/selectVisitPerson/selectVisitPerson?checkId=${this.checkId}&situationType=${this.situationType}&deptId=${this.deptId}&pageTemplateId=${this.pageTemplateId}`
  550. });
  551. });
  552. },
  553. toSearch() {
  554. this.ifSearchMod = true;
  555. this.detailList = [];
  556. },
  557. cancelSearchMod() {
  558. this.ifSearchMod = false;
  559. this.detailList = [...this.copyDetailList];
  560. },
  561. onMaskChange({
  562. show
  563. }) {
  564. if (!show) {
  565. this.ifOpenFilter = false;
  566. this.animation.height(0).step();
  567. this.animationData = this.animation.export()
  568. }
  569. },
  570. openFilter() {
  571. const status = this.ifOpenFilter;
  572. if (!status) {
  573. this.$refs.popup.open();
  574. this.ifOpenFilter = true;
  575. this.animation.height('100%').step();
  576. } else {
  577. this.$refs.popup.close();
  578. this.ifOpenFilter = false;
  579. this.animation.height(0).step();
  580. }
  581. this.animationData = this.animation.export()
  582. },
  583. //滚动监听事件,记录滚动高度
  584. scrollHandle(e) {
  585. this.currentScrollHeight = e.detail.scrollTop;
  586. },
  587. //一键查核
  588. onkeyCheckHandle() {
  589. if(this.situationType == 2&&!this.currentSelectedInvestigationUser){
  590. //当分页模式且未添加/选择受访对象时
  591. uni.showToast({
  592. title: '请先选择或添加受访对象!',
  593. duration: 2000,
  594. icon:'none'
  595. });
  596. return;
  597. }
  598. uni.showModal({
  599. title: '注意',
  600. content: '确定所有未填写查核结果项默认满分结果吗?',
  601. success: (res) => {
  602. if (res.confirm) {
  603. console.log('用户点击确定');
  604. this.oneKeyCheckCommit();
  605. } else if (res.cancel) {
  606. console.log('用户点击取消');
  607. }
  608. }
  609. });
  610. },
  611. oneKeyCheckCommit() {
  612. if(!this.isZichaDucha){
  613. //非自查督查
  614. let ids = [];
  615. this.detailList.forEach(item => {
  616. //筛选掉已查核项
  617. const temp = item.responseList.filter(v => !v.checkResult);
  618. const arr = temp.map(v => v.id);
  619. ids = ids.concat(arr);
  620. });
  621. this.$store.dispatch({
  622. type: 'checkMainPoints/commActions',
  623. key: 'oneKeyCheck',
  624. data: ids
  625. }).then(data => {
  626. if (data) {
  627. uni.showModal({
  628. title: '查核完成!',
  629. content: '',
  630. showCancel: false,
  631. success: function(res) {
  632. if (res.confirm) {
  633. console.log('用户点击确定');
  634. uni.navigateBack({
  635. delta: 1
  636. });
  637. }
  638. }
  639. });
  640. }
  641. });
  642. }else{
  643. //自查督查
  644. this.$store.dispatch({
  645. type: 'checkMainPoints/commActions',
  646. key: 'oneKeyCheckZichaducha',
  647. data:Number(this.functionId)
  648. }).then((data)=>{
  649. if(data){
  650. uni.showModal({
  651. title: '查核完成!',
  652. content: '',
  653. showCancel: false,
  654. success: function(res) {
  655. if (res.confirm) {
  656. uni.navigateBack({
  657. delta: 1
  658. });
  659. }
  660. }
  661. });
  662. }
  663. })
  664. }
  665. },
  666. setFilterBtnType(val,key){
  667. if(key == '查核结果'){
  668. const index = this.active.result.findIndex(t=>val==t);
  669. return index>=0?'pramary':'default'
  670. }
  671. if(key == '查核状态'){
  672. return this.active.checkStatus == val?'pramary':'default'
  673. }
  674. if(key == '其他'){
  675. return this.active.other == val?'pramary':'default'
  676. }
  677. },
  678. btnClick(val,key,code) {
  679. const _active = this.active;
  680. console.log('2023070501',_active);
  681. if(key == '查核结果'){
  682. //_active.result=val;
  683. const index = _active.result.findIndex(t=>t == val);
  684. if(index >= 0){
  685. //当前已存在该id
  686. _active.result.splice(index,1);
  687. }else{
  688. _active.result.push(val);
  689. console.log({_active});
  690. }
  691. _active.resultCode=code;
  692. }
  693. if(key == '查核状态'){
  694. _active.checkStatus = val;
  695. _active.checkStatusCode=code;
  696. }
  697. if(key == '其他'){
  698. _active.other = val;
  699. _active.otherCode=code;
  700. }
  701. this.active = _active;
  702. console.log('2023070502',_active);
  703. //更新列表
  704. this.loadItemData();
  705. },
  706. //获取访查对象列表
  707. getInvestigationUsers() {
  708. this.$store.dispatch({
  709. type: 'checkMainPoints/commActions',
  710. key: 'getInvestigationUsers',
  711. data: {
  712. checkId: this.checkId,
  713. situationType: this.situationType,
  714. deptId: this.deptId
  715. }
  716. }).then(data => {
  717. if(data.length==0){
  718. //当不存在访查对象时
  719. uni.showModal({
  720. title: '提示',
  721. content: '你目前还未添加访谈对象!',
  722. confirmText: '确定',
  723. showCancel:false
  724. });
  725. }
  726. this.$store.commit('checkMainPoints/comChangeState', {
  727. key: 'investigationUsers',
  728. data: data
  729. });
  730. this.$store.commit('checkMainPoints/comChangeState', {
  731. key: 'currentSelectedInvestigationUser',
  732. data: data[0]
  733. })
  734. });
  735. },
  736. checkTaskDetailList({
  737. checkId,
  738. deptId,
  739. situationType,
  740. investigationId,
  741. }) {
  742. const params = {
  743. checkId,
  744. deptId,
  745. situationType,
  746. checkStatus:this.active.checkStatus,
  747. checkResult:this.active.result.join(','),
  748. other:this.active.other
  749. }
  750. console.log('2023070402',params);
  751. //增加受访人
  752. if (situationType == 2) params['investigationId'] = investigationId;
  753. this.dispatch('checkTaskDetailList', {
  754. ...params
  755. }).then((data) => {
  756. if (data) {
  757. const renderList = data.checkDetailMapResponses?data.checkDetailMapResponses:[];
  758. this.$store.commit('checkMainPoints/comChangeState', {
  759. key: 'detailList',
  760. data: renderList
  761. });
  762. this.isBindResponsible = data.isBindResponsible;
  763. this.detailList = renderList;
  764. this.copyDetailList = renderList;
  765. this.subtotalScore = data.subtotalScore;
  766. this.isShowSubtotal = data.isShowSubtotal;
  767. this.totalSubtotalScore = data.totalSubtotalScore;
  768. this.checkDetailMapResponses = renderList;
  769. this.scoreType=data.scoreType;
  770. this.customScoreTotal=data.customScoreTotal;
  771. this.deductPointTotal=data.deductPointTotal;
  772. if (data.scoreType==2){
  773. this.totalScore=data.customScore;
  774. this.currentScore=data.customScoreTotal;
  775. }else
  776. {
  777. this.currentScore = data.getScore;
  778. this.totalScore = data.totalScore;
  779. }
  780. renderList.map(({
  781. checkPointId,
  782. checkPointName
  783. }) => {
  784. this.point.push({
  785. checkPointId,
  786. checkPointName
  787. });
  788. });
  789. //检查是否需要弹绑定当事人弹窗
  790. this.toBindPeople();
  791. //add by yfb 20230609
  792. this.iOrder=data.checkOrder;
  793. }
  794. });
  795. },
  796. childClick(child, checkPointId) {
  797. if (this.nowPermission == 1 || this.nowPermission == 3||this.nowPermission == 6 ||this.nowPermission == 7 ||this.nowPermission == 8 ) {
  798. let str = '',
  799. that = this;
  800. if (child.checkResult && !child.allowEdit) {
  801. // 当存在查核结果且不允许再修改时 跳转到查核项详情
  802. str = `auditItemDetails/auditItemDetails`;
  803. } else {
  804. if (this.nowPermission != 3&&this.nowPermission != 8&&this.nowPermission != 7) {
  805. //角色为非查核组员,职能科室普通人员,自查人
  806. uni.showModal({
  807. title: '提示',
  808. content: '请切换至查核者角色再进行查核操作!',
  809. showCancel: false
  810. });
  811. return;
  812. } else {
  813. // 跳转到查核结果提交
  814. str = `mainPointsDetail/mainPointsDetail`;
  815. }
  816. }
  817. uni.navigateTo({
  818. url: `/pages/${str}?id=${child.id}&checkPointId=${checkPointId}&checkItemId=${child.checkItemId}&situationType=${this.situationType}&isZichaDucha=${this.isZichaDucha}&departmentId=${this.departmentId}&checkOrder=${this.iOrder}&systemSituationType=${this.systemSituationType}`,
  819. success: function(res) {
  820. if (that.iOrder==1){
  821. const currentGroup = that.detailList.filter(item => item.checkPointId ==
  822. checkPointId);
  823. // 通过eventChannel向被打开页面传送数据
  824. res.eventChannel.emit('acceptDataFromOpenerPage', {
  825. data: currentGroup
  826. });
  827. }else if (that.iOrder==2){
  828. // 通过eventChannel向被打开页面传送数据
  829. res.eventChannel.emit('acceptDataFromOpenerPage', {
  830. data: that.detailList
  831. });
  832. }
  833. }
  834. });
  835. }
  836. },
  837. toggleModal(flage) {
  838. this.showModal = flage;
  839. },
  840. checkPointHandle(id) {
  841. this.checkPointId = id;
  842. if (id === 'all') {
  843. this.detailList = [...this.copyDetailList];
  844. } else {
  845. this.detailList = this.copyDetailList
  846. .filter((item) => item.checkPointId === id);
  847. }
  848. },
  849. clearSearch() {
  850. this.searchKey = '';
  851. this.detailList = [...this.copyDetailList];
  852. },
  853. filterFromName(e) {
  854. const {
  855. value
  856. } = e.detail;
  857. this.searchKey = value;
  858. if (value === '') {
  859. this.detailList = [...this.copyDetailList];
  860. } else {
  861. this.detailList = [];
  862. this.copyDetailList.map((item) => {
  863. let responseList = item.responseList
  864. .filter((child) => child.checkItemName.indexOf(value) >= 0);
  865. if (item.checkPointName.indexOf(value) >= 0) {
  866. this.detailList.push({
  867. ...item
  868. });
  869. } else if (responseList.length > 0) {
  870. this.detailList.push({
  871. ...item,
  872. responseList
  873. });
  874. }
  875. });
  876. }
  877. },
  878. goLegendDetails(e, checkItemId, checkPointId) {
  879. _stopPropagation(e);
  880. //跳转到图例详情
  881. uni.navigateTo({
  882. url: `/pages/legendDetails/legendDetails?checkItemId=${checkItemId}&checkPointId=${checkPointId}`
  883. });
  884. },
  885. dispatch(key, data) {
  886. return this.$store.dispatch({
  887. type: 'checkList/commActions',
  888. key,
  889. data
  890. });
  891. },
  892. }
  893. }
  894. </script>
  895. <style lang="less">
  896. .checkMainPoints {
  897. position: relative;
  898. height: 100%;
  899. display: flex;
  900. flex-direction: column;
  901. background-color: #F5F6FA;
  902. .slot-wrap {
  903. display: flex;
  904. flex: 1;
  905. justify-content: center;
  906. align-items: center;
  907. background: #F0F2F7;
  908. border-radius: 44px;
  909. padding-left: 20rpx;
  910. .searchBar {
  911. flex: 1;
  912. width: 100%;
  913. height: 55rpx;
  914. font-size: 22.5rpx;
  915. }
  916. .clearIcon {
  917. width: 25rpx;
  918. height: 25rpx;
  919. margin: 0 20.5rpx;
  920. }
  921. .searchBarHolder {
  922. font-size: 22.5rpx;
  923. font-family: SourceHanSansCN-Normal, SourceHanSansCN;
  924. font-weight: 400;
  925. color: #A1A7B3;
  926. }
  927. }
  928. .navbar-right {
  929. display: flex;
  930. justify-content: center;
  931. align-items: center;
  932. padding: 0 25rpx;
  933. .searchActiveBtn {
  934. font-size: 22.5rpx;
  935. font-family: SourceHanSansCN-Normal, SourceHanSansCN;
  936. font-weight: 400;
  937. color: #292C33;
  938. }
  939. }
  940. .botOneKeyCheck {
  941. text-align: center;
  942. height: 75rpx;
  943. width: 100%;
  944. line-height: 75rpx;
  945. font-size: 22.5rpx;
  946. font-family: SourceHanSansCN-Normal, SourceHanSansCN;
  947. font-weight: 400;
  948. color: #FFFFFF;
  949. background: #3377FF;
  950. }
  951. .bottomBtnGroup {
  952. // position: fixed;
  953. width: 100%;
  954. // left:0;
  955. // bottom: 0;
  956. display: flex;
  957. flex-direction: row;
  958. border-top: 1px solid #DADEE6;
  959. background-color: #fff;
  960. .score {
  961. display: flex;
  962. width: 50%;
  963. flex-direction: row;
  964. justify-content: center;
  965. align-items: center;
  966. height: 75rpx;
  967. .box {
  968. width: 50%;
  969. text-align: center;
  970. white-space: nowrap;
  971. vertical-align: bottom;
  972. .label {
  973. color: #666E80;
  974. font-size: 17.5rpx;
  975. margin-right: 10rpx;
  976. }
  977. .currentScore {
  978. font-size: 30rpx;
  979. font-weight: bold;
  980. color: #3377FF;
  981. &.xiaoji {
  982. color: #19BE6B;
  983. }
  984. }
  985. .totalScore {
  986. font-size: 30rpx;
  987. font-weight: bold;
  988. color: #292C33;
  989. }
  990. }
  991. .midLine {
  992. height: 17.5rpx;
  993. border-left: 0.62rpx solid #DADEE6;
  994. }
  995. &.scoreTypeTwo {
  996. height: 100rpx;
  997. .box {
  998. .rowOne {
  999. .subLabel {
  1000. font-size: 10rpx;
  1001. color: #82848A;
  1002. margin-left: 10rpx;
  1003. }
  1004. }
  1005. .rowTwo {
  1006. .currentScore {
  1007. font-size: 20rpx;
  1008. font-weight: bold;
  1009. color: #666E80;
  1010. }
  1011. }
  1012. }
  1013. .midLine {
  1014. height: 25rpx;
  1015. }
  1016. }
  1017. }
  1018. .botOneKeyCheck {
  1019. display: flex;
  1020. justify-content: center;
  1021. align-items: center;
  1022. height: 100%;
  1023. flex-grow: 1;
  1024. font-size: 22.5rpx;
  1025. font-family: SourceHanSansCN-Normal, SourceHanSansCN;
  1026. font-weight: 400;
  1027. color: #FFFFFF;
  1028. background: #3377FF;
  1029. &.typeTwo {
  1030. font-size: 32.5rpx;
  1031. }
  1032. }
  1033. }
  1034. .tm-top-menu {
  1035. .rowTwo {
  1036. display: flex;
  1037. width: 100%;
  1038. height: 0;
  1039. overflow: hidden;
  1040. flex-direction: column;
  1041. box-sizing: border-box;
  1042. padding: 0 25rpx;
  1043. overflow: hidden;
  1044. .rowTwoName {
  1045. font-size: 22.5rpx;
  1046. font-family: SourceHanSansCN-Normal, SourceHanSansCN;
  1047. font-weight: 400;
  1048. color: #666F80;
  1049. margin-bottom: 12.5rpx;
  1050. padding-top: 35rpx;
  1051. }
  1052. .filterBtnWrap {
  1053. display: flex;
  1054. flex-direction: row;
  1055. flex-wrap: wrap;
  1056. justify-content: flex-start;
  1057. }
  1058. }
  1059. }
  1060. .top-search {
  1061. display: flex;
  1062. flex-direction: row;
  1063. align-items: center;
  1064. justify-content: space-between;
  1065. padding: 25rpx;
  1066. background-color: #fff;
  1067. box-shadow: 0 3.75rpx 12.5rpx 0 rgba(0, 13, 51, 0.1);
  1068. .search {
  1069. position: relative;
  1070. width: 70%;
  1071. height: 55rpx;
  1072. line-height: 55rpx;
  1073. background-color: #F0F2F7;
  1074. input {
  1075. padding: 0 45rpx 0 15rpx;
  1076. height: 55rpx;
  1077. line-height: 55rpx;
  1078. font-size: 22.5rpx;
  1079. }
  1080. image {
  1081. position: absolute;
  1082. top: 16.87rpx;
  1083. right: 15rpx;
  1084. width: 21.25rpx;
  1085. height: 21.25rpx;
  1086. }
  1087. }
  1088. .btnGroup {
  1089. display: flex;
  1090. flex-direction: row;
  1091. justify-content: center;
  1092. align-items: center;
  1093. .searchBtn {
  1094. width: 30rpx;
  1095. height: 30rpx;
  1096. margin-right: 30rpx;
  1097. }
  1098. .filterBtn {
  1099. width: 30rpx;
  1100. height: 27.5rpx;
  1101. }
  1102. }
  1103. .top-btn-wrap {
  1104. padding-left: 25rpx;
  1105. .btn-list {
  1106. display: flex;
  1107. flex-direction: row;
  1108. .com-button {
  1109. margin-left: 5rpx;
  1110. &:first-child {
  1111. margin-left: 0;
  1112. }
  1113. }
  1114. }
  1115. .select-wrap {
  1116. display: flex;
  1117. flex-direction: row;
  1118. align-items: center;
  1119. white-space: nowrap;
  1120. image {
  1121. margin-left: 9.37rpx;
  1122. width: 12.5rpx;
  1123. height: 12.5rpx;
  1124. }
  1125. }
  1126. }
  1127. }
  1128. .top-search-two {
  1129. display: flex;
  1130. flex-direction: column;
  1131. align-items: flex-start;
  1132. justify-content: center;
  1133. padding: 25rpx;
  1134. background-color: #fff;
  1135. box-shadow: 0 3.75rpx 12.5rpx 0 rgba(0, 13, 51, 0.1);
  1136. .rowOne {
  1137. display: flex;
  1138. width: 100%;
  1139. flex-direction: row;
  1140. justify-content: space-between;
  1141. align-items: center;
  1142. .selectPeople {
  1143. display: flex;
  1144. flex-direction: row;
  1145. justify-content: space-between;
  1146. align-items: center;
  1147. .completePeopleIcon {
  1148. width: 50rpx;
  1149. height: 50rpx;
  1150. margin-right: 15rpx;
  1151. }
  1152. .peopleName {
  1153. font-size: 25rpx;
  1154. font-family: SourceHanSansCN-Normal, SourceHanSansCN;
  1155. font-weight: 400;
  1156. color: #292C33;
  1157. }
  1158. .fullArrow {
  1159. width: 11.25rpx;
  1160. height: 7.5rpx;
  1161. margin-left: 15rpx;
  1162. }
  1163. .addPeopleBtn {
  1164. width: 30rpx;
  1165. height: 30rpx;
  1166. margin-right: 12.5rpx;
  1167. }
  1168. }
  1169. .btnGroup {
  1170. .searchBtn {
  1171. width: 30rpx;
  1172. height: 30rpx;
  1173. margin-right: 50rpx;
  1174. }
  1175. .filterBtn {
  1176. width: 30rpx;
  1177. height: 27.5rpx;
  1178. }
  1179. }
  1180. }
  1181. }
  1182. .content-list {
  1183. // padding-top: 105rpx;
  1184. width: 100%;
  1185. background-color: #fff;
  1186. .list-item {
  1187. display: flex;
  1188. flex-direction: row;
  1189. justify-content: space-between;
  1190. align-items: center;
  1191. border-bottom: 1px solid #DADEE6;
  1192. padding: 0 25rpx;
  1193. width: 100%;
  1194. height: 87.5rpx;
  1195. font-size: 22.5rpx;
  1196. line-height: 33.75rpx;
  1197. color: #292C33;
  1198. .check-img {
  1199. float: right;
  1200. width: 19.37rpx;
  1201. height: 14.37rpx;
  1202. }
  1203. &.active {
  1204. color: #3377FF;
  1205. }
  1206. }
  1207. }
  1208. .contentContainer {
  1209. display: flex;
  1210. flex: 1;
  1211. height: 100%;
  1212. overflow: hidden;
  1213. .dataEmptyimg {
  1214. display: block;
  1215. width:200rpx;
  1216. height:230rpx;
  1217. margin: 0 auto;
  1218. margin-top: 200rpx;
  1219. }
  1220. .scroll-Y {
  1221. height: 100%;
  1222. &.noBtn {
  1223. height: 100%;
  1224. }
  1225. }
  1226. }
  1227. .list {
  1228. .title {
  1229. white-space: nowrap;
  1230. overflow: hidden;
  1231. text-overflow: ellipsis;
  1232. padding-left: 25rpx;
  1233. width: 100%;
  1234. height: 62.5rpx;
  1235. line-height: 62.5rpx;
  1236. color: #666F80;
  1237. }
  1238. .item {
  1239. margin-top: 15rpx;
  1240. padding: 25rpx 0;
  1241. min-height: 167.5rpx;
  1242. background-color: #fff;
  1243. &:nth-child(2) {
  1244. margin-top: 0;
  1245. }
  1246. .top-box {
  1247. display: flex;
  1248. flex-direction: row;
  1249. justify-content: space-between;
  1250. align-items: center;
  1251. .top-box-left {
  1252. display: flex;
  1253. flex-direction: row;
  1254. width: calc(100% - 55rpx);
  1255. .index-icon {
  1256. margin-right: 15rpx;
  1257. border-radius: 0 62.5rpx 62.5rpx 0;
  1258. width: 50rpx;
  1259. height: 35rpx;
  1260. line-height: 35rpx;
  1261. text-align: center;
  1262. color: #fff;
  1263. background-color: #66B2FE;
  1264. &.done {
  1265. background-color: rgba(195, 202, 217, 1);
  1266. }
  1267. }
  1268. >text {
  1269. display: -webkit-box;
  1270. overflow: hidden;
  1271. width: calc(100% - 65rpx);
  1272. text-overflow: ellipsis;
  1273. -webkit-line-clamp: 2;
  1274. /*! autoprefixer: off */
  1275. -webkit-box-orient: vertical;
  1276. }
  1277. }
  1278. .topRightGroup {
  1279. display: flex;
  1280. flex-direction: row;
  1281. .checkStatus {
  1282. display: flex;
  1283. flex-direction: row;
  1284. justify-content: center;
  1285. align-items: center;
  1286. width: 125rpx;
  1287. height: 40rpx;
  1288. margin-right: 15rpx;
  1289. background: #F2F4F7;
  1290. border-radius: 20rpx;
  1291. .checkIcon {
  1292. width: 25rpx;
  1293. height: 25rpx;
  1294. margin-right: 10rpx;
  1295. }
  1296. .checkStatusText {
  1297. font-size: 20rpx;
  1298. font-family: SourceHanSansCN-Normal, SourceHanSansCN;
  1299. font-weight: 400;
  1300. color: #292C33;
  1301. }
  1302. }
  1303. image {
  1304. margin-right: 15rpx;
  1305. width: 40rpx;
  1306. height: 40rpx;
  1307. }
  1308. }
  1309. }
  1310. .children {
  1311. display: flex;
  1312. flex-direction: row;
  1313. align-items: center;
  1314. margin-top: 18.75rpx;
  1315. .child {
  1316. display: flex;
  1317. flex-direction: column;
  1318. justify-content: center;
  1319. align-items: center;
  1320. flex: 1;
  1321. border-right: 1px solid #DADEE6;
  1322. text {
  1323. width: 150rpx;
  1324. font-weight: 500;
  1325. text-align: center;
  1326. overflow: hidden;
  1327. text-overflow: ellipsis;
  1328. white-space: nowrap;
  1329. &:last-child {
  1330. font-size: 17.5rpx;
  1331. line-height: 26.25rpx;
  1332. color: #7A8599;
  1333. text-align: center;
  1334. font-weight: 400;
  1335. }
  1336. }
  1337. &:last-child {
  1338. border-right: 0;
  1339. }
  1340. }
  1341. }
  1342. }
  1343. }
  1344. }
  1345. </style>