zhengchengwu 6 years ago
parent
commit
ef9befd723

File diff suppressed because it is too large
+ 3127 - 5904
package-lock.json


+ 3 - 3
package.json View File

@@ -24,7 +24,7 @@
24 24
     "print-js": "^1.0.54",
25 25
     "vant": "^1.6.8",
26 26
     "vue": "^2.5.2",
27
-    "vue-cropper": "^0.4.8",
27
+    "vue-cropper": "^0.4.9",
28 28
     "vue-cropperjs": "^3.0.0",
29 29
     "vue-pickers": "^1.1.5",
30 30
     "vue-router": "^3.0.1",
@@ -69,12 +69,12 @@
69 69
     "html-webpack-plugin": "^2.30.1",
70 70
     "jest": "^22.0.4",
71 71
     "jest-serializer-vue": "^0.3.0",
72
-    "jquery": "^3.3.1",
72
+    "jquery": "^3.4.0",
73 73
     "less": "^3.8.1",
74 74
     "less-loader": "^4.1.0",
75 75
     "nightwatch": "^0.9.12",
76 76
     "node-notifier": "^5.1.2",
77
-    "node-sass": "^4.9.3",
77
+    "node-sass": "^4.11.0",
78 78
     "optimize-css-assets-webpack-plugin": "^3.2.0",
79 79
     "ora": "^1.2.0",
80 80
     "portfinder": "^1.0.13",

+ 12 - 10
src/pages/advice/DialysisAdviceTable.vue View File

@@ -87,13 +87,13 @@
87 87
             <td>{{ advice.parent_id == 0 ? schedule.device_number.number : "" }}</td>
88 88
             <td>{{ advice.parent_id == 0 ? schedule.patient.name : "" }}</td>
89 89
             <td>{{ advice.parent_id == 0 ? schedule.patient.dialysis_no : "" }}</td>
90
-            <td>{{ getAdaviceType(advice.advice_type)}}</td>
90
+            <td>{{ getAdaviceType(advice.advice_type,advice.parent_id)}}</td>
91 91
             <td>{{ advice.parent_id == 0 ? parseTime(advice.start_time, "{m}-{d} {h}:{i}") : "" }}</td>
92 92
             <td>
93 93
               <span >{{advice.advice_name }}</span>
94 94
               <span >{{advice.advice_desc}}</span>
