Your Name 2 роки тому
батько
коміт
e33d8547c8

+ 38 - 10
src/components/PatCaseList.vue

@@ -4,9 +4,15 @@
     <div class="content">
       <div class="title">病例管理</div>
       <div class="searchinput">
-        <mt-field class="searchInput" placeholder="请输入患者姓名" v-model="queryForm.name">
-          <mt-button type="primary" size="small" @click="getData()">搜索</mt-button>
+        <mt-field v-if="selected==1" class="searchInput" placeholder="请输入医生姓名" v-model="queryForm.name">
+          <mt-button type="primary" size="small" @click="get_doctor_list()">搜索</mt-button>
         </mt-field>
+        <mt-field v-if="selected==2" class="searchInput" placeholder="请输入患者姓名" v-model="queryForm.name">
+          <mt-button type="primary" size="small" @click="get_patient_list()">搜索</mt-button>
+        </mt-field>
+        <mt-field v-if="selected==3" class="searchInput" placeholder="请输入患者姓名" v-model="queryForm.name">
+            <mt-button type="primary" size="small" @click="getPatientCaseList()">搜索</mt-button>
+          </mt-field>
       </div>
       <!-- <mt-navbar v-model="selected">
         <mt-tab-item id="1"><span @click.prevent="tabChange">医生</span></mt-tab-item>
@@ -47,16 +53,17 @@
             height="32px">
         </div>
       </div>
-      <div class="patCaseForm baseInfo" v-for="(item,index) in caseList" v-if="selected=='3'">
-        <mt-cell :title="'姓名:'+item.name" :value="'ID:'+item.code"></mt-cell>
-        <mt-cell :title="'年龄:'+item.age" :value="'性别:'+item.sex"></mt-cell>
+      <div class="patCaseForm baseInfo" v-if="selected=='3' && caseList.length>0" style="padding-bottom:1rem;">
+        <mt-cell :title="'姓名:'+caseList[0].name" :value="'ID:'+caseList[0].code"></mt-cell>
+        <mt-cell :title="'年龄:'+caseList[0].age" :value="'性别:'+caseList[0].sex"></mt-cell>
       </div>
       <!-- 方案 -->
       <div class="patCaseForm baseInfo" v-for="(item,index) in caseList" v-if="selected=='3'">
         <!-- <mt-cell :title="'姓名:'+item.name" :value="'ID:'+item.code"></mt-cell>
         <mt-cell :title="'年龄:'+item.age" :value="'性别:'+item.sex"></mt-cell> -->
-        <mt-cell :title="'使用产品:'+item.ckmpro" :value="'注射剂量:'+item.ckzsjl"></mt-cell>
-        <mt-cell :title="'注射频次:'+item.ckmfreq"></mt-cell>
+        <mt-cell :title="'产品:'+item.ckmpro" :value="'剂量(IU):'+item.ckzsjl"></mt-cell>
+        <mt-cell :title="'频次:'+item.ckmfreq" :value="'体重(KG):'+item.bltz"></mt-cell>
+        <mt-cell :title="'方案医生:'+item.doctor_name"></mt-cell>
         <div style="font-size:1rem;text-align:left;padding-left:10px;">
           方案时间:{{item.ctime}}
           <mt-button type="primary" size="small" @click="showDetail(item.id)">详情</mt-button>
@@ -145,31 +152,41 @@
           }
         })
       },
