xiaoming_global 5 gadus atpakaļ
vecāks
revīzija
bed13e9e00

+ 3 - 1
src/pages/main/dialog/PrescriptionDialog.vue Parādīt failu

@@ -1077,6 +1077,7 @@
1077 1077
         }
1078 1078
       },
1079 1079
       GetModeByModeId: function (val) {
1080
+        console.log("val",val)
1080 1081
         let treatment_mode_name = ''
1081 1082
         let treatment_mode = this.modeOption
1082 1083
 
@@ -1088,7 +1089,8 @@
1088 1089
         for (let keys in treatment_mode) {
1089 1090
           if (treatment_mode[keys].id == val) {
1090 1091
             treatment_mode_name = treatment_mode[keys].name
1091
-            if (treatment_mode_name == 'HD') {
1092
+            console.log("treatment_mode_name",treatment_mode_name)
1093
+            if (treatment_mode_name == 'HD' || treatment_mode_name == 'HD+HP' || treatment_mode_name == 'HP' || treatment_mode_name == 'HF' || treatment_mode_name == 'SCUF' || treatment_mode_name == 'IUF' || treatment_mode_name == 'HFHD' || treatment_mode_name == 'HFHD +HP' || treatment_mode_name == 'PHF'|| treatment_mode_name == 'HFR' || treatment_mode_name == 'CRRT' || treatment_mode_name == '腹水回收' || treatment_mode_name == 'HD前置换' || treatment_mode_name == 'HD后置换') {
1092 1094
               this.zhiShow = false
1093 1095
               this.totalShow = false
1094 1096
               this.huShow = false

+ 34 - 46
src/pages/main/dialog/new_order/AddNewOrders.vue Parādīt failu

@@ -18,12 +18,7 @@
18 18
         <div style="overflow: hidden;">
19 19
           <div class="cell" style="margin-top: 0;">
20 20
             <label>医嘱类型</label>
21
-            <el-input
22
-              class="typeInput"
23
-              ref="advice_type"
24
-              value="临时"
25
-              disabled
26
-            ></el-input>
21
+            <el-input class="typeInput" ref="advice_type" value="临时" disabled></el-input>
27 22
           </div>
28 23
           <div class="cell" style="margin-top: 0;">
29 24
             <label>开始时间</label>
@@ -43,11 +38,7 @@
43 38
             <label>开嘱时间 {{ record_date_str }}</label>
44 39
           </div>
45 40
         </div>
46
-        <div
47
-          id="newDialogContent"
48
-          class="DialogContent choose"
49
-          style="height: 6.2rem;"
50
-        >
41
+        <div id="newDialogContent" class="DialogContent choose" style="height: 6.2rem;">
51 42
           <div class="newAddTable">
52 43
             <table class="table">
53 44
               <tr>
@@ -70,20 +61,16 @@
70 61
                 >
71 62
                   <td
72 63
                     style="text-align: left; padding-left: 5px; padding-right: 5px;"
73
-                  >
74
-                    {{ advice.title }}
75
-                  </td>
76
-                  <td v-if="advice.advice_desc">
77
-                    {{ advice.advice_desc }}{{ advice.drug_spec_unit }}
78
-                  </td>
64
+                  >{{ advice.title }}</td>
65
+                  <td v-if="advice.advice_desc">{{ advice.advice_desc }}{{ advice.drug_spec_unit }}</td>
79 66
                   <td v-if="advice.prescribing_number">
80 67
                     {{ advice.prescribing_number
81 68
                     }}{{ advice.prescribing_number_unit }}
82 69
                   </td>
83 70
                   <td v-else></td>
84
-                  <td v-if="advice.single_dose">
85
-                    {{ advice.single_dose }} {{ advice.single_dose_unit }}
86
-                  </td>
71
+                  <td
72
+                    v-if="advice.single_dose"
73
+                  >{{ advice.single_dose }} {{ advice.single_dose_unit }}</td>
87 74
                   <td v-else></td>
88 75
                   <td>{{ advice.delivery_way }}</td>
89 76
                   <td>{{ advice.execution_frequency }}</td>
@@ -100,23 +87,19 @@
100 87
                 >
101 88
                   <td
102 89
                     style="text-align: left; padding-right: 5px; padding-left: 25px;"
103
-                  >
104
-                    {{ subdrug.title }}
105
-                  </td>
90
+                  >{{ subdrug.title }}</td>
91
+                  <td>{{ subdrug.advice_desc }} {{ subdrug.drug_spec_unit }}</td>
106 92
                   <td>
107
-                    {{ subdrug.advice_desc }} {{ subdrug.drug_spec_unit }}
93
+                    <span v-if="subdrug.prescribing_number">
94
+                      {{ subdrug.prescribing_number
95
+                      }}{{ subdrug.prescribing_number_unit }}
96
+                    </span>
108 97
                   </td>
109 98
                   <td>
110
-                    <span v-if="subdrug.prescribing_number"
111
-                      >{{ subdrug.prescribing_number
112
-                      }}{{ subdrug.prescribing_number_unit }}</span
113
-                    >
114
-                  </td>
115
-                  <td>
116
-                    <span v-if="subdrug.single_dose"
117
-                      >{{ subdrug.single_dose }}
118
-                      {{ subdrug.single_dose_unit }}</span
119
-                    >
99
+                    <span v-if="subdrug.single_dose">
100
+                      {{ subdrug.single_dose }}
101
+                      {{ subdrug.single_dose_unit }}
102
+                    </span>
120 103
                   </td>
121 104
                   <!--<td v-if="subdrug.single_dose">{{ subdrug.single_dose }} {{ subdrug.single_dose_unit }}</td>-->
122 105
                   <td></td>
@@ -171,7 +154,7 @@
171 154
 import SingleOptionDialog from "./single_option_dialog";
172 155
 import OrderFormDialog from "./order_form";
173 156
 import AdviceTemplate from "./select_advice_template_dialog";
174
-import { Toast } from "vant";
157
+import { Toast, Dialog } from "vant";
175 158
 import { parseTime } from "@/utils";
176 159
 import { batchCreateAdvices } from "@/api/advice";
177 160
 import { setTimeout } from "timers";
@@ -290,19 +273,24 @@ export default {
290 273
       }
291 274
     },
292 275
     deleteOrderAction: function() {
293
-      if (this.selecting_advice_index >= 0) {
294
-        if (this.selecting_subdrug_index < 0) {
295
-          this.advices.splice(this.selecting_advice_index, 1);
296
-          this.selecting_advice_index = -1;
276
+      Dialog.confirm({
277
+        title: "删除医嘱",
278
+        message: "确认删除医嘱吗?"
279
+      }).then(() => {
280
+        if (this.selecting_advice_index >= 0) {
281
+          if (this.selecting_subdrug_index < 0) {
282
+            this.advices.splice(this.selecting_advice_index, 1);
283
+            this.selecting_advice_index = -1;
284
+          } else {
285
+            var advice = this.advices[this.selecting_advice_index];
286
+            advice.subdrugs.splice(this.selecting_subdrug_index, 1);
287
+            this.selecting_advice_index = -1;
288
+            this.selecting_subdrug_index = -1;
289
+          }
297 290
         } else {
298
-          var advice = this.advices[this.selecting_advice_index];
299
-          advice.subdrugs.splice(this.selecting_subdrug_index, 1);
300
-          this.selecting_advice_index = -1;
301
-          this.selecting_subdrug_index = -1;
291
+          Toast.fail("请先选择医嘱内容");
302 292
         }
303
-      } else {
304
-        Toast.fail("请先选择医嘱内容");
305
-      }
293
+      });
306 294
     },
307 295
     selectStartTimeAction: function() {
308 296
       this.$refs.start_time_picker.open();