ソースを参照

开单合理性功能添加

luolei 4 年 前
コミット
c5364e5e42

+ 9 - 1
src/components/AddAssistCheck/AssistName/index.jsx

@@ -2,6 +2,8 @@ import React, { Component } from "react";
 import styles from "../index.less";
 import $ from 'jquery';
 import { windowEventHandler,setFontColorSize } from '@utils/tools';
+import checkOff from '@common/images/check_off.png';
+import checkOn from '@common/images/check_on.png';
 
 class AssistName extends Component {
 	constructor(props) {
@@ -11,6 +13,7 @@ class AssistName extends Component {
 		};
 		this.$assistName = React.createRef();
 		this.splitName = this.splitName.bind(this);
+    this.checkOnOff = this.checkOnOff.bind(this);
 	}
 	splitName(name){
 		let wid = this.props.winWidth;
@@ -21,10 +24,15 @@ class AssistName extends Component {
 			return name
 		}
 	}
+  checkOnOff(item){
+    const {checkOnOff} = this.props
+    checkOnOff(item)
+  }
 	render() {
-		const { winWidth, name, getInfomation,normal } = this.props;
+		const { winWidth, name, getInfomation,normal,item } = this.props;
 		return (
 				<span className={`${styles.assistName} ${setFontColorSize(2)}`} style={{ width: winWidth < 1150 ? '120px' : 'auto',fontWeight:normal?'normal':'bold' }} ref={this.$assistName}>
+          <img className={styles.imgCheck} src={item.check?checkOn:checkOff} onClick={()=>this.checkOnOff(item)} alt=""/>
 					<span className={styles.tagSpan} title={name}>
 						{name&&this.splitName(name)}:
             {/* <span className={styles.imgInfo} title='点击i图标可查看详细说明' onClick={() => getInfomation({ name: name, position: 1, type: 6 })}></span> */}

+ 2 - 38
src/components/AddAssistCheck/index.jsx

@@ -183,7 +183,7 @@ class AddAssistCheck extends React.Component {
   }
 
   getAssistLabel() {
-    const { assistLabel,checkedListImport, handleChangeAssistValue, handleChangeDate, isRead, handlePush, winWidth,getInfomation,assistList } = this.props;
+    const { assistLabel,checkedListImport, handleChangeAssistValue,checkOnOff, handleChangeDate, isRead, handlePush, winWidth,getInfomation,assistList } = this.props;
     const { visible,activeName,id,date } = this.state;
     //出现滚动条时阻止滚动冒泡,未出现时不阻止,否则外部滚动条滚不动
     const showedBar = $("#datePick .scrollbar-container").length===1;
@@ -196,42 +196,6 @@ class AddAssistCheck extends React.Component {
       background:'#f1f1f1'};
     const barStyle={background:'#777',width:'100%'};
     return <React.Fragment>
-      {
-        checkedListImport.map((part,index)=>{
-          return <ul className={`${styles.labelWrap} ${styles.labelWrapSpec} ${styles.labelWrapSpecs}`}>
-            {
-              part.map((item, idx) => {
-                return (<li className={`${styles.assistLists} ${styles.clearfix}`}>
-                  <AssistName name={item.name} winWidth={winWidth} getInfomation={getInfomation} normal={true}></AssistName>
-                  <div className={`${styles.textareaWrap} ${setFontColorSize(2,1)}`}>
-                    <ScrollArea speed={0.8}
-                                horizontal={false}
-                                stopScrollPropagation={showedBar?true:false}
-                                style={{maxHeight:'100px'}}
-                                className={styles["area"]}
-                                verticalContainerStyle={contStyle}
-                                verticalScrollbarStyle={barStyle}
-                                contentClassName="content">
-                      <Textarea value={item.value} disabled={item.disabled} handlePush={handlePush} isRead={isRead} handleChangeAssistValue={handleChangeAssistValue} idx={idx}></Textarea>
-                    </ScrollArea>
-                  </div>
-                  <div className={`${styles.pointerFinger} ${setFontColorSize(2,2)}`}>
-                    <p>报告日期:<span>{item.time || this.state.dateTime}</span></p>
-                  </div>
-                </li>)
-              })
-            }
-            <DelToast show={index==id&&part.name==activeName?visible:false}
-                      name="该导入项"
-                      right={'-34px'}
-                      top={'22px'}
-                      cancel={this.handleCancel}
-                      confirm={()=>this.delConfirm(0)}/>
-            <span className={`${styles.closeIcon} ${styles.closeIcons}`} id="assiClose" onClick={()=>{ this.handleDelClick(index,part)}}></span>
-          </ul>
-        })
-      }
-
       <ul className={styles.labelWrap} id="datePick">
         {
           assistLabel.map((item, idx) => {
@@ -256,7 +220,7 @@ class AddAssistCheck extends React.Component {
                   <span className={styles.imgInfo} title='点击i图标可查看详细说明' onClick={()=>getInfomation({name: item.name, position: 1, type: 6})}></span>
                 </span>
               </span> */}
-              <AssistName name={item.name} winWidth={winWidth} getInfomation={getInfomation}></AssistName>
+              <AssistName item={item} checkOnOff={checkOnOff} name={item.name} winWidth={winWidth} getInfomation={getInfomation}></AssistName>
               <div className={`${styles.textareaWrap} ${setFontColorSize(2,1)}`}>
                 <ScrollArea speed={0.8}
                             horizontal={false}

+ 5 - 0
src/components/AddAssistCheck/index.less

@@ -8,6 +8,11 @@
   position: relative;
 }
 
+.imgCheck {
+  position: relative;
+  top: 2px;
+  margin: 0 3px 0 0px;
+}
 .pointerFinger {
   cursor: default;
 }

+ 12 - 3
src/components/AddInspect/SlidePic/index.jsx

@@ -4,6 +4,8 @@ import { normalVal,getArrow,timestampToTime,getDomUpDown,getPageCoordinate,setPo
 import { InspectCommon, Notify,DelToast} from '@commonComp';
 import slideUp from "@common/images/slide-up.png";
 import slideDown from "@common/images/slide-down.png";
+import checkOff from '@common/images/check_off.png';
+import checkOn from '@common/images/check_on.png';
 import $ from 'jquery';
 import date1 from '../img/date1.png';
 import ScrollArea from 'react-scrollbar';
@@ -31,6 +33,7 @@ class SlideSelect extends Component {
     this.setEdit = this.setEdit.bind(this);
     this.handleLabelSub = this.handleLabelSub.bind(this);
     this.handleBlur = this.handleBlur.bind(this);
+    this.checkOnOff = this.checkOnOff.bind(this);
   }
   handleChangeDate(date) {
     // console.log(date,'外')
@@ -80,8 +83,8 @@ class SlideSelect extends Component {
     this.setState({
       canEdit:false
     },()=>{
-      $("#canEdit").focus()
-      $("#canEdit").blur(()=>{
+      $(".canEdit").focus()
+      $(".canEdit").blur(()=>{
         this.setState({canEdit:true})
       })
     })
@@ -137,11 +140,16 @@ class SlideSelect extends Component {
     const {handlePush} = this.props;
     handlePush && handlePush({mode:8});       //右侧推送
   }
+  checkOnOff(item){
+    const {checkOnOff} = this.props
+    checkOnOff(item)
+  }
   render() {
     const {item,idx,time} = this.props;
     const {canEdit,activeInd,activeName,value,style} = this.state;
     return (
       item.flg == 1?<li key={item.uniqueName+idx} className={`${styles.slideLi} clearfix`}> 
+          <img className={styles.imgCheck} src={item.check?checkOn:checkOff} onClick={()=>this.checkOnOff(item)} alt=""/>
           <span className={styles.bigname}>{item.uniqueName}</span>
           <span className={styles.smallname}></span>
           <span className={styles.edit}></span>
@@ -155,11 +163,12 @@ class SlideSelect extends Component {
                     cancel={this.handleCancel}
                     confirm={()=>{this.delConfirm(item)}}/>
       </li>:<li key={item.uniqueName+idx} className={`${styles.slideLi} clearfix`}> 
+          <span style={{width:'22px'}}></span>
           <span className={styles.bigname}>{item.name}</span>
           <span className={styles.smallname}>{item.uniqueName}</span>
           <span className={styles.edit}>
             <input disabled={canEdit} type="text" 
-              id="canEdit" 
+              class="canEdit" 
               onDoubleClick={this.setEdit}
               style={{color:style==2||style==4?'red':style==1?'#D949FF':'#333'}}
               placeholder='(填写)'

+ 5 - 3
src/components/AddInspect/SlidePic/index.less

@@ -55,13 +55,15 @@
         input {
             width: 40px;
         }
-        i {
-            
-        }
     }
     .maxmin {
         width: 15%;
     }
+    .imgCheck {
+        position: relative;
+        top: 2px;
+        margin: 0 3px 0 5px;
+    }
 }
 .slideLi:hover{
     background:#F2F2F2;

+ 3 - 1
src/components/AddInspect/index.jsx

@@ -324,7 +324,7 @@ class Inspect extends React.Component {
     }
   }
   render() {
-    const {setHighter,refreshScroller, getInfomation,setTipValue, handleChangeValue,labelListSmall,inspectList, inspectVal, list, labelListBig, windowHeight, windowWidth,detailClick, handleLabelSub, handleClear, handleConfirm, fillActive, getExcelDataList, handleCloseExcel, handlePush,handleDelConfirm } = this.props;
+    const {setHighter,refreshScroller,checkOnOff, getInfomation,setTipValue, handleChangeValue,labelListSmall,inspectList, inspectVal, list, labelListBig, windowHeight, windowWidth,detailClick, handleLabelSub, handleClear, handleConfirm, fillActive, getExcelDataList, handleCloseExcel, handlePush,handleDelConfirm } = this.props;
     const { tmpId, tmpIdx, time, pageTop, impId } = this.state;
     const contStyle={
       opacity:'0.4',
@@ -343,6 +343,7 @@ class Inspect extends React.Component {
               labelListSmall && labelListSmall.map((item, idx) => {
                 return <SlidePic
                   item={item}
+                  checkOnOff={checkOnOff}
                   idx={idx}
                   time={time}
                   handlePush={handlePush}
@@ -356,6 +357,7 @@ class Inspect extends React.Component {
               labelListBig && labelListBig.map((item, idx) => {
                 return <SlidePic
                   item={item}
+                  checkOnOff={checkOnOff}
                   idx={idx}
                   time={time}
                   handlePush={handlePush}

+ 13 - 12
src/components/AddNewInspect/SlidePic/index.jsx

@@ -82,8 +82,8 @@ class SlidePic extends Component {
     this.setState({
       canEdit:false
     },()=>{
-      $("#canEdit").focus()
-      $("#canEdit").blur(()=>{
+      $(".canEdit").focus()
+      $(".canEdit").blur(()=>{
         this.setState({canEdit:true})
       })
     })
@@ -161,22 +161,22 @@ class SlidePic extends Component {
                     cancel={this.handleCancel}
                     confirm={()=>{this.delConfirm(item)}}/>
       </li>:(item.flg == 5||item.flg == 6)?<li key={item.time} className={`${styles.slideLi} clearfix`}> 
-          <img src={item.check?checkOn:checkOff} onClick={()=>this.checkOnOff(item)} alt=""/>
+          <img className={styles.imgCheck} src={item.check?checkOn:checkOff} onClick={()=>this.checkOnOff(item)} alt=""/>
           <span className={styles.bigname}>{item.name}</span>
           <span className={styles.smallname}>{item.flg == 5?'药品':'手术/操作'}</span>
-          {/* <span className={styles.edit}>
+          <span className={styles.edit}>
             <input disabled={canEdit} type="text" 
-              id="canEdit" 
+              className="canEdit" 
               onDoubleClick={this.setEdit}
               style={{color:style==2||style==4?'red':style==1?'#D949FF':'#333'}}
-              placeholder='(填写)'
+              placeholder='(填写用法计量)'
               autoComplete="off"
               value={value}
               onInput={(e)=>{this.handleInput(e,item)}}
               onBlur={()=>{this.handleBlur()}}
-              /><img style={{display:style==1||style==2?'inline-block':'none'}} src={style==1?down:style==2?up:''} />{item.units}
-          </span> */}
-          <span className={styles.maxmin}></span>
+              />
+          </span>
+          {/* <span className={styles.maxmin}></span> */}
           <span className={styles.pass}>{item.time}</span>
           <span id="addClose" className={styles.partDel} onClick={()=>{this.handleDel(item.time)}}></span>
           <DelToast show={time==item.time&&activeInd?true:false}
@@ -190,15 +190,16 @@ class SlidePic extends Component {
           <span className={styles.smallname}>{item.uniqueName}</span>
           <span className={styles.edit}>
             <input disabled={canEdit} type="text" 
-              id="canEdit" 
+              className="canEdit" 
               onDoubleClick={this.setEdit}
               style={{color:style==2||style==4?'red':style==1?'#D949FF':'#333'}}
-              placeholder='(填写)'
+              placeholder='(填写用法计量)'
               autoComplete="off"
               value={value}
+              title={value}
               onInput={(e)=>{this.handleInput(e,item)}}
               onBlur={()=>{this.handleBlur()}}
-              /><img style={{display:style==1||style==2?'inline-block':'none'}} src={style==1?down:style==2?up:''} />{item.units}
+              />
           </span>
           <span className={styles.maxmin}>{normalVal(item.minValue,item.maxValue)}</span>
           <span className={styles.pass}>化验时间:{item.time}</span>

+ 14 - 4
src/components/AddNewInspect/SlidePic/index.less

@@ -44,16 +44,16 @@
         background-size: 100% 100%;
     }
     .bigname {
-        width: 40%;
+        width: 35%;
         font-weight: bold;
     }
     .smallname {
-        width: 25%;
+        width: 15%;
     }
     .edit {
-        width: 15%;
+        width: 25%;
         input {
-            width: 40px;
+            width: 100%;
         }
         i {
             
@@ -62,6 +62,16 @@
     .maxmin {
         width: 15%;
     }
+    .pass {
+        text-align: right;
+        padding-left: 15px;
+        box-sizing: border-box;
+    }
+    .imgCheck {
+        position: relative;
+        top: 2px;
+        margin: 0 3px 0 5px;
+    }
 }
 .slideLi:hover{
     background:#F2F2F2;

+ 2 - 1
src/components/AssistCheck/index.jsx

@@ -94,7 +94,7 @@ class AssistCheck extends React.Component {
 
   }
     render(){
-        const {setHighter,checkedListImport,list,getInfomation,windowHeight,hospitalMsg,assistLabel,assistVal,
+        const {setHighter,checkOnOff,checkedListImport,list,getInfomation,windowHeight,hospitalMsg,assistLabel,assistVal,
           handleChangeValue,handleSign,fetchPushInfos,handleDelAssist,handleChangeAssistValue,handleChangeDate,
           isRead,winWidth,assistList,hideAllDrop} = this.props;
         const {showSlideImport,checkSystemIpt,onClose,closeInIcss} = this;
@@ -148,6 +148,7 @@ class AssistCheck extends React.Component {
                 >
                     <div style={{padding:'10px',boxSizing:'border-box',color:'#000'}} >
                         <AddAssistCheck
+                            checkOnOff={checkOnOff}
                             handleChangeValue={handleChangeValue}
                             refreshScroller={this.refreshScroller}
                             list={list}

+ 1 - 1
src/components/DiagnosticList/index.jsx

@@ -307,7 +307,7 @@ class DiagnosticList extends Component {
                                        onMouseEnter={this.handleMouseEnterDrug.bind(this,index)}
                                        onMouseLeave = {this.handleMouseLeaveDrug.bind(this)}
                                     >
-                                      <span   className={style['diag-name-box']} style={{maxWidth: windowWidth > 1024 ?windowWidth-900 +'px':'130px'}}>
+                                      <span title={item.name} className={style['diag-name-box']} style={{maxWidth: windowWidth > 1024 ?windowWidth-600 +'px':'130px'}}>
                                         {item.name}
                                       </span>
                                       {/* <img className={`${style['info-img']}`}

+ 2 - 1
src/components/Inspect/index.jsx

@@ -240,7 +240,7 @@ class Inspect extends React.Component {
 
   }
   render() {
-    const {hideAllDrop,setHighter,labelListBig, fetchPushInfos,getInfomation,labelListSmall, hospitalMsg, inspectVal, windowHeight, windowWidth,setTipValue, handleCloseExcel, handleChangeValue, labelListActive, list, handleSign, labelList, handleLabelSub, handleClear, handleConfirm, fillActive, changeActivePart, getExcelDataList, delPartItem, inspectList,detailClick,handleDelConfirm } = this.props;
+    const {hideAllDrop,setHighter,labelListBig,checkOnOff, fetchPushInfos,getInfomation,labelListSmall, hospitalMsg, inspectVal, windowHeight, windowWidth,setTipValue, handleCloseExcel, handleChangeValue, labelListActive, list, handleSign, labelList, handleLabelSub, handleClear, handleConfirm, fillActive, changeActivePart, getExcelDataList, delPartItem, inspectList,detailClick,handleDelConfirm } = this.props;
     const { ieVersion, isIE, hide,importLis } = this.state;
     const { checkSystemIpt, onClose,handleBindFileApi,closeInIcss,showSlideImport } = this;
     if(JSON.stringify(hospitalMsg) != {} && document.getElementById("choose")){//动态绑定只绑定一次
@@ -298,6 +298,7 @@ class Inspect extends React.Component {
         >
           <div style={{ padding: '10px', boxSizing: 'border-box',color:'#000' }} >
             <AddInspect
+              checkOnOff={checkOnOff}
               handleDelConfirm={handleDelConfirm}
               labelListBig={labelListBig}
               labelListSmall={labelListSmall}

+ 1 - 1
src/components/NewAdvice/index.jsx

@@ -296,7 +296,7 @@ class NewAdvice extends React.Component {
           // style={{marginRight:'0'}}
           marginTop={'0px'}
         >
-          <div style={{ padding: '10px', boxSizing: 'border-box',color:'#000' }} >
+          <div style={{ padding: '0 10px 10px 10px', boxSizing: 'border-box',color:'#000' }} >
             <AddNewInspect
               checkOnOff={checkOnOff}
               handleDelConfirm={handleDelConfirm}

+ 2 - 0
src/components/NewAdvice/index.less

@@ -57,6 +57,8 @@
 }
 .title {
     margin-top: 12px !important;
+    position: relative;
+    top: 6px;
 }
 .excelList {
     padding-bottom: 20px;

+ 4 - 1
src/containers/AssistCheck.js

@@ -3,7 +3,7 @@ import {
     connect
 } from 'react-redux';
 import AssistCheck from '@components/AssistCheck';
-import { assistLable,delAssistLabel,changeAssistVal,changeDate,allCheckImports,selectOneChecks,showInIcsss } from '@store/actions/assistCheck';
+import { assistLable,delAssistLabel,changeAssistVal,changeDate,allCheckImports,selectOneChecks,showInIcsss,checkOffOn } from '@store/actions/assistCheck';
 import { getSearchList,getInstroduce ,getImportLists,getSonDetailList} from '@store/async-actions/assistCheck';
 import {ISREAD,HIDEDROP} from '@store/types/homePage.js';
 import {embedPush, getConceptDetail,getMRAnalyse} from '@store/async-actions/pushMessage';
@@ -34,6 +34,9 @@ function mapStateToProps(state) {//console.log(state.typeConfig)
 
 function mapDispatchToProps(dispatch, store) {
     return {
+        checkOnOff(item){
+          dispatch(checkOffOn(item))
+        },
         showInIcss(){
           dispatch(showInIcsss())
         },

+ 4 - 0
src/containers/Inspect.js

@@ -20,6 +20,7 @@ import {
   searchType,
   resetLabel,
   delOnePic,
+  checkOffOn,
 } from '@store/actions/inspect';
 import {
   billing,
@@ -51,6 +52,9 @@ function mapStateToProps(state) {//console.log(state)
 
 function mapDispatchToProps(dispatch) {
   return {
+    checkOnOff(item){
+      dispatch(checkOffOn(item))
+    },
     detailClick(val){
       dispatch(searchType(val))
     },

+ 1 - 1
src/containers/NewAdvice.js

@@ -30,7 +30,7 @@ import {
 } from '@store/async-actions/pushMessage';
 import {HIDEDROP} from '@types/homePage';
 
-function mapStateToProps(state) {//console.log(state)
+function mapStateToProps(state) {console.log(state)
   return {
     list: state.newAdvice.list,
     labelList: state.newAdvice.labelList,

+ 5 - 1
src/store/actions/assistCheck.js

@@ -1,4 +1,4 @@
-import {GET_ASSIST_SEARCH_LIST,GET_ASSIST_LABEL,DEL_ASSIST_LABEL,CHANGE_ASSIST_VAL,CHANGE_DATE,CLEAR_ASSIST_DATA,ADD_ASSIST_LABEL} from '../types/assistCheck';
+import {GET_ASSIST_SEARCH_LIST,GET_ASSIST_LABEL,CHECK_OFF_ON,DEL_ASSIST_LABEL,CHANGE_ASSIST_VAL,CHANGE_DATE,CLEAR_ASSIST_DATA,ADD_ASSIST_LABEL} from '../types/assistCheck';
 
 export const searchList = (list,val) => ({         //搜索列表渲染
     type:GET_ASSIST_SEARCH_LIST,
@@ -30,6 +30,10 @@ export const changeDate = (date,idx) => ({         //更改时间
     date,
     idx
 })
+export const checkOffOn = (item) => ({
+    type:CHECK_OFF_ON,
+    item
+})
 export const clearAssistData = (data,saveText,checkedListImport) => ({         //清空回读
     type:CLEAR_ASSIST_DATA,
     data,

+ 5 - 1
src/store/actions/inspect.js

@@ -1,4 +1,4 @@
-import {SET_CONTEXT,DEL_ONE_PIC,ADD_LABEL,SEARCH_LIST,SET_LABEL,SET_TIP,FILL_ACTIVE,FILL_ACTIVE_DETAIL,GET_EXCEL,CHECK_VALUE_IS_CHANGE,CLEAR_LABEL,RESET_LABEL,CLEAR_ALL_LABEL,DEL_PART_ITEM,DEL_EXCEL_LIST,SEARCH_TYPE} from '../types/inspect';
+import {SET_CONTEXT,CHECK_ON_OFF,DEL_ONE_PIC,ADD_LABEL,SEARCH_LIST,SET_LABEL,SET_TIP,FILL_ACTIVE,FILL_ACTIVE_DETAIL,GET_EXCEL,CHECK_VALUE_IS_CHANGE,CLEAR_LABEL,RESET_LABEL,CLEAR_ALL_LABEL,DEL_PART_ITEM,DEL_EXCEL_LIST,SEARCH_TYPE} from '../types/inspect';
 
 export const setLabel = (idx,sign) => ({          //搜索后点击选中的结果
     type:SET_LABEL,
@@ -77,3 +77,7 @@ export const delOnePic = (item) => ({
     type:DEL_ONE_PIC,
     item
 })
+export const checkOffOn = (item) => ({
+    type:CHECK_ON_OFF,
+    item
+})

+ 18 - 1
src/store/reducers/assistCheck.js

@@ -5,7 +5,8 @@ import {
   CHANGE_ASSIST_VAL,
   CHANGE_DATE,
   CLEAR_ASSIST_DATA,
-  ADD_ASSIST_LABEL
+  ADD_ASSIST_LABEL,
+  CHECK_OFF_ON,
 } from '../types/assistCheck';
 import store from '@store';
 const initSearchList = {
@@ -69,6 +70,22 @@ export default (state = initSearchList, action) => {
     newState.dataString = tmpObj.str
     return newState;
   }
+  if (action.type == CHECK_OFF_ON) { //选中开单项
+    const newState = Object.assign({}, state);
+    let tempArrs = newState.assistLabel;
+    let tempList = action.item
+    for(let i = 0;i < tempArrs.length;i++){
+        if(tempArrs[i].time == tempList.time){
+            let flg = tempArrs[i].check;
+            tempArrs[i].check = !flg
+        }
+    }
+    let tmpObj = getAllString([],newState.assistLabel)
+    newState.assistLabel = [...tempArrs]
+    newState.dataArr = tmpObj.arr
+    newState.dataString = tmpObj.str
+    return newState;
+  }
   if (action.type == DEL_ASSIST_LABEL) { //删除
     const newState = Object.assign({}, state);
     let tempArr = newState.assistLabel,tempArrs = [];

+ 26 - 0
src/store/reducers/inspect.js

@@ -14,6 +14,7 @@ import {
     SET_TIP,
     SEARCH_TYPE,
     DEL_ONE_PIC,
+    CHECK_ON_OFF,
 } from '../types/inspect';
 import store from '@store';
 import { getStringPlus,  getPushLists,  getPushList,getCurrentDate} from '@utils/tools.js';
@@ -38,6 +39,31 @@ const initSearchList = {
 }
 
 export default (state = initSearchList, action) => {
+    if (action.type == CHECK_ON_OFF) {
+        const newState = Object.assign({}, state);
+        let tempArr = newState.labelListBig;
+        let tempArrs = newState.labelListSmall;
+        let tmpLis = action.item
+        
+        if(tmpLis&&tmpLis.flg == 1){
+            for(let i = 0;i < tempArr.length;i++){
+                if(tempArr[i].time == tmpLis.time){
+                    let flg = tempArr[i].check;
+                    tempArr[i].check = !flg
+                }
+            }
+            newState.labelListBig = [...tempArr]
+        }else{
+            for(let i = 0;i < tempArrs.length;i++){
+                if(tempArrs[i].time == tmpLis.time){
+                    let flg = tempArrs[i].check;
+                    tempArrs[i].check = !flg
+                }
+            }
+            newState.labelListSmall = [...tempArrs]
+        }
+        return newState;
+    }
     if (action.type == DEL_ONE_PIC) {
         const newState = Object.assign({}, state);
         let tempArr = newState.labelListBig;

+ 1 - 0
src/store/types/assistCheck.js

@@ -5,3 +5,4 @@ export const CHANGE_ASSIST_VAL = 'CHANGE_ASSIST_VAL';
 export const CHANGE_DATE = 'CHANGE_DATE';
 export const CLEAR_ASSIST_DATA = 'CLEAR_ASSIST_DATA';
 export const ADD_ASSIST_LABEL = 'ADD_ASSIST_LABEL';
+export const CHECK_OFF_ON = 'CHECK_OFF_ON';

+ 1 - 0
src/store/types/inspect.js

@@ -15,3 +15,4 @@ export const SET_CONTEXT = 'SET_CONTEXT';
 export const SET_TIP = 'SET_TIP';
 export const SEARCH_TYPE = 'SEARCH_TYPE';
 export const DEL_ONE_PIC = 'DEL_ONE_PIC';
+export const CHECK_ON_OFF = 'CHECK_ON_OFF';