Просмотр исходного кода

Merge branch 'optimize-ll' into optimize

Luolei 6 лет назад
Родитель
Сommit
d8aa881730

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

@@ -34,7 +34,7 @@ class SlideExcel extends Component {
     const {items,item,idx,dateTime,getInfomation} = this.props;
     const {show} = this.state;
     return (
-      <li className={styles.excelDataLis} style={{border:items.lisExcelRes.length-1 == idx? 0:''}}>
+      <li className={`${styles.excelDataLis} clearfix`} style={{border:items.lisExcelRes.length-1 == idx? 0:''}}>
           <span className={styles.excelDataTitle}>
               <span className={styles.tagSpan}>
                 {item.menus}
@@ -71,7 +71,7 @@ class SlideExcel extends Component {
                         </td>
                         <td style={{width:'20%'}}>
                           {
-                            getStatusImg(value.type,value.value,0)
+                            getStatusImg(value.type,value.value,1)
                           } 
                           {value.unit}</td>
                         <td style={{width:'25%'}}>

+ 1 - 1
src/components/AddInspect/SlideExcel/index.less

@@ -42,7 +42,7 @@
 .table {
   color: #000;
   width: 80%;
-  display: inline-block;
+  // display: inline-block;
   tr {
       line-height: 18px;
       height: 18px;

+ 6 - 4
src/components/AddInspect/SlideSelect/index.less

@@ -3,8 +3,9 @@
     // cursor: pointer;
     // color: #767676;
     position: relative;
-    padding: 10px 20px 10px 0;
+    padding: 10px 0px 10px 0;
     border-bottom:1px dashed #989DA3;
+    margin-top: 5px;
     i {
         font-style: normal;
         display: inline-block;
@@ -31,10 +32,10 @@
         cursor: pointer;
         display: inline-block;
         position: absolute;
-        right: 2px;
-        top: 13px;
-        // background-color: #fff;
+        right: -4px;
+        top: 0px;
         background: @closeIcon;
+        background-color: #fff;
         background-size: 100% 100%;
     }
 }
@@ -43,6 +44,7 @@
     border-radius: 4px;
        .partDel{
         background: @closeHor;
+        background-color: #fff;
         background-size: 100% 100%;
       } 
 }

+ 67 - 39
src/components/AddInspect/index.jsx

@@ -1,8 +1,8 @@
 import React from 'react';
-import { SearchOption, InspectCommon, Calendar ,Notify,ConfirmModal,Add,DelToast} from '@commonComp';
+import { SearchOption, InspectCommon, Calendar, Notify, ConfirmModal, Add, DelToast } from '@commonComp';
 import SlideExcel from './SlideExcel';
 import SlideSelect from './SlideSelect';
-import { deepClone,getPageCoordinate } from '@utils/tools';
+import { deepClone, getPageCoordinate, getStatusImg ,getCurrentDate} from '@utils/tools';
 import styles from './index.less';
 import date1 from './img/date1.png';
 import close from './img/close.png';
@@ -24,9 +24,9 @@ class Inspect extends React.Component {
       num: 0,            //暂存数据,获取一次,不能每次都是新的数据
       type: null,
       id: null,
-      pageTop:'',
+      pageTop: '',
       // tmpIds: [],      //内层外层
-      impId:null
+      impId: null
     }
     this.handleChangeDate = this.handleChangeDate.bind(this)
     this.handleShowDate = this.handleShowDate.bind(this)
@@ -45,7 +45,7 @@ class Inspect extends React.Component {
   }
   delConfirm() {//弹窗确定
     const { delPartItem, handleCloseExcel, handlePush } = this.props;
-    const { type, id ,impId} = this.state;
+    const { type, id, impId } = this.state;
     if (type == 1) {
       delPartItem(id)
     } else if (type == 2) {
@@ -59,18 +59,18 @@ class Inspect extends React.Component {
     Notify.success("删除成功");
     handlePush && handlePush();       //右侧推送
   }
-  handleDelClick(type, idx) { 
-    if (type == 2){
+  handleDelClick(type, idx) {
+    if (type == 2) {
       this.setState({
-        impId:idx,
+        impId: idx,
         type: type,
-        id:null
+        id: null
       })
-    }else{
+    } else {
       this.setState({
         type: type,
         id: idx,
-        impId:null
+        impId: null
       })
     }
   }
@@ -101,9 +101,9 @@ class Inspect extends React.Component {
           this.setState({ showFill: false, date: false });
         }
       }
-      
-      if(_del){
-        if(!event.target.isEqualNode(_impClose) && !event.target.isEqualNode(_addClose) && !event.target.isEqualNode(_del)  && event.target.parentNode != _del && !event.target.isEqualNode(_closeTil)){
+
+      if (_del) {
+        if (!event.target.isEqualNode(_impClose) && !event.target.isEqualNode(_addClose) && !event.target.isEqualNode(_del) && event.target.parentNode != _del && !event.target.isEqualNode(_closeTil)) {
           this.setState({
             id: null,
             impId: null
@@ -111,7 +111,7 @@ class Inspect extends React.Component {
         }
       }
     });
-    this.getCurrentDate();
+    this.setState({ dateTime: getCurrentDate(1) })
   }
   componentWillReceiveProps(nextProps) {
     if (nextProps.fillActive.name != this.props.fillActive.name) {
@@ -122,12 +122,13 @@ class Inspect extends React.Component {
     this.setState({ showFill: false })
   }
   handleChangeDate(info) {
-    let date = info.year + '-' + (info.month < 10 ? '0' + info.month : info.month) + '-' + (info.day < 10 ? '0' + info.day : info.day);
+    let date = info.year+'-'+info.month.toString().padStart(2,'0')+'-'+info.day.toString().padStart(2,'0')
+    // let date = info.year+'-'+info.month.toString().padStart(2,'0')+'-'+info.day.toString().padStart(2,'0')+' '+h.toString().padStart(2,'0')+m.toString().padStart(2,'0')+s.toString().padStart(2,'0');
     this.setState({ dateTime: date, date: false })
   }
   handleSearchShow(e) {
     let tmpShow = this.state.show;
-    this.setState({ show: !tmpShow,pageTop:getPageCoordinate(e).boxTop })
+    this.setState({ show: !tmpShow, pageTop: getPageCoordinate(e).boxTop })
     // e.stopPropagation();
   }
   handleFillShow(e, idx) {
@@ -137,7 +138,7 @@ class Inspect extends React.Component {
       showFill: !tmpShow,
       currentIdx: idx,
       currentData: baseList,
-      dateTime: baseList.time ? baseList.time : this.getCurrentDate()
+      dateTime: baseList.time ? baseList.time : getCurrentDate(1)
     })
     e.stopPropagation();
   }
@@ -172,7 +173,7 @@ class Inspect extends React.Component {
         tempArr.details[i].value = ''
         tempArr.show = false;
       }
-      tempArr.time = this.getCurrentDate();
+      tempArr.time = getCurrentDate(1);
       this.setState({ currentData: tempArr })
       return;
     } else {
@@ -258,7 +259,7 @@ class Inspect extends React.Component {
             className={styles.searchLi}
             title={(item.name == item.retrievalName || !item.retrievalName) ? item.name : item.name + '(' + item.retrievalName + ')'}
             onClick={() => {
-              handleSign(item.questionId, idx,'search');
+              handleSign(item.questionId, idx, 'search');
               this.setState({ show: false })
             }}
           >
@@ -268,8 +269,8 @@ class Inspect extends React.Component {
       }
     </ul>
   }
-  getCommonList(){//常用列表
-    const { handleSign,inspectList } = this.props;
+  getCommonList() {//常用列表
+    const { handleSign, inspectList } = this.props;
     return <ul className={styles.searchLiUl}>
       {
         inspectList && inspectList.map((item, idx) => {
@@ -277,7 +278,7 @@ class Inspect extends React.Component {
             className={styles.searchLi}
             title={item.name}
             onClick={() => {
-              handleSign(item.questionId, idx,'common');
+              handleSign(item.questionId, idx, 'common');
               this.setState({ show: false })
             }}
           >
@@ -288,6 +289,32 @@ class Inspect extends React.Component {
     </ul>
   }
   showDetails(val) {
+    let min = val.minValue, max = val.maxValue, value = val.value, dom = '';
+    if (!isNaN(min) && !isNaN(max)) {//有最大值最小值
+      if (isNaN(value)) {//输入的不是数据
+        dom = getStatusImg(1, value, 1)
+      } else if (value <= min) {//下降
+        dom = getStatusImg(3, value, 1)
+      } else if (value >= max) {//上升
+        dom = getStatusImg(2, value, 1)
+      } else {//正常
+        dom = getStatusImg(0, value, 1)
+      }
+    } else if (isNaN(min) && !isNaN(max)) {//有最大值无最小值
+      if (value >= max) {//上升
+        dom = getStatusImg(2, value, 1)
+      } else {//正常
+        dom = getStatusImg(0, value, 1)
+      }
+    } else if (!isNaN(min) && isNaN(max)) {//有最小值无最大值
+      if (value <= min) {//下降
+        dom = getStatusImg(3, value, 1)
+      } else {//正常
+        dom = getStatusImg(0, value, 1)
+      }
+    } else {//无最大最小值
+      dom = getStatusImg(1, value, 1)
+    }
     if (val.questionDetailList.length > 0) {
       return val.questionDetailList.map((item) => {
         if (val.value == item.name) {
@@ -295,12 +322,13 @@ class Inspect extends React.Component {
         }
       })
     } else {
-      return <td style={{ width: '20%' }}><span className={(val.value - 0).toString() == 'NaN' ? "red" : (val.maxValue || val.minValue) ? (val.value > val.maxValue || val.value < val.minValue ? "red" : '') : ''}>{val.value}</span> {val.labelSuffix}</td>
+      // return <td style={{ width: '20%' }}><span className={(val.value - 0).toString() == 'NaN' ? "red" : (val.maxValue || val.minValue) ? (val.value > val.maxValue || val.value < val.minValue ? "red" : '') : ''}>{val.value}</span> {val.labelSuffix}</td>
+      return <td style={{ width: '20%' }}>{dom} {val.labelSuffix}</td>
     }
   }
   render() {
-    const { getInfomation,handleChangeValue,inspectVal, list, labelList,windowHeight, delPartItem, handleLabelSub, handleClear, handleConfirm, fillActive, getExcelDataList, handleCloseExcel, handlePush } = this.props;
-    const { tmpId, tmpIdx,id,pageTop,impId} = this.state;
+    const { getInfomation, handleChangeValue, inspectVal, list, labelList, windowHeight, delPartItem, handleLabelSub, handleClear, handleConfirm, fillActive, getExcelDataList, handleCloseExcel, handlePush } = this.props;
+    const { tmpId, tmpIdx, id, pageTop, impId } = this.state;
 
     return (
       <div className={styles.wrapper}>
@@ -312,10 +340,10 @@ class Inspect extends React.Component {
                   items && items.lisExcelRes.length > 0 ? <ul className={styles.excelDataLists}>
                     {/*<img className={styles.close} src={close} alt="关闭导入excel数据" onClick={() => { this.handleDelClick(2, id) }} />*/}
                     <span className={styles.close} id="impClose" onClick={() => { this.handleDelClick(2, ind) }}></span>
-                    <DelToast show={impId==ind?true:false}
-                    name="该导入项" 
-                    cancel={this.handleCancel}
-                    confirm={this.delConfirm}/>
+                    <DelToast show={impId == ind ? true : false}
+                      name="该导入项"
+                      cancel={this.handleCancel}
+                      confirm={this.delConfirm} />
                     {
                       items.lisExcelRes.map((item, idx) => {
                         return <SlideExcel
@@ -338,7 +366,7 @@ class Inspect extends React.Component {
                 return <SlideSelect
                   item={item}
                   idx={idx}
-                  showToast={idx==id?true:false}
+                  showToast={idx == id ? true : false}
                   showFill={this.state.showFill}
                   handlePush={handlePush}
                   fillActive={fillActive}
@@ -363,17 +391,17 @@ class Inspect extends React.Component {
             }
           </ul>
         </div>
-        <div style={{ position: "relative", clear: "both",top:"5px" }}>
+        <div style={{ position: "relative", clear: "both", top: "5px" }}>
           <Add showText="添加化验项" handleClick={(e) => this.handleSearchShow(e)} id="searchWrap" />
           {this.state.show ? <SearchOption windowHeight={windowHeight} height={280} pageTop={pageTop} handleChangeValue={handleChangeValue} visible={true}>
-            {list && list.length>0?this.getSearchList(list):(inspectVal == ''?'':<p style={{padding:'5px 30px',color:'#bfbfbf'}}>暂无筛选项</p>)}
+            {list && list.length > 0 ? this.getSearchList(list) : (inspectVal == '' ? '' : <p style={{ padding: '5px 30px', color: '#bfbfbf' }}>暂无筛选项</p>)}
             {
-              list && list.length>0 || (inspectVal != '')?'':<div>
-                  <p style={{padding:'5px 30px',color:'#bfbfbf'}}>常用化验项</p>
-                  {
-                    this.getCommonList()
-                  }
-                </div>
+              list && list.length > 0 || (inspectVal != '') ? '' : <div>
+                <p style={{ padding: '5px 30px', color: '#bfbfbf' }}>常用化验项</p>
+                {
+                  this.getCommonList()
+                }
+              </div>
             }
           </SearchOption> : ''}
         </div>

+ 4 - 4
src/components/AssistCheck/index.jsx

@@ -180,19 +180,19 @@ class AssistCheck extends React.Component {
                     </div> */}
                     {
                       hospitalMsg.import_way_pacs == 1 ? <div className={styles.pushButton} disabled={ieVersion && ieVersion > 9 ? true : false} onClick={ieVersion && ieVersion <= 9 ? null : this.handleImportExcel}>
-                        导入化验结果
+                        导入辅检结果
                         <input type="file" name="uploadfile" id="choose" style={{ display: 'none' }} ref={(DOM) => this.inputRef = DOM} />
                       </div> : hospitalMsg.import_way_pacs == 2 ? <div className={styles.pushButton} disabled={ieVersion && ieVersion > 9 ? true : false} onClick={checkSystemIpt}>
-                        检查系统导入
+                        导入辅检结果
                       </div> : hospitalMsg.import_way_pacs == 3 ? <div className={`${styles.pushButton} ${styles.importInspect}`} onClick={showSlideImport}>
-                        <p id="importExcelBtns" className={styles.importInspectBtn}>导入化验结果</p>
+                        <p id="importExcelBtns" className={styles.importInspectBtn}>导入辅检结果</p>
                         {
                           importLis?<ul className={styles.importSelect} id="importExcelLists">
                             <li className={styles.excelIpt}>
                               <div onClick={ieVersion && ieVersion <= 9 ? null : this.handleImportExcel}>本地导入</div>
                               <input type="file" name="uploadfile" id="choose" style={{ display: 'none' }} ref={(DOM) => this.inputRef = DOM} />
                             </li>
-                            <li className={`${styles.excelIpt} ${styles.systemIpt}`} onClick={checkSystemIpt}>检查系统导入</li>
+                            <li className={`${styles.excelIpt} ${styles.systemIpt}`} onClick={checkSystemIpt}>从设备导入</li>
                           </ul>:null
                         }
                           </div> : null

+ 0 - 1
src/components/CurrentIll/index.jsx

@@ -140,7 +140,6 @@ class CurrentIll extends Component{
     const {fuzhen,isChronic,type,fetchPushInfos,handleInput,isRead,saveText,searchData,totalHide,editClear,data,boxLeft,boxTop} = this.props;
     const {forbidInput} = this.state;
     const searchFlag = searchData.length > 0 ? true : false;
-
     if(+type===1){      //文本模式
       return <Textarea  title='现病史' boxMark='2'
                         isRead={isRead}

+ 2 - 2
src/components/EmergencyProcedure/EmergencyModal/index.jsx

@@ -16,7 +16,7 @@ class EmergencyModal extends React.Component{
       show:false,
       imgShow:false,
       diseaseName:[
-        '胸痛','心包积液','气胸','肺栓塞','急性冠脉综合征','主动脉夹层'
+        '','心包积液','气胸','肺栓塞','急性冠脉综合征','主动脉夹层'
       ]
     }
     this.handleImgShow=this.handleImgShow.bind(this)
@@ -68,7 +68,7 @@ class EmergencyModal extends React.Component{
               <i></i>
               {
                 this.state.diseaseName.map((item,index)=>{
-                  return <li className={idx == index?styles.selectColor:null} onClick={()=>{this.setDataIdx(index,false)}}>
+                  return <li className={idx == index?styles.selectColor:null} style={{display:item?'inline-block':'none'}} onClick={()=>{this.setDataIdx(index,false)}}>
                     {item}
                   </li>
                 })

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

@@ -61,7 +61,7 @@ class Inspect extends React.Component {
     $(document).click((event) => {
       let searchWrap = $('#importInspectBtn')[0];   // 导入按钮按钮
       let searchOption = $('#importList')[0];   // 下拉列表
-      if (searchOption) {
+      if (searchOption&&$('#importList').css("display")=="block") {
         if(searchWrap != event.target){
           this.setState({ importLis: false });
         }
@@ -224,7 +224,7 @@ class Inspect extends React.Component {
                       <div onClick={ieVersion && ieVersion <= 9 ? null : this.handleImportExcel}>本地导入</div>
                       <input accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" type="file" name="uploadfile" id="choose" style={{ display: 'none' }} ref={(DOM) => this.inputRef = DOM} />
                     </li>
-                    <li className={`${styles.excelIpt} ${styles.systemIpt}`} onClick={checkSystemIpt}>检查系统导入</li>
+                    <li className={`${styles.excelIpt} ${styles.systemIpt}`} onClick={checkSystemIpt}>从设备导入</li>
                   </ul>
                 }
               </div> : null

+ 37 - 32
src/components/WrapModalBody/WrapModalTable/index.jsx

@@ -1,39 +1,44 @@
 import React from "react";
 import style from "../index.less";
 
-const WrapModalTable = (props) => {
-  const { hospitalInspect, handleGetSonList } = props;
-  return <div className={style['modalTable']}>
-    <div className={style.tablePubP}>
-      <table>
-        <tr className={style.head}>
-          <td className={`${style.fst} ellipsOver`}>编号</td>
-          <td className={`${style.sec} ellipsOver`}>标本类型</td>
-          <td className={`${style.trd} ellipsOver`}>组名称</td>
-          <td className={`${style.four} ellipsOver`}>送检医生</td>
-          <td className={`${style.fif} ellipsOver`}>送检时间</td>
-          <td className={`${style.six} ellipsOver`}>报告时间</td>
-          <td className={`${style.sev} ellipsOver`} style={{display:hospitalInspect.length>5?'':'none'}}></td>
-        </tr>
-      </table>
+class WrapModalTable extends React.Component {
+  constructor(props) {
+    super(props)
+  }
+  render() {
+    const { hospitalInspect, handleGetSonList } = this.props;
+    return <div className={style['modalTable']}>
+      <div className={style.tablePubP}>
+        <table>
+          <tr className={style.head}>
+            <td className={`${style.fst} ellipsOver`}>编号</td>
+            <td className={`${style.sec} ellipsOver`}>标本类型</td>
+            <td className={`${style.trd} ellipsOver`}>组名称</td>
+            <td className={`${style.four} ellipsOver`}>送检医生</td>
+            <td className={`${style.fif} ellipsOver`}>送检时间</td>
+            <td className={`${style.six} ellipsOver`}>报告时间</td>
+            <td className={`${style.sev} ellipsOver`} style={{ display: hospitalInspect.length > 5 ? '' : 'none' }}></td>
+          </tr>
+        </table>
+      </div>
+      <div className={`${style.parentTable} ${style.tablePubP}`}>
+        <table>
+          {
+            hospitalInspect && hospitalInspect.map((item, idx) => {
+              return <tr onClick={() => handleGetSonList(item.groupName)}>
+                <td className={`${style.fst} ellipsOver`}>{idx + 1}</td>
+                <td title={item.specimenType} className={`${style.sec} ellipsOver`}>{item.specimenType}</td>
+                <td title={item.groupName} className={`${style.trd} ellipsOver`}>{item.groupName}</td>
+                <td title={item.inspectDoctor} className={`${style.four} ellipsOver`}>{item.inspectDoctor}</td>
+                <td title={item.inspectTime} className={`${style.fif} ellipsOver`}>{item.inspectTime}</td>
+                <td title={item.reportTime} className={`${style.six} ellipsOver`}>{item.reportTime}</td>
+              </tr>
+            })
+          }
+        </table>
+      </div>
     </div>
-    <div className={`${style.parentTable} ${style.tablePubP}`}>
-      <table>
-        {
-          hospitalInspect && hospitalInspect.map((item, idx) => {
-            return <tr onClick={() => handleGetSonList(item.groupName)}>
-              <td className={`${style.fst} ellipsOver`}>{idx+1}</td>
-              <td title={item.specimenType} className={`${style.sec} ellipsOver`}>{item.specimenType}</td>
-              <td title={item.groupName} className={`${style.trd} ellipsOver`}>{item.groupName}</td>
-              <td title={item.inspectDoctor} className={`${style.four} ellipsOver`}>{item.inspectDoctor}</td>
-              <td title={item.inspectTime} className={`${style.fif} ellipsOver`}>{item.inspectTime}</td>
-              <td title={item.reportTime} className={`${style.six} ellipsOver`}>{item.reportTime}</td>
-            </tr>
-          })
-        }
-      </table>
-    </div>
-  </div>
+  }
 }
 
 export default WrapModalTable;

+ 1 - 1
src/components/WrapModalBody/WrapModalTableSon/index.jsx

@@ -58,7 +58,7 @@ class WrapModalTableSon extends React.Component {
                 <td title={item.itemName} className={`${style.trd}`}>{item.itemName}</td>
                 <td title={item.value} className={`${style.four}`}>
                   {
-                    getStatusImg(item.type,item.value,0)
+                    getStatusImg(item.type,item.value,1)
                   }
                 </td>
                 <td title={item.unit} className={`${style.fif}`}>{item.unit}</td>

+ 4 - 4
src/components/WrapModalBody/index.jsx

@@ -17,13 +17,13 @@ const WrapModalBody =(props)=>{
       {
         hospitalSonInspect && hospitalSonInspect.lisExcelWrapper?
         <WrapModalTableSon
-          allCheckImport={allCheckImport}
           allCheck={allCheck}
-          hospitalSonInspect={hospitalSonInspect}
-          selectGroupList={selectGroupList}
           checkedList={checkedList}
-          selectOneCheck={selectOneCheck}
           selectWaring={selectWaring}
+          allCheckImport={allCheckImport}
+          selectOneCheck={selectOneCheck}
+          selectGroupList={selectGroupList}
+          hospitalSonInspect={hospitalSonInspect}
         ></WrapModalTableSon>:null
       }
     </div>

+ 43 - 39
src/components/WrapModalBodyPac/WrapModalTable/index.jsx

@@ -1,45 +1,49 @@
 import React from "react";
 import style from "../index.less";
-
-const WrapModalTable = (props) => {
-  const { hospitalPac, handleGetSonList,msgObj } = props;
-  return <div className={style['modalTable']}>
-    <div className={style.tablePubP}>
-      <table>
-        <tr className={style.head}>
-          <td className={`${style.fst} ellipsOver`}>申请单号</td>
-          <td className={`${style.sec} ellipsOver`}>申请时间</td>
-          <td className={`${style.trd} ellipsOver`}>检查项目</td>
-          <td className={`${style.four} ellipsOver`}>检查号</td>
-          <td className={`${style.fif} ellipsOver`}>类型</td>
-          <td className={`${style.six} ellipsOver`}>患者姓名</td>
-          <td className={`${style.sev} ellipsOver`}>病人编号</td>
-          <td className={`${style.egt} ellipsOver`}>检查时间</td>
-          <td className={`${style.egt} ellipsOver`}>报告时间</td>
-          <td className={`${style.nig} ellipsOver`} style={{display:hospitalPac.length>4?'':'none'}}></td>
-        </tr>
-      </table>
-    </div>
-    <div className={`${style.parentTable} ${style.tablePubP}`}>
-      <table>
-        {
-          hospitalPac && hospitalPac.map((item, idx) => {
-            return <tr onClick={() => handleGetSonList(item.checkItem,item.reportTime)}>
-              <td title={item.applicationNum} className={`${style.fst} ellipsOver`}>{item.applicationNum}</td>
-              <td title={item.applicationDate} className={`${style.sec} ellipsOver`}>{item.applicationDate}</td>
-              <td title={item.checkItem} className={`${style.trd} ellipsOver`}>{item.checkItem}</td>
-              <td title={item.checkNum} className={`${style.four} ellipsOver`}>{item.checkNum}</td>
-              <td title={item.type} className={`${style.fif} ellipsOver`}>{item.type}</td>
-              <td title={msgObj.name} className={`${style.six} ellipsOver`}>{msgObj.name}</td>
-              <td title={msgObj.patientNum} className={`${style.sev} ellipsOver`}>{msgObj.patientNum}</td>
-              <td title={item.inspectTime} className={`${style.egt} ellipsOver`}>{item.inspectTime}</td>
-              <td title={item.reportTime} className={`${style.egt} ellipsOver`}>{item.reportTime}</td>
-            </tr>
-          })
-        }
-      </table>
+class WrapModalTable extends React.Component {
+  constructor(props) {
+    super(props)
+  }
+  render() {
+    const { hospitalPac, handleGetSonList, msgObj } = this.props;
+    return <div className={style['modalTable']}>
+      <div className={style.tablePubP}>
+        <table>
+          <tr className={style.head}>
+            <td className={`${style.fst} ellipsOver`}>申请单号</td>
+            <td className={`${style.sec} ellipsOver`}>申请时间</td>
+            <td className={`${style.trd} ellipsOver`}>检查项目</td>
+            <td className={`${style.four} ellipsOver`}>检查号</td>
+            <td className={`${style.fif} ellipsOver`}>类型</td>
+            <td className={`${style.six} ellipsOver`}>患者姓名</td>
+            <td className={`${style.sev} ellipsOver`}>病人编号</td>
+            <td className={`${style.egt} ellipsOver`}>检查时间</td>
+            <td className={`${style.egt} ellipsOver`}>报告时间</td>
+            <td className={`${style.nig} ellipsOver`} style={{ display: hospitalPac.length > 4 ? '' : 'none' }}></td>
+          </tr>
+        </table>
+      </div>
+      <div className={`${style.parentTable} ${style.tablePubP}`}>
+        <table>
+          {
+            hospitalPac && hospitalPac.map((item, idx) => {
+              return <tr onClick={() => handleGetSonList(item.checkItem, item.reportTime)}>
+                <td title={item.applicationNum} className={`${style.fst} ellipsOver`}>{item.applicationNum}</td>
+                <td title={item.applicationDate} className={`${style.sec} ellipsOver`}>{item.applicationDate}</td>
+                <td title={item.checkItem} className={`${style.trd} ellipsOver`}>{item.checkItem}</td>
+                <td title={item.checkNum} className={`${style.four} ellipsOver`}>{item.checkNum}</td>
+                <td title={item.type} className={`${style.fif} ellipsOver`}>{item.type}</td>
+                <td title={msgObj.name} className={`${style.six} ellipsOver`}>{msgObj.name}</td>
+                <td title={msgObj.patientNum} className={`${style.sev} ellipsOver`}>{msgObj.patientNum}</td>
+                <td title={item.inspectTime} className={`${style.egt} ellipsOver`}>{item.inspectTime}</td>
+                <td title={item.reportTime} className={`${style.egt} ellipsOver`}>{item.reportTime}</td>
+              </tr>
+            })
+          }
+        </table>
+      </div>
     </div>
-  </div>
+  }
 }
 
 export default WrapModalTable;

+ 2 - 1
src/modules/HomePage/index.jsx

@@ -55,7 +55,8 @@ class HomePage extends Component {
     }
     render() {
         const {flag,setPushEmergencyIdx,sysConfig} = this.props;
-        return <div className={style['home-page']} onClick={this.props.hideAllDrop}>
+        return <div className={style['home-page']}>
+        {/* return <div className={style['home-page']} onClick={this.props.hideAllDrop}> */}
             <BannerContainer />
             {/* <InfoTitle /> */}
             <BodyContainer></BodyContainer>

+ 2 - 2
src/utils/config.js

@@ -1,8 +1,8 @@
 // const host='http://192.168.3.1:5050';//赵
 // const host='http://192.168.3.100:5050';//王峰
-// const host='http://192.168.2.241:5050';//后端接口访问地址
+const host='http://192.168.2.241:5050';//后端接口访问地址
 // const host='http://192.168.2.121:5050';//后端接口访问地址
-const host='http://192.168.2.236:5050';//后端接口访问地址
+// const host='http://192.168.2.236:5050';//后端接口访问地址
 // const host='http://192.168.3.11:5050';//王宇
 //const host='http://192.168.2.164:8080';
 // const host='http://192.168.3.117:5050'; //周铁刚

+ 13 - 17
src/utils/tools.js

@@ -717,18 +717,14 @@ function ifOtherClear(jsonData,jsonStr,baseList){
   }
 }
 function normalVal(min,max){
-  if((min-0) && (max-0)){
+  if(min == ''&&max==''){
+    return null;
+  }else if(!isNaN(min) && !isNaN(max)){
       return `正常值: (${min}~${max})`
-  }else if((min-0) && !(max-0)){
-      return `正常值: (>=${min})`
-  }else if(!(min-0) && (max-0)){
-      if(min == '' || min == null){
-          return `正常值: (<=${max})`
-      }else{
-          return `正常值: (${min}~${max})`
-      }
-  }else{
-      return null;
+  }else if(!isNaN(min) && isNaN(max)){
+      return `正常值: (>${min})`
+  }else if(isNaN(min) && !isNaN(max)){
+      return `正常值: (<${max})`
   }
 }
 /**
@@ -770,10 +766,10 @@ function getCurrentDate(flg,con){
   let day = myDate.getDate();            //获取当前日(1-31)
   let date = '';           
   if(flg){
-    var h = date.getHours();
-    var m = date.getMinutes();
-    var s = date.getSeconds();
-    date = year+link+mon.toString().padStart(2,'0')+link+day.toString().padStart(2,'0')+' '+h.toString().padStart(2,'0')+m.toString().padStart(2,'0')+s.toString().padStart(2,'0');
+    var h = myDate.getHours();
+    var m = myDate.getMinutes();
+    var s = myDate.getSeconds();
+    date = year+link+mon.toString().padStart(2,'0')+link+day.toString().padStart(2,'0')+' '+h.toString().padStart(2,'0')+':'+m.toString().padStart(2,'0')+':'+s.toString().padStart(2,'0');
   }else{
     date = year+link+mon.toString().padStart(2,'0')+link+day.toString().padStart(2,'0');
   }
@@ -1164,9 +1160,9 @@ function downloadExportedData(data, fileName) {
 }
 
 function getStatusImg(type,val,status){
-  if(type == 0){
+  if(type == 0){//正常
     return <span>{val} </span>
-  }else if(type == 1){
+  }else if(type == 1){//异常(表单输入的话非数字显示为异常)
     return <span className={'red'}>{val} </span>
   }
   if(status == 1){