95
-              <span>{{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
96
-              <span> 单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
95
+              <span v-if="advice.prescribing_number">{{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
96
+              <span v-if="advice.single_dose"> 单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
97 97
               <span >{{advice.delivery_way}}</span>
98 98
               <span >{{advice.execution_frequency}}</span>
99 99
             </td>
@@ -231,13 +231,15 @@ export default {
231 231
     openPicker() {
232 232
       this.$refs.picker.open();
233 233
     },
234
-    getAdaviceType(type) {
235
-      if (type == 1) {
236
-        return "长嘱";
237
-      } else if (type == 2) {
238
-        return "临嘱";
239
-      } else if (type == 3) {
240
-        return "临嘱";
234
+    getAdaviceType(type,parent_id) {
235
+      if(parent_id == 0) {
236
+        if (type == 1) {
237
+          return "长嘱";
238
+        } else if (type == 2) {
239
+          return "临嘱";
240
+        } else if (type == 3) {
241
+          return "临嘱";
242
+        }
241 243
       }
242 244
     },
243 245
     getName(val) {

+ 12 - 10
src/pages/advice/NormalAdviceTable.vue View File

@@ -86,14 +86,14 @@
86 86
               <td>{{ advice.parent_id == 0 ? schedule.device_number.number : "" }}</td>
87 87
               <td>{{ advice.parent_id == 0 ? schedule.patient.name : "" }}</td>
88 88
               <td>{{ advice.parent_id == 0 ? schedule.patient.dialysis_no : "" }}</td>
89
-              <td>{{ getAdaviceType(advice.advice_type)}}</td>
89
+              <td>{{ getAdaviceType(advice.advice_type,advice.parent_id)}}</td>
90 90
               <td>{{ advice.parent_id == 0 ? parseTime(advice.start_time, "{m}-{d} {h}:{i}") : "" }}</td>
91 91
               <td>
92 92
                 <span >{{advice.advice_name }}</span>
93 93
                 <span >{{advice.advice_desc}}</span>
94 94
 
95
-                <span>{{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
96
-                <span> 单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
95
+                <span v-if="advice.prescribing_number">{{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
96
+                <span v-if="advice.single_dose"> 单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
97 97
                 <span >{{advice.delivery_way}}</span>
98 98
                 <span >{{advice.execution_frequency}}</span>
99 99
               </td>
@@ -230,13 +230,15 @@
230 230
       },
231 231
       openPicker() {
232 232
         this.$refs.picker.open();
233
-      },getAdaviceType(type){
234
-        if(type == 1){
235
-          return "长嘱"
236
-        }else if(type == 2){
237
-          return "临嘱"
238
-        }else if(type == 3){
239
-          return "临嘱"
233
+      },  getAdaviceType(type,parent_id) {
234
+        if(parent_id == 0) {
235
+          if (type == 1) {
236
+            return "长嘱";
237
+          } else if (type == 2) {
238
+            return "临嘱";
239
+          } else if (type == 3) {
240
+            return "临嘱";
241
+          }
240 242
         }
241 243
       },getName(val){
242 244
         for(let i = 0; i < this.admin_user.length; i++){

+ 14 - 14
src/pages/main/dialog/MonitDialog.vue View File

@@ -504,20 +504,20 @@ export default {
504 504
       this.form.breathing_rated = ""; //this.last_monitor_record.breathing_rate;
505 505
       this.form.systolic_bp = ""; //this.last_monitor_record.systolic_blood_pressure;
506 506
       this.form.diastolic_bp = ""; //this.last_monitor_record.diastolic_blood_pressure;
507
-      this.form.blood_flow_volume = this.last_monitor_record.blood_flow_volume;
508
-      this.form.venous_pressure = this.last_monitor_record.venous_pressure;
509
-      this.form.arterial_pressure = this.last_monitor_record.arterial_pressure;
510
-      this.form.transmembrane_pressure = this.last_monitor_record.transmembrane_pressure;
511
-      this.form.ultrafiltration_rate = this.last_monitor_record.ultrafiltration_rate;
512
-      this.form.ultrafiltration_volume = this.last_monitor_record.ultrafiltration_volume;
513
-      this.form.sodium_concentration = this.last_monitor_record.sodium_concentration;
514
-      this.form.dialysate_temperature = this.last_monitor_record.dialysate_temperature;
515
-      this.form.replacement_rate = this.last_monitor_record.replacement_rate;
516
-      this.form.displacement_quantity = this.last_monitor_record.displacement_quantity;
517
-      this.form.ktv = this.last_monitor_record.ktv;
518
-      this.form.symptom = this.last_monitor_record.symptom;
519
-      this.form.dispose = this.last_monitor_record.dispose;
520
-      this.form.result = this.last_monitor_record.result;
507
+      this.form.blood_flow_volume =""; //this.last_monitor_record.blood_flow_volume;
508
+      this.form.venous_pressure = "";//this.last_monitor_record.venous_pressure;
509
+      this.form.arterial_pressure = ""; //this.last_monitor_record.arterial_pressure;
510
+      this.form.transmembrane_pressure =""; // this.last_monitor_record.transmembrane_pressure;
511
+      this.form.ultrafiltration_rate = "";// this.last_monitor_record.ultrafiltration_rate;
512
+      this.form.ultrafiltration_volume ="";// this.last_monitor_record.ultrafiltration_volume;
513
+      this.form.sodium_concentration = "";//this.last_monitor_record.sodium_concentration;
514
+      this.form.dialysate_temperature = ""; //this.last_monitor_record.dialysate_temperature;
515
+      this.form.replacement_rate = ""; // this.last_monitor_record.replacement_rate;
516
+      this.form.displacement_quantity =""; // this.last_monitor_record.displacement_quantity;
517
+      this.form.ktv = ""; //this.last_monitor_record.ktv;
518
+      this.form.symptom ="";// this.last_monitor_record.symptom;
519
+      this.form.dispose =""; // this.last_monitor_record.dispose;
520
+      this.form.result =""; //this.last_monitor_record.result;
521 521
       this.form.id = -1;
522 522
       console.log(this.form);
523 523
       // }

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

@@ -68,10 +68,10 @@
68 68
                       v-if="advice.drug_spec > 0"
69 69
                     >{{ advice.drug_spec }}{{ advice.drug_spec_unit }}</span> -->
70 70
                     <span>{{ advice.advice_desc }}</span>
71
-                    <span>{{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
71
+                    <span  v-if="advice.prescribing_number">{{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
72 72
                     <span
73 73
                       v-if="advice.single_dose"
74
-                    >单次量{{advice.single_dose}}{{advice.single_dose_unit}}</span>
74
+                    >单次量{{advice.single_dose}}{{advice.single_dose_unit}}</span>
75 75
                     <span v-if="advice.parent_id == 0">{{advice.delivery_way}}</span>
76 76
                     <span v-if="advice.parent_id == 0">{{advice.execution_frequency}}</span>
77 77
                   </div>

+ 9 - 5
src/pages/main/dialysis/AdviceTable.vue View File

@@ -73,7 +73,7 @@
73 73
 
74 74
           <th width="334px">开始时间</th>
75 75
           <th width="415px">医嘱内容</th>
76
-          <th width="220px">用药规格</th>
76
+          <th width="220px">规格</th>
77 77
           <th width="164px">开药数量</th>
78 78
           <th width="164px">单次用量</th>
79 79
           <th width="286px">给药途径</th>
@@ -94,20 +94,24 @@
94 94
         </tr>
95 95
         <template v-for="(group, group_index) in advice_groups">
96 96
           <tr v-for="(advice, advice_index) in group.advices" :key="advice.id">
97
-            <td v-if="advice_index == 0" :rowspan="group.advices.length">
97
+
98
+            <td v-if="advice.patient_id > 0" :rowspan="group.advices.length">
99
+              <span></span>
100
+            </td>
101
+
102
+            <td v-else-if="advice_index == 0" :rowspan="group.advices.length">
98 103
               <span v-if="advice.advice_type == 1">长嘱</span>
99 104
               <span v-if="advice.advice_type == 2">临嘱</span>
100 105
               <span v-if="advice.advice_type == 3">临嘱</span>
101 106
 
102
-
103 107
             </td>
104 108
 
105 109
             <td v-if="advice_index == 0" :rowspan="group.advices.length">{{ parseTime(advice.start_time, "{m}-{d} {h}:{i}") }}</td>
106 110
             <td :class="{ 'advice_name': advice.parent_id == 0, 'subdrug_name': advice.parent_id > 0 }">{{ advice.advice_name }}</td>
107 111
             <!-- <td>{{ advice.drug_spec }} {{ advice.drug_spec_unit }} * {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</td> -->
108 112
             <td>{{ advice.advice_desc }}</td>
109
-            <td>{{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</td>
110
-            <td>{{ advice.single_dose }} {{ advice.single_dose_unit }}</td>
113
+            <td v-if="advice.prescribing_number">{{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</td>
114
+            <td v-if="advice.single_dose">{{ advice.single_dose }} {{ advice.single_dose_unit }}</td>
111 115
             <td>{{ advice.parent_id == 0 ? advice.delivery_way : "" }}</td>
112 116
             <td>{{ advice.parent_id == 0 ? advice.execution_frequency : "" }}</td>
113 117
 

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

@@ -24,8 +24,8 @@
24 24
               <span>{{advice.advice_name }}</span>
25 25
               <!-- <span>{{advice.drug_spec}}{{advice.drug_spec_unit}} * {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span> -->
26 26
               <span>{{advice.advice_desc}}</span>
27
-              <span>{{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
28
-              <span>单次用量{{advice.single_dose}}{{advice.single_dose_unit}}</span>
27
+              <span v-if="advice.prescribing_number">{{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
28
+              <span v-if="advice.single_dose">单次用量{{advice.single_dose}}{{advice.single_dose_unit}}</span>
29 29
               <span>{{advice.delivery_way}}</span>
30 30
               <span>{{advice.execution_frequency}}</span>
31 31
             </td>