checkMainPoints.vue 39 KB

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