فهرست منبع

Squashed commit of the following:

commit d6499d5ffb3dd05813a2ee53d733b1fde0665a97
Merge: 2a9ae58 0d787a3
Author: liucf <liucf@zjlantone.com>
Date:   Tue Apr 30 14:56:47 2019 +0800

    Merge branch 'ChronicMag' of http://192.168.2.236:10080/zhouna/newICSS into ChronicMag

commit 2a9ae58a665feac264d4b047e1fb4329bffbf33e
Author: liucf <liucf@zjlantone.com>
Date:   Tue Apr 30 14:56:36 2019 +0800

    量表项显示分数;未点计算直接关闭量表保存之前的选中项;量表结果同步

commit 0d787a315235c3d60c6bef05ac6404acda6be879
Author: zhouna <zhouna@zjlantone.com>
Date:   Tue Apr 30 14:48:13 2019 +0800

    查体展开bug修改1097

commit 3598f0386e32b1736ca5d986ed8a4dbb4837d8d8
Merge: dc138c4 e08b366
Author: zhouna <zhouna@zjlantone.com>
Date:   Tue Apr 30 14:26:13 2019 +0800

    Merge remote-tracking branch 'origin/ChronicMag' into ChronicMag

commit dc138c43658be0cf67569b993e2fbe1f480ec703
Author: zhouna <zhouna@zjlantone.com>
Date:   Tue Apr 30 14:26:04 2019 +0800

    样式修改

commit e08b366be2e796f71d46646f2de7229420e46c39
Merge: e7dbad6 01290a6
Author: zhangxc <zhangxc@zjlantone.com>
Date:   Tue Apr 30 13:56:36 2019 +0800

    Merge branch 'ChronicMag' of http://192.168.2.236:10080/zhouna/newICSS into ChronicMag

commit e7dbad60ebfcc0b8d70944dc2a8ab74550532b0f
Author: zhangxc <zhangxc@zjlantone.com>
Date:   Tue Apr 30 13:56:23 2019 +0800

    判断是否存在治疗方案添加历史病历容错

commit 18034574b6841b88ce5f8e29598df1a1fffeb41f
Author: zhouna <zhouna@zjlantone.com>
Date:   Tue Apr 30 13:27:30 2019 +0800

    推荐结果历史显示bug修改1107

commit 01290a66bab66b77e22a906c52ea04c6c18d49f8
Merge: a3b0f48 27eb150
Author: liucf <liucf@zjlantone.com>
Date:   Tue Apr 30 13:12:01 2019 +0800

    Merge branch 'ChronicMag' of http://192.168.2.236:10080/zhouna/newICSS into ChronicMag

commit a3b0f488434b5012ca9025b082cb720687e3393b
Author: liucf <liucf@zjlantone.com>
Date:   Tue Apr 30 13:11:52 2019 +0800

    历史病例点击颜色修改,主诉共用诊断历史病例

commit 27eb15092f711bc754d6a869baaa0ae9600bfec7
Merge: 1c16cce 29169ab
Author: zhangxc <zhangxc@zjlantone.com>
Date:   Tue Apr 30 11:39:23 2019 +0800

    Merge branch 'ChronicMag' of http://192.168.2.236:10080/zhouna/newICSS into ChronicMag

commit 1c16cce4bd94bb18a4fad453d0baabcf46c04757
Author: zhangxc <zhangxc@zjlantone.com>
Date:   Tue Apr 30 11:19:47 2019 +0800

    开单项显示到医嘱

commit 5b09301416bcec54d7af0cee7dfa846a1e72ad23
Author: zhangxc <zhangxc@zjlantone.com>
Date:   Tue Apr 30 11:19:37 2019 +0800

    修改核心指标静态信息类型

commit 29169ab80ae62aae61d7081a615691ba25999a31
Author: liucf <liucf@zjlantone.com>
Date:   Tue Apr 30 11:03:41 2019 +0800

    慢病bug修改

commit 757123ddc349b5857e812c358913517c4ae1a2f4
Merge: 05acdd4 7534d10
Author: Luolei <16657115156@163.com>
Date:   Mon Apr 29 15:00:48 2019 +0800

    Merge branch 'Chronic-ll' into ChronicMag

commit 7534d1002b2449b7826a8e405924dd5c0d8c8409
Author: Luolei <16657115156@163.com>
Date:   Mon Apr 29 14:57:13 2019 +0800

    彈窗可移動添加

