|
@@ -5,6 +5,8 @@ import ChooseItem from "./ChooseItem";
|
|
|
import ScaleItem from "./ScaleItem";
|
|
|
import Information from '../Information'
|
|
|
import ChartItem from "./ChartItem";
|
|
|
+import Notify from '@commonComp/Notify';
|
|
|
+import {readyKeepHistory} from '@utils/tools';
|
|
|
|
|
|
class AssessResult extends Component {
|
|
|
constructor(props) {
|
|
@@ -54,7 +56,12 @@ class AssessResult extends Component {
|
|
|
//点确定关闭弹窗时把参数传到父组件去
|
|
|
const {handleSave,isAssessConfirm,clearChartData} = this.props;
|
|
|
clearChartData&&clearChartData();
|
|
|
- isAssessConfirm&&handleSave(this.state);
|
|
|
+ if(readyKeepHistory() == 1){
|
|
|
+ Notify.error("主诉不能为空");
|
|
|
+ }else if(readyKeepHistory() == 2){
|
|
|
+ Notify.info('诊断不能为空');
|
|
|
+ }
|
|
|
+ isAssessConfirm&&handleSave(this.state,readyKeepHistory());
|
|
|
}
|
|
|
handoutTypes(item,i){
|
|
|
const {getIndexData,indexData,timeTypes,wholeAssessData,scaleInfo,getScaleInfo,possible,radioVal} =this.props;
|