|
@@ -39,9 +39,10 @@ class Treat extends Component {
|
|
Notify.info('该功能即将上线,敬请期待。', 2000)
|
|
Notify.info('该功能即将上线,敬请期待。', 2000)
|
|
}
|
|
}
|
|
handleDetermine() {
|
|
handleDetermine() {
|
|
- const { title, treatment, advice } = this.props
|
|
|
|
|
|
+ const { title, treatment, advice, treatItem, adversReactionList, saveAllAdverseReaction } = this.props
|
|
const { addScheme } = this.props
|
|
const { addScheme } = this.props
|
|
addScheme && addScheme(title, treatment);
|
|
addScheme && addScheme(title, treatment);
|
|
|
|
+ saveAllAdverseReaction && saveAllAdverseReaction(treatItem)
|
|
this.hideTreat()
|
|
this.hideTreat()
|
|
}
|
|
}
|
|
showDrugInfo() {
|
|
showDrugInfo() {
|
|
@@ -53,8 +54,9 @@ class Treat extends Component {
|
|
$('#drugWrapper').css({'z-index': 301});
|
|
$('#drugWrapper').css({'z-index': 301});
|
|
}
|
|
}
|
|
render(){
|
|
render(){
|
|
- const {setDrugInfoMore,treatIndex,treatIndexSet, generalTreat, treatment, treatItem, surgeryTreat, lastTreat, selectDrug, drugInfo, treatDesc, setOtherRecommend, setDrugInfo, showDrug, showDrugInfo,hideDrugInfo, title, drugInfoList, hideDrugInfoMore, adversReactionList} = this.props;
|
|
|
|
|
|
+ const {setDrugInfoMore,treatIndex,treatIndexSet, generalTreat, treatment, treatItem, surgeryTreat, lastTreat, selectDrug, drugInfo, treatDesc, setOtherRecommend, setDrugInfo, showDrug, showDrugInfo,hideDrugInfo, title, drugInfoList, hideDrugInfoMore, adversReactionList, changeReact} = this.props;
|
|
const { zIndex,show } = this.state
|
|
const { zIndex,show } = this.state
|
|
|
|
+ {console.log('adversReactionListadversReactionList11', adversReactionList)}
|
|
return(
|
|
return(
|
|
<div className={style['treat-wrapper']}>
|
|
<div className={style['treat-wrapper']}>
|
|
<div className={style['treat-mask']} onClick={this.hideTreat}>
|
|
<div className={style['treat-mask']} onClick={this.hideTreat}>
|
|
@@ -66,7 +68,7 @@ class Treat extends Component {
|
|
<div className={style['treat-inner-box']}>
|
|
<div className={style['treat-inner-box']}>
|
|
<GeneralTreat icon={generalIcon} title='一般治疗' generalTreat={generalTreat}></GeneralTreat>
|
|
<GeneralTreat icon={generalIcon} title='一般治疗' generalTreat={generalTreat}></GeneralTreat>
|
|
<LastTreat icon={generalIcon} title='上次用药情况' lastTreat={lastTreat} showDrugInfo = {showDrugInfo} setDrugInfo={ setDrugInfo }></LastTreat>
|
|
<LastTreat icon={generalIcon} title='上次用药情况' lastTreat={lastTreat} showDrugInfo = {showDrugInfo} setDrugInfo={ setDrugInfo }></LastTreat>
|
|
- <AdverseReactions icon={generalIcon} title='不良反应' adversReactionList = {adversReactionList}></AdverseReactions>
|
|
|
|
|
|
+ <AdverseReactions icon={generalIcon} title='不良反应' adversReactionList = {adversReactionList} changeReact = {changeReact}></AdverseReactions>
|
|
<DrugTreat treatment={ treatment }
|
|
<DrugTreat treatment={ treatment }
|
|
selectDrug={selectDrug}
|
|
selectDrug={selectDrug}
|
|
setOtherRecommend={ setOtherRecommend }
|
|
setOtherRecommend={ setOtherRecommend }
|