commit 05acdd4c1baa4957fbaf9f8fb1881c9412166f58
Author: zhouna <zhouna@zjlantone.com>
Date:   Mon Apr 29 14:44:50 2019 +0800

    量表计算无结果提示

commit 84c5a28777a7f268d0e7a77298ecff1d8192bb3a
Merge: 09481b6 dd9204c
Author: zhouna <zhouna@zjlantone.com>
Date:   Mon Apr 29 13:47:46 2019 +0800

    Merge remote-tracking branch 'origin/ChronicMag' into ChronicMag

commit 09481b6bdaea5b66ccfac950d432f92f7b7776d7
Author: zhouna <zhouna@zjlantone.com>
Date:   Mon Apr 29 13:47:19 2019 +0800

    评估容错

commit dd9204c919b350dbd69f437dfc404b3edbdf9117
Author: zhangxc <zhangxc@zjlantone.com>
Date:   Mon Apr 29 13:31:49 2019 +0800

    治疗方案是否存在判断条件

commit f32a03ee9c77b50dfe4389e3682a7044c5b0b5de
Merge: 0fcb618 6b6ff32
Author: zhangxc <zhangxc@zjlantone.com>
Date:   Mon Apr 29 13:22:24 2019 +0800

    Merge branch 'ChronicMag' of http://192.168.2.236:10080/zhouna/newICSS into ChronicMag

commit 69fd5d61fd0a592b8f83c5fb3fb2a54768f89f41
Merge: 6a23ae1 d3f6e01
Author: zhouna <zhouna@zjlantone.com>
Date:   Mon Apr 29 13:22:06 2019 +0800

    Merge remote-tracking branch 'origin/dev/new1' into ChronicMag

commit 6a23ae1ae9fd07ed2e8200041ae72612455e4477
Merge: a3fb1eb 19fbb89
Author: zhouna <zhouna@zjlantone.com>
Date:   Mon Apr 29 13:21:58 2019 +0800

    Merge branch 'dev/new1' into ChronicMag

commit 0fcb6186e5139904bf19ad5b44bb3ec6bff67c45
Author: zhangxc <zhangxc@zjlantone.com>
Date:   Mon Apr 29 13:21:55 2019 +0800

    不良反应静态知识

commit a3fb1eba78caa297475c85f948326dc0d0d88c88
Merge: 7bcef57 6b6ff32
Author: zhouna <zhouna@zjlantone.com>
Date:   Mon Apr 29 13:18:17 2019 +0800

    Merge remote-tracking branch 'origin/ChronicMag' into ChronicMag

commit 7bcef571328c906461251340e933ecef9bea2a7a
Author: zhouna <zhouna@zjlantone.com>
Date:   Mon Apr 29 13:18:07 2019 +0800

    查体无模板报错bug修改

