|
@@ -67,9 +67,8 @@ class SearchSelect extends Component {
|
|
|
}
|
|
|
//获取药品剂型15,、给药途径16
|
|
|
getDrugWayList(val) {
|
|
|
- console.log(123);
|
|
|
const { hosId, type } = this.props;
|
|
|
- if(!val && type == 15){
|
|
|
+ if(!val){
|
|
|
this.setState({
|
|
|
data: [],
|
|
|
inpVal: ''
|
|
@@ -81,7 +80,7 @@ class SearchSelect extends Component {
|
|
|
"inputStr": val.trim(),
|
|
|
"type": type,
|
|
|
"hospitalId": hosId,
|
|
|
- "defaultList":type==15?0:1
|
|
|
+ "defaultList":0
|
|
|
}).then((res) => {
|
|
|
if (res.data.code == 0) {
|
|
|
const data = res.data.data;
|
|
@@ -97,6 +96,7 @@ class SearchSelect extends Component {
|
|
|
render() {
|
|
|
const { idx, title, selected } = this.props;
|
|
|
const { show, data, inpVal } = this.state;
|
|
|
+ console.log(inpVal);
|
|
|
return (
|
|
|
<div className={styles.medType}>
|
|
|
<input placeholder={title} value={selected} title={selected} className={styles.inpSearch} onFocus={(e) => this.handleFocu(e)} onInput={(e) => this.handleChange(e)} />
|