Browse Source

修改相关bug

csx 5 years ago
parent
commit
28a2bd24fd

+ 1 - 1
build/cdn.json View File

@@ -1,3 +1,3 @@
1 1
 {
2
-  "version": "1.0.104"
2
+  "version": "1.0.105"
3 3
 }

+ 4 - 2
config/dev.env.js View File

@@ -4,7 +4,9 @@ const prodEnv = require('./prod.env')
4 4
 
5 5
 module.exports = merge(prodEnv, {
6 6
   NODE_ENV: '"development"',
7
-  // BASE_API: '"http://api.xt.test.sgjyun.com"'
7
+  BASE_API: '"http://api.xt.test.sgjyun.com"'
8 8
    //http://api.xt.test.sgjyun.com http://localhost:9529
9
-   BASE_API: '"http://api.xt.test.sgjyun.com"'
9
+   // BASE_API: '"http://api.xt.test.sgjyun.com"'
10
+  // BASE_API: '"https://api.xt.kuyicloud.com"'
11
+
10 12
 })

+ 47 - 6
src/pages/main/dialog/PrescriptionDialog.vue View File

@@ -64,16 +64,22 @@
64 64
         <div class="item" v-if="anticoagulant.shouji != -1&&isShow('首剂')">
65 65
           <label class="name" for="sj">首剂({{anticoagulant.shouji_unit}})</label>
66 66
           <div class="content">
67
-            <input type="tel" @focus="inputFocus" id="sj" v-model="dialysisPrescription.anticoagulant_shouji"
67
+            <input v-if="dialysisPrescription.anticoagulant != 1" type="tel" @focus="inputFocus" id="sj" v-model="dialysisPrescription.anticoagulant_shouji"
68
+                   :disabled="anticoagulant.shouji==1?false:true"/>
69
+
70
+            <input v-if="dialysisPrescription.anticoagulant == 1" type="tel" @focus="inputFocus" id="sj" v-model="dialysisPrescription.no_anticoagulant_shouji"
68 71
                    :disabled="anticoagulant.shouji==1?false:true"/>
69 72
           </div>
70 73
         </div>
71 74
         <div class="item" v-if="anticoagulant.weichi != -1&&isShow('维持')">
72 75
           <label class="name" for="wz">维持({{anticoagulant.weichi_unit}})</label>
73 76
           <div class="content">
74
-            <input type="tel" @focus="inputFocus" id="wz" class="inputBox"
77
+            <input v-if="dialysisPrescription.anticoagulant != 1" type="tel" @focus="inputFocus" id="wz" class="inputBox"
75 78
                    v-model="dialysisPrescription.anticoagulant_weichi"
76 79
                    :disabled="anticoagulant.weichi==1?false:true">
80
+
81
+            <input v-if="dialysisPrescription.anticoagulant == 1" type="tel" @focus="inputFocus" id="sj" v-model="dialysisPrescription.no_anticoagulant_weichi"
82
+                   :disabled="anticoagulant.shouji==1?false:true"/>
77 83
           </div>
78 84
         </div>
79 85
         <div class="item" v-if="anticoagulant.zongliang != -1 && isShow('总量')">
@@ -85,9 +91,12 @@
85 91
 
86 92
 
87 93
           <div class="content">
88
-            <input type="tel" @focus="inputFocus" id="zl" class="inputBox"
94
+            <input v-if="dialysisPrescription.anticoagulant != 1" type="tel" @focus="inputFocus" id="zl" class="inputBox"
89 95
                    v-model="dialysisPrescription.anticoagulant_zongliang"
90 96
                    :disabled="anticoagulant.zongliang==1?false:true">
97
+
98
+            <input v-if="dialysisPrescription.anticoagulant == 1" type="tel" @focus="inputFocus" id="sj" v-model="dialysisPrescription.no_anticoagulant_zongliang"
99
+                   :disabled="anticoagulant.shouji==1?false:true"/>
91 100
           </div>
92 101
         </div>
93 102
 
@@ -478,6 +487,12 @@
478 487
           anticoagulant_gaimingcheng: '',
479 488
           anticoagulant_gaijiliang: '',
480 489
           dialyzer_perfusion_apparatus: '',
490
+
491
+          no_anticoagulant_shouji: '0',
492
+          no_anticoagulant_weichi: '0',
493
+          no_anticoagulant_zongliang: '0',
494
+
495
+
481 496
           kalium: '',
482 497
           sodium: '',
483 498
           calcium: '',
@@ -998,6 +1013,23 @@
998 1013
                   }
999 1014
                 }
1000 1015
               }