commit 6b6ff326a1434a3222e67ee1193fdc52541137e0
Author: liucf <liucf@zjlantone.com>
Date:   Mon Apr 29 11:35:58 2019 +0800

    Squashed commit of the following:

    commit 6332a2a78617b9399cb8584a3ae3a7492c5d230d
    Author: liucf <liucf@zjlantone.com>
    Date:   Mon Apr 29 11:27:20 2019 +0800

        历史病例接口无数据时逻辑处理

    commit bf091afd13dc29e7d123357f81dd23adfb141d97
    Author: liucf <liucf@zjlantone.com>
    Date:   Sun Apr 28 13:37:18 2019 +0800

        合并chronicMag分支

    commit ad43cd7703c9abd9218d39bc5ca2ecbc55c83565
    Author: liucf <liucf@zjlantone.com>
    Date:   Sun Apr 28 13:19:13 2019 +0800

        合并远程分支

    commit 1a61bc8860afd4be87a796593aa98daf25f38021
    Author: liucf <liucf@zjlantone.com>
    Date:   Fri Apr 26 15:34:04 2019 +0800

        右侧推送量表根据id展示结果,去掉index

    commit e9bb69c1eb062e1c8a3d7d75db2552ddd62fba3d
    Author: liucf <liucf@zjlantone.com>
    Date:   Fri Apr 26 14:21:35 2019 +0800

        合并远程分支

    commit 2b2d2395be20378bd90ece24d9364985a8ae4444
    Author: liucf <liucf@zjlantone.com>
    Date:   Fri Apr 26 14:06:36 2019 +0800

        量表容错处理

    commit ac70fb283eec5b0601898a419eea43e07053be3d
    Author: liucf <liucf@zjlantone.com>
    Date:   Fri Apr 26 13:25:44 2019 +0800

        合并远程分支

    commit f7c7a75edba7282049d51d0f9dae1ff3aeba9f7b
    Author: liucf <liucf@zjlantone.com>
    Date:   Fri Apr 26 11:42:05 2019 +0800

        解决量表计算时页面更新问题

    commit 269d9cfbed90b980935e3f949a2e75246308519e
    Author: liucf <liucf@zjlantone.com>
    Date:   Fri Apr 26 09:57:50 2019 +0800

        合并远程分支

    commit b0d8e931c7d945c53c5454e30e4a0f59e278f48b
    Author: liucf <liucf@zjlantone.com>
    Date:   Thu Apr 25 20:19:19 2019 +0800

        慢病诊断入口

    commit a5cb935038e2e63699d1f2f250322b759635eb82
    Author: liucf <liucf@zjlantone.com>
    Date:   Thu Apr 25 16:50:03 2019 +0800

        分组小计结果处理

    # Conflicts:
    #	src/components/DiagnosticList/index.jsx
    #	src/components/ScaleTable/index.jsx
    #	src/containers/AssessResult.js
    #	src/containers/DiagnosticList.js
    #	src/containers/MainSuit.js

commit 082b60e12126a46c18d088188c87e308061064d7
Author: zhangxc <zhangxc@zjlantone.com>
Date:   Sun Apr 28 17:22:07 2019 +0800

    修改右侧推送滚动条

# Conflicts:
#	src/components/CheckBody/index.jsx
#	src/components/ChronicInfo/index.jsx
#	src/components/DiagnosticList/index.jsx
liucf 6 سال پیش
والد
کامیت
bbe3e0ff00

+ 5 - 1
src/components/AssessResult/AssessHis/index.jsx

