|
@@ -2,7 +2,7 @@ import React,{ Component } from 'react';
|
|
|
import style from './index.less';
|
|
|
import GeneralTreat from './GeneralTreat/index.jsx';
|
|
|
import DrugTreat from './DrugTreat/index.jsx';
|
|
|
-import LastTreat from './LastTreat/index.jsx';
|
|
|
+import DrugHistory from './DrugHistory/index.jsx';
|
|
|
import FollowUp from './FollowUp/index.jsx';
|
|
|
import AdverseReactions from './AdverseReactions/index.jsx';
|
|
|
import TreatDesc from '@components/TreatDesc'
|
|
@@ -12,6 +12,9 @@ import Notify from '@commonComp/Notify'
|
|
|
import close from './img/close.png';
|
|
|
import generalIcon from './img/general.png';
|
|
|
import surgicalIcon from './img/surgical.png';
|
|
|
+import followUpIcon from './img/followUp.png';
|
|
|
+import drugIcon from './img/drug.png';
|
|
|
+import adverseReactionIcon from './img/adverseReaction.png';
|
|
|
import $ from "jquery";
|
|
|
|
|
|
class Treat extends Component {
|
|
@@ -58,7 +61,7 @@ class Treat extends Component {
|
|
|
$('#drugWrapper').css({'z-index': 301});
|
|
|
}
|
|
|
render(){
|
|
|
- const {setDrugInfoMore,treatIndex,treatIndexSet, generalTreat, treatment, treatItem, surgeryTreat, lastTreat,
|
|
|
+ const {setDrugInfoMore,treatIndex,treatIndexSet, generalTreat, treatment, treatItem, surgeryTreat, drugHistory,
|
|
|
selectDrug, drugInfo, treatDesc, setOtherRecommend, setDrugInfo, showDrug, showDrugInfo,hideDrugInfo,
|
|
|
title, drugInfoList, hideDrugInfoMore, adversReactionList, changeReact, followUp, setFollowUp, isRead, hasFollowUp} = this.props;
|
|
|
const { zIndex,show } = this.state
|
|
@@ -72,7 +75,7 @@ class Treat extends Component {
|
|
|
|
|
|
<div className={style['treat-inner-box']}>
|
|
|
<GeneralTreat icon={generalIcon} title='一般治疗' generalTreat={generalTreat}></GeneralTreat>
|
|
|
- {hasFollowUp && <FollowUp icon={generalIcon} title='回访时间' setFollowUp={setFollowUp} followUp = {followUp} isRead={isRead}></FollowUp>}
|
|
|
+ {hasFollowUp && <FollowUp icon={followUpIcon} title='回访时间' setFollowUp={setFollowUp} followUp = {followUp} isRead={isRead}></FollowUp>}
|
|
|
{/* 回访时间 */}
|
|
|
{/* {followUp && <div>回访时间:
|
|
|
<span className={style['follow-up-box']}
|
|
@@ -80,8 +83,20 @@ class Treat extends Component {
|
|
|
onInput = {this.handleInputFollowUp}>
|
|
|
{followUp}</span>后回访,不适随诊
|
|
|
</div>} */}
|
|
|
- { lastTreat && lastTreat.chronicDisMedica &&lastTreat. chronicDisMedica.length > 0 && lastTreat.commonDisMedica && lastTreat.commonDisMedica.length > 0 &&<LastTreat icon={generalIcon} title='上次用药情况' lastTreat={lastTreat} showDrugInfo = {showDrugInfo} setDrugInfo={ setDrugInfo }></LastTreat>}
|
|
|
- {adversReactionList&&adversReactionList.length>0&&<AdverseReactions icon={generalIcon} title='不良反应' adversReactionList = {adversReactionList} changeReact = {changeReact}></AdverseReactions>}
|
|
|
+ {console.log('222222', drugHistory)}
|
|
|
+ { drugHistory && (drugHistory['慢病用药内容'] && drugHistory['慢病用药内容'].length > 0 || drugHistory['普通病用药内容'] && drugHistory['普通病用药内容'].length > 0) &&<DrugHistory icon={drugIcon}
|
|
|
+ titleStyle={{background:'#EAF7FA',opacity:'1', filter:'alpha(opacity=100);',filter:'progid:DXImageTransform.Microsoft.Alpha(opacity=100);'}}
|
|
|
+ title='上次用药情况'
|
|
|
+ drugHistory={drugHistory}
|
|
|
+ showDrugInfo = {showDrugInfo}
|
|
|
+ setDrugInfo={ setDrugInfo }>
|
|
|
+ </DrugHistory>}
|
|
|
+ {adversReactionList&&adversReactionList.length>0&&<AdverseReactions icon={adverseReactionIcon}
|
|
|
+ titleStyle={{background:'#C72F2F',opacity:'0.1', filter:'alpha(opacity=10);',filter:'progid:DXImageTransform.Microsoft.Alpha(opacity=10);'}}
|
|
|
+ title='不良反应'
|
|
|
+ adversReactionList = {adversReactionList}
|
|
|
+ changeReact = {changeReact}>
|
|
|
+ </AdverseReactions>}
|
|
|
<DrugTreat treatment={ treatment }
|
|
|
selectDrug={selectDrug}
|
|
|
setOtherRecommend={ setOtherRecommend }
|