浏览代码

删除诊断重新推送

luolei 4 年之前
父节点
当前提交
c84832c455
共有 2 个文件被更改,包括 11 次插入1 次删除
  1. 5 1
      src/components/DiagnosticList/index.jsx
  2. 6 0
      src/containers/DiagnosticList.js

+ 5 - 1
src/components/DiagnosticList/index.jsx

@@ -289,6 +289,10 @@ class DiagnosticList extends Component {
         hasEnterImg: false
       })
     }
+    handleFocus(){
+      const {getBilling} = this.props;
+      getBilling&&getBilling({mode:10});
+    }
     handleInput(e,index){
       const {editDiagName,getBilling} = this.props;
       let name = (e.target.value).trim()
@@ -327,7 +331,7 @@ class DiagnosticList extends Component {
                                        onMouseLeave = {this.handleMouseLeaveDrug.bind(this)}
                                     >
                                       <span title={item.name} className={style['diag-name-box']} style={{'max-width': '300px'}}>
-                                        <input type="text" value={item.name} onBlur={(e)=>{this.handleBlur(e,item,index)}} onInput={(e)=>this.handleInput(e,index)}/>
+                                        <input type="text" value={item.name} onFocus={(e)=>{this.handleFocus()}} onBlur={(e)=>{this.handleBlur(e,item,index)}} onInput={(e)=>this.handleInput(e,index)}/>
                                       </span>
                                       {/* <img className={`${style['info-img']}`}
                                           title='点击i图标可查看详细说明'

+ 6 - 0
src/containers/DiagnosticList.js

@@ -42,6 +42,9 @@ function mapDispatchToProps(dispatch) {
           idx:idx,
           name:name
         });
+        dispatch({
+            type: GET_DIAGNOSTIC_STR
+        });
       },
       setAssess(data,disName){        //获取评估内容数据
         dispatch({
@@ -49,6 +52,9 @@ function mapDispatchToProps(dispatch) {
           data:data,
           name:disName
         });
+        dispatch({
+            type: GET_DIAGNOSTIC_STR
+        });
       },
         delDiagnostic: (item,idx) => {
             dispatch({