1016
+
1017
+              console.log(this.dialysisPrescription.dialysis_duration_hour)
1018
+              console.log(this.dialysisPrescription.dialysis_duration_minute)
1019
+              console.log(this.dialysisPrescription.dialysis_duration_hour == '')
1020
+              console.log(this.dialysisPrescription.dialysis_duration_minute == 0)
1021
+
1022
+
1023
+
1024
+              if (this.dialysisPrescription.dialysis_duration_hour === '' || this.dialysisPrescription.dialysis_duration_minute === '') {
1025
+                this.timeValue = ''
1026
+                this.time = '03:00'
1027
+
1028
+              } else {
1029
+
1030
+                this.timeValue = this.dialysisPrescription.dialysis_duration_hour + '小时' + this.dialysisPrescription.dialysis_duration_minute + '分钟'
1031
+                this.time = (this.dialysisPrescription.dialysis_duration_hour > 10 ? this.dialysisPrescription.dialysis_duration_hour : '0' + this.dialysisPrescription.dialysis_duration_hour) + ':' + (this.dialysisPrescription.dialysis_duration_minute > 10 ? this.dialysisPrescription.dialysis_duration_minute : '0' + this.dialysisPrescription.dialysis_duration_minute)
1032
+              }
1001 1033
             })
1002 1034
             break
1003 1035
           case 2:
@@ -1120,6 +1152,11 @@
1120 1152
         return anticoagulan_name
1121 1153
       },
