|
@@ -22,6 +22,9 @@ class DiagnosticList extends Component {
|
|
this.handleClickDiag = this.handleClickDiag.bind(this);
|
|
this.handleClickDiag = this.handleClickDiag.bind(this);
|
|
this.referRecord = this.referRecord.bind(this);
|
|
this.referRecord = this.referRecord.bind(this);
|
|
this.noReferRecord = this.noReferRecord.bind(this);
|
|
this.noReferRecord = this.noReferRecord.bind(this);
|
|
|
|
+ this.getHistoryCase = this.getHistoryCase.bind(this);
|
|
|
|
+ this.closeHistoryCaseModal = this.closeHistoryCaseModal.bind(this);
|
|
|
|
+ this.referCase = this.referCase.bind(this);
|
|
}
|
|
}
|
|
|
|
|
|
componentWillReceiveProps(nextprops) {
|
|
componentWillReceiveProps(nextprops) {
|
|
@@ -78,18 +81,33 @@ class DiagnosticList extends Component {
|
|
getTips && getTips(item);
|
|
getTips && getTips(item);
|
|
}
|
|
}
|
|
referRecord() {
|
|
referRecord() {
|
|
- const { hideReferRecord } = this.props
|
|
|
|
|
|
+ const { hideReferRecord, showHistoryCaseModal } = this.props
|
|
hideReferRecord && hideReferRecord()
|
|
hideReferRecord && hideReferRecord()
|
|
|
|
+ showHistoryCaseModal && showHistoryCaseModal()
|
|
|
|
+
|
|
}
|
|
}
|
|
noReferRecord() {
|
|
noReferRecord() {
|
|
const { hideReferRecord } = this.props
|
|
const { hideReferRecord } = this.props
|
|
hideReferRecord && hideReferRecord()
|
|
hideReferRecord && hideReferRecord()
|
|
}
|
|
}
|
|
|
|
+ referCase() {
|
|
|
|
+ const { hideHistoryCaseModal } = this.props
|
|
|
|
+ hideHistoryCaseModal && hideHistoryCaseModal()
|
|
|
|
+ }
|
|
|
|
+ closeHistoryCaseModal() {
|
|
|
|
+ const { hideHistoryCaseModal } = this.props
|
|
|
|
+ hideHistoryCaseModal && hideHistoryCaseModal()
|
|
|
|
+ }
|
|
|
|
+ getHistoryCase() {
|
|
|
|
+ return (<div className={style['history-info']}>
|
|
|
|
+
|
|
|
|
+ </div>)
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
render(){
|
|
render(){
|
|
- const { list, treatment, showReferRecord } = this.props
|
|
|
|
|
|
+ const { list, treatment, showReferRecord, showHistoryCase } = this.props
|
|
const { visible, treatTitle } = this.state
|
|
const { visible, treatTitle } = this.state
|
|
const lastIndex = list.length -1;
|
|
const lastIndex = list.length -1;
|
|
return(
|
|
return(
|
|
@@ -123,6 +141,10 @@ class DiagnosticList extends Component {
|
|
<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>
|
|
<div className={style['confirm-info']}>是否引用往期病历</div>
|
|
</ConfirmModal>
|
|
</ConfirmModal>
|
|
|
|
+ <ConfirmModal visible={showHistoryCase} noFooter='true' title='请选择历史病历' close={this.closeHistoryCaseModal}>
|
|
|
|
+ {this.getHistoryCase}
|
|
|
|
+ <div className={style['confirm-history']}><span className={style['confirm-history-btn']} onClick={this.referCase}>确定</span></div>
|
|
|
|
+ </ConfirmModal>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|