|
@@ -108,40 +108,35 @@ class DiagnosticList extends Component {
|
|
|
getTips && getTips({id:item.conceptId, type:7, name: item.name, position: 1});
|
|
|
}
|
|
|
referRecord() {
|
|
|
- const { hideReferRecord, showHistoryCaseModal ,chronicMagItem,hisTemplates,autoFillModules,typeConfig} = this.props
|
|
|
- hideReferRecord && hideReferRecord()
|
|
|
+ const { hideReferRecord, showHistoryCaseModal ,chronicMagItem,hisTemplates,autoFillModules,typeConfig} = this.props;
|
|
|
+ hideReferRecord && hideReferRecord();
|
|
|
// showHistoryCaseModal && showHistoryCaseModal()
|
|
|
// store.dispatch(initItemList(chronicMagItem))
|
|
|
initItemList(chronicMagItem).then((res)=>{
|
|
|
- console.log(99999,chronicMagItem)
|
|
|
const result = res.data;
|
|
|
if(result.code==0 && result.data){
|
|
|
store.dispatch(setInitHistory(result.data));
|
|
|
showHistoryCaseModal && showHistoryCaseModal();
|
|
|
}else{
|
|
|
- if(typeConfig==0){
|
|
|
- Notify.info("暂无历史病历,已默认展示慢病相关内容");
|
|
|
- const timer = setTimeout(function(){
|
|
|
- autoFillModules && autoFillModules();
|
|
|
- clearTimeout(timer);
|
|
|
- },1000) //需求要求延时
|
|
|
- }
|
|
|
+ Notify.info("暂无历史病历,已默认展示慢病相关内容");
|
|
|
+ const timer = setTimeout(function(){
|
|
|
+ autoFillModules && autoFillModules();
|
|
|
+ clearTimeout(timer);
|
|
|
+ },1000) //需求要求延时
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
noReferRecord() {
|
|
|
- const { hideReferRecord ,autoFillModules,typeConfig} = this.props
|
|
|
+ const { hideReferRecord ,autoFillModules} = this.props;
|
|
|
hideReferRecord && hideReferRecord();
|
|
|
- if(typeConfig==0){//智能推送模式才自动填充
|
|
|
- autoFillModules&&autoFillModules();
|
|
|
- }
|
|
|
-
|
|
|
+ autoFillModules&&autoFillModules();
|
|
|
+
|
|
|
}
|
|
|
referCase() {
|
|
|
- const { hideHistoryCaseModal, items ,autoFillModules,typeConfig} = this.props
|
|
|
+ const { hideHistoryCaseModal, items ,autoFillModules,typeConfig} = this.props;
|
|
|
const {sign} = this.state;
|
|
|
hideHistoryCaseModal && hideHistoryCaseModal()
|
|
|
- if (this.state.activeHistory === -1 && typeConfig==0) {//没有选择历史病例直接点确定
|
|
|
+ if (this.state.activeHistory === -1) {//没有选择历史病例直接点确定
|
|
|
Notify.info("未选择历史病历,已默认展示慢病相关内容");
|
|
|
const timer = setTimeout(function(){
|
|
|
autoFillModules && autoFillModules();
|
|
@@ -152,10 +147,6 @@ class DiagnosticList extends Component {
|
|
|
let baseList = store.getState();
|
|
|
|
|
|
let baseObj = items[this.state.activeHistory];
|
|
|
- // 切换模式
|
|
|
- if(sign != typeConfig){
|
|
|
- store.dispatch({type: CONFIRM_TYPE, confirmType: baseObj.sign});
|
|
|
- }
|
|
|
pushAllDataList(baseObj.sign,'push',baseObj,'history') //引用
|
|
|
this.props.getBilling();
|
|
|
this.setState({
|
|
@@ -170,9 +161,7 @@ class DiagnosticList extends Component {
|
|
|
sign:-1
|
|
|
})
|
|
|
hideHistoryCaseModal && hideHistoryCaseModal()
|
|
|
- if(typeConfig==0){//智能推送模式才自动填充
|
|
|
- autoFillModules&&autoFillModules();
|
|
|
- }
|
|
|
+ autoFillModules&&autoFillModules();
|
|
|
}
|
|
|
handleQuoteClick(item, index) {
|
|
|
// const { handleQuoteClick } = this.props
|