1122 1154
       commitInfo: function () {
1155
+        if(this.dialysisPrescription.anticoagulant == 1){
1156
+          this.dialysisPrescription.anticoagulant_weichi = '0'
1157
+          this.dialysisPrescription.anticoagulant_shouji = '0'
1158
+          this.dialysisPrescription.anticoagulant_zongliang = '0'
1159
+        }
1123 1160
         if (this.$store.getters.user.template_info.template_id == 6) {
1124 1161
           if (this.dialysisPrescription.mode_id == 2) {
1125 1162
             if (this.dialysisPrescription.displace_liqui_part == 0 || this.dialysisPrescription.displace_liqui_part == -2 || this.dialysisPrescription.displace_liqui_value == 0 || this.dialysisPrescription.displace_liqui_value == '') {
@@ -1416,7 +1453,7 @@
1416 1453
         if (this.$store.getters.user.template_info.template_id == 6) {
1417 1454
           if (this.dialysisPrescription.mode_id == 2) {
1418 1455
             if (this.dialysisPrescription.displace_liqui_part == 0 || this.dialysisPrescription.displace_liqui_part == -2 || this.dialysisPrescription.displace_liqui_value == 0 || this.dialysisPrescription.displace_liqui_value == '') {
1419
-              Toast.fail('HDF模式下置换方式和置换量不能为空!')
1456
+              Toast.fail('HDF模式下置换方式和置换液总量不能为空!')
1420 1457
               return
1421 1458
             }
1422 1459
           }
@@ -1906,11 +1943,15 @@
1906 1943
         }
1907 1944
       } else if (this.solution_prop != null && typeof this.solution_prop.id != 'undefined' && this.solution_prop.id) {
1908 1945
         for (const key in this.solution_prop) {
1909
-          this.dialysisPrescription[key] = this.solution_prop[key]
1946
+          if(key != "target_ultrafiltration") {
1947
+            this.dialysisPrescription[key] = this.solution_prop[key]
1948
+          }
1910 1949
         }
1911 1950
       } else if (this.last_prescription != null && typeof this.last_prescription.id != 'undefined' && this.last_prescription.id) {
1912 1951
         for (const key in this.last_prescription) {
1913
-          this.dialysisPrescription[key] = this.last_prescription[key]
1952
+          if(key != "target_ultrafiltration") {
1953
+            this.dialysisPrescription[key] = this.last_prescription[key]
1954
+          }
1914 1955
         }
1915 1956
       } else {
1916 1957
         this.dialysisPrescription.mode_id = this.schedual.mode_id

+ 16 - 19
src/pages/main/dialog/TreatmentDialog.vue View File

@@ -25,7 +25,7 @@
25 25
                   <el-option v-for="(s, index) in summary" :label="s.text" :value="s.value"
26 26
                              :key="index"></el-option>
27 27
                 </el-select> -->
28
-                
28
+
29 29
               <el-input readonly v-model="dialysisSummary.summaryContentSelect" placeholder="请选择" @focus="showSubMenu('summary')" ></el-input>
30 30
 
31 31
               </el-form-item>
@@ -39,7 +39,7 @@
39 39
           </div> -->
40 40
         </div>
41 41
     </div>
42
-    
42
+
43 43
     <check-box-sub-menu :visibility="visibility" v-on:menu-cancle="menuCancle" v-on:menu-comfirm="menuComfirm" :propsForm="propForm"></check-box-sub-menu>
44 44
   </div>
45 45
 </template>
@@ -55,7 +55,7 @@ export default {
55 55
   data() {
56 56
     return {
57 57
       isShowDialog:true,
58
-      
58
+
59 59
       visibility: false,
60 60
       propForm: {
61 61
         title: '',
@@ -138,20 +138,17 @@ export default {
138 138
     // this.patient.id = this.patient_prop.id
139 139
 
140 140
     if (this.record != null && this.record.id != '') {
141
-      // for (const key in this.record) {
142
-      //   this.dialysisSummary[key] = this.record[key];
143
-      // }
144
-      // if(this.record.mission != 'undefined'){
145
-      //   this.dialysisSummary.propagandaAndEducationContent = this.record.mission
146
-      // }
147
-      // if(this.record.dialysis_summary != 'undefined'){
148
-      //   this.dialysisSummary.summaryContent = this.record.dialysis_summary
149
-      // }
150
-
151
-
141
+      for (const key in this.record) {
142
+        this.dialysisSummary[key] = this.record[key];
143
+      }
144
+      if(this.record.mission != 'undefined'){
145
+        this.dialysisSummary.propagandaAndEducationContent = this.record.mission
146
+      }
147
+      if(this.record.dialysis_summary != 'undefined'){
148
+        this.dialysisSummary.summaryContent = this.record.dialysis_summary
149
+      }
152 150
     }
153
-    console.log(this.dialysisSummary.propagandaAndEducationContent)
154
-    console.log(this.dialysisSummary.summaryContent)
151
+
155 152
   },
156 153
   methods: {
157 154
     lastInputFocus: function(event) {
@@ -195,7 +192,7 @@ export default {
195 192
     menuCancle: function () {
196 193
         this.visibility = false
197 194
         this.isShowDialog = true
198
-    }, 
195
+    },
199 196
     menuComfirm: function (val) {
200 197
 
201 198
       this.visibility = false
@@ -219,7 +216,7 @@ export default {
219 216
           break
220 217
       }
221 218
 
222
-    }, 
219
+    },
223 220
 
224 221
     dialysisSummarySelectChange: function(values) {
225 222
       if(this.dialysisSummary.summaryContent == null){
@@ -302,7 +299,7 @@ export default {
302 299
         }
303 300
       }
304 301
   },
305
-  
302
+
306 303
   components: {
307 304
     CheckBoxSubMenu,
308 305
   },

+ 1 - 1
src/pages/main/dialog/modify_order/modify_order_form.vue View File

@@ -22,7 +22,7 @@
22 22
             </div>
23 23
             <div class="cell">
24 24
               <label>药品规格</label>
25
-              <input type="number" onclick="this.select()" class="inputBox" style="width:60%" v-model="order.advice_desc">
25
+              <input  onclick="this.select()" class="inputBox" style="width:60%" v-model="order.advice_desc">
26 26
               <input
27 27
                 type="text"
28 28
                 placeholder="单位"

+ 1 - 1
src/pages/main/dialog/new_order/order_form.vue View File

@@ -20,7 +20,7 @@
20 20
               <label>药品规格</label>
21 21
               <!--<input class="inputBox" style="width:62.5%" v-model="order.advice_desc">-->
22 22
 
23
-              <input type="number" class="inputBox" style="width:62.5%" v-model="order.advice_desc">
23
+              <input class="inputBox" style="width:62.5%" v-model="order.advice_desc">
24 24
               <input
25 25
                 type="text"
26 26
                 placeholder="单位"

+ 2 - 2
src/pages/main/template/DialysisPrintOrderSix.vue View File

@@ -445,9 +445,9 @@
445 445
                         <td height="35px" colspan="2" class="advice-name" style="padding-left:7px;" >
446 446
                           <span v-if="advice.parent_id > 0">---></span>
447 447
                           <span >{{advice.advice_name }}</span>
448
-                          <span>{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
448
+                          <span v-if="advice&&advice.advice_desc">({{advice.advice_desc}}{{advice.drug_spec_unit}})</span>
449 449
                           <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
450
-                          <!--<span  v-if="advice.single_dose != 0"> {{advice.single_dose}}{{advice.single_dose_unit}}</span>-->
450
+                          <span  v-if="advice.single_dose != 0"> {{advice.single_dose}}{{advice.single_dose_unit}}</span>
451 451
                           <span v-if="advice.parent_id == 0">{{advice.delivery_way}}</span>
452 452
                           <span v-if="advice.parent_id == 0">{{advice.execution_frequency}}</span>
453 453
                           <span v-if="advice.parent_id == 0 && advice.remark.length > 0" >({{advice.remark}})</span>

+ 6 - 1
src/pages/main/today/TodayTab.vue View File

@@ -201,7 +201,7 @@
201 201
     </van-popup>
202 202
 
203 203
     <van-popup title="治疗小结" v-model="menuList[9].showPopup" :overlay="true" :close-on-click-overlay="false">
204
-      <treatment-dialog :patient_prop="patient" :record="treatment_summary" @did_update="closeTreatmentOf"
204
+      <treatment-dialog :patient_prop="patient" :record="treatment_summary" @did_update="updateTreatmentOf"
205 205
                         @close="closeTreatmentOf" ref="treatment_dialog"></treatment-dialog>
206 206
     </van-popup>
207 207
 
@@ -1296,6 +1296,11 @@ import {parseTime} from '@/utils'
1296 1296
       if (assessment_after_dislysis != undefined) {
1297 1297
         this.assessment_after_dislysis = assessment_after_dislysis
1298 1298
       }
1299
+    },updateTreatmentOf:function(val){
1300
+      this.closeDialog(9)
1301
+      this.treatment_summary = val
1302
+
1303
+
1299 1304
     },
1300 1305
 
1301 1306
     closeTreatmentOf: function () {