Parcourir la source

测试后修改

Your Name il y a 2 ans
Parent
commit
40e570890d

+ 4 - 2
src/components/DiagCalcShow.vue

@@ -119,12 +119,14 @@
       goPage() {
         let id = this.$route.query.id
         let role = this.$route.query.role
+        let show = this.$route.query.show
         if(role==2){
           // this.$router.push({'path':'/patcxsjline',query:{id:id}})
-          this.$router.push({'path':'/solutionpkline',query:{id:id}})
+          // this.$router.push({'path':'/solutionpkline',query:{id:id}})
+          this.$router.push({'path':'/pretraitcase',query:{id:id,show:show,role:role}})
         }else{
           // this.$router.push({'path':'/solutionpkline',query:{id:id}})
-          this.$router.push({'path':'/pretraitcase',query:{id:id}})
+          this.$router.push({'path':'/pretraitcase',query:{id:id,show:show,role:role}})
         }
       },
       getData(){

+ 1 - 1
src/components/PatCaseList.vue

@@ -55,7 +55,7 @@
         this.$router.push(path)
       },
       showDetail(id){
-        this.$router.push({"path":"diagcalcshow",query:{id:id}})
+        this.$router.push({"path":"diagcalcshow",query:{id:id,show:1}})
       },
       getData() {
         let id = this.$route.query.id

+ 1 - 1
src/components/PatInjectionList.vue

@@ -11,7 +11,7 @@
           <div class="listItem" style="background:#6DA2FE;color:#fff;">使用剂量</div>
         </div>
         <div class="listItemContainer" v-for="(item,index) in recordsList">
-          <div class="listItem" style="width:70%;">{{item.ctime}}</div>
+          <div class="listItem" style="width:70%;">{{item.zssjt0}}</div>
           <div class="listItem">{{item.mpro}}</div>
           <div class="listItem">{{item.mdose}}</div>
         </div>

+ 32 - 12
src/components/PreTraitCase.vue

@@ -5,29 +5,30 @@
       <div class="title">预防治疗参考方案</div>
       <div class="loginForm">
         <mt-field placeholder="请选择产品" class="inputDisable" disabled label="产品选择" v-model="form.ckmpro" @click.native="mproFlag=true;mfreqFlag=false;ckzsjlFlag=false">
-          <img src="../assets/images/down.png" alt="" width="16px">
+          <img v-if="!show" src="../assets/images/down.png" alt="" width="16px">
         </mt-field>
         <mt-field placeholder="请选择注射频次" class="inputDisable" disabled label="注射频次" v-model="form.ckmfreq" @click.native="mfreqFlag=true;mproFlag=false;ckzsjlFlag=false">
-          <img src="../assets/images/down.png" alt="" width="16px">
+          <img v-if="!show" src="../assets/images/down.png" alt="" width="16px">
         </mt-field>
-        <mt-field placeholder="请选择每次注射剂量IU" class="inputDisable" disabled label="次注射剂量(IU)" v-model="form.ckzsjl" @click.native="ckzsjlFlag=true;mproFlag=false;mfreqFlag=false">
-          <img src="../assets/images/down.png" alt="" width="16px">
+        <mt-field placeholder="请选择" class="inputDisable" disabled label="次注射剂量(IU)" v-model="form.ckzsjl" @click.native="ckzsjlFlag=true;mproFlag=false;mfreqFlag=false">
+          <img v-if="!show" src="../assets/images/down.png" alt="" width="16px">
         </mt-field>
       </div>
       <div class="footer">
+          <div class="jbbtn" @click="goPage(-1)">上一页</div>
         <div class="jbbtn" @click="submit">下一页</div>
       </div>
     </div>
-    <mt-picker @change="onValuesChange" v-if="mproFlag" :slots="slots" ref="sexPicker" class="sexPicker"
+    <mt-picker @change="onValuesChange" v-if="mproFlag && !show" :slots="slots" ref="sexPicker" class="sexPicker"
       :showToolbar="true">
       <div class="pickerConfirm" @click="mproFlag=false">确认</div>
     </mt-picker>
-    <mt-picker @change="onValuesChange1" v-if="mfreqFlag" :slots="slots1" ref="sexPicker1" class="sexPicker"
+    <mt-picker @change="onValuesChange1" v-if="mfreqFlag && !show" :slots="slots1" ref="sexPicker1" class="sexPicker"
       :showToolbar="true">
       <div class="pickerConfirm" @click="mfreqFlag=false">确认</div>
     </mt-picker>
-    <mt-picker @change="onValuesChange2" v-if="ckzsjlFlag" :slots="slots2" ref="sexPicker1" class="sexPicker"
-      :showToolbar="true">
+    <mt-picker @change="onValuesChange2" v-if="ckzsjlFlag && !show" :slots="slots2" ref="sexPicker1" class="sexPicker"
+      :showToolbar="true" @touchmove.native.stop.prevent>
       <div class="pickerConfirm" @click="ckzsjlFlag=false">确认</div>
     </mt-picker>
   </div>
@@ -53,6 +54,8 @@
         mproFlag: false,
         mfreqFlag: false,
         ckzsjlFlag: false,
+        caseInfo:{},
+        show:this.$route.query.show,
         slots: [{
           flex: 1,
           values: this.$const.mprolist,
@@ -74,7 +77,10 @@
       }
     },
     methods: {
-      goPage() {
+      goPage(path) {
+        if (path === -1) {
+          this.$router.go(-1)
+        }
         this.$router.push('/diagcalc')
       },
       onValuesChange(picker, values) {
@@ -121,19 +127,33 @@
           return
         }
         let id = this.$route.query.id
+        let role = this.$route.query.role
         let params = this.form
         params.id = id
         this.$api.editPatientCase(params).then(res=>{
           if(!res.data.code){
-            this.$router.push({'path':'/solutionpkline',query:{id:id}})
+            this.$router.push({'path':'/solutionpkline',query:{id:id,role:role}})
           }
         })
       }
-    }
+    },
+    created() {
+      let id = this.$route.query.id
+        this.$api.getPatientCaseInfo({id:id}).then(res=>{
+          if(!res.data.code){
+            this.form = res.data.data
+          }
+        })
+    },
   }
 
 </script>
 
 <style scoped lang="scss">
