morphone1995 4 năm trước cách đây
mục cha
commit
e3737f9245

+ 67 - 18
src/components/HistoryCaseContainer/HistoryList/index.jsx

@@ -8,14 +8,16 @@ import PreviewBody from '@components/PreviewBody';
 import Empty from '@components/Empty'
 import { pushAllDataList,didPushParamChange } from '@utils/tools';
 import { dragBox } from '@utils/drag';
+import { initItemList, setInitHistory } from '@store/async-actions/historyTemplates';
 import $ from 'jquery';
 import { ConfirmModal } from '@commonComp';
 import {showHistory} from "@store/actions/historyTemplates";
 import { SET_READ_MODE } from "@store/types/typeConfig";
 import {billing} from '@store/async-actions/pushMessage';
-import {getHistempDetail} from '@store/async-actions/historyTemplates';
+import { getHistempDetail, asyncUpdateByIdUsNames, asyncCancelTemplateInfos} from '@store/async-actions/historyTemplates';
 import del from '../../../common/images/delete_no.png';
 import edit from '../../../common/images/check.png';
+import Notify from '@commonComp/Notify';
 
 class HistoryCaseContainer extends React.Component {
     constructor(props){
@@ -28,9 +30,11 @@ class HistoryCaseContainer extends React.Component {
           visible:false,
           delVisible: false,
           editVisible: false,
-          templateName: '',
+          templateName: '', // 病历名称
           historyCase: [],
-          currentIndex:0
+          currentIndex:0,
+          delId: '', //删除病历id
+          editId: '', //编辑病历id
         }
         this.handleCaseClick=this.handleCaseClick.bind(this)
         this.handleQuoteClick=this.handleQuoteClick.bind(this)
@@ -46,14 +50,14 @@ class HistoryCaseContainer extends React.Component {
       this.handleSortClick = this.handleSortClick.bind(this);
     }
     componentDidMount(){
-      // const {items} = this.props
+      const {items} = this.props
       // items.forEach(item=>{
       //   item.editShow = false
       // })
       // items[0].editShow = true
       dragBox('hisWrapMove','closeHis','add')
       setTimeout(() => {
-        this.handleCaseClick(0)
+        this.handleCaseClick(0, items[0])
       }, 50);      
       this.setState({
         visible:false,
@@ -68,8 +72,21 @@ class HistoryCaseContainer extends React.Component {
       })
     }
 
+    // 获取列表数据
+    getTemplatePageAlls() {
+      initItemList().then(res => {
+        const result = res.data
+        if (result.code == 0 && result.data) {
+          store.dispatch(setInitHistory(result.data));
+        } else {
+          Notify.info("暂无历史病历");
+        }
+      })
+    }
+
+
     // 点击当前的历史病历
-    handleCaseClick(idx) {
+    handleCaseClick(idx,val) {
       const { items } = this.props;
       let tmpItems = []
       $("#hislistLeft li").eq(idx).css({
@@ -103,7 +120,20 @@ class HistoryCaseContainer extends React.Component {
     }
     //确认删除病历
     makeSureDel(){
-      console.log('确认删除');
+      const { delId } = this.state
+      store.dispatch(asyncCancelTemplateInfos(delId)).then(res => {
+        if (res.data.code === '0') {
+          Notify.success('病历删除成功');
+          this.setState({
+            delVisible: false
+          })
+          // 重新渲染列表
+          this.getTemplatePageAlls()
+        }
+      }).catch(err => {
+        Notify.info(err.msg);
+      })
+
     }
 
     // 取消删除病历
@@ -116,25 +146,40 @@ class HistoryCaseContainer extends React.Component {
     handleDelQuoteClick(e, val, idx) {
       this.setState({
         delVisible: true,
+        delId: val.id
       })
     }
 
     // 确认编辑病历
     makeSureEdit(){
-      console.log('确认编辑病历');
-      console.log(this.state.templateName,'======');
+      const { editId, templateName} = this.state
+      store.dispatch(asyncUpdateByIdUsNames(editId, templateName)).then(res=>{
+        if (res.data.code === '0'){
+          Notify.success('病历修改成功');
+          this.setState({
+            editVisible : false
+          })
+          // 重新渲染列表
+          this.getTemplatePageAlls()
+        }
+      }).catch(err =>{
+        Notify.info(err.msg);
+      })
     }
 
     // 取消编辑病历
     closeEdit() {
       this.setState({
-        editVisible: false
+        editVisible: false,
+        templateName: ''
       })
     }
     // 显示编辑确认框
     handleEditQuoteClick(e, val, idx) {
       this.setState({
         editVisible: true,
+        editId: val.id,
+        templateName: ''
       })
     }
 
@@ -182,7 +227,11 @@ class HistoryCaseContainer extends React.Component {
 
     render(){
         const { items,handleSortClick,showHistoryBox,preInfo } = this.props;
+
         const { activeHis, visible, dataJson, dataStr, delVisible, editVisible, historyCase, currentIndex } = this.state;
+
+       console.log(dataStr,'dataStr');
+
         const getAllDataStringList = () =>{           //获取所有模块文本的数据
             let jsonDataString = {};
             jsonDataString.lis = {};
@@ -203,15 +252,15 @@ class HistoryCaseContainer extends React.Component {
                 <div className={styles.mainHistoryLeft}>
                     <div className={styles.title}>
                         <span className={styles.his}>历史病历</span>
-                        <span className={styles.sort} onClick={this.handleSortClick}>排序 <img src={sort} alt="排序"/></span>
+                        {/* <span className={styles.sort} onClick={this.handleSortClick}>排序 <img src={sort} alt="排序"/></span> */}
                     </div>
                     <div className={styles.lists}>
                         <ul id="hislistLeft">
                             {(items && items.length > 0) ? items.map((val,idx)=>{
                                     // return <li key={val.id} className={val.id == activeHistory.id?styles.bgc:''} onClick={(e)=>{this.handleCaseClick(e,idx)}}>
-                                  return <li key={val.id} onClick={() => { this.handleCaseClick(idx) }} onMouseEnter={() => this.handleMouseEnter()} onMouseLeave={() => this.handleMouseLeave()}>
+                              return <li key={val.id} onClick={() => { this.handleCaseClick(idx, val) }} onMouseEnter={() => this.handleMouseEnter()} onMouseLeave={() => this.handleMouseLeave()}>
                                         <div class={styles.itemLeft}>
-                                          <span title={val.diagnose}>{val.diagnose}</span>
+                                        <span title={val.name}>{val.name}</span>
                                       { currentIndex === idx && (<div className={styles.edit} onClick={(e) => { this.handleEditQuoteClick(e, val, idx) }}>
                                             <img src={edit} />
                                           </div>)}
@@ -239,7 +288,7 @@ class HistoryCaseContainer extends React.Component {
                         </ul>
                     </div>
                 </div>
-                <div className={styles.mainHistoryRight}>
+                {/* <div className={styles.mainHistoryRight}>
                     {
                         activeHis == undefined || JSON.stringify(activeHis) == "{}" ? null :
                         <PreviewBody
@@ -253,7 +302,7 @@ class HistoryCaseContainer extends React.Component {
                             showAssessBtn={true}
                         ></PreviewBody>
                     }
-                </div>
+                </div> */}
                 
                 <ConfirmModal
                     visible={visible}
@@ -291,7 +340,7 @@ class HistoryCaseContainer extends React.Component {
                   okBorderColor={'#3B9ED0'}
                   okColor={'#fff'}
                   oKBg={'#3B9ED0'}
-                  title={'修改模板'}
+                  title={'编辑病历名称'}
                   height={200}
                 >
                   {/* <div className={style.name}>
@@ -311,8 +360,8 @@ class HistoryCaseContainer extends React.Component {
                     />
                   </div> */}
                     <div className={styles.outBox}>
-                      <span>模板名称:</span>
-                      <input type="text" placeholder="请输入模板名称" value={this.state.templateName} onChange={this.handleChange} autocomplete="off"/>
+                      <span>病历名称:</span>
+                      <input type="text" placeholder="请输入病历名称" value={this.state.templateName} onChange={this.handleChange} autocomplete="off"/>
                     </div>
                 </ConfirmModal>
             </div>

+ 16 - 4
src/components/InfoTitle/index.jsx

@@ -6,7 +6,7 @@ import historyCase from '@common/images/history.png';
 import health from '@common/images/health.png'
 import store from '@store';
 import { showHistory } from '@store/actions/historyTemplates';
-import { initItemList,setInitHistory } from '@store/async-actions/historyTemplates';
+import { initItemList, setInitHistory, getHospitalInfo } from '@store/async-actions/historyTemplates';
 import HistoryCases from '@containers/HistoryCases';
 import $ from 'jquery';
 import {Notify,Loading} from '@commonComp';
@@ -25,9 +25,20 @@ class InfoTitle extends Component {
         showLoading();
         // store.dispatch(initItemList());
         // store.dispatch(showHistory(true))
-        initItemList().then((res)=>{
-            const result = res.data;
-            if(result.code==0 && result.data){
+        // initItemList().then((res)=>{
+        //     const result = res.data;
+        //     if(result.code==0 && result.data){
+        //         hideLoading();
+        //         store.dispatch(setInitHistory(result.data));
+        //         store.dispatch(showHistory(true));
+        //     }else{
+        //         hideLoading();
+        //         Notify.info("暂无历史病历");
+        //     }
+        // })
+        initItemList().then(res=>{           
+            const result = res.data
+            if (result.code == 0 && result.data) {
                 hideLoading();
                 store.dispatch(setInitHistory(result.data));
                 store.dispatch(showHistory(true));
@@ -36,6 +47,7 @@ class InfoTitle extends Component {
                 Notify.info("暂无历史病历");
             }
         })
+        getHospitalInfo()
     }
     componentWillReceiveProps(next){
         const that = this;

+ 5 - 5
src/components/Information/index.jsx

@@ -22,19 +22,19 @@ class Information extends Component {
         <div ref={this.$content} className={style['title']}>{preInfo.hospitalName}</div>
         <table className={style['patInfo']}>
           <tr>
-            <td>姓名:{baseObj ? baseObj.patientName : noData ? '' : preInfo.patientName}</td>
+            <td>姓名:{baseObj ? baseObj.patName : noData ? '' : preInfo.patientName}</td>
             <td>门诊号:{baseObj ? baseObj.inquiryCode : (noData ? '' : preInfo.recordId)}</td>
           </tr>
           <tr>
-            <td>年龄:{baseObj ? baseObj.patientAge : noData ? '' : preInfo.patientAge}</td>
+            <td>年龄:{baseObj ? baseObj.age : noData ? '' : preInfo.patientAge}</td>
             <td>医生:{baseObj ? baseObj.doctorName : (noData ? '' : preInfo.doctorName)}</td>
           </tr>
           <tr>
-            <td>性别:{baseObj ? baseObj.patientSex : noData ? '' : preInfo.patientSex}</td>
-            <td>科室:{baseObj ? baseObj.hospitalDeptName : (noData ? '' : preInfo.hospitalDeptName)}</td>
+            <td>性别:{baseObj.sex === 0 ? '女' : '男'}</td>
+            <td>科室:{baseObj ? baseObj.deptName : (noData ? '' : preInfo.hospitalDeptName)}</td>
           </tr>
           <tr>
-            <td>卡号:{baseObj ? baseObj.patientIdNo : noData ? '' : preInfo.patientIdNo}</td>
+            <td>卡号:{baseObj ? baseObj.cardNo : noData ? '' : preInfo.patientIdNo}</td>
             <td>就诊时间:{baseObj ? baseObj.inquiryDate : (noData ? '' : preInfo.systemTime.split(' ')[0])}</td>
           </tr>
         </table>

+ 29 - 3
src/components/Operation/index.jsx

@@ -42,6 +42,7 @@ class Operation extends Component {
       folderNameVal:'未分类文件夹',//选中文件夹名称
       folderId:'',//选中文件夹名称
       folderListShow:false, //文件夹列表展示
+      medicalName: '', //保存病历名称
     }
     this.showPrint = this.showPrint.bind(this);
     this.closePrint = this.closePrint.bind(this);
@@ -61,6 +62,7 @@ class Operation extends Component {
     this.closeDiagBox = this.closeDiagBox.bind(this);
     this.spellFst = this.spellFst.bind(this);
     this.hideFolderList = this.hideFolderList.bind(this)
+    this.handleMedicalChange = this.handleMedicalChange.bind(this)
     this.$inp = React.createRef()
   }
 
@@ -113,16 +115,30 @@ class Operation extends Component {
     //   })
     //   this.props.diagShowTmp(true)
     // }
-    this.setState({
+    // 清除store中 medicalName的值
+    const { clearmedicalName} = this.props
+    clearmedicalName && clearmedicalName()
+    this.setState({            
       type: type,
       okText: '保存',
       borderColor: '#3B9ED0',
       okColor: '#fff',
       oKBg: '#3B9ED0',
-      msg: <p className={style['msg']}>是否保存该病历?</p>
+      // msg: <p className={style['msg']}>是否保存该病历?</p>
+      msg: <div className={style.outBox}><span>病历名称:</span><input type="text" placeholder="请输入病历名称" value={this.state.medicalName} onChange={this.handleMedicalChange} autocomplete="off" /></div>
     })
     this.props.diagShowTmp(true)
   }
+
+  handleMedicalChange(e){
+    const { setmedicalName} = this.props
+    this.setState({
+      medicalName: e.target.value
+    },()=>{
+      setmedicalName &&setmedicalName(this.state.medicalName)
+    })
+  }
+
   clearAll(type) {
     let baseList = store.getState();
     let jsonData = getAllDataList(baseList);
@@ -313,6 +329,11 @@ class Operation extends Component {
     if (type == 1) {
       diagShowTmp(false)
       this.setState({ title: '' })
+      if (type == 1) {
+        this.setState({
+          medicalName: ''
+        })
+      }
       save();
     } else if (type == 2) {
       diagShowTmp(false);
@@ -386,6 +407,11 @@ class Operation extends Component {
     if (type == 3){
       this.setState({ title: '',deptId:"",value:"",folderListShow:false,folderNameVal:'未分类文件夹',folderId:'',fstName:''})
     }
+    if(type==1){
+      this.setState({
+        medicalName: ''
+      })
+    }
     diagShowTmp(false)
   }
   setDeptId(id,name){
@@ -468,7 +494,7 @@ class Operation extends Component {
         okColor={this.state.okColor}
         oKBg={this.state.oKBg}
         borderBtm={type==3?'1px solid #ccc':null}
-        title={type==3?'保存病历模板':type==4?"新建文件夹":null}
+        title={type==3?'保存病历模板':type==4?"新建文件夹":type==1?"保存病历":null}
       >
         {this.state.msg}
         {

+ 9 - 1
src/components/Operation/index.less

@@ -336,4 +336,12 @@
 
 .selectFolderIpt {
     cursor: pointer;
-  }
+  }
+
+  .outBox{
+    padding-left: 18px;
+    height: 100px;
+    width: 100%;
+    display: flex;
+    align-items: center;
+}

+ 2 - 2
src/components/PatInfo/index.jsx

@@ -27,7 +27,7 @@ class PatInfo extends Component {
         {
           label: 'patientSex',
           id: 'patientSex',
-          value: '男',
+          value: 1,
           title: '性别'
         },
         {
@@ -118,7 +118,7 @@ class PatInfo extends Component {
               return (
                 <div className={style["infoItem"]} key={item.id}>
                   <label for={item.label}>{item.title}:</label>
-                  <input id={item.id} type="text" autocomplete="off"  value={item.value} onChange={this.handleChange}/>
+                  {item.id === 'patientSex' ? (<input id={item.id} type="text" autocomplete="off" value={item.value === 0 ? '女' : '男'} onChange={this.handleChange} />) : (<input id={item.id} type="text" autocomplete="off" value={item.value} onChange={this.handleChange} />) }
                 </div>
               )
             })

+ 12 - 0
src/containers/OperationContainer.js

@@ -17,6 +17,7 @@ import { RECOVER_TAG_MAIN } from '@store/types/mainSuit';
 import { RECOVER_TAG_CURRENT } from '@store/types/currentIll';
 import { RECOVER_TAG_OTHER } from '@store/types/otherHistory';
 import { RECOVER_TAG_CHECK } from '@store/types/checkBody';
+import { SETMEDICALNAME, CLEARMEDICALNAME } from '@store/types/patInfo';
 import { Notify } from '@commonComp';
 import { didPushParamChange } from '@utils/tools.js';
 import { billing } from '@store/async-actions/pushMessage';
@@ -83,6 +84,17 @@ function mapDispatchToProps(dispatch) {
         type: CLOSE_PREVIEW
       });
     },
+    setmedicalName: (val) =>{
+      dispatch({
+        type: SETMEDICALNAME,
+        params: val
+      });
+    },
+    clearmedicalName: (val) => {
+      dispatch({
+        type: CLEARMEDICALNAME,
+      });
+    },
     save: () => {
       // 埋点事件,点击保存时调用
       // dispatch(saveClickNum);

+ 5 - 1
src/store/actions/historyTemplates.js

@@ -1,4 +1,4 @@
-import { HISTORY_TEMPLATES,HISTORY_TEMPLATES_SORT,HISTORY_INIT,HISTORY_ACTIVE,HISTORY_VISIBLE } from '@store/types/historyTemplates';
+import { HISTORY_TEMPLATES, HISTORY_TEMPLATES_SORT, HISTORY_INIT, HISTORY_ACTIVE, HISTORY_VISIBLE, HISTORY_UPDATEBYIDUSNAMES } from '@store/types/historyTemplates';
 
 export const showHistory=(bool) => ({   //显示隐藏历史病历
     type:HISTORY_TEMPLATES,
@@ -18,4 +18,8 @@ export const activeHistory=(idx) => ({   //历史病历预览
 export const visibleHistory=(bool) => ({   //历史病历弹窗
     type:HISTORY_VISIBLE,
     bool
+});
+
+export const updateByIdUsNamesHistory = () => ({   //修改病历名称
+    type: HISTORY_UPDATEBYIDUSNAMES,
 });

+ 14 - 0
src/store/actions/patInfo.js

@@ -56,4 +56,18 @@ export const setPatInfo = (state,action) => {
   const res = Object.assign({}, state);
   res.patInfoData = action.params
   return res
+}
+
+// 设置病历名称
+export const setMedicalName = (state, action) => {
+  const res = Object.assign({}, state);
+  res.medicalName = action.params
+  return res
+}
+
+// clearMedicalName
+export const clearMedicalName = (state, action) => {
+  const res = Object.assign({}, state);
+  // res.medicalName = ''
+  return res
 }

+ 65 - 11
src/store/async-actions/historyTemplates.js

@@ -6,17 +6,24 @@ import store from '@store';
 import { billing, getMRAnalyse} from '@store/async-actions/pushMessage';
 
 export const initItemList = (item) => {
-  let baseList = store.getState();
-  let state = baseList.patInfo.message;
-  const param = {
-      "hospitalId": state.hospitalId,
-      "patientId": state.patientId,
-      "disName":item&&item.name?item.name : 'dis',
-      "disType":item?1:0,
-      "current": 1,
-      "size": 9999
-    }
-    return axios.json('/inquiryInfo/hisInquirys',param);
+  // let baseList = store.getState();
+  // let state = baseList.patInfo.message;
+  // const param = {
+  //     "hospitalId": state.hospitalId,
+  //     "patientId": state.patientId,
+  //     "disName":item&&item.name?item.name : 'dis',
+  //     "disType":item?1:0,
+  //     "current": 1,
+  //     "size": 9999
+  //   }
+  //   return axios.json('/inquiryInfo/hisInquirys',param);
+  const params = {
+    sex: "",
+    name: '',
+    current: 1,
+    size: 9999
+  } 
+  return axios.json('/demo/templateInfo/getTemplatePageAlls', params);
 };
 export const getHistempDetail = (item) => {
   const param = {
@@ -44,3 +51,50 @@ export function setInitHistory(data){
     dispatch(initHistory(data));
   }
 }
+
+
+export const asyncUpdateByIdUsNames = (editId, templateName) => {
+  return (dispatch) => {
+    return new Promise((resolve, reject)=>{
+      let param = {
+        id: editId,
+        modeName: templateName,
+        doctorId: ''
+      }
+      axios.json('/demo/templateInfo/updateByIdUsNames', param).then(res=>{
+        if (res.data.code === '0'){
+          resolve(res)
+        }else{
+          reject(res.data)
+        }
+      })
+    })
+  }
+}
+
+export const asyncCancelTemplateInfos = (delId) => {
+  return (dispatch) => {
+    return new Promise((resolve, reject) => {
+      console.log(delId,'delId');
+      let param = {
+        ids: delId
+      }
+      axios.json('/demo/templateInfo/cancelTemplateInfos', param).then(res => {
+        if (res.data.code === '0') {
+          resolve(res)
+        } else {
+          reject(res.data)
+        }
+      })
+    })
+  }
+}
+
+
+// 获取医院信息
+export const getHospitalInfo = () =>{
+  axios.json('/tran/hospitalInfo/getHospitalInfoById',{id:1}).then(res=>{
+    // console.log(res,'医院信息');
+  })
+}
+

+ 17 - 10
src/store/async-actions/print.js

@@ -61,27 +61,34 @@ function formatFormParmas(val,arr){
 // 保存病历_lcq_new_重写
 export const saveMedicalData = () =>{
     let baseList = store.getState();
-    console.log(baseList,'======baseList========');
-    let inquiryDate = timestampToTime(new Date().getTime())  // 获取当前时间
-    const { patInfo: { patInfoData} } = baseList
+    // console.log(baseList,'======baseList========');
+    const { patInfo: { patInfoData } } = baseList
+    let inquiryDate = timestampToTime(new Date().getTime())  // 获取当前时间  
+    let modeName = baseList.patInfo.medicalName   //病历名称
+    let jsonData = getAllDataList(baseList);
+    // if (!modeName) return 
     let params = {
         "age": formatFormParmas('patientAge', patInfoData),
         "cardNo": formatFormParmas('patientIdNo', patInfoData),
-        "dataJson": '',
+        "dataJson": JSON.stringify(Object.assign({}, jsonData)),
         "deptName": formatFormParmas('hospitalDeptName', patInfoData),
         "doctorName": formatFormParmas('doctorName', patInfoData),
         "inquiryCode": formatFormParmas('recordId', patInfoData),
         "inquiryDate": inquiryDate,
-        "modeName": '',
+        "modeName": modeName,
         "patName": formatFormParmas('patientName', patInfoData),
-        "preview": '',
-        "sex": 0
+        "preview": '', 
+        "sex": formatFormParmas('patientSex', patInfoData),
     }
-       
     json('/demo/templateInfo/saveTemplateInfo', params).then(res=>{
-        console.log(res,'返回的数据');
+        let data = res.data
+        if (data.code == 0) {            
+            Notify.success('病历保存成功');
+        } else {
+            Notify.info(data.msg);
+        }
+        store.dispatch({ type: MODI_LOADING, flag: false });
     })
-
 }
 
 

+ 6 - 0
src/store/reducers/historyTemplates.js

@@ -4,6 +4,7 @@ import {
     HISTORY_INIT,
     HISTORY_ACTIVE,
     HISTORY_VISIBLE,
+    HISTORY_UPDATEBYIDUSNAMES
 } from '../types/historyTemplates';
 
 
@@ -44,5 +45,10 @@ export default (state = initHistoryList, action) => {
         newState.visible = action.bool;
         return newState;
     }
+    if (action.type === HISTORY_UPDATEBYIDUSNAMES) {
+        const newState = Object.assign({}, state);
+        console.log(newState,'newState');
+        return newState;
+    }
     return state;
 }

+ 8 - 3
src/store/reducers/patInfo.js

@@ -1,10 +1,11 @@
-import { GET_PATIENT_MESSAGE, GET_HOSPITAL_MESSAGE, SETINITPATINFO} from '../types/patInfo';
-import { updatePatientMessage, updateHospitalMessage,setPatInfo} from '../actions/patInfo';
+import { GET_PATIENT_MESSAGE, GET_HOSPITAL_MESSAGE, SETINITPATINFO, SETMEDICALNAME, CLEARMEDICALNAME} from '../types/patInfo';
+import { updatePatientMessage, updateHospitalMessage, setPatInfo, setMedicalName, clearMedicalName} from '../actions/patInfo';
 
 const initState = {
     message: {},
     hospitalMsg:{},
-    patInfoData: []  // 病历基本信息
+    patInfoData: [],  // 病历基本信息
+    medicalName: '' //病历名称
 };
 export default function(state = initState,action){
   switch(action.type){
@@ -14,6 +15,10 @@ export default function(state = initState,action){
       return updateHospitalMessage(state,action);
     case SETINITPATINFO:
       return setPatInfo(state, action);
+    case SETMEDICALNAME:
+      return setMedicalName(state, action);
+    case CLEARMEDICALNAME:
+      return clearMedicalName(state, action);
     default:
       return state;
   }

+ 3 - 0
src/store/types/historyTemplates.js

@@ -3,3 +3,6 @@ export const HISTORY_TEMPLATES_SORT = 'HISTORY_TEMPLATES_SORT';
 export const HISTORY_INIT = 'HISTORY_INIT';
 export const HISTORY_ACTIVE = 'HISTORY_ACTIVE';
 export const HISTORY_VISIBLE = 'HISTORY_VISIBLE';
+
+
+export const HISTORY_UPDATEBYIDUSNAMES = 'HISTORY_UPDATEBYIDUSNAMES';  //修改病历名称

+ 3 - 1
src/store/types/patInfo.js

@@ -1,3 +1,5 @@
 export const GET_PATIENT_MESSAGE = 'GET_PATIENT_MESSAGE'
 export const GET_HOSPITAL_MESSAGE = 'GET_HOSPITAL_MESSAGE'
-export const SETINITPATINFO = 'SET_INITPAT_INFO'
+export const SETINITPATINFO = 'SET_INITPAT_INFO'
+export const SETMEDICALNAME = 'SET_MEDICAL_NAME'
+export const CLEARMEDICALNAME = 'CLEAR_MEDICAL_NAME'