|
@@ -44,7 +44,7 @@ class Inspect extends React.Component {
|
|
|
isIE: isIE(),
|
|
|
ieVersion: null,
|
|
|
height: '-1',
|
|
|
- hide: false
|
|
|
+ hide: true
|
|
|
}
|
|
|
this.handleImportExcel = this.handleImportExcel.bind(this)
|
|
|
this.cancel = this.cancel.bind(this)
|
|
@@ -163,7 +163,7 @@ class Inspect extends React.Component {
|
|
|
dragBox('previewWrapper','previewStatic','del')
|
|
|
}
|
|
|
render() {
|
|
|
- const { fetchPushInfos, getInfomation, inspectVal,handleSearch, windowHeight, handleCloseExcel, handleChangeValue, labelListActive, list, handleSign, labelList, handleLabelSub, handleClear, handleConfirm, fillActive, changeActivePart, getExcelDataList, delPartItem, inspectList } = this.props;
|
|
|
+ const { fetchPushInfos, hospitalInspect,handleGetSonList,getInfomation,hospitalMsg, inspectVal,handleSearch, windowHeight, handleCloseExcel, handleChangeValue, labelListActive, list, handleSign, labelList, handleLabelSub, handleClear, handleConfirm, fillActive, changeActivePart, getExcelDataList, delPartItem, inspectList } = this.props;
|
|
|
const { ieVersion, isIE, hide } = this.state;
|
|
|
const { checkSystemIpt,onClose } = this;
|
|
|
return (
|
|
@@ -172,21 +172,29 @@ class Inspect extends React.Component {
|
|
|
<div className={styles.top}>
|
|
|
<span id="inspectResultData">化验结果数据</span>
|
|
|
{/* <div className={this.getStyle()} onClick={ieVersion&&ieVersion<=9?null:this.handleImportExcel}> */}
|
|
|
- <div className={this.getStyle()}>
|
|
|
+ <div className={this.getStyle()} style={{display:hospitalMsg.importWay == 0?'none':'block'}}>
|
|
|
{/* <button disabled={ieVersion&&ieVersion>9?true:false}>导入化验结果</button>*/}
|
|
|
- <div className={styles.pushButton}>导入化验结果
|
|
|
- <ul className={styles.importSelect}>
|
|
|
- <li className={styles.excelIpt}>
|
|
|
- <div onClick={ieVersion && ieVersion <= 9 ? null : this.handleImportExcel}>本地导入</div>
|
|
|
+ {/* {0没有,1本地,2医院,3本地和医院} */}
|
|
|
+ {
|
|
|
+ hospitalMsg.importWay == 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} />
|
|
|
- </li>
|
|
|
- <li className={`${styles.excelIpt} ${styles.systemIpt}`} onClick={checkSystemIpt}>检查系统导入</li>
|
|
|
- </ul>
|
|
|
+ </div>:hospitalMsg.importWay == 48888?<div className={styles.pushButton} disabled={ieVersion&&ieVersion>9?true:false} onClick={checkSystemIpt}>
|
|
|
+ 检查系统导入
|
|
|
+ </div>:hospitalMsg.importWay == 2?<div className={styles.pushButton}>导入化验结果
|
|
|
+ <ul className={styles.importSelect}>
|
|
|
+ <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>
|
|
|
+ </ul>
|
|
|
+ </div>:null
|
|
|
+ }
|
|
|
|
|
|
- </div>
|
|
|
{
|
|
|
hide ? <WrapModalContainer title={'导入化验数据'} width={1000} onClose={onClose}>
|
|
|
- <WrapModalBody handleSearch={handleSearch}></WrapModalBody>
|
|
|
+ <WrapModalBody hospitalInspect={hospitalInspect} handleGetSonList={handleGetSonList} handleSearch={handleSearch}></WrapModalBody>
|
|
|
</WrapModalContainer> : null
|
|
|
}
|
|
|
{/* <input type="file" name="uploadfile" id="choose" style={{ display: 'none' }} ref={(DOM) => this.inputRef = DOM} /> */}
|