-
+  .footer {
+    display: flex;
+  }
+.jbbtn {
+    width: 42%;
+  }
 </style>

+ 1 - 1
src/components/ProCaseList.vue

@@ -50,7 +50,7 @@
         this.$router.push(path)
       },
       showDetail(id){
-        this.$router.push({'path':'/diagcalcshow',query:{id:id,role:2}})
+        this.$router.push({'path':'/diagcalcshow',query:{id:id,role:2,show:1}})
       },
       getData() {
         let id = this.$route.query.id

+ 26 - 11
src/components/SolutionPkLine.vue

@@ -4,7 +4,7 @@
     <div class="content">
       <div class="title">预防治疗参考方案一周活性变化</div>
       <div class="PKLineForm">
-        <v-chart :option="pklineOption" style="height: 650px">
+        <v-chart :option="pklineOption" style="height: 350px">
         </v-chart>
         <div class="tuli">
             <p style="color:#6594D5;"> —活性</p>
@@ -64,13 +64,19 @@
           yAxis: [{
             type: 'value',
             axisLabel: {
-              // formatter: '{value}.00'
+              // formatter: (v,i)=>{
+              //   if (i <= 10) {
+              //     v = i;
+              //   }else{
+              //     v=v/5
+              //   }
+                
+              //   return v
+              // }
             },
-            max:100,
-            min:0,
-            // splitNumer:20,
-            // scale : true,
-            interval:4
+            // max:100,
+            // min:0,
+            // interval:1
           }],
           series: [{
             name: '最低气温',
@@ -78,22 +84,26 @@
             showSymbol: false,
             data: [],
             markLine: {
+              symbol: ['none', 'none'],
+              label:{
+                  formatter: '{b}'
+                },
               data: [{
-                  name: '平均值',
+                  name: '1',
                   yAxis: 1,
                   lineStyle: {
                         color: '#ab6cef'
                   }
                 },
                 {
-                  name: '平均值',
+                  name: '3',
                   yAxis: 3,
                   lineStyle: {
                         color: '#4caf50'
                   }
                 },
                 {
-                  name: '平均值',
+                  name: '5',
                   yAxis: 5,
                   lineStyle: {
                         color: '#AC4C44'
@@ -107,10 +117,15 @@
     },
     methods: {
       goPage(path) {
+        let role = this.$route.query.role
         if (path === -1) {
           this.$router.go(-1)
         }
-        this.$router.push(path)
+        if(role==2){
+          this.$router.push("/patindex")
+        }else{
+          this.$router.push(path)
+        }
       },
       getData() {
         let id = this.$route.query.id