|
@@ -18,6 +18,7 @@ import iconRadioDefault from '@common/images/icon-radio-default.png'
|
|
|
import iconRadioActive from '@common/images/icon-radio-active.png'
|
|
|
import AssessResult from '@containers/AssessResult';
|
|
|
import {getAssessData} from '@store/async-actions/fetchModules';
|
|
|
+import DetailsModal from '@components/PushItems/DetailsModal';
|
|
|
import tableIcon from '@common/images/table.png';
|
|
|
import { CONFIRM_TYPE } from "@store/types/typeConfig";
|
|
|
import $ from "jquery";
|
|
@@ -54,6 +55,7 @@ class DiagnosticList extends Component {
|
|
|
this.referCase = this.referCase.bind(this);
|
|
|
this.handleSaveAssess = this.handleSaveAssess.bind(this); //评估弹窗确定
|
|
|
this.onPrint = this.onPrint.bind(this);
|
|
|
+ this.hideTips=this.hideTips.bind(this);
|
|
|
}
|
|
|
onPrint() {
|
|
|
let dom = $("#AssistResult");
|
|
@@ -108,10 +110,14 @@ class DiagnosticList extends Component {
|
|
|
treatTitle: item.name
|
|
|
})
|
|
|
}
|
|
|
- handleClickDiag(item,noTips,noDetails,noNotify) {
|
|
|
+ handleClickDiag(item) {
|
|
|
const { getTips } = this.props;
|
|
|
// getTips && getTips(item);
|
|
|
- getTips && getTips({id:item.conceptId, type:7, name: item.name, position: 1},noTips,noDetails,noNotify);
|
|
|
+ getTips && getTips({id:item.conceptId, type:7, name: item.name, position: 0});
|
|
|
+ }
|
|
|
+ hideTips() {
|
|
|
+ const { hideTipsDetailsModal } = this.props;
|
|
|
+ hideTipsDetailsModal && hideTipsDetailsModal()
|
|
|
}
|
|
|
referRecord() {
|
|
|
const { hideReferRecord, showHistoryCaseModal ,chronicMagItem,hisTemplates,autoFillModules,typeConfig} = this.props;
|
|
@@ -278,10 +284,11 @@ class DiagnosticList extends Component {
|
|
|
})
|
|
|
}
|
|
|
render(){
|
|
|
- const { list, treatment, showReferRecord, showHistoryCase ,chronicMagItem,loading,refreshScroller,windowWidth,hideChronic} = this.props;
|
|
|
+ const { list, treatment,pushMessage, showReferRecord, showHistoryCase ,chronicMagItem,loading,refreshScroller,windowWidth,hideChronic} = this.props;
|
|
|
+ const {showTipsDetails,tipsDetails,showAllName}=pushMessage;
|
|
|
const {visible, treatTitle, showAssess, isAssessConfirm, assessId, disName, hasOndel, hasOnIndex,hasEnterItem,hasEnterImg} = this.state;
|
|
|
const chronicList = JSON.parse(localStorage.getItem('chronic')||null);
|
|
|
- let isChronic = false; //是否要显示管理评估
|
|
|
+ //let isChronic = false; //是否要显示管理评估
|
|
|
const footer = <Footer print={true}
|
|
|
footText="确定"
|
|
|
handlePrint={this.onPrint}
|
|
@@ -289,9 +296,9 @@ class DiagnosticList extends Component {
|
|
|
return(
|
|
|
<div className={style['diaglist-wrap']}>
|
|
|
{list && (list.length > 0) && list.map((item, index) => {
|
|
|
- const hasTreat = item.treat && ((item.treat.commonTreatment&&item.treat.commonTreatment.content) || (item.treat.surgeryTreatment&&item.treat.surgeryTreatment.content) || item.treat.treatment.length>0 ||(item.adverseReactions&&item.adverseReactions.length > 0)
|
|
|
+ /*const hasTreat = item.treat && ((item.treat.commonTreatment&&item.treat.commonTreatment.content) || (item.treat.surgeryTreatment&&item.treat.surgeryTreatment.content) || item.treat.treatment.length>0 ||(item.adverseReactions&&item.adverseReactions.length > 0)
|
|
|
|| (item.drugHistory && item.drugHistory['慢病用药内容'] && item.drugHistory['慢病用药内容'].length > 0) || (item.drugHistory &&item.drugHistory['普通病用药内容'] && item.drugHistory['普通病用药内容'].length > 0) ||item.follow)
|
|
|
- isChronic = !hideChronic&&chronicMagItem&&item.type==2&&chronicList&&chronicList.findIndex((it)=>it.conceptId==item.conceptId)!=-1;
|
|
|
+ isChronic = !hideChronic&&chronicMagItem&&item.type==2&&chronicList&&chronicList.findIndex((it)=>it.conceptId==item.conceptId)!=-1;*/
|
|
|
return (<div draggable={true} className={`${style['diag-box']} ${setFontColorSize(2,3)} clearfix`} id="diagListBox" key={item.conceptId} >
|
|
|
{index === 0 ? '' : <span className={style['diag-up']} onClick={() => {this.upDiagnostic(index)}}><img className={style["diag-up"]} src={diagUp}/></span>}
|
|
|
{list.length === 1 ? '' : index !== 0 ? '' : <span onClick={() => {this.downDiagnostic(index)}} className={style['diag-down']}><img className={style["diag-down"]} src={diagDown}/></span>}
|
|
@@ -300,7 +307,7 @@ class DiagnosticList extends Component {
|
|
|
onMouseEnter={this.handleMouseEnterDrug.bind(this,index)}
|
|
|
onMouseLeave = {this.handleMouseLeaveDrug.bind(this)}
|
|
|
>
|
|
|
- <span className={style['diag-name-box']} style={{maxWidth: windowWidth > 1024 ?windowWidth-900 +'px':'130px'}} onClick={this.handleClickDiag.bind(this,item,false,true,false)}>
|
|
|
+ <span className={style['diag-name-box']} style={{maxWidth: windowWidth > 1024 ?windowWidth-900 +'px':'130px'}}>
|
|
|
{item.name}
|
|
|
</span>
|
|
|
<img className={`${style['info-img']}`}
|
|
@@ -318,27 +325,33 @@ class DiagnosticList extends Component {
|
|
|
onClick={() =>{this.showTreat(item, index)}}>
|
|
|
治疗方案
|
|
|
</span>
|
|
|
- {isChronic&&index===0&&item.conceptId===chronicMagItem.conceptId?<span className={style['assess']}
|
|
|
+ {/*{isChronic&&index===0&&item.conceptId===chronicMagItem.conceptId?<span className={style['assess']}
|
|
|
onClick={this.showAssessFn.bind(this,item)}>
|
|
|
管理评估
|
|
|
- </span>:''}
|
|
|
+ </span>:''}*/}
|
|
|
<img className={style['diag-del']} src={hasOnIndex == index ? hasOndel ? del_on : del_icon : del_icon} onMouseEnter={this.handleEnterDel.bind(this,index)} onMouseLeave={this.handleLeaveDel.bind(this)} onClick={()=>{this.handleDeleteItem(item)}}/>
|
|
|
</div>)
|
|
|
})}
|
|
|
{treatment&&<Treat title={treatTitle} refreshScroller={refreshScroller}></Treat>}
|
|
|
- {showAssess?<ComplexModal onclose={this.showAssessFn.bind(this)} footer={footer}
|
|
|
+ {/*{showAssess?<ComplexModal onclose={this.showAssessFn.bind(this)} footer={footer}
|
|
|
title='管理和评估'
|
|
|
icon={manageIcon}
|
|
|
top={'3%'}
|
|
|
bottom={'3%'}
|
|
|
width={820}>
|
|
|
+
|
|
|
<AssessResult closeAssess={this.showAssessFn.bind(this)}
|
|
|
disId={assessId}
|
|
|
disName={disName}
|
|
|
chronicMagItemName={list[0].name}
|
|
|
isAssessConfirm={isAssessConfirm}
|
|
|
></AssessResult>
|
|
|
- </ComplexModal>:''}
|
|
|
+ </ComplexModal>:''}*/}
|
|
|
+ {showTipsDetails &&<DetailsModal
|
|
|
+ showTipsDetails = {showTipsDetails}
|
|
|
+ hideTips = {this.hideTips}
|
|
|
+ showAllName = {showAllName}
|
|
|
+ tipsDetails = {tipsDetails}/>}
|
|
|
<ConfirmModal visible={visible}
|
|
|
okText='删除'
|
|
|
cancelText='取消'
|
|
@@ -348,13 +361,13 @@ class DiagnosticList extends Component {
|
|
|
>
|
|
|
<div className={style['del-msg']}>是否删除该诊断?</div>
|
|
|
</ConfirmModal>
|
|
|
- <ConfirmModal visible={showReferRecord} okText='是' cancelText='否' confirm={this.referRecord} cancel={this.noReferRecord} close={this.noReferRecord}>
|
|
|
+ {/*<ConfirmModal visible={showReferRecord} okText='是' cancelText='否' confirm={this.referRecord} cancel={this.noReferRecord} close={this.noReferRecord}>
|
|
|
<div className={style['confirm-info']}>是否引用往期病历</div>
|
|
|
</ConfirmModal>
|
|
|
<ConfirmModal visible={showHistoryCase} noFooter='true' title='请选择历史病历' close={this.closeHistoryCaseModal} titleBg="#DFEAFE" icon={tableIcon} height={300}>
|
|
|
{this.getHistoryCase()}
|
|
|
<div className={style['confirm-history']}><span className={style['confirm-history-btn']} onClick={this.referCase}>确定</span></div>
|
|
|
- </ConfirmModal>
|
|
|
+ </ConfirmModal>*/}
|
|
|
<Loading show={loading}/>
|
|
|
</div>
|
|
|
|