-      getData() {
-        let id = this.$route.query.id
+      getPatientCaseList(){
         this.$api.getPatientCaseList(this.queryForm).then(res => {
           if (!res.data.code) {
             this.caseList = res.data.data.list
           }
         })
+      },
+      get_doctor_list(){
         this.$api.get_doctor_list(this.queryForm).then(res=>{
           if(!res.data.code){
             this.doctorList = res.data.data.list
           }
         })
+      },
+      get_patient_list(){
         this.$api.get_patient_list(this.queryForm).then(res=>{
           if(!res.data.code){
             this.patientList = res.data.data.list
           }
         })
       },
+      getData() {
+        let id = this.$route.query.id
+        this.getPatientCaseList()
+        this.get_doctor_list()
+        this.get_patient_list()
+      },
       edit(item){
         this.$router.push({
           path: "diagcalc",
           query: {
             id: item.id,
             patid:item.patient_id,
-            back:"patcaselist"
+            back:"patcaselist",
+            edit:1
           }
         })
       },
@@ -194,6 +211,7 @@
     width: 94%;
     margin: auto;
     margin-bottom: 0.5rem;
+    margin-top:10px;
 
     .mint-search {
       height: 100%;
@@ -218,6 +236,7 @@
     padding: 1rem;
     border-radius: 5px;
     position: relative;
+    padding-bottom:2rem;
 
     .mint-button--small {
       height: 1.6rem;
@@ -258,6 +277,9 @@
   .container {
     height: 100vh;
     overflow-y: scroll;
+    .content{
+      margin-top:1rem;
+    }
   }
 
   .diagShowForm {
@@ -323,5 +345,11 @@
       color:#26a2ff;
     }
   }
+  /deep/ .mint-cell-value{
+    color:#000;
+  }
+  /deep/ .mint-cell:last-child{
+    background-image: none;
+  }
 
 </style>

+ 36 - 8
src/components/PatIndex.vue

@@ -24,9 +24,9 @@
                   ></img>
                 <img v-if="latestCase.FVIII>=1 && latestCase.FVIII<=3" class="ratioBg3" src="../assets/images/1-3.png"
                   width="100%"></img>
-                <img v-if="latestCase.FVIII>=3 && latestCase.FVIII<=5" class="ratioBg3" src="../assets/images/3-5.png"
+                <img v-if="latestCase.FVIII>3 && latestCase.FVIII<=5" class="ratioBg3" src="../assets/images/3-5.png"
                   width="100%"></img>
-                <img v-if="latestCase.FVIII>=5 && latestCase.FVIII<=15" class="ratioBg3" src="../assets/images/5-15.png"
+                <img v-if="latestCase.FVIII>5 && latestCase.FVIII<=15" class="ratioBg3" src="../assets/images/5-15.png"
                   width="100%"></img>
                 <img v-if="latestCase.FVIII>15" class="ratioBg3" src="../assets/images/_15.png"
                   width="100%"></img>
@@ -38,7 +38,7 @@
                 <div class="rowfont" style="
                     margin:5px 0px;color:red;
                     font-weight:bold;font-size:5.2rem;
-                    text-align: center;height: 130px;line-height: 130px;">
+                    text-align: center;height: 100px;line-height: 100px;">
                   {{latestCase.FVIII}}%</div>
                 <!-- <div class="rowfont">参考方案</div>
                 <div class="rowfont">1.产品:{{latestCase.ckmpro}}</div>
@@ -46,12 +46,40 @@
                 <div class="rowfont">3.频次:{{latestCase.ckmfreq}}</div>
                 <div class="rowfont">本结果仅供参考,</div>
                 <div class="rowfont">具体治疗方案请遵医嘱执行</div> -->
-                <div>
-                  <div class="rowfont" style="font-weight:bold;font-size:1.4rem;color:#3B4070;">
+                <div v-if="latestCase.FVIII < 1">
+                  <div class="rowfont" style="font-weight:bold;font-size:1.4rem;color:#3B4070;margin-bottom:5px;">
                     < 1% <sup>2、3</sup>
                   </div>
                   <div class="rowfont" style="font-weight:bold;font-size:1.4rem;color:#3B4070;">建议咨询医生</div>
                 </div>
+                <div v-if="latestCase.FVIII >= 1 && latestCase.FVIII <= 3">
+                  <div class="rowfont" style="font-weight:bold;font-size:1.4rem;color:#3B4070;margin-bottom:5px;">
+                    1% ~ 3% <sup>2、3</sup>
+                  </div>
+                  <div class="rowfont" style="font-weight:bold;font-size:1.2rem;color:#3B4070;">适宜无风险活动</div>
+                  <div class="rowfont" style="font-weight:bold;font-size:1.2rem;color:#3B4070;">(如看书、看电视、家务等)</div>
+                </div>
+                <div v-if="latestCase.FVIII > 3 && latestCase.FVIII <= 5">
+                  <div class="rowfont" style="font-weight:bold;font-size:1.4rem;color:#3B4070;margin-bottom:5px;">
+                    3% ~ 5% <sup>2、3</sup>
+                  </div>
+                  <div class="rowfont" style="font-weight:bold;font-size:1.2rem;color:#3B4070;">适宜低风险活动</div>
+                  <div class="rowfont" style="font-weight:bold;font-size:1.2rem;color:#3B4070;">(如散步、慢跑、无对抗运动等)</div>
+                </div>
+                <div v-if="latestCase.FVIII > 5 && latestCase.FVIII <= 15">
+                  <div class="rowfont" style="font-weight:bold;font-size:1.4rem;color:#3B4070;margin-bottom:5px;">
+                    5%~15% <sup>2、3</sup>
+                  </div>
+                  <div class="rowfont" style="font-weight:bold;font-size:1.2rem;color:#3B4070;">适中风险活动</div>
+                  <div class="rowfont" style="font-weight:bold;font-size:1.2rem;color:#3B4070;">(如爬山、骑行、球类运动等)</div>
+                </div>
+                <div v-if="latestCase.FVIII > 15">
+                  <div class="rowfont" style="font-weight:bold;font-size:1.4rem;color:#3B4070;margin-bottom:5px;">
+                    5%~15% <sup>2、3</sup>
+                  </div>
+                  <div class="rowfont" style="font-weight:bold;font-size:1.2rem;color:#3B4070;">适高风险活动</div>
+                  <div class="rowfont" style="font-weight:bold;font-size:1.2rem;color:#3B4070;">(如滑雪、滑冰、滑板等)</div>
+                </div>
               </div>
             </div>
           </div>
@@ -132,7 +160,7 @@
               if (!res.data.code) {
                 this.latestCase = res.data.data
                 this.ratioHeight = 216 / 100 * this.latestCase.FVIII
-                this.latestCase.FVIII = 16
+                this.latestCase.FVIII = 10
               }
             })
           }
