csx 5 years ago
parent
commit
12b4a9e953

+ 1 - 1
build/cdn.json View File

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

+ 3 - 3
src/pages/main/dialog/ComputerDialog.vue View File

@@ -48,7 +48,7 @@
48 48
           </div>
49 49
         </div>
50 50
 
51
-        
51
+
52 52
 
53 53
 
54 54
         <div class="perform">
@@ -134,7 +134,7 @@
134 134
       }
135 135
     },
136 136
     created () {
137
-    
137
+
138 138
       this.template_id = this.$store.getters.user.template_info.template_id;
139 139
       var date = this.$route.query && this.$route.query.date
140 140
       date *= 1000
@@ -157,7 +157,7 @@
157 157
       if (this.puncture_nurse_id == 0) {
158 158
         this.puncture_nurse_id = this.$store.getters.user.user.id
159 159
       }
160
-      
160
+
161 161
       // var beds = []
162 162
       // for (let index = 0; index < this.device_numbers.length; index++) {
163 163
       //   const device_number = this.device_numbers[index]

+ 2 - 1
src/pages/main/dialog/PlaneDialog.vue View File

@@ -294,7 +294,8 @@
294 294
         console.log(this.$store.getters.user.user.id)
295 295
 
296 296
       }
297
-
297
+      // 212m3k12kl3nm123lk12nl3kk123sasasassaasasasdasdsadas
298
+      //sdsadsadasdasdasdassss
298 299
     }
299 300
   }
300 301
 </script>

+ 50 - 38
src/pages/main/dialog/PrescriptionDialog.vue View File

@@ -66,7 +66,7 @@
66 66
                    :disabled="anticoagulant.shouji==1?false:true"/>
67 67
 
68 68
             <input v-if="dialysisPrescription.anticoagulant == 1" type="tel" @focus="inputFocus" id="sj" v-model="dialysisPrescription.no_anticoagulant_shouji"
69
-                   :disabled="anticoagulant.shouji==1?false:true"/>
69
+                   disabled="true"/>
70 70
           </div>
71 71
         </div>
72 72
         <div class="item" v-if="anticoagulant.weichi != -1&&isShow('维持')">
@@ -77,7 +77,7 @@
77 77
                    :disabled="anticoagulant.weichi==1?false:true">
78 78
 
79 79
             <input v-if="dialysisPrescription.anticoagulant == 1" type="tel" @focus="inputFocus" id="sj" v-model="dialysisPrescription.no_anticoagulant_weichi"
80
-                   :disabled="anticoagulant.shouji==1?false:true"/>
80
+                   disabled="true"/>
81 81
           </div>
82 82
         </div>
83 83
         <div class="item" v-if="anticoagulant.zongliang != -1 && isShow('总量')">
@@ -94,12 +94,12 @@
94 94
                    :disabled="anticoagulant.zongliang==1?false:true">
95 95
 
96 96
             <input v-if="dialysisPrescription.anticoagulant == 1" type="tel" @focus="inputFocus" id="sj" v-model="dialysisPrescription.no_anticoagulant_zongliang"
97
-                   :disabled="anticoagulant.shouji==1?false:true"/>
97
+                   disabled="true"/>
98 98
           </div>
99 99
         </div>
100 100
 
101 101
         <div class="item" v-if="anticoagulant.gaimingcheng != -1 && isShow('钙名称')">
102
-          <label class="name" for="g">钙名称({{anticoagulant.gaimingcheng_unit}})</label>
102
+          <label class="name" for="g">钙名称</label>
103 103
           <div class="content">
104 104
             <input type="text" id="g" class="inputBox" v-model="dialysisPrescription.anticoagulant_gaimingcheng"
105 105
                    :disabled="anticoagulant.gaimingcheng==1?false:true">
@@ -107,10 +107,10 @@
107 107
         </div>
108 108
 
109 109
         <div class="item" v-if="anticoagulant.gaijiliang != -1 && isShow('钙剂量')">
110
-          <label class="name" for="gjl">钙剂量</label>
110
+          <label class="name" for="gjl">钙剂量({{anticoagulant.gaimingcheng_unit}})</label>
111 111
           <div class="content">
112
-            <input type="text" id="gjl" class="inputBox" v-model="dialysisPrescription.anticoagulant_gaimingcheng"
113
-                   :disabled="anticoagulant.gaimingcheng==1?false:true">
112
+            <input type="text" id="gjl" class="inputBox" v-model="dialysisPrescription.anticoagulant_gaijiliang"
113
+                   :disabled="anticoagulant.gaijiliang==1?false:true">
114 114
           </div>
