Sfoglia il codice sorgente

Merge remote-tracking branch 'origin/optimize' into optimize

zhouna 6 anni fa
parent
commit
61c689d8ca

+ 61 - 61
src/components/AddInspect/SlideExcel/index.jsx

@@ -1,96 +1,96 @@
 import React, { Component } from "react";
 import styles from "./index.less";
-import { normalVal,timestampToTime,getStatusImg } from '@utils/tools';
+import { normalVal, timestampToTime, getStatusImg } from '@utils/tools';
 import slideUp from "@common/images/slide-up.png";
 import slideDown from "@common/images/slide-down.png";
 class SlideExcel extends Component {
   constructor(props) {
     super(props);
     this.state = {
-      show:false
+      show: false
     };
     this.toTime = this.toTime.bind(this)
     this.handleSlide = this.handleSlide.bind(this)
   }
-  toTime(time){
-    let tmpTim = time.split(',').join('')-0
-    if(time && tmpTim.toString() != 'NaN'){
+  toTime(time) {
+    let tmpTim = time.split(',').join('') - 0
+    if (time && tmpTim.toString() != 'NaN') {
       let date = new Date('1900-01-01');
       let dateTim = date.getTime();
-      let times = (tmpTim-2)*24*60*60*1000;
-      let result = timestampToTime(dateTim+times).split(' ')[0]
+      let times = (tmpTim - 2) * 24 * 60 * 60 * 1000;
+      let result = timestampToTime(dateTim + times).split(' ')[0]
       return result;
-    }else{
+    } else {
       return time;
     }
   }
-  handleSlide(){
+  handleSlide() {
     let tmpShow = this.state.show
     this.setState({
-      show:!tmpShow
+      show: !tmpShow
     })
   }
   render() {
-    const {items,item,idx,getInfomation,dateTime} = this.props;
-    const {show} = this.state;
+    const { items, item, idx, getInfomation, dateTime } = this.props;
+    const { show } = this.state;
     return (
-      <li className={`${styles.excelDataLis} clearfix`} style={{border:items.lisExcelRes.length-1 == idx? 0:''}}>
-          <span className={styles.excelDataTitle}>
-              <span className={styles.tagSpan}>
-                {item.menus}
-                <span className={styles.imgInfo} onClick={()=>getInfomation({name:item.lisExcelItem[0].uniquemealName || '',type:12, position: 1})}></span>
-              </span>
+      <li className={`${styles.excelDataLis} clearfix`} style={{ border: items.lisExcelRes.length - 1 == idx ? 0 : '' }}>
+        <span className={styles.excelDataTitle}>
+          <span className={styles.tagSpan}>
+            {item.menus}
+            <span className={styles.imgInfo} onClick={() => getInfomation({ name: item.lisExcelItem[0].uniquemealName || '', type: 12, position: 1 })}></span>
           </span>
-          <table className={styles.table}>
-             {  show ? (item.lisExcelItem && item.lisExcelItem.map((value,idx)=>{
-                  return <tr>
-                      <td style={{width:'30%'}}>
-                        <span className={styles.tagSpan}>
-                          {value.itemName}
-                          <span className={styles.imgInfo} onClick={()=>getInfomation({name: value.uniqueName || '',type:12, position: 1})}></span>
-                        </span>
-                      </td>
-                      <td style={{width:'20%'}}>
-                        {
-                          getStatusImg(value.type,value.value,1)
-                        }
-                        {value.unit}</td>
-                      <td style={{width:'25%'}}>
-                          {normalVal(value.min,value.max)}
-                      </td>
-                      <td style={{width:'25%'}}>{value.time == ''?('导入时间: '+dateTime):'化验时间: '+this.toTime(value.time)}</td>
-                  </tr>
-                })):(item.lisExcelItem && item.lisExcelItem.map((value,idx)=>{
-                  if(idx < 4){
-                    return <tr>
-                        <td style={{width:'30%'}}>
-                          <span className={styles.tagSpan}>
-                            {value.itemName}
-                            <span className={styles.imgInfo} onClick={()=>getInfomation({name: value.uniqueName || '',type:12, position: 1})}></span>
-                          </span>
-                        </td>
-                        <td style={{width:'20%'}}>
-                          {
-                            getStatusImg(value.type,value.value,1)
-                          } 
-                          {value.unit}</td>
-                        <td style={{width:'25%'}}>
-                            {normalVal(value.min,value.max)}
-                        </td>
-                        <td style={{width:'25%'}}>{value.time == ''?('导入时间: '+dateTime):'化验时间: '+this.toTime(value.time)}</td>
-                    </tr>
+        </span>
+        <table className={styles.table}>
+          {show ? (item.lisExcelItem && item.lisExcelItem.map((value, idx) => {
+            return <tr>
+              <td style={{ width: '30%' }}>
+                <span className={styles.tagSpan}>
+                  {value.itemName}
+                  <span className={styles.imgInfo} onClick={() => getInfomation({ name: value.uniqueName || '', type: 12, position: 1 })}></span>
+                </span>
+              </td>
+              <td style={{ width: '20%' }}>
+                {
+                  getStatusImg(value.type, value.value, 1)
+                }
+                {value.unit}</td>
+              <td style={{ width: '25%' }}>
+                {normalVal(value.min, value.max)}
+              </td>
+              <td style={{ width: '25%' }}>{value.time == '' ? ('导入时间: ' + dateTime) : '化验时间: ' + this.toTime(value.time)}</td>
+            </tr>
+          })) : (item.lisExcelItem && item.lisExcelItem.map((value, idx) => {
+            if (idx < 4) {
+              return <tr>
+                <td style={{ width: '30%' }}>
+                  <span className={styles.tagSpan}>
+                    {value.itemName}
+                    <span className={styles.imgInfo} onClick={() => getInfomation({ name: value.uniqueName || '', type: 12, position: 1 })}></span>
+                  </span>
+                </td>
+                <td style={{ width: '20%' }}>
+                  {
+                    getStatusImg(value.type, value.value, 1)
                   }
-                }))
+                  {value.unit}</td>
+                <td style={{ width: '25%' }}>
+                  {normalVal(value.min, value.max)}
+                </td>
+                <td style={{ width: '25%' }}>{value.time == '' ? ('导入时间: ' + dateTime) : '化验时间: ' + this.toTime(value.time)}</td>
+              </tr>
             }
+          }))
+          }
         </table>
         {
           item.lisExcelItem && item.lisExcelItem.length > 5 ?
-          <div className={styles.slides} onClick={this.handleSlide}>
+            <div className={styles.slides} onClick={this.handleSlide}>
               {
-                show ? <span>收起</span> :<span>剩余<span className={styles.num}>{item.lisExcelItem.length-4}</span>项</span>
+                show ? <span>收起</span> : <span>剩余<span className={styles.num}>{item.lisExcelItem.length - 4}</span>项</span>
               }
-              <img src={show ?slideUp:slideDown} alt=""/>
-          </div>:null
+              <img src={show ? slideUp : slideDown} alt="" />
+            </div> : null
         }
       </li>
     );

+ 10 - 2
src/components/Banner/index.jsx

@@ -12,6 +12,7 @@ import Emergency from '@containers/Emergency';
 import {getAllHis} from '@store/async-actions/fetchModules.js';
 import {timestampToTime} from '@utils/tools.js';
 import {dragBox} from '@utils/drag';
+import {CLEAR_COMSYMPTOMS} from '@store/types/mainSuit';
 
 class Banner extends Component {
   constructor(props){
@@ -51,8 +52,10 @@ class Banner extends Component {
   }
 
   confirmType(){
-    const {typeConfig,confirmType} = this.props;
+    const {typeConfig,confirmType,clearCommS} = this.props;
     const mode = this.state.mode;
+    // 清空主诉常见症状
+    clearCommS();
     if(mode==typeConfig){
       this.closeConfigModal()
       return;
@@ -142,7 +145,12 @@ const mapDispatchToProps = function(dispatch){
   return {
     getAllRecord(item){
       dispatch(getAllHis(item));
-    }
+    },
+    clearCommS:()=>{//清除主诉常见症状
+      dispatch({
+        type: CLEAR_COMSYMPTOMS
+      })
+    },
   }
 }
 // export default Banner;

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

@@ -257,8 +257,8 @@ class DiagnosticList extends Component {
                                     <span className={style['diag-name']} onClick={()=>{this.handleClickDiag(item)}}>{item.name}<span></span></span> 
                                     {item.type === 1 ? <span className={style['diag-first']}>初诊</span> :<span className={style['diag-second']}> 复诊</span>}
                                     <span className={style['treat']}
-                                          style ={hasTreat ? '' : { color: 'gray', cursor: 'text'}}
-                                          onClick={() =>{hasTreat && this.showTreat(item, index)}}>
+                                          // style ={hasTreat ? '' : { color: 'gray', cursor: 'text'}}
+                                          onClick={() =>{this.showTreat(item, index)}}>
                                           治疗方案
                                     </span>
                                     {isChronic?<span className={style['assess']}

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

@@ -71,7 +71,7 @@
     width: 72px;
     height: 26px;
     line-height: 26px;
-    color: #3B9ED0;
+    color: #000;
     letter-spacing: 0;
     position: absolute;
     right: 40px;

+ 4 - 4
src/components/EmergencyProcedure/EmergencyPart/PartTrd/index.jsx

@@ -275,7 +275,7 @@ class PartTrd extends React.Component {
         return <React.Fragment>
           <div className={`${num ? styles.nextWar : styles.nextCom} ${styles.next}`}>
             <span>{num ? '评分高或DDI阳性' : '评分低且DDI阴性'}</span>
-            <img onClick={() => { this.backSec() }} src={back} alt="" />
+            <img onClick={() => { this.backSec(true) }} src={back} alt="" />
           </div>
           {
             num ? <React.Fragment>
@@ -340,7 +340,7 @@ class PartTrd extends React.Component {
             }
           </ul>
           <h4>询问并立即服用负荷剂量的双抗药物(若未服用)</h4>
-          <p style={{ color: '#000', textIndent: '2em', lineHeight: '20px' }}>阿司匹林0.3g+氯吡格雷300mg/600mg(需急诊手术时)或 阿司匹林0.3g+替格瑞洛180mg( "心拯救"一包药)</p>
+          <p style={{ color: '#000', textIndent: '2em', lineHeight: '20px' }}>阿司匹林0.3g+氯吡格雷300mg/600mg(急需手术)或 阿司匹林0.3g+替格瑞洛180mg( "心拯救")</p>
           <h4>患者发病时间!</h4>
           {
             trdShow ? <React.Fragment>
@@ -448,8 +448,8 @@ class PartTrd extends React.Component {
                 <h4>{trdFlg ? '立即服用负荷剂量的双抗药物(若未服用)' : '已排除NSTEMI-ACS ,请其他诊室会诊!'}</h4>
                 {
                   trdFlg ? <React.Fragment>
-                    <h4>询问并立即服用负荷剂量的双抗药物(若未服用)</h4>
-                    <p style={{ color: '#000', textIndent: '2em', lineHeight: '20px' }}>阿司匹林0.3g+氯吡格雷300mg/600mg(需急诊手术时)或 阿司匹林0.3g+替格瑞洛180mg("心拯救"一包药)</p>
+                    {/* <h4>询问并立即服用负荷剂量的双抗药物(若未服用)</h4> */}
+                    <p style={{ color: '#000', textIndent: '2em', lineHeight: '20px' }}>阿司匹林0.3g+氯吡格雷300mg/600mg(急需手术)或 阿司匹林0.3g+替格瑞洛180mg("心拯救")</p>
                     <h4>判断患者危重程度</h4>
                     <ul className={`${styles.illDeep} clearfix`}>
                       <li className={currentIdx==0? styles.selectOn:''}>极高危患者</li>

+ 9 - 8
src/components/PushItems/index.jsx

@@ -186,24 +186,25 @@ class PushItems extends Component {
             )}
             {/* 不展示确诊 */}
             {/* {determine && determine.length>0 && <PushDiag titleBg='#FAEBEC' icon={possibleImg} title='确诊' diagList={determine} maxShowNum={28}/>} */}
-            {doubt && doubt.length > 0 && (
+            {possible && possible.length > 0 && (
               <PushDiag
                 titleBg="#FAEBEC"
-                icon={doubtImg}
-                title="疑似诊断"
-                diagList={doubt}
+                icon={possibleImg}
+                title="可能诊断"
+                diagList={possible}
                 maxShowNum={24}
               />
             )}
-            {possible && possible.length > 0 && (
+            {doubt && doubt.length > 0 && (
               <PushDiag
                 titleBg="#FAEBEC"
-                icon={possibleImg}
-                title="可能诊断"
-                diagList={possible}
+                icon={doubtImg}
+                title="初步诊断"
+                diagList={doubt}
                 maxShowNum={24}
               />
             )}
+            
             {likely && likely.length > 0 && (
               <PushDiag
                 titleBg="#FAEBEC"

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

@@ -430,7 +430,7 @@ class ListItems extends Component{
     const domNode = document.getElementById('root');
     return ReactDom.createPortal(
       <div className={style["drop-list"]} style={this.getStyle()} contentEditable="false" onClick={(e)=>{e.stopPropagation();}}>
-        <p className={style['orderTips']}>按{order?'从左到右列':'点选'}顺序成文</p>
+        <p className={style['orderTips']}>按{order?'从左到右从上到下':'点击'}顺序成文</p>
         {this.getLabels()}
         <div className="oper">
           <span className={style['clear']} onClick={handleClear}>清空选项</span>

+ 1 - 1
src/containers/CurrentIll.js

@@ -9,7 +9,7 @@ import {HIDE,RESET,CLICKCOUNT,ISREAD,SEARCH_DROP_LOCATION} from '@store/types/ho
 import {billing} from '@store/async-actions/pushMessage';
 import {getModule} from '@store/async-actions/fetchModules.js';
 import {didPushParamChange} from '@utils/tools.js';
-
+import {Notify} from '@commonComp';
 
 function mapStateToProps(state) {
   const {homePage,currentIll,mainSuit,diagnosticList} = state;

+ 3 - 2
src/containers/DiagnosticItem.js

@@ -3,7 +3,7 @@ import { connect } from 'react-redux';
 import DiagnosticItem from '@components/DiagnosticItem';
 import { ADD_DIAGNOSTIC, GET_DIAGNOSTIC_STR } from '@store/types/diagnosticList'; 
 import {  SHOW_SEARCH,  HIDE_SEARCH, SET_SEARCH_VALUE } from '@store/types/diagnosticSearch';
-import { isChronicMag } from'@store/async-actions/diagnosticList.js';
+import { isChronicMag, isAddMainSuit } from'@store/async-actions/diagnosticList.js';
 import { addDiagnostic } from '@store/async-actions/treat';
 import { getSearchResult } from '@store/async-actions/diagnosticSearch';
 import {billing, getConceptDetail} from '../store/async-actions/pushMessage';
@@ -27,7 +27,8 @@ function mapDispatchToProps(dispatch) {
             dispatch({
                 type: GET_DIAGNOSTIC_STR
             });
-            dispatch(addDiagnostic(item))
+            dispatch(isAddMainSuit())
+            // dispatch(addDiagnostic(item))
         },
         showSearch:()=>{
             dispatch({

+ 1 - 1
src/containers/DiagnosticList.js

@@ -83,7 +83,7 @@ function mapDispatchToProps(dispatch) {
         },
         getTreatResult: (item) => {
             // dispatch({type:MODI_LOADING,flag:true});
-            dispatch({type:SHOW_LOADING,flag:true});
+            // dispatch({type:SHOW_LOADING,flag:true});
             dispatch(getTreatResult(item));
         },
         getTips: (item) => {

+ 1 - 1
src/containers/PushItemsContainer.js

@@ -6,7 +6,7 @@ import { ADD_DIAGNOSTIC, GET_DIAGNOSTIC_STR } from '@store/types/diagnosticList'
 import {billing, getAllConceptDetail} from '../store/async-actions/pushMessage';
 import { isAddMainSuit } from '@store/async-actions/diagnosticList';
 
-function mapStateToProps(state) {
+function mapStateToProps(state) {console.log(state)
   const {pushMessage,diagnosticList} = state;
         return {
         pushMessage: pushMessage,

+ 14 - 0
src/containers/TypeConfigContainer.js

@@ -2,6 +2,8 @@ import React from "react";
 import { connect } from "react-redux";
 import Banner from "../components/Banner";
 import { SHOW_CONFIG_MODAL, CLOSE_CONFIG_MODAL, CHANGE_TYPE, CONFIRM_TYPE } from "../store/types/typeConfig";
+import { BILLING_ADVICE} from '@store/types/pushMessage';
+
 import {pushAllDataList} from '@utils/tools';
 import {saveMode,getOtherHisRecord} from '@store/async-actions/fetchModules';
 import config from "@config/index";
@@ -49,6 +51,18 @@ function mapDispatchToProps(dispatch) {
           Notify.success("模式切换成功");
           dispatch(initItemList(confirmType));
           dispatch(allCheckedShow(false))    //全选反选显示重置
+          dispatch({//推送重置
+            type: BILLING_ADVICE,
+            determine:[],
+            doubt:[],
+            possible:[],
+            vigilant: [],
+            likely:[],
+            lab: [],
+            pacs:[],
+            setPushEmergency:[],
+            setPushEmergencyIdx:''
+          });
         }else{
           Notify.error(res.data.msg+",请稍后再试");
           //dispatch({type:MODE_CHANGE_FAIL,data:true});      //保存失败弹窗提示

+ 102 - 89
src/store/async-actions/treat.js

@@ -8,107 +8,107 @@ import { isAddMainSuit } from '@store/async-actions/diagnosticList';
 import { SAVE_FOLLOW_UP } from "@store/types/pushMessage";
 import {MODI_LOADING} from '@store/types/homePage.js';
 import { SHOW_TREAT} from '@store/types/treat.js';
+import Notify from '@commonComp/Notify';
 
 const api={
     pushTreatment:'/push/pushTreatment',
     getConceptDetail:'/conceptDetail/getConceptDetail'
 }
 
-export const addDiagnostic = (item) => {
-        return (dispatch, getState) => {
-            const state = getState();
-            let url = api.pushTreatment;
-            const emrData = getEMRParams();
-            const diagnosticList = state.diagnosticList.diagnosticList;
-            let diag = '';
-            if(diagnosticList) {
-                for (let i = 0; i < diagnosticList.length; i++ ) {
-                    if(i ===0 ) {
-                        diag = diag + diagnosticList[i].name;
-                    } else {
-                        diag = diag + ',' + diagnosticList[i].name;
-                    }
+// export const addDiagnostic = (item) => {
+//         return (dispatch, getState) => {
+//             const state = getState();
+//             let url = api.pushTreatment;
+//             const emrData = getEMRParams();
+//             const diagnosticList = state.diagnosticList.diagnosticList;
+//             let diag = '';
+//             if(diagnosticList) {
+//                 for (let i = 0; i < diagnosticList.length; i++ ) {
+//                     if(i ===0 ) {
+//                         diag = diag + diagnosticList[i].name;
+//                     } else {
+//                         diag = diag + ',' + diagnosticList[i].name;
+//                     }
 
-                }
-            }
-            if (item.type === 1) {
-                diag = diag + ',' + item.name
-            } else {
-                diag = diag + ',' + item.name
-            }
-            const params = {
-                "age": emrData.age,
-                "featureType": "8",
-                "diag": diag,
-                "diseaseName":  item.name,
-                "lis": emrData.lis,
-                "other": emrData.other,
-                "pacs": emrData.pacs,
-                "sex": emrData.sex,
-                "symptom": emrData.current + emrData.main,
-                "vital": emrData.vital,
-                "patientId": emrData.patientId,
-                "hosCode": emrData.hosCode,
-                "adverseReactions": "string",
-                "scaleName": "string",
-            };
-            //判断是否走慢病系统
-            const isChronic = state.diagnosticList.chronicMagItem ||state.mainSuit.chronicDesease;
-            // const isChronic = true
-            if (isChronic) {
-                let chronicList = JSON.parse(storageLocal.get('chronic'));
-                if(!chronicList){
-                    getChronic().then(() =>{
-                    chronicList = JSON.parse(storageLocal.get('chronic'));
-                        for(let i=0; i<chronicList.length; i++){
-                            if(chronicList[i].conceptId==item.conceptId&&chronicList[i].name==item.name){ //判断某个病是否为慢病
-                                params.disType = 1
-                            }
-                        }
-                        hasTreatment(dispatch, state,item,url,params)
+//                 }
+//             }
+//             if (item.type === 1) {
+//                 diag = diag + ',' + item.name
+//             } else {
+//                 diag = diag + ',' + item.name
+//             }
+//             const params = {
+//                 "age": emrData.age,
+//                 "featureType": "8",
+//                 "diag": diag,
+//                 "diseaseName":  item.name,
+//                 "lis": emrData.lis,
+//                 "other": emrData.other,
+//                 "pacs": emrData.pacs,
+//                 "sex": emrData.sex,
+//                 "symptom": emrData.current + emrData.main,
+//                 "vital": emrData.vital,
+//                 "patientId": emrData.patientId,
+//                 "hosCode": emrData.hosCode,
+//                 "adverseReactions": "string",
+//                 "scaleName": "string",
+//             };
+//             //判断是否走慢病系统
+//             const isChronic = state.diagnosticList.chronicMagItem ||state.mainSuit.chronicDesease;
+//             // const isChronic = true
+//             if (isChronic) {
+//                 let chronicList = JSON.parse(storageLocal.get('chronic'));
+//                 if(!chronicList){
+//                     getChronic().then(() =>{
+//                     chronicList = JSON.parse(storageLocal.get('chronic'));
+//                         for(let i=0; i<chronicList.length; i++){
+//                             if(chronicList[i].conceptId==item.conceptId&&chronicList[i].name==item.name){ //判断某个病是否为慢病
+//                                 params.disType = 1
+//                             }
+//                         }
+//                         hasTreatment(dispatch, state,item,url,params)
 
-                    });
-                } else {
-                    for(let i=0; i<chronicList.length; i++){
-                        if(chronicList[i].conceptId==item.conceptId&&chronicList[i].name==item.name){
-                            params.disType = 1
-                        }
-                    }
-                    hasTreatment(dispatch, state, item,url,params)
-                }
-            } else {
-                hasTreatment(dispatch, state, item,url,params)
-            }
+//                     });
+//                 } else {
+//                     for(let i=0; i<chronicList.length; i++){
+//                         if(chronicList[i].conceptId==item.conceptId&&chronicList[i].name==item.name){
+//                             params.disType = 1
+//                         }
+//                     }
+//                     hasTreatment(dispatch, state, item,url,params)
+//                 }
+//             } else {
+//                 hasTreatment(dispatch, state, item,url,params)
+//             }
             
             
-        }
+//         }
 
-}
+// }
 
-//判断是否存在治疗方案
-function hasTreatment(dispatch, state,item,url, params) {
-    const itemTreat = JSON.parse(JSON.stringify(item))
-    json(url, params).then((data) =>{
-        if (data.data.data) {
-            itemTreat.treat = data.data.data
-            dispatch({
-                type: ADD_TREAT,
-                item: itemTreat
-            })
-        } else {
-            item.treat = null
-            dispatch({
-                type: ADD_TREAT,
-                item: itemTreat
-            })
-        }
+// //判断是否存在治疗方案
+// function hasTreatment(dispatch, state,item,url, params) {
+//     const itemTreat = JSON.parse(JSON.stringify(item))
+//     json(url, params).then((data) =>{
+//         if (data.data.data) {
+//             itemTreat.treat = data.data.data
+//             dispatch({
+//                 type: ADD_TREAT,
+//                 item: itemTreat
+//             })
+//         } else {
+//             item.treat = null
+//             dispatch({
+//                 type: ADD_TREAT,
+//                 item: itemTreat
+//             })
+//         }
         
-        dispatch(isAddMainSuit())
 
-    }).catch((e) =>{
-        console.log(e)
-    })
-}
+//     }).catch((e) =>{
+//         console.log(e)
+//     })
+// }
 
 export const getTreatResult = (item) =>{
     return (dispatch, getState) => {
@@ -196,14 +196,23 @@ function getTreatment(item, dispatch, state,url,params, isChronic) {
     json(url, params).then((data) =>{
         if(data.data.code == '0') {
             // dispatch({type:MODI_LOADING,flag:false});
-            dispatch({type:SHOW_LOADING,flag:false});
-            dispatch({type: SHOW_TREAT})
+            // dispatch({type:SHOW_LOADING,flag:false});
+           
             let treat;
             if(data.data.data) {
                 treat = data.data.data || {}
             }
             if(treat) {
                 let { treatment, commonTreatment, surgeryTreatment, drugHistory, adverseReactions, followUp} = treat
+                if(!(commonTreatment || surgeryTreatment ||
+                    ( treatment &&treatment.length >0 ||
+                        drugHistory&&drugHistory.length >0 || 
+                        adverseReactions&&adverseReactions.length >0 ||
+                        !!followUp ||treatment&&treatment.length >0))) {
+                            Notify.info('提示信息未维护'); 
+                            return
+                } 
+                dispatch({type: SHOW_TREAT})
                 dispatch({
                      type: SET_TREATMENT,
                      treatment: treatment,
@@ -270,7 +279,11 @@ function getTreatment(item, dispatch, state,url,params, isChronic) {
                      type: SET_ADVERSE_REACTIONS,
                      adversReactionList: adverseReactions
                  })
+            } else {
+                Notify.info('提示信息未维护');
             }
+        }else {
+            Notify.info('提示信息未维护');
         }
     }).catch((e) =>{
         console.log(e)