12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238 |
- <template>
- <view class="checkMainPoints">
- <u-navbar :title="ifSearchMod?'':'查核要点'" title-color="#292C33">
- <view v-if="ifSearchMod" class="slot-wrap" back-icon-size="25rpx">
- <input confirm-type="search" class="searchBar" type="text" v-model="searchKey" @input="filterFromName"
- placeholder-class="searchBarHolder" placeholder="搜索查核要点或查核项" />
- <image @click="clearSearch" v-if="searchKey" class="clearIcon" src="../../static/text-clear.png"
- mode=""></image>
- </view>
- <view v-if="ifSearchMod" class="navbar-right" slot="right">
- <text @click="cancelSearchMod" class="searchActiveBtn">取消</text>
- </view>
- </u-navbar>
- <uni-popup ref="popup" type="center" :maskClick="true" @change="onMaskChange"></uni-popup>
- <tm-top-menu v-if="!ifSearchMod" class="tm-top-menu">
- <template v-if="situationType != 2">
- <view class="top-search">
- <view class="search">
- <input confirm-type="search" @input="filterFromName" placeholder="搜索查核要点或查核项" />
- <image src="../../static/search.png"></image>
- </view>
- <view class="btnGroup">
- <image @click="toBindPeople(true)" class="searchBtn" src="../../static/bindPeople.png" mode="">
- </image>
- <image @click="openFilter" class="filterBtn" src="../../static/filterIcon.png" mode="">
- </image>
- </view>
- </view>
- </template>
- <!-- 查核分页模式下// -->
- <template v-if="situationType == 2">
- <view class="top-search-two">
- <view class="rowOne" v-if="nowPermission == 3 && situationType == 2">
- <view class="selectPeople" @click="toSelectVisiter">
- <template v-if="investigationUsers.length>0">
- <image
- v-if="currentSelectedInvestigationUser&¤tSelectedInvestigationUser['investigationStatus'] != 1"
- class="completePeopleIcon" src="../../static/peopleIcon.png" mode=""></image>
- <image
- v-if="currentSelectedInvestigationUser&¤tSelectedInvestigationUser['investigationStatus'] == 1"
- class="completePeopleIcon" src="../../static/completePeopleIcon.png" mode="">
- </image>
- <text
- class="peopleName">{{currentSelectedInvestigationUser?currentSelectedInvestigationUser['contentVOs'][0].value:''}}</text>
- <image class="fullArrow" src="../../static/close-icon.png" mode=""></image>
- </template>
- <template v-if="investigationUsers.length==0">
- <image @click="toSelectVisiter" class="addPeopleBtn" src="../../static/icon-add.png"
- mode=""></image>
- </template>
- </view>
- <view class="btnGroup">
- <image @click="toSearch" class="searchBtn" src="../../static/search.png" mode=""></image>
- <image @click="openFilter" class="filterBtn" src="../../static/filterIcon.png" mode="">
- </image>
- </view>
- </view>
- </view>
- </template>
- <!-- 只有当查核者进入才展示 -->
- <view class="rowTwo" v-if="nowPermission == 3||nowPermission == 1" :animation="animationData">
- <text class="rowTwoName">查核状态</text>
- <view class="filterBtnWrap">
- <com-button v-for="(item, index) in btnArr" :btnText="item.label" :width="350" :height="80"
- :type="active === item.id ? 'pramary':'default'" v-on:btnClick="btnClick(item.id)" />
- </view>
- </view>
- </tm-top-menu>
- <tm-modal v-show="showModal" v-on:click="toggleModal(false)">
- <view class="content-list">
- <view class="list-item" v-for="(item, index) in point"
- :class="{active: checkPointId === item.checkPointId}" @click="checkPointHandle(item.checkPointId)">
- <text>{{item.checkPointName}}</text>
- <image class="check-img" v-if="checkPointId === item.checkPointId"
- src="../../static/checkStatus.png"></image>
- </view>
- </view>
- </tm-modal>
- <view class="contentContainer">
- <image class="dataEmptyimg" v-if="detailList.length==0" src="../../static/no-data.png"></image>
- <scroll-view @scroll="scrollHandle" scroll-y="true"
- v-if="detailList.length>0"
- :class="(detailList.length>0&&active != 2&&finishedStatus != 1)?'scroll-Y':'scroll-Y noBtn'">
-
- <view class="list" v-for="(item, index) in detailList" :key="index">
- <view class="title" v-if="item.responseList.length > 0">查核要点:{{item.checkPointName}}</view>
- <view class="item" v-for="(child, n) in item.responseList"
- @click="childClick(child,item.checkPointId)" :key="n">
- <view class="top-box">
- <view class="top-box-left">
- <view :class="[child.completeFlag?'index-icon done':'index-icon']">{{n + 1}}</view>
- <text>{{child.checkItemName}}</text>
- <!-- <text>ICU病房查看危重病人的抢救全过程(访谈)ICU病房查看危重病人的抢救全过程(访谈)ICU病房查看危重病人的抢救全过程(访谈)的抢救全过程(访谈)</text> -->
- </view>
- <view class="topRightGroup">
- <!-- showNotApplicable==0展示,1不展示 -->
- <view class="checkStatus" v-if="!child.showNotApplicable"
- @click.stop="checkNoApplicable(child)">
- <image v-if="child.isNoApplicable&&!notApplicableList.includes(child.id)"
- class="checkIcon" src="../../static/check-no.png" mode=""></image>
- <image v-if="notApplicableList.includes(child.id)||!child.isNoApplicable"
- class="checkIcon" src="../../static/check-checkbox.png" mode=""></image>
- <text class="checkStatusText">{{child.notApplicableName}}</text>
- </view>
- <image src="../../static/tuli.png"
- @tap.stop="goLegendDetails($event ,child.checkItemId, item.checkPointId)"></image>
- </view>
- </view>
- <view class="children">
- <view class="child">
- <text>{{child.deptName || '--'}}</text>
- <text>查核单位</text>
- </view>
- <view class="child">
- <text>{{child.checkModelName || '--'}}</text>
- <text>查核方式</text>
- </view>
- <view class="child">
- <text :style="{color:`#${child.lastResultColor}`}">{{child.lastResult || '--'}}</text>
- <text>上次结果</text>
- </view>
- <view class="child">
- <text :style="{color:`#${child.checkResultColor}`}">{{child.checkResult || '--'}}</text>
- <text>本次结果</text>
- </view>
- </view>
- </view>
- </view>
- </scroll-view>
- </view>
- <tm-callback-listpage />
- <view class="bottomBtnGroup" v-if="!ifSearchMod">
- <view v-if="!subtotalScore&&subtotalScore != 0" class="score">
- <view class="box">
- <text class="label">得分</text>
- <text class="currentScore">{{currentScore}}</text>
- </view>
- <view class="midLine"></view>
- <view class="box">
- <text class="label">总分</text>
- <text class="totalScore">{{totalScore}}</text>
- </view>
- </view>
- <view v-if="subtotalScore != null&&subtotalScore>=0" class="score scoreTypeTwo">
- <view class="box">
- <view class="rowOne">
- <text class="currentScore">{{currentScore}}</text>
- <text class="subLabel">得分</text>
- </view>
- <view class="rowTwo">
- <text class="label">总分:</text>
- <text class="currentScore">{{totalScore}}</text>
- </view>
- </view>
- <view class="midLine"></view>
- <view class="box">
- <view class="rowOne">
- <text class="currentScore xiaoji">{{subtotalScore}}</text>
- <text class="subLabel">小计</text>
- </view>
- <view class="rowTwo">
- <text class="label">总分:</text>
- <text class="currentScore">{{totalSubtotalScore}}</text>
- </view>
- </view>
- </view>
- <view v-if="detailList.length>0&&active != 2&&finishedStatus != 1" @click="onkeyCheckHandle"
- :class="[subtotalScore != null&&subtotalScore>=0?'botOneKeyCheck typeTwo':'botOneKeyCheck']">完成</view>
- </view>
- </view>
- </template>
- <script>
- import {
- mapState
- } from 'vuex';
- import {
- _stopPropagation
- } from "../../utils/compatible.js";
- export default {
- data() {
- return {
- btnArr: [{
- id: 0,
- label: '全部'
- },
- {
- id: 1,
- label: '未查核'
- },
- {
- id: 2,
- label: '已查核'
- },
- ],
- showModal: false,
- detailList: [],
- copyDetailList: [],
- point: [{
- checkPointId: 'all',
- checkPointName: '全部要点'
- }],
- checkPointId: 'all',
- nowPermission: uni.getStorageSync('nowPermission'),
- active: 0, //筛选tab下标
- checkId: '',
- deptId: '',
- currentScrollHeight: 0,
- finishedStatus: 0, //所有计划里的查核项是否都以完成
- totalScore: 0,
- currentScore: 0,
- subtotalScore: 0, //小计得分
- totalSubtotalScore: 0, //小计总分
- animationData: {}, //动画对象
- ifOpenFilter: false,
- searchKey: '', //搜索关键字
- ifSearchMod: false, //搜索模式
- applicable: true, //是否适用
- situationType: null, //情境类型
- notApplicableList: [], //保存本次check的查核项id
- };
- },
- computed: {
- ...mapState({
- investigationUsers: state => state.checkMainPoints.investigationUsers,
- currentSelectedInvestigationUser: state => state.checkMainPoints.currentSelectedInvestigationUser,
- ifReloadPageData: state => state.checkMainPoints.ifReloadPageData,
- }),
- getCheckPointName() {
- let item = this.point.find((item) => item.checkPointId === this.checkPointId);
- return item ? item.checkPointName : '';
- }
- },
- watch: {
- currentSelectedInvestigationUser(newVal, oldVal) {
- if (this.situationType == 2) {
- //更换受访对象时拉取新数据
- if (newVal && newVal.investigationUserName == '') {
- //已删除所有访查对象
- this.$store.commit('checkMainPoints/comChangeState', {
- key: 'detailList',
- data: []
- });
- this.detailList = [];
- } else {
- this.loadItemData();
- }
- }
- },
- ifReloadPageData(newVal){
- if(newVal){
- this.loadItemData();
- }
- }
- },
- onBackPress() {
- this.$store.commit('checkList/comChangeState', { //刷新前一页数据
- key: 'ifReloadPageData',
- data: true
- });
-
- this.$store.commit('todayCheck/comChangeState', { //刷新todayCheck页面计划
- key: 'isReloadPageData',
- data: true
- });
- },
- onLoad: function({
- checkId,
- deptId,
- finishedStatus,
- situationType,
- pageTemplateId
- }) {
- this.deptId = deptId;
- this.checkId = checkId;
- this.finishedStatus = finishedStatus;
- this.situationType = situationType;
- this.pageTemplateId = pageTemplateId;
- if (situationType == 2) {
- this.getInvestigationUsers();
- }
- //非分页情况下
- if (situationType != 2) {
- this.loadItemData();
- }
- },
- onShow: function() {
- if (this.ifReloadPageData) {
- //页面重新拉取数据
- this.loadItemData();
- }
- //创建动画实例
- const animation = uni.createAnimation({
- duration: 300,
- timingFunction: 'ease',
- })
- this.animation = animation;
- },
- onUnload() {
- this.$store.commit('checkMainPoints/comChangeState', {
- key: 'ifReloadPageData',
- data: false
- });
-
- this.$store.commit('todayCheck/comChangeState', { //刷新todayCheck页面计划
- key: 'isReloadPageData',
- data: true
- });
- },
- methods: {
- //绑定当事人
- /**
- * @param {Boolean} bool true直接执行设置当事人,忽略本地以缓存的deptTd
- */
- toBindPeople(bool) {
- if (this.isBindResponsible && bool) {
- uni.showToast({
- icon: 'none',
- title: '已绑定过当事人!',
- duration: 2000
- });
- return;
- };
- let notNowBindPeopledeptIds = uni.getStorageSync('notNowBindPeopledeptIds');
- if (!notNowBindPeopledeptIds) {
- notNowBindPeopledeptIds = []
- } else {
- notNowBindPeopledeptIds = JSON.parse(notNowBindPeopledeptIds);
- }
-
- if (!notNowBindPeopledeptIds.includes(this.deptId) || bool) {
- const nowPermission = JSON.parse(uni.getStorageSync('nowPermission'));
- // console.log(this.isBindResponsible,this.checkDetailMapResponses.length,nowPermission)
- if (!this.isBindResponsible && this.checkDetailMapResponses.length > 0 && nowPermission == 3) {
- //当是否已绑定当事人状态为false,可查核项大于0且当前角色是查核组员时
- //只有从查核列表进来才提示
- uni.showModal({
- title: '提示',
- content: '目前未批量分配当事人,是否前往选择?',
- confirmText: '前往设置',
- cancelText: '暂不设置',
- success: (res) => {
- if (res.confirm) {
- uni.navigateTo({
- url: `/pages/responsibleList/responsibleList?deptId=${this.deptId}&isFromCheckMainPoints=true`,
- });
- } else if (res.cancel) {
- //将当前病区保存,之后不在提示
- notNowBindPeopledeptIds.push(this.deptId);
- uni.setStorageSync('notNowBindPeopledeptIds', JSON.stringify(
- notNowBindPeopledeptIds));
- }
- }
- });
- }else{
- uni.showModal({
- title: '提示',
- content: '你目前无法批量分配当事人',
- confirmText: '确定',
- showCancel:false
- });
- }
- }
- },
- loadItemData() {
- if(this.situationType == 2&&!this.currentSelectedInvestigationUser){
- //分页模式下且未选择访谈对象时拒绝请求数据同时清空历史数据
- this.$store.commit('checkMainPoints/comChangeState', {
- key: 'detailList',
- data:[]
- });
- this.detailList = [];
- this.isBindResponsible = false;
- this.copyDetailList = [];
- this.currentScore =0;
- this.totalScore = 0;
- this.subtotalScore = 0;
- this.totalSubtotalScore = 0;
- this.checkDetailMapResponses = [];
- this.point = [];
- return false
- }
- this.checkTaskDetailList({
- 'deptId': this.deptId,
- 'checkId': this.checkId,
- 'situationType': this.situationType,
- 'investigationId': this.currentSelectedInvestigationUser && this
- .currentSelectedInvestigationUser.investigationId
- })
- },
- //不适用回调
- checkNoApplicable({
- id,
- isNoApplicable
- }) {
- this.$store.dispatch({
- type: 'checkMainPoints/commActions',
- key: 'oneKeyNotApplicable',
- data: id
- }).then(data => {
- if (data) {
- //重新拉去列表数据
- this.loadItemData();
- }
- })
- },
- toSelectVisiter() {
- //更新受访对象状态,可能已经是进行中了
- this.$store.dispatch({
- type: 'checkMainPoints/commActions',
- key: 'getInvestigationUsers',
- data: {
- checkId: this.checkId,
- situationType: this.situationType,
- deptId: this.deptId
- }
- }).then(data => {
- this.$store.commit('checkMainPoints/comChangeState', {
- key: 'investigationUsers',
- data: data.map((t,index)=>({...t,id:t.investigationId}))
- });
- uni.navigateTo({
- url: `/pages/selectVisitPerson/selectVisitPerson?checkId=${this.checkId}&situationType=${this.situationType}&deptId=${this.deptId}&pageTemplateId=${this.pageTemplateId}`
- });
- });
- },
- toSearch() {
- this.ifSearchMod = true;
- this.detailList = [];
- },
- cancelSearchMod() {
- this.ifSearchMod = false;
- this.detailList = [...this.copyDetailList];
- },
- onMaskChange({
- show
- }) {
- if (!show) {
- this.ifOpenFilter = false;
- this.animation.height(0).step();
- this.animationData = this.animation.export()
- }
- },
- openFilter() {
- const status = this.ifOpenFilter;
- if (!status) {
- this.$refs.popup.open();
- this.ifOpenFilter = true;
- this.animation.height('11vh').step();
- } else {
- this.$refs.popup.close();
- this.ifOpenFilter = false;
- this.animation.height(0).step();
- }
- this.animationData = this.animation.export()
- },
- //滚动监听事件,记录滚动高度
- scrollHandle(e) {
- this.currentScrollHeight = e.detail.scrollTop;
- },
- //一键查核
- onkeyCheckHandle() {
- if(this.situationType == 2&&!this.currentSelectedInvestigationUser){
- //当分页模式且未添加/选择受访对象时
- uni.showToast({
- title: '请先选择或添加受访对象!',
- duration: 2000,
- icon:'none'
- });
- return;
- }
- uni.showModal({
- title: '注意',
- content: '确定所有未填写查核结果项默认无缺失结果吗?',
- success: (res) => {
- if (res.confirm) {
- console.log('用户点击确定');
- this.oneKeyCheckCommit();
- } else if (res.cancel) {
- console.log('用户点击取消');
- }
- }
- });
- },
- oneKeyCheckCommit() {
- let ids = [];
- this.detailList.forEach(item => {
- //筛选掉已查核项
- const temp = item.responseList.filter(v => !v.checkResult);
- const arr = temp.map(v => v.id);
- ids = ids.concat(arr);
- });
- this.$store.dispatch({
- type: 'checkMainPoints/commActions',
- key: 'oneKeyCheck',
- data: ids
- }).then(data => {
- if (data) {
- uni.showModal({
- title: '查核完成!',
- content: '',
- showCancel: false,
- success: function(res) {
- if (res.confirm) {
- console.log('用户点击确定');
- uni.navigateBack({
- delta: 1
- });
- }
- }
- });
- }
- });
- },
- btnClick(id) {
- // console.log({id});
- this.active = id;
- this.filterCompleteFlag(id);
- },
- //获取访查对象列表
- getInvestigationUsers() {
- this.$store.dispatch({
- type: 'checkMainPoints/commActions',
- key: 'getInvestigationUsers',
- data: {
- checkId: this.checkId,
- situationType: this.situationType,
- deptId: this.deptId
- }
- }).then(data => {
- if(data.length==0){
- //当不存在访查对象时
- uni.showModal({
- title: '提示',
- content: '你目前还未添加访谈对象!',
- confirmText: '确定',
- showCancel:false
- });
- }
- this.$store.commit('checkMainPoints/comChangeState', {
- key: 'investigationUsers',
- data: data
- });
- this.$store.commit('checkMainPoints/comChangeState', {
- key: 'currentSelectedInvestigationUser',
- data: data[0]
- })
- });
- },
- checkTaskDetailList({
- checkId,
- deptId,
- situationType,
- investigationId
- }) {
- const params = {
- checkId,
- deptId,
- situationType,
- }
- //增加受访人
- if (situationType == 2) params['investigationId'] = investigationId;
- this.dispatch('checkTaskDetailList', {
- ...params
- }).then((data) => {
- if (data) {
- if (!data.checkDetailMapResponses) return;
- this.$store.commit('checkMainPoints/comChangeState', {
- key: 'detailList',
- data: data.checkDetailMapResponses
- });
-
- this.isBindResponsible = data.isBindResponsible;
- this.detailList = data.checkDetailMapResponses;
- this.copyDetailList = data.checkDetailMapResponses;
- this.currentScore = data.getScore;
- this.totalScore = data.totalScore;
- this.subtotalScore = data.subtotalScore;
- this.totalSubtotalScore = data.totalSubtotalScore;
- this.checkDetailMapResponses = data.checkDetailMapResponses;
- data.checkDetailMapResponses.map(({
- checkPointId,
- checkPointName
- }) => {
- this.point.push({
- checkPointId,
- checkPointName
- });
- });
- //检查是否需要弹绑定当事人弹窗
- this.toBindPeople();
- //页面获取完数据时,保持筛选
- this.filterCompleteFlag(this.active);
- }
- });
- },
- childClick(child, checkPointId) {
- // 查核者,管理员
- if (this.nowPermission == 1 || this.nowPermission == 3) {
- let str = '',
- that = this;
- if (child.checkResult && !child.allowEdit) {
- // 当存在查核结果且不允许再修改时 跳转到查核项详情
- str = 'auditItemDetails/auditItemDetails';
- } else {
- if (this.nowPermission == 1) {
- uni.showModal({
- title: '提示',
- content: '请切换至查核者角色再进行查核操作!',
- showCancel: false
- });
- return;
- } else {
- // 跳转到查核结果提交
- str = 'mainPointsDetail/mainPointsDetail';
- }
- }
- uni.navigateTo({
- url: `/pages/${str}?id=${child.id}&checkPointId=${checkPointId}&checkItemId=${child.checkItemId}&situationType=${this.situationType}`,
- success: function(res) {
- const currentGroup = that.detailList.filter(item => item.checkPointId ==
- checkPointId);
- // 通过eventChannel向被打开页面传送数据
- res.eventChannel.emit('acceptDataFromOpenerPage', {
- data: currentGroup
- });
- }
- });
- }
- },
- toggleModal(flage) {
- this.showModal = flage;
- },
- checkPointHandle(id) {
- this.checkPointId = id;
- if (id === 'all') {
- this.detailList = [...this.copyDetailList];
- } else {
- this.detailList = this.copyDetailList
- .filter((item) => item.checkPointId === id);
- }
- },
- filterCompleteFlag(btnId) {
- if (btnId === 0) {
- this.detailList = [...this.copyDetailList];
- } else {
- let completeFlag = btnId === 1 ? false : true;
- this.detailList = this.copyDetailList.map((item) => {
- return {
- ...item,
- responseList: item.responseList
- .filter((child) => child.completeFlag === completeFlag)
- }
- });
- }
- },
- clearSearch() {
- this.searchKey = '';
- this.detailList = [...this.copyDetailList];
- },
- filterFromName(e) {
- const {
- value
- } = e.detail;
- this.searchKey = value;
- if (value === '') {
- this.detailList = [...this.copyDetailList];
- } else {
- this.detailList = [];
- this.copyDetailList.map((item) => {
- let responseList = item.responseList
- .filter((child) => child.checkItemName.indexOf(value) >= 0);
- if (item.checkPointName.indexOf(value) >= 0) {
- this.detailList.push({
- ...item
- });
- } else if (responseList.length > 0) {
- this.detailList.push({
- ...item,
- responseList
- });
- }
- });
- }
- },
- goLegendDetails(e, checkItemId, checkPointId) {
- _stopPropagation(e);
- //跳转到图例详情
- uni.navigateTo({
- url: `/pages/legendDetails/legendDetails?checkItemId=${checkItemId}&checkPointId=${checkPointId}`
- });
- },
- dispatch(key, data) {
- return this.$store.dispatch({
- type: 'checkList/commActions',
- key,
- data
- });
- },
- }
- }
- </script>
- <style lang="less">
- .checkMainPoints {
- position: relative;
- height: 100%;
- display: flex;
- flex-direction: column;
- background-color: #F5F6FA;
- .slot-wrap {
- display: flex;
- flex: 1;
- justify-content: center;
- align-items: center;
- background: #F0F2F7;
- border-radius: 44px;
- padding-left: 20rpx;
- .searchBar {
- flex: 1;
- width: 100%;
- height: 55rpx;
- font-size: 22.5rpx;
- }
- .clearIcon {
- width: 25rpx;
- height: 25rpx;
- margin: 0 20.5rpx;
- }
- .searchBarHolder {
- font-size: 22.5rpx;
- font-family: SourceHanSansCN-Normal, SourceHanSansCN;
- font-weight: 400;
- color: #A1A7B3;
- }
- }
- .navbar-right {
- display: flex;
- justify-content: center;
- align-items: center;
- padding: 0 25rpx;
- .searchActiveBtn {
- font-size: 22.5rpx;
- font-family: SourceHanSansCN-Normal, SourceHanSansCN;
- font-weight: 400;
- color: #292C33;
- }
- }
- .botOneKeyCheck {
- text-align: center;
- height: 75rpx;
- width: 100%;
- line-height: 75rpx;
- font-size: 22.5rpx;
- font-family: SourceHanSansCN-Normal, SourceHanSansCN;
- font-weight: 400;
- color: #FFFFFF;
- background: #3377FF;
- }
- .bottomBtnGroup {
- // position: fixed;
- width: 100%;
- // left:0;
- // bottom: 0;
- display: flex;
- flex-direction: row;
- border-top: 1px solid #DADEE6;
- background-color: #fff;
- .score {
- display: flex;
- width: 50%;
- flex-direction: row;
- justify-content: center;
- align-items: center;
- height: 75rpx;
- .box {
- width: 50%;
- text-align: center;
- white-space: nowrap;
- vertical-align: bottom;
- .label {
- color: #666E80;
- font-size: 17.5rpx;
- margin-right: 10rpx;
- }
- .currentScore {
- font-size: 30rpx;
- font-weight: bold;
- color: #3377FF;
- &.xiaoji {
- color: #19BE6B;
- }
- }
- .totalScore {
- font-size: 30rpx;
- font-weight: bold;
- color: #292C33;
- }
- }
- .midLine {
- height: 17.5rpx;
- border-left: 0.62rpx solid #DADEE6;
- }
- &.scoreTypeTwo {
- height: 100rpx;
- .box {
- .rowOne {
- .subLabel {
- font-size: 10rpx;
- color: #82848A;
- margin-left: 10rpx;
- }
- }
- .rowTwo {
- .currentScore {
- font-size: 20rpx;
- font-weight: bold;
- color: #666E80;
- }
- }
- }
- .midLine {
- height: 25rpx;
- }
- }
- }
- .botOneKeyCheck {
- display: flex;
- justify-content: center;
- align-items: center;
- height: 100%;
- flex-grow: 1;
- font-size: 22.5rpx;
- font-family: SourceHanSansCN-Normal, SourceHanSansCN;
- font-weight: 400;
- color: #FFFFFF;
- background: #3377FF;
- &.typeTwo {
- font-size: 32.5rpx;
- }
- }
- }
- .tm-top-menu {
- .rowTwo {
- display: flex;
- width: 100%;
- height: 0;
- overflow: hidden;
- flex-direction: column;
- box-sizing: border-box;
- padding: 0 25rpx;
- overflow: hidden;
- .rowTwoName {
- font-size: 22.5rpx;
- font-family: SourceHanSansCN-Normal, SourceHanSansCN;
- font-weight: 400;
- color: #666F80;
- margin-bottom: 12.5rpx;
- padding-top: 35rpx;
- }
- .filterBtnWrap {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- }
- }
- }
- .top-search {
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: space-between;
- padding: 25rpx;
- background-color: #fff;
- box-shadow: 0 3.75rpx 12.5rpx 0 rgba(0, 13, 51, 0.1);
- .search {
- position: relative;
- width: 70%;
- height: 55rpx;
- line-height: 55rpx;
- background-color: #F0F2F7;
- input {
- padding: 0 45rpx 0 15rpx;
- height: 55rpx;
- line-height: 55rpx;
- font-size: 22.5rpx;
- }
- image {
- position: absolute;
- top: 16.87rpx;
- right: 15rpx;
- width: 21.25rpx;
- height: 21.25rpx;
- }
- }
- .btnGroup {
- display: flex;
- flex-direction: row;
- justify-content: center;
- align-items: center;
- .searchBtn {
- width: 30rpx;
- height: 30rpx;
- margin-right: 30rpx;
- }
- .filterBtn {
- width: 30rpx;
- height: 27.5rpx;
- }
- }
- .top-btn-wrap {
- padding-left: 25rpx;
- .btn-list {
- display: flex;
- flex-direction: row;
- .com-button {
- margin-left: 5rpx;
- &:first-child {
- margin-left: 0;
- }
- }
- }
- .select-wrap {
- display: flex;
- flex-direction: row;
- align-items: center;
- white-space: nowrap;
- image {
- margin-left: 9.37rpx;
- width: 12.5rpx;
- height: 12.5rpx;
- }
- }
- }
- }
- .top-search-two {
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- justify-content: center;
- padding: 25rpx;
- background-color: #fff;
- box-shadow: 0 3.75rpx 12.5rpx 0 rgba(0, 13, 51, 0.1);
- .rowOne {
- display: flex;
- width: 100%;
- flex-direction: row;
- justify-content: space-between;
- align-items: center;
- .selectPeople {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- align-items: center;
- .completePeopleIcon {
- width: 50rpx;
- height: 50rpx;
- margin-right: 15rpx;
- }
- .peopleName {
- font-size: 25rpx;
- font-family: SourceHanSansCN-Normal, SourceHanSansCN;
- font-weight: 400;
- color: #292C33;
- }
- .fullArrow {
- width: 11.25rpx;
- height: 7.5rpx;
- margin-left: 15rpx;
- }
- .addPeopleBtn {
- width: 30rpx;
- height: 30rpx;
- margin-right: 12.5rpx;
- }
- }
- .btnGroup {
- .searchBtn {
- width: 30rpx;
- height: 30rpx;
- margin-right: 50rpx;
- }
- .filterBtn {
- width: 30rpx;
- height: 27.5rpx;
- }
- }
- }
- }
- .content-list {
- // padding-top: 105rpx;
- width: 100%;
- background-color: #fff;
- .list-item {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- align-items: center;
- border-bottom: 1px solid #DADEE6;
- padding: 0 25rpx;
- width: 100%;
- height: 87.5rpx;
- font-size: 22.5rpx;
- line-height: 33.75rpx;
- color: #292C33;
- .check-img {
- float: right;
- width: 19.37rpx;
- height: 14.37rpx;
- }
- &.active {
- color: #3377FF;
- }
- }
- }
- .contentContainer {
- display: flex;
- flex: 1;
- height: 100%;
- overflow: hidden;
- .dataEmptyimg {
- display: block;
- width:200rpx;
- height:230rpx;
- margin: 0 auto;
- margin-top: 200rpx;
- }
- .scroll-Y {
- height: 100%;
- &.noBtn {
- height: 100%;
- }
- }
- }
- .list {
- .title {
- padding-left: 25rpx;
- width: 100%;
- height: 62.5rpx;
- line-height: 62.5rpx;
- color: #666F80;
- }
- .item {
- margin-top: 15rpx;
- padding: 25rpx 0;
- min-height: 167.5rpx;
- background-color: #fff;
- &:nth-child(2) {
- margin-top: 0;
- }
- .top-box {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- align-items: center;
- .top-box-left {
- display: flex;
- flex-direction: row;
- width: calc(100% - 55rpx);
- .index-icon {
- margin-right: 15rpx;
- border-radius: 0 62.5rpx 62.5rpx 0;
- width: 50rpx;
- height: 35rpx;
- line-height: 35rpx;
- text-align: center;
- color: #fff;
- background-color: #66B2FE;
- &.done {
- background-color: rgba(195, 202, 217, 1);
- }
- }
- >text {
- display: -webkit-box;
- overflow: hidden;
- width: calc(100% - 65rpx);
- text-overflow: ellipsis;
- -webkit-line-clamp: 2;
- /*! autoprefixer: off */
- -webkit-box-orient: vertical;
- }
- }
- .topRightGroup {
- display: flex;
- flex-direction: row;
- .checkStatus {
- display: flex;
- flex-direction: row;
- justify-content: center;
- align-items: center;
- width: 125rpx;
- height: 40rpx;
- margin-right: 15rpx;
- background: #F2F4F7;
- border-radius: 20rpx;
- .checkIcon {
- width: 25rpx;
- height: 25rpx;
- margin-right: 10rpx;
- }
- .checkStatusText {
- font-size: 20rpx;
- font-family: SourceHanSansCN-Normal, SourceHanSansCN;
- font-weight: 400;
- color: #292C33;
- }
- }
- image {
- margin-right: 15rpx;
- width: 40rpx;
- height: 40rpx;
- }
- }
- }
- .children {
- display: flex;
- flex-direction: row;
- align-items: center;
- margin-top: 18.75rpx;
- .child {
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- flex: 1;
- border-right: 1px solid #DADEE6;
- text {
- width: 150rpx;
- font-weight: 500;
- text-align: center;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- &:last-child {
- font-size: 17.5rpx;
- line-height: 26.25rpx;
- color: #7A8599;
- text-align: center;
- font-weight: 400;
- }
- }
- &:last-child {
- border-right: 0;
- }
- }
- }
- }
- }
- }
- </style>
|