|
@@ -33,11 +33,18 @@ class DiagnosticItem extends Component{
|
|
|
})
|
|
|
}
|
|
|
chooseDiagodal(item) {
|
|
|
+ const { diagnosticList,getTips } = this.props;
|
|
|
+ getTips && getTips(item);
|
|
|
+ for (let i = 0; i < diagnosticList.length; i++) {
|
|
|
+ if(diagnosticList[i].id === item.id && diagnosticList[i].name === item.name) {
|
|
|
+ Notify.info('该诊断已存在');
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
this.setState({
|
|
|
visible: true
|
|
|
})
|
|
|
- const { getTips } = this.props;
|
|
|
- getTips && getTips(item);
|
|
|
+
|
|
|
}
|
|
|
addDiagodal(diagType){
|
|
|
const {item} = this.props;
|