@@ -34,7 +34,11 @@ class AssessResultHis extends Component {
     const list = item.data&&item.data.rows;
     switch (+item.regionType){
       case 0:     //数据来源与右侧手动添加
-        return <ScaleItem title={name} data={wholeAssess} indexs={wholeIndexs} disabled={true}></ScaleItem>;
+        return <ScaleItem title={name}
+                          data={wholeAssess}
+                          indexs={wholeIndexs}
+                          disabled={true}
+                          isRecommend={item.isRecommend}></ScaleItem>;
       case 1:     //数据来源于大数据
         return <ChooseItem title={name} data={list} selecteds={chooseSelecteds&&chooseSelecteds[i]} disabled={true}></ChooseItem>;
       case 10:    //数据来源于后台

+ 3 - 3
src/components/AssessResult/ScaleItem/index.jsx

@@ -165,14 +165,14 @@ class ScaleItem extends Component {
 
           temp =<span className={style['scale']}
                       onClick={()=>this.handleShowScale(it.content,item.id)}>
-                        {scaleRes&&scaleRes.result?('结果:'+scaleRes.result.value+" "+scaleRes.result.text+' 【'+it.content.name+'】'):'【'+it.content.name+'】'}
+                        {scaleRes&&scaleRes.result?(' 【'+it.content.name+'】 结果:'+scaleRes.result.value+" "+scaleRes.result.text):'【'+it.content.name+'】'}
                         </span>;
         }else if(its.type==2){      //计算公式
           it=formulaData[formulaId]||deepClone(its);
-          const showRes = calcuResult[item.id]||it.content.result;
+          const showRes = calcuResult&&calcuResult[item.id]||it.content.result;
           const cresult = showRes&&showRes[1]&&showRes[1].text;
                     temp = <div className={style['results']}>
-                    <span>计算公式:</span>
+                    <span>计算公式结果:</span>
                     <span className={style["blue"]} onClick={this.showFormula.bind(this,item.id,it)}>{cresult?cresult:'请选择'}</span>
                     <img src={level1} />
                     <MiniToast title={it.content.name}

+ 1 - 1
src/components/AssessResult/index.jsx

@@ -32,7 +32,7 @@ class AssessResult extends Component {
   }
   componentWillMount(){
     //获取评估
-    this.props.getAssess();
+    this.props.getAssess(this.props.isRecommend);
   }
   handleScaleText(text){
       this.setState({

+ 1 - 1
src/components/AssessResult/index.less

@@ -152,7 +152,7 @@
   text-align: center;
   color: #fff;
   // background: #DBDBDB;
-  background: #DFEAFE;
+  background: #3B9ED0;
   border-radius: 4px;
   cursor: auto;
   margin-top: 15px;

+ 1 - 1
src/components/CheckBody/index.jsx

@@ -36,7 +36,7 @@ class CheckBody extends Component{
     const moreNum =data.length-[...data].reverse().findIndex((it)=>it.showInCheck)-1;//被隐藏的位置
     const moreText = filterDataArr([...saveText].splice(moreNum+1));     //被收起的标签中是否有有值得,有则不能再收起showMoreBtn?more:''
     const more = showAll?<span className={style['more']} onClick={this.showHide}>收起<img src={hideImg} /></span>:<span className={style['more']} onClick={this.showHide}>展开<img src={showImg} /></span>;
-    const showMoreBtn = (data.length>moreNum&&!data[0].full)&&!moreText;
+    const showMoreBtn = data.length>config.showCheckNum&&(data.length>moreNum&&!data[0].full)&&!moreText;
     let showArray = data.filter((it)=>{
       if(it.showInCheck)
         return it;

+ 2 - 3
src/components/ChronicInfo/index.jsx

@@ -312,8 +312,7 @@ class ChronicInfo extends React.Component{
                           return <p>
                                 <span className={style["listName"]}>
                                   <i onClick={this.showTable.bind(this,it.content,v.id,i)}>{'【'+it.content.name+'】'}</i>
-                                  {formulaResult&&formulaResult[it.content.id]&&formulaResult[it.content.id].pIndex==i?<i>{'结果:'}{formulaResult[it.content.id].calcalculate&&formulaResult[it.content.id].calcalculate.result.value +' '+ formulaResult[it.content.id].calcalculate.result.text}</i>:''}
-                                  
+                                  {formulaResult&&formulaResult[it.content.id]?<i>{'结果:'}{formulaResult[it.content.id].calcalculate&&formulaResult[it.content.id].calcalculate.result.value +' '+ formulaResult[it.content.id].calcalculate.result.text}</i>:''}
                                 </span>
                                 {indexs[i]&&indexs[i].includes(j)?<span className={style["addResult"]}>
                                   <img src={added} />
@@ -463,7 +462,7 @@ class ChronicInfo extends React.Component{
       <span className={style['okBtn']} onClick={()=>this.handleSaveAssess()}>确定</span>
     </div>;
     const recFooter =<div className={style['footer']}>
-      <span className={style['okBtn']} onClick={()=>this.handleSaveRecommend()}>关闭</span>
+      <span className={style['okBtn']} onClick={()=>this.handleSaveRecommend()}>确定</span>
     </div>;
     const scaleFooter = <div className={style['footer']}>
       <span className={style['print']} onClick={this.onPrint}><img src={printIcon} alt=""/>打印</span>

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

@@ -168,7 +168,7 @@ class DiagnosticList extends Component {
                 <div className={style['diaglist-wrap']}>
                     {list && (list.length > 0) && list.map((item, index) => {
                         const hasTreat = item.treat && (item.treat.commonTreatment.content || item.treat.surgeryTreatment.content || item.treat.treatment.length>0 ||(item.adverseReactions&&item.adverseReactions.length > 0)
-                           || (item.drugHistory['慢病用药内容'] &&  item.drugHistory['慢病用药内容'].length > 0) || (item.drugHistory['普通病用药内容'] &&  item.drugHistory['普通病用药内容'].length > 0) ||item.follow) 
+                           || (item.drugHistory && item.drugHistory['慢病用药内容'] &&  item.drugHistory['慢病用药内容'].length > 0) || (item.drugHistory &&item.drugHistory['普通病用药内容'] &&  item.drugHistory['普通病用药内容'].length > 0) ||item.follow) 
                         // const hasTreat= true;
                         return (<div draggable={true} className={style['diag-box'] + ' clearfix'}  key={item.id} >
                                     {index === 0 ? '' : <span className={style['diag-up']} onClick={() => {this.upDiagnostic(index)}}><img className={style["diag-up"]} src={diagUp}/></span>}

+ 7 - 5
src/components/ScaleTable/index.jsx

@@ -118,7 +118,7 @@ class ScaleTable extends React.Component{
   }
 
   handleFormula(data){//得分计算
-    const {tableId,getResult,parentId,scaleInfo,parentIndex} = this.props; 
+    const {tableId,parentId,scaleInfo,parentIndex} = this.props; 
     const {valueData} = this.state; 
     this.setState({
       start:true
@@ -178,14 +178,16 @@ class ScaleTable extends React.Component{
   }
   componentWillUnmount(){
     // 储存计算结果和选择后的data
-    const {tableId,getResult,parentId,parentIndex,scaleInfo} = this.props; 
+    const {tableId,getResult,parentId,parentIndex,scaleInfo,saveScaleData} = this.props; 
     const {valueData,scaleResult1} = this.state; 
     // 替换表格内容
     let allDatas = scaleInfo[tableId]?JSON.parse(JSON.stringify(scaleInfo[tableId])):'' ;
     if(allDatas){
       allDatas[1].content = JSON.stringify(valueData);
+      // 需求:未点计算,直接点确定、关闭也保存选中数据 4-30
+      saveScaleData&&saveScaleData({id:tableId,data:allDatas});
     }
-     
+    
      if(scaleResult1){
       const params = {
         type:1,
@@ -193,7 +195,7 @@ class ScaleTable extends React.Component{
         id:tableId,
         pIndex:parentIndex
       }
-      getResult&&getResult({params,allDatas});
+      getResult&&getResult(params);
      }  
   }
   getContent(){ 
@@ -213,7 +215,7 @@ class ScaleTable extends React.Component{
                               <p className={style['miniName']}>{item.name}</p>
                               {item.details&&item.details.map((vv,ii)=>{
                                 return <div className={style['item']}>
-                                        <Radio label={vv.detailName}
+                                        <Radio label={vv.detailName+'('+vv.score+')'}
                                            isSelect={vv.select==1||selecteds[item.name]==vv.detailName}
                                            handleClick={this.handleRadio.bind(this,v.groupName,item.name,vv)}>
                                         </Radio>

+ 13 - 1
src/containers/AssessResult.js

@@ -41,7 +41,19 @@ function mapStateToProps(state) {
 
 function mapDispatchToProps(dispatch) {
   return {
-    getAssess(){        //获取评估内容数据
+    getAssess(isRecommend){        //获取评估内容数据
+      if(isRecommend){
+        const data = {
+          regionName: "整体评估",
+          regionType: "0",
+          isRecommend:true
+        };
+        dispatch({
+          type:SET_ASSESS_DATA,
+          data:[data]
+        });
+        return;
+      }
       dispatch(getAssessData()).then((res)=>{
         if(res.data.code=='0'){
           dispatch({

+ 9 - 9
src/containers/ScaleTable.js

@@ -3,7 +3,7 @@ import ScaleTable from '@components/ScaleTable';
 import {getFormulaResult} from '@store/async-actions/fetchModules.js';
 import {SET_SCALE_INFO,SAVE_TABLE_RESULT} from '@store/types/pushMessage';
 
-function mapStateToProps (state){//console.log(state);
+function mapStateToProps (state){
   return {
     scaleInfo: state.pushMessage.scaleInfo,//量表内容
     formulaResult:state.pushMessage.formulaResult //计算结果
@@ -13,17 +13,17 @@ function mapStateToProps (state){//console.log(state);
 function mapDispatchToProps (dispatch){
   return {
     getResult(obj){//计算结果
-      const {params,allDatas} = obj;
-      // dispatch(getFormulaResult(params));
       dispatch({
-        type:SET_SCALE_INFO,
-        data:allDatas,
-        id:params.id //量表id
+        type:SAVE_TABLE_RESULT,
+        id:obj.id,  //量表id
+        data:Object.assign({},obj.data,{pIndex:obj.pIndex})
       })
+    },
+    saveScaleData(obj){//储存表格数据
       dispatch({
-        type:SAVE_TABLE_RESULT,
-        id:params.id,  //量表id
-        data:Object.assign({},params.data,{pIndex:params.pIndex})
+        type:SET_SCALE_INFO,
+        data:obj.data,
+        id:obj.id //量表id
       })
     }
   }