@@ -216,11 +244,11 @@
 
       .right {
         left: 30%;
-        width: 50%;
+        width: 65%;
       }
 
       .left {
-        width: 40%;
+        width: 35%;
         margin-top: 10px;
         position: relative;
         overflow: hidden;

+ 7 - 0
src/components/SolutionPkLine.vue

@@ -131,6 +131,13 @@
                     color: '#AC4C44'
                   }
                 },
+                {
+                  name: '15',
+                  yAxis: 15,
+                  lineStyle: {
+                    color: '#AC4C44'
+                  }
+                },
                 {
                   // name: '12',
                   xAxis: 2,

+ 2 - 2
src/utils/constant.js

@@ -13,7 +13,7 @@ function genCkZSJL(){
 }
 export default{
     mprolist:['人血FVIII', '百因止', '科跃奇', '诺易', '任捷', '重凝贝', '安佳因', '其他'],
-    mfreq:["每周1次","每周2次","每周3次","每2天1次","每天1次","每3天1次"],
-    zspc:["每周1次","每周2次","每周3次","每2天1次","每天1次","每3天1次"],
+    mfreq:["每周1次","每周2次","每周3次","每天1次","每2天1次","每3天1次"],
+    zspc:["每周1次","每周2次","每周3次","每天1次","每2天1次","每3天1次"],
     ckzsjl:genCkZSJL()
 }