115 115
         </div>
116 116
         <!-- <div class="item">
@@ -346,6 +346,7 @@
346 346
   import CheckBoxSubMenu from './subMenu/checkBoxSubMenu'
347 347
   import MultipleSubMenu from './subMenu/multipleSubMenu'
348 348
   import {commitDialysisPrescription, CreateGroupAdvice, GetSolution, postSign, postSolution} from '@/api/dialysis'
349
+  import { calculateAnticoagulantZL} from '@/utils/tools'
349 350
 
350 351
   import {Toast} from 'vant'
351 352
   import {getDataConfig} from '@/utils/data'
@@ -441,6 +442,7 @@
441 442
         msgtip_visibility: false,
442 443
         time: '03:00',
443 444
         timeValue: '',
445
+        tempTimeValue:'',
444 446
         isShowSign: false,
445 447
         anticoagulantsConfit: {},
446 448
         dialysateFormulationOptions: [],
@@ -606,7 +608,7 @@
606 608
         }
607 609
         this.timeValue = this.dialysisPrescription.dialysis_duration_hour + '小时' + this.dialysisPrescription.dialysis_duration_minute + '分钟'
608 610
 
609
-        this.dialysisPrescription.dialysis_duration = this.dialysisPrescription.dialysis_duration_hour + '.' + (this.dialysisPrescription.dialysis_duration_minute)
611
+        this.dialysisPrescription.dialysis_duration = parseFloat(this.dialysisPrescription.dialysis_duration_hour) + parseFloat((this.dialysisPrescription.dialysis_duration_minute / 60).toFixed(2))
610 612
 
611 613
       },
612 614
       inputFocus: function (event) {
@@ -1011,10 +1013,6 @@
1011 1013
                 }
1012 1014
               }
1013 1015
 
1014
-              console.log(this.dialysisPrescription.dialysis_duration_hour)
1015
-              console.log(this.dialysisPrescription.dialysis_duration_minute)
1016
-              console.log(this.dialysisPrescription.dialysis_duration_hour == '')
1017
-              console.log(this.dialysisPrescription.dialysis_duration_minute == 0)
1018 1016
 
1019 1017
 
1020 1018
 
@@ -1958,6 +1956,10 @@
1958 1956
 
1959 1957
       }
1960 1958
 
1959
+
1960
+
1961
+
1962
+
1961 1963
       if (this.dialysisPrescription.dialysis_duration_hour.length == 0 || this.dialysisPrescription.dialysis_duration_minute.length == 0) {
1962 1964
         this.timeValue = ''
1963 1965
         this.time = '03:00'
@@ -2006,6 +2008,19 @@
2006 2008
       this.dialysisPrescription.ultrafiltration = this.getFloat(this.dialysisPrescription.ultrafiltration)
2007 2009
       this.dialysisPrescription.target_ultrafiltration = this.getFloat(this.dialysisPrescription.target_ultrafiltration)
2008 2010
 
2011
+      if(this.dialysisPrescription.anticoagulant_shouji == ''){
2012
+        this.dialysisPrescription.anticoagulant_shouji = '0'
2013
+      }
2014
+
2015
+      if(this.dialysisPrescription.anticoagulant_weichi == ''){
2016
+        this.dialysisPrescription.anticoagulant_weichi = '0'
2017
+      }
2018
+
2019
+      if(this.dialysisPrescription.anticoagulant_zongliang == ''){
2020
+        this.dialysisPrescription.anticoagulant_weichi = '0'
2021
+      }
2022
+
2023
+
2009 2024
     },
2010 2025
 
2011 2026
     components: {
@@ -2016,40 +2031,37 @@
2016 2031
       CheckBoxSubMenu
2017 2032
     },
2018 2033
     watch: {
2019
-      'dialysisPrescription.anticoagulant_shouji': function (val) {
2020
-        if (this.dialysisPrescription.anticoagulant_shouji == '' && this.dialysisPrescription.anticoagulant_weichi == '') {
2021
-          this.dialysisPrescription.anticoagulant_zongliang = parseInt(0) + parseInt(0)
2022
-        } else if (this.dialysisPrescription.anticoagulant_shouji != '' && this.dialysisPrescription.anticoagulant_weichi != '') {
2023
-          this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
2024
-        } else if (this.dialysisPrescription.anticoagulant_shouji != '' && this.dialysisPrescription.anticoagulant_shouji == '') {
2025
-          this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(0)
2026
-        } else if (this.dialysisPrescription.anticoagulant_shouji == '' && this.dialysisPrescription.anticoagulant_shouji != '') {
2027
-          this.dialysisPrescription.anticoagulant_zongliang = parseInt(0) + parseInt(this.dialysisPrescription.anticoagulant_shouji)
2028
-        }
2034
+      "dialysisPrescription.dialysis_duration":function(){
2035
+        console.log(this.dialysisPrescription.dialysis_duration)
2036
+        this.dialysisPrescription.anticoagulant_zongliang=calculateAnticoagulantZL(1,
2037
+          this.dialysisPrescription.anticoagulant_shouji,
2038
+          this.dialysisPrescription.dialysis_duration,
2039
+          this.dialysisPrescription.anticoagulant_weichi
2040
+        );
2029 2041
         if(isNaN(this.dialysisPrescription.anticoagulant_zongliang)){
2030 2042
           this.dialysisPrescription.anticoagulant_zongliang = ''
2031 2043
         }
2032
-
2033
-
2034
-      }, 'dialysisPrescription.anticoagulant_weichi': function (val) {
2035
-        console.log(this.dialysisPrescription.anticoagulant_shouji)
2036
-        console.log(this.dialysisPrescription.anticoagulant_weichi)
2037
-        if (this.dialysisPrescription.anticoagulant_shouji == '' && this.dialysisPrescription.anticoagulant_weichi == '') {
2038
-          this.dialysisPrescription.anticoagulant_zongliang = parseInt(0) + parseInt(0)
2039
-        } else if (this.dialysisPrescription.anticoagulant_shouji != '' && this.dialysisPrescription.anticoagulant_weichi != '') {
2040
-          this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
2041
-        } else if (this.dialysisPrescription.anticoagulant_shouji != '' && this.dialysisPrescription.anticoagulant_shouji == '') {
2042
-          this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(0)
2043
-        } else if (this.dialysisPrescription.anticoagulant_shouji == '' && this.dialysisPrescription.anticoagulant_shouji != '') {
2044
-          this.dialysisPrescription.anticoagulant_zongliang = parseInt(0) + parseInt(this.dialysisPrescription.anticoagulant_shouji)
2044
+      },
2045
+      "dialysisPrescription.anticoagulant_shouji":function(){
2046
+        this.dialysisPrescription.anticoagulant_zongliang=calculateAnticoagulantZL(1,
2047
+          this.dialysisPrescription.anticoagulant_shouji,
2048
+          this.dialysisPrescription.dialysis_duration,
2049
+          this.dialysisPrescription.anticoagulant_weichi
2050
+        );
2051
+        if(isNaN(this.dialysisPrescription.anticoagulant_zongliang)){
2052
+          this.dialysisPrescription.anticoagulant_zongliang = ''
2045 2053
         }
2046
-
2054
+      },
2055
+      "dialysisPrescription.anticoagulant_weichi":function(){
2056
+        this.dialysisPrescription.anticoagulant_zongliang=calculateAnticoagulantZL(1,
2057
+          this.dialysisPrescription.anticoagulant_shouji,
2058
+          this.dialysisPrescription.dialysis_duration,
2059
+          this.dialysisPrescription.anticoagulant_weichi
2060
+        );
2047 2061
         if(isNaN(this.dialysisPrescription.anticoagulant_zongliang)){
2048 2062
           this.dialysisPrescription.anticoagulant_zongliang = ''
2049
-
2050 2063
         }
2051 2064
       },
2052
-
2053 2065
       isShowDialog (val) {
2054 2066
         if (val) {
2055 2067
           this.advice_visibility = false

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

@@ -13,12 +13,12 @@
13 13
           <div>
14 14
             <div class="cell" v-show="order.parent_id == 0">
15 15
               <label>开始时间</label>
16
-              <el-input :value="start_time_str" readonly @focus="selectStartTimeAction"></el-input>
16
+              <el-input style="width:60%"  :value="start_time_str" readonly @focus="selectStartTimeAction"></el-input>
17 17
             </div>
18 18
 
19 19
             <div class="cell">
20 20
               <label>医嘱名称</label>
21
-              <el-input v-model="order.title"></el-input>
21
+              <el-input style="width:60%"  v-model="order.title"></el-input>
22 22
             </div>
23 23
             <div class="cell">
24 24
               <label>药品规格</label>
@@ -34,19 +34,6 @@
34 34
               >
35 35
             </div>
36 36
 
37
-            <div class="cell">
38
-              <label>单次用量</label>
39
-              <input type="number" onclick="this.select()" class="inputBox" style="width:62.5%" v-model="order.single_dose">
40
-              <input
41
-                type="text"
42
-                placeholder="单位"
43
-                readonly
44
-                class="inputBox"
45
-                style="width:35%"
46
-                v-model="order.single_dose_unit"
47
-                @focus="selectSingleDoseAction"
48
-              >
49
-            </div>
50 37
             <div class="cell">
51 38
               <label>开药数量</label>
52 39
               <input
@@ -67,12 +54,18 @@
67 54
               >
68 55
             </div>
69 56
 
70
-            <div class="cell" v-show="order.parent_id == 0">
71
-              <label>医嘱嘱托</label>
57
+
58
+            <div class="cell">
59
+              <label>单次用量</label>
60
+              <input type="number" onclick="this.select()" class="inputBox" style="width:60%" v-model="order.single_dose">
72 61
               <input
62
+                type="text"
63
+                placeholder="单位"
64
+                readonly
73 65
                 class="inputBox"
74
-                style="width:100%"
75
-                v-model="order.remark"
66
+                style="width:35%"
67
+                v-model="order.single_dose_unit"
68
+                @focus="selectSingleDoseAction"
76 69
               >
77 70
             </div>
78 71
 
@@ -86,18 +79,29 @@
86 79
                 @focus="selectDeliveryWayAction"
87 80
               ></el-input>
88 81
             </div>
82
+            <div>
83
+
89 84
             <div class="cell" v-show="order.parent_id == 0">
90 85
               <label>执行频率</label>
91 86
               <el-input
92 87
                 placeholder="选择执行频率"
93 88
                 readonly
89
+                style="width:50%"
94 90
                 :disabled="mode == 3"
95 91
                 v-model="order.execution_frequency"
96 92
                 @focus="selectExecFrequencyAction"
97 93
               ></el-input>
98 94
             </div>
99 95
 
100
-
96
+              <div class="cell" v-show="order.parent_id == 0">
97
+                <label>医嘱嘱托</label>
98
+                <input
99
+                  class="inputBox"
100
+                  style="width:50%"
101
+                  v-model="order.remark"
102
+                >
103
+              </div>
104
+            </div>
101 105
           </div>
102 106
         </div>
103 107
       </div>

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

@@ -11,16 +11,18 @@
11 11
       <div class="DialogContent choose advice-top">
12 12
         <div class="content clearfix">
13 13
           <div>
14
+
15
+
14 16
             <div class="cell">
15 17
               <label>医嘱名称</label>
16
-              <input class="inputBox" style="width:100%" v-model="order.title">
18
+              <input class="inputBox"  v-model="order.title">
17 19
               <!-- <el-input v-model="order.title"></el-input> -->
18 20
             </div>
19 21
             <div class="cell">
20 22
               <label>药品规格</label>
21 23
               <!--<input class="inputBox" style="width:62.5%" v-model="order.advice_desc">-->
22 24
 
23
-              <input class="inputBox" style="width:62.5%" v-model="order.advice_desc">
25
+              <input class="inputBox" style="width:60%" v-model="order.advice_desc">
24 26
               <input
25 27
                 type="text"
26 28
                 placeholder="单位"
@@ -32,25 +34,14 @@
32 34
               >
33 35
             </div>
34 36
 
35
-            <div class="cell">
36
-              <label>单次用量</label>
37
-              <input type="number" class="inputBox" style="width:62.5%" v-model="order.single_dose">
38
-              <input
39
-                type="text"
40
-                placeholder="单位"
41
-                readonly
42
-                class="inputBox"
43
-                style="width:35%"
44
-                v-model="order.single_dose_unit"
45
-                @focus="selectSingleDoseAction"
46
-              >
47
-            </div>
37
+
38
+
48 39
             <div class="cell">
49 40
               <label>开药数量</label>
50 41
               <input
51 42
                 type="number"
52 43
                 class="inputBox"
53
-                style="width:62.5%"
44
+                style="width:60%"
54 45
                 v-model="order.prescribing_number"
55 46
               >
56 47
               <input
@@ -66,6 +57,20 @@
66 57
 
67 58
 
68 59
 
60
+            <div class="cell">
61
+              <label>单次用量</label>
62
+              <input type="number" class="inputBox" style="width:62.5%" v-model="order.single_dose">
63
+              <input
64
+                type="text"
65
+                placeholder="单位"
66
+                readonly
67
+                class="inputBox"
68
+                style="width:35%"
69
+                v-model="order.single_dose_unit"
70
+                @focus="selectSingleDoseAction"
71
+              >
72
+            </div>
73
+
69 74
 
70 75
             <div class="cell" v-show="order.parent_id == 0">
71 76
               <label>给药途径</label>
@@ -77,6 +82,7 @@
77 82
                 @focus="selectDeliveryWayAction"
78 83
               ></el-input>
79 84
             </div>
85
+
80 86
             <div class="cell" v-show="order.parent_id == 0">
81 87
               <label>执行频率</label>
82 88
               <el-input
@@ -88,6 +94,7 @@
88 94
               ></el-input>
89 95
             </div>
90 96
 
97
+
91 98
             <div class="cell" v-show="order.parent_id == 0">
92 99
               <label>医嘱嘱托</label>
93 100
               <input
@@ -97,6 +104,7 @@
97 104
               >
98 105
             </div>
99 106
 
107
+
100 108
           </div>
101 109
         </div>
102 110
       </div>

+ 1 - 1
src/pages/main/template/DialysisPrintOrderFive.vue View File

@@ -1296,7 +1296,7 @@
1296 1296
       modeName(mode_id) {
1297 1297
         return typeof (this.modeOptions[mode_id]) !== 'undefined' && typeof (this.modeOptions[mode_id].name) !== 'undefined' ? this.modeOptions[mode_id].name : ''
1298 1298
       },
1299
-      getDialysisRecord() {debugger
1299
+      getDialysisRecord() {
1300 1300
         this.loading = true
1301 1301
 
1302 1302
         // getDialysisRecord(this.queryParams).then(response => {

+ 3 - 3
src/pages/main/template/DialysisPrintOrderTwo.vue View File

@@ -822,8 +822,8 @@
822 822
                 </div>
823 823
                 <div class="inline_block">
824 824
                   &emsp;实际超滤量:
825
-                  <div class="under_line" style="width: 70px;text-align: left" v-if="getFloat(prescription.ultrafiltration)">
826
-                    {{getFloat(prescription.ultrafiltration)}}
825
+                  <div class="under_line" style="width: 70px;text-align: left" v-if="getFloat(afterdialysis.actual_ultrafiltration)">
826
+                    {{getFloat(afterdialysis.actual_ultrafiltration)}}
827 827
                   </div>
828 828
                   <div class="under_line" style="width: 70px;" v-else>
829 829
                     {{'/'}}
@@ -1216,7 +1216,7 @@
1216 1216
       modeName(mode_id) {
1217 1217
         return typeof (this.modeOptions[mode_id]) !== 'undefined' && typeof (this.modeOptions[mode_id].name) !== 'undefined' ? this.modeOptions[mode_id].name : ''
1218 1218
       },
1219
-      getDialysisRecord() {debugger
1219
+      getDialysisRecord() {
1220 1220
         this.loading = true
1221 1221
 
1222 1222
         // getDialysisRecord(this.queryParams).then(response => {

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

@@ -787,7 +787,7 @@ import {parseTime} from '@/utils'
787 787
       this.advice_groups = []
788 788
       this.doctor_advices = []
789 789
 
790
-      getDialysisRecord(params).then(rs => {debugger
790
+      getDialysisRecord(params).then(rs => {
791 791
         var resp = rs.data
792 792
         console.log(resp)
793 793
 

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

@@ -22,7 +22,7 @@
22 22
 
23 23
             <td :class="advice.parent_id == 0 ? 'advice_content' : 'subadvice_content'">
24 24
               <span>{{advice.advice_name }}</span>
25
-              <!-- <span>{{advice.drug_spec}}{{advice.drug_spec_unit}} * {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span> -->
25
+              <!-- <span>{{advice.drug_spec}}{{advice.drug_spec_unit9}} * {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span> -->
26 26
               <span v-if="advice.advice_desc">{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
27 27
               <span v-if="advice.prescribing_number">{{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
28 28
               <!--<span v-if="advice.single_dose">单次用量{{advice.single_dose}}{{advice.single_dose_unit}}</span>-->

+ 3 - 3
src/store/modules/globalConfig.js View File

@@ -385,9 +385,9 @@ const global_config = {
385 385
         zongliang: 1,
386 386
         gaimingcheng: -1,
387 387
         gaijiliang: -1,
388
-        shouji_unit: 'lu',
389
-        weichi_unit: 'lu',
390
-        zongliang_unit: 'lu',
388
+        shouji_unit: 'IU',
389
+        weichi_unit: 'IU',
390
+        zongliang_unit: 'IU',
391 391
         gaimingcheng_unit: '',
392 392
         gaijiliang_unit: ''
393 393
       },