|
@@ -3,7 +3,7 @@ import style from './index.less';
|
|
|
import del_icon from './img/delete.png'
|
|
|
import diagUp from './img/diagUp.png'
|
|
|
import diagDown from './img/diagDown.png'
|
|
|
-import {ConfirmModal, Message} from '@commonComp';
|
|
|
+import {ConfirmModal, Message,ComplexModal} from '@commonComp';
|
|
|
import Notify from '@commonComp/Notify';
|
|
|
import Treat from '@containers/Treat'
|
|
|
import store from '@store';
|
|
@@ -11,6 +11,7 @@ import { initItemList } from '@store/async-actions/historyTemplates';
|
|
|
import { pushAllDataList } from '@utils/tools';
|
|
|
import iconRadioDefault from '@common/images/icon-radio-default.png'
|
|
|
import iconRadioActive from '@common/images/icon-radio-active.png'
|
|
|
+import tableIcon from '@common/images/table.png';
|
|
|
|
|
|
class DiagnosticList extends Component {
|
|
|
constructor(props) {
|
|
@@ -87,10 +88,10 @@ class DiagnosticList extends Component {
|
|
|
getTips && getTips(item);
|
|
|
}
|
|
|
referRecord() {
|
|
|
- const { hideReferRecord, showHistoryCaseModal } = this.props
|
|
|
+ const { hideReferRecord, showHistoryCaseModal ,chronicMagItem} = this.props
|
|
|
hideReferRecord && hideReferRecord()
|
|
|
showHistoryCaseModal && showHistoryCaseModal()
|
|
|
- store.dispatch(initItemList());
|
|
|
+ store.dispatch(initItemList(chronicMagItem));
|
|
|
|
|
|
}
|
|
|
noReferRecord() {
|
|
@@ -109,7 +110,6 @@ class DiagnosticList extends Component {
|
|
|
|
|
|
// store.dispatch({type: CONFIRM_TYPE, confirmType: baseObj.sign});
|
|
|
pushAllDataList(baseObj.sign,'push',baseObj,'history') //引用
|
|
|
- // store.dispatch(billing())
|
|
|
this.props.getBilling();
|
|
|
this.setState({
|
|
|
activeHistory: -1
|
|
@@ -147,6 +147,9 @@ class DiagnosticList extends Component {
|
|
|
const { list, treatment, showReferRecord, showHistoryCase } = this.props
|
|
|
const { visible, treatTitle } = this.state
|
|
|
const lastIndex = list.length -1;
|
|
|
+ const footer = <div className={style['footer']}>
|
|
|
+ <span className={style['okBtn']} onClick={this.referCase}>确定</span>
|
|
|
+ </div>;
|
|
|
return(
|
|
|
<div className={style['diaglist-wrap']}>
|
|
|
{list && (list.length > 0) && list.map((item, index) => {
|
|
@@ -179,13 +182,19 @@ class DiagnosticList extends Component {
|
|
|
<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}>
|
|
|
+ {/*<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>
|
|
|
+ </ConfirmModal>*/}
|
|
|
+ {showHistoryCase?<ComplexModal onclose={this.closeHistoryCaseModal} footer={footer}
|
|
|
+ title='请选择历史病历'
|
|
|
+ icon={tableIcon}
|
|
|
+ height={300}
|
|
|
+ width={400}>
|
|
|
+ {this.getHistoryCase()}
|
|
|
+ </ComplexModal>:''}
|
|
|
</div>
|
|
|
|
|
|
-
|
|
|
)
|
|
|
}
|
|
|
}
|