csx 5 年之前
父節點
當前提交
5ffb168c8f

+ 83 - 2
src/pages/advice/DialysisAdviceTable.vue 查看文件

108
       </template>
108
       </template>
109
      </table>
109
      </table>
110
      <div class="NoData" v-show="zones.length  <= 1"><img style="margin-top: 50px; margin-bottom: 50px" src="@/assets/login/data.jpg" alt=""></div>
110
      <div class="NoData" v-show="zones.length  <= 1"><img style="margin-top: 50px; margin-bottom: 50px" src="@/assets/login/data.jpg" alt=""></div>
111
-    
111
+
112
     </div>
112
     </div>
113
 
113
 
114
   <mt-datetime-picker
114
   <mt-datetime-picker
203
 
203
 
204
         scheduleMap = _scheduleMap;
204
         scheduleMap = _scheduleMap;
205
       }
205
       }
206
+      for(var key in scheduleMap) {
207
+        let mapArr =  scheduleMap[key]
208
+        for (let i = 0; i < mapArr.length; i++) {
209
+          mapArr[i]['new_advice'] = []
210
+        }
211
+      }
212
+
213
+      for(var key in scheduleMap) {
214
+       let mapArr =  scheduleMap[key]
215
+        for (let i = 0; i < mapArr.length; i++) {
216
+         var  maps = mapArr[i]
217
+          var resp_advices = maps.doctor_advice
218
+          if (resp_advices.length > 0) {
219
+            var newGroupObject = function () {
220
+              return Object.assign({}, {
221
+                group_no: 0,
222
+                advices: [],
223
+              })
224
+            }
225
+            var initGroupBlock = function (group, advice) {
226
+              group.group_no = advice.groupno
227
+            }
228
+
229
+            var advice_groups = []
230
+            var group = newGroupObject()
231
+            for (let index = 0; index < resp_advices.length; index++) {
232
+              const advice = resp_advices[index];
233
+              if (advice.groupno == 0) { // 老版本的医嘱
234
+                if (advice.parent_id > 0) {
235
+                  if (advice_groups.length > 0) {
236
+                    var parent_group = advice_groups[advice_groups.length - 1]
237
+                    if (parent_group.advices.length > 0) {
238
+                      if (parent_group.advices[0].id == advice.parent_id) {
239
+                        parent_group.advices.push(advice)
240
+                      }
241
+                    }
242
+                  }
243
+                  continue
244
+
245
+                } else {
246
+                  if (group.group_no > 0) {
247
+                    advice_groups.push(group)
248
+                    group = newGroupObject()
249
+                  }
250
+
251
+                  initGroupBlock(group, advice)
252
+                  group.advices.push(advice)
253
+                  advice_groups.push(group)
254
+                  group = newGroupObject()
255
+                  continue
256
+                }
257
+
258
+              } else {
259
+                if (group.group_no > 0 && group.group_no != advice.groupno) {
260
+                  advice_groups.push(group)
261
+                  group = newGroupObject()
262
+                }
263
+                if (group.group_no == 0) {
264
+                  initGroupBlock(group, advice)
265
+                }
266
+                if (group.group_no == advice.groupno) {
267
+                  group.advices.push(advice)
268
+                }
269
+              }
270
+            }
271
+            if (group.group_no > 0) { // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
272
+              advice_groups.push(group)
273
+            }
274
+            advice_groups = advice_groups
275
+          } else {
276
+            advice_groups = []
277
+          }
278
+          maps.new_advice.push(advice_groups)
279
+        }
280
+      }
281
+
282
+
283
+      console.log(scheduleMap)
284
+
285
+
286
+
206
       return scheduleMap;
287
       return scheduleMap;
207
     }
288
     }
208
   },
289
   },
402
   }
483
   }
403
 }
484
 }
404
 .DialysisAdvice{
485
 .DialysisAdvice{
405
-  padding-top:115px; 
486
+  padding-top:115px;
406
   background: #fff;
487
   background: #fff;
407
   min-height: calc(100vh - 2px);
488
   min-height: calc(100vh - 2px);
408
 }
489
 }

+ 34 - 3
src/pages/main/dialog/AssessmentDialog.vue 查看文件

198
         </div>
198
         </div>
199
 
199
 
200
         <div class="item" ref="venous_catheterization_part_other"
200
         <div class="item" ref="venous_catheterization_part_other"
201
-             v-if="this.formValue.venous_catheterization_part == -1 && this.$store.getters.user.template_info.template_id == 2">
201
+             v-if="this.$store.getters.user.template_info.template_id == 2">
202
           <h2 class="name">其他位置</h2>
202
           <h2 class="name">其他位置</h2>
203
           <div class="content">
203
           <div class="content">
204
             <input @focus="inputFocus" v-model="formValue.venous_catheterization_part_other"/>
204
             <input @focus="inputFocus" v-model="formValue.venous_catheterization_part_other"/>
223
           </div>
223
           </div>
224
         </div>
224
         </div>
225
 
225
 
226
-        <div class="item" ref="emergency_treatment_other" v-if="this.formValue.emergency_treatment == -1 && this.$store.getters.user.template_info.template_id == 2">
226
+        <div class="item" ref="emergency_treatment_other" v-if="this.$store.getters.user.template_info.template_id == 2">
227
           <h2 class="name">其他急诊情况</h2>
227
           <h2 class="name">其他急诊情况</h2>
228
           <div class="content">
228
           <div class="content">
229
             <input @focus="inputFocus" v-model="formValue.emergency_treatment_other"/>
229
             <input @focus="inputFocus" v-model="formValue.emergency_treatment_other"/>
245
 
245
 
246
     </div>
246
     </div>
247
     <!--<two-menu title="二级菜单" v-show="true" ></two-menu>-->
247
     <!--<two-menu title="二级菜单" v-show="true" ></two-menu>-->
248
-    <check-box-sub-menu :visibility="visibility" v-on:menu-cancle="menuCancle" v-on:menu-comfirm="menuComfirm"
248
+    <check-box-sub-menu :visibility="visibility" v-on:menu-cancle="menuCancle" v-on:menu-comfirm="menuComfirm" v-on:menu-empty="menuEmpty"
249
                         :propsForm="propForm"></check-box-sub-menu>
249
                         :propsForm="propForm"></check-box-sub-menu>
250
   </div>
250
   </div>
251
 </template>
251
 </template>
913
             dialogTop.scrollTop = 0
913
             dialogTop.scrollTop = 0
914
           })
914
           })
915
         }
915
         }
916
+      },menuEmpty:function (val) {
917
+        this.visibility = false
918
+        this.isShowDialog = true
919
+        switch (val.type) {
920
+          case 6:
921
+            this.formValue.blood_access_part_id = ''
922
+            break
923
+          case 7:
924
+            this.formValue.blood_access_part_opera_id = ''
925
+            break
926
+          case 11:
927
+            this.formValue.catheter_bend = ''
928
+            break
929
+
930
+          case 13:
931
+            this.formValue.blood_access_noise = ''
932
+            break
933
+          case 14:
934
+            this.formValue.venous_catheterization = ''
935
+            break
936
+          case 15:
937
+            this.formValue.venous_catheterization_part = ''
938
+            break
939
+          case 17:
940
+            this.formValue.emergency_treatment = ''
941
+            break
942
+          case 18:
943
+            this.formValue.puncture_way = ''
944
+            break
945
+        }
916
       }
946
       }
947
+
917
     }, components: {
948
     }, components: {
918
       CheckBoxSubMenu,
949
       CheckBoxSubMenu,
919
 
950
 

+ 49 - 2
src/pages/main/dialog/PrescriptionDialog.vue 查看文件

182
           </div>
182
           </div>
183
         </div>
183
         </div>
184
 
184
 
185
+        <div class="item"  v-if="this.$store.getters.user.template_info.template_id == 2">
186
+          <label class="name" for="knj">体液过多其他症状</label>
187
+          <div class="content">
188
+            <input  @focus="inputFocus" id="dt" v-model="dialysisPrescription.body_fluid_other"/>
189
+          </div>
190
+        </div>
191
+
192
+
185
         <div @click="showSubMenu('special_medicine')" class="item" ref="special_medicine" v-if="this.$store.getters.user.template_info.template_id == 2">
193
         <div @click="showSubMenu('special_medicine')" class="item" ref="special_medicine" v-if="this.$store.getters.user.template_info.template_id == 2">
186
           <label class="name" for="knj">透析前使用特殊药物</label>
194
           <label class="name" for="knj">透析前使用特殊药物</label>
187
           <div class="content">
195
           <div class="content">
190
           </div>
198
           </div>
191
         </div>
199
         </div>
192
 
200
 
193
-        <div class="item"  v-if="this.$store.getters.user.template_info.template_id == 2 && dialysisPrescription.special_medicine == 4">
201
+        <div class="item"  v-if="this.$store.getters.user.template_info.template_id == 2">
194
           <label class="name" for="knj">透析前使用其他特殊药物</label>
202
           <label class="name" for="knj">透析前使用其他特殊药物</label>
195
           <div class="content">
203
           <div class="content">
196
             <input  @focus="inputFocus" id="dt" v-model="dialysisPrescription.special_medicine_other"/>
204
             <input  @focus="inputFocus" id="dt" v-model="dialysisPrescription.special_medicine_other"/>
266
       </div>
274
       </div>
267
     </div>
275
     </div>
268
     <!--<two-menu title="二级菜单" v-show="isShowModeSubMenu"></two-menu>-->
276
     <!--<two-menu title="二级菜单" v-show="isShowModeSubMenu"></two-menu>-->
269
-    <check-box-sub-menu :visibility="visibility" v-on:menu-cancle="menuCancle" v-on:menu-comfirm="menuComfirm"
277
+    <check-box-sub-menu :visibility="visibility" v-on:menu-cancle="menuCancle" v-on:menu-comfirm="menuComfirm"  v-on:menu-empty="menuEmpty"
270
                         :propsForm="propForm"></check-box-sub-menu>
278
                         :propsForm="propForm"></check-box-sub-menu>
271
 
279
 
272
     <mt-datetime-picker
280
     <mt-datetime-picker
379
           displace_liqui_value:"",
387
           displace_liqui_value:"",
380
           blood_access:"",
388
           blood_access:"",
381
           ultrafiltration:"",
389
           ultrafiltration:"",
390
+          body_fluid_other:"",
382
         },
391
         },
383
         anticoagulant: {
392
         anticoagulant: {
384
           id: 0,
393
           id: 0,
826
         }
835
         }
827
         return blood_access_name;
836
         return blood_access_name;
828
 
837
 
838
+      },menuEmpty:function (val) {
839
+        this.visibility = false
840
+        this.isShowDialog = true
841
+        switch (val.type) {
842
+          case 1:
843
+            this.dialysisPrescription.mode_id = '';
844
+
845
+            break;
846
+          case 2:
847
+            this.dialysisPrescription.dialyzer ='';
848
+            break;
849
+
850
+          case 3:
851
+            this.dialysisPrescription.perfusion_apparatus = '';
852
+            break;
853
+          case 4:
854
+            this.dialysisPrescription.replacement_way = '';
855
+            break;
856
+          case 5:
857
+            this.anticoagulant = '';
858
+            break;
859
+          case 6:
860
+            this.dialysisPrescription.dialysate_formulation = '';
861
+            break;
862
+          case 7:
863
+            this.dialysisPrescription.body_fluid = '';
864
+            break;
865
+          case 8:
866
+            this.dialysisPrescription.special_medicine = '';
867
+            break;
868
+          case 9:
869
+            this.dialysisPrescription.displace_liqui_part = '';
870
+            break;
871
+          case 10:
872
+            this.dialysisPrescription.blood_access = '';
873
+            break;
874
+        }
875
+
829
       }
876
       }
830
     },
877
     },
831
     created() {
878
     created() {

+ 47 - 2
src/pages/main/dialog/ThorougDialog.vue 查看文件

281
         </div>
281
         </div>
282
 
282
 
283
         <div @click="showSubMenu('disequilibrium_syndrome_option')" class="item" ref="disequilibrium_syndrome_option" v-if="formValue.disequilibrium_syndrome == 2 && this.$store.getters.user.template_info.template_id == 2">
283
         <div @click="showSubMenu('disequilibrium_syndrome_option')" class="item" ref="disequilibrium_syndrome_option" v-if="formValue.disequilibrium_syndrome == 2 && this.$store.getters.user.template_info.template_id == 2">
284
-          <label class="name" for="dg">失衡综合症情况</label>
284
+          <label class="name" for="dg">失衡综合症症状</label>
285
           <div class="content">
285
           <div class="content">
286
             <span class="text" id="dg">{{formValue.disequilibrium_syndrome_option}}</span>
286
             <span class="text" id="dg">{{formValue.disequilibrium_syndrome_option}}</span>
287
             <span class="iconfont">&#xe6f9;</span>
287
             <span class="iconfont">&#xe6f9;</span>
331
 
331
 
332
     </div>
332
     </div>
333
     <!--<two-menu title="二级菜单" v-show="true" ></two-menu>-->
333
     <!--<two-menu title="二级菜单" v-show="true" ></two-menu>-->
334
-    <check-box-sub-menu :visibility="visibility" v-on:menu-cancle="menuCancle" v-on:menu-comfirm="menuComfirm"
334
+    <check-box-sub-menu :visibility="visibility" v-on:menu-cancle="menuCancle" v-on:menu-comfirm="menuComfirm" v-on:menu-empty="menuEmpty"
335
                         :propsForm="propForm"></check-box-sub-menu>
335
                         :propsForm="propForm"></check-box-sub-menu>
336
 
336
 
337
     <mt-datetime-picker
337
     <mt-datetime-picker
1049
         }
1049
         }
1050
         return hemostasisOperaName
1050
         return hemostasisOperaName
1051
 
1051
 
1052
+      },menuEmpty:function (val) {
1053
+        this.visibility = false
1054
+        this.isShowDialog = true
1055
+        switch (val.type) {
1056
+
1057
+          case 5:
1058
+            this.formValue.blood_access_part_id = ''
1059
+            break
1060
+          case 6:
1061
+            this.formValue.blood_access_part_opera_id = ''
1062
+            break
1063
+
1064
+          case 8:
1065
+            this.formValue.internal_fistula_tremor_ac = ''
1066
+            break;
1067
+          case 9:
1068
+            this.formValue.patient_gose =''
1069
+            break;
1070
+
1071
+          case 11:
1072
+            this.formValue.dialysis_process = ''
1073
+            break;
1074
+
1075
+          case 13:
1076
+            this.formValue.hemostasis_opera = ''
1077
+            break;
1078
+          case 14:
1079
+            this.formValue.tremor_noise = ''
1080
+            break;
1081
+          case 15:
1082
+            this.formValue.disequilibrium_syndrome = ''
1083
+            break;
1084
+
1085
+          case 17:
1086
+            this.formValue.arterial_tube = ''
1087
+            break;
1088
+          case 18:
1089
+            this.formValue.intravenous_tube = ''
1090
+            break;
1091
+          case 19:
1092
+            this.formValue.dialyzer = ''
1093
+
1094
+            break;
1095
+        }
1096
+
1052
       }
1097
       }
1053
 
1098
 
1054
     },
1099
     },

+ 5 - 5
src/pages/main/dialog/subMenu/checkBoxSubMenu.vue 查看文件

11
     <div v-if="propsForm.isMultiple == 1" class="optionsBox">
11
     <div v-if="propsForm.isMultiple == 1" class="optionsBox">
12
       <div class="list">
12
       <div class="list">
13
         <ul>
13
         <ul>
14
-          <!--<li  @click="itemClick(-2)"  :key="-2" value="-2" >请选择</li>-->
14
+          <li  @click="itemClick(-2)"  :key="-2" value="-2" >请选择</li>
15
           <li  @click="itemClick(item.id)"  v-for="item in propsForm.optionList" :key="item.id" value="item" :class="propsForm.selectId == item.id? 'tick':'' ">{{item.name}}</li>
15
           <li  @click="itemClick(item.id)"  v-for="item in propsForm.optionList" :key="item.id" value="item" :class="propsForm.selectId == item.id? 'tick':'' ">{{item.name}}</li>
16
-          <li v-if="propsForm.isHasOther == 1 && this.$store.getters.user.template_info.template_id == 2" @click="itemClick(-1)"  :key="-1" value="-1" :class="propsForm.selectId == -1? 'tick':'' ">其他</li>
16
+          <!--<li v-if="propsForm.isHasOther == 1 && this.$store.getters.user.template_info.template_id == 2" @click="itemClick(-1)"  :key="-1" value="-1" :class="propsForm.selectId == -1? 'tick':'' ">其他</li>-->
17
 
17
 
18
         </ul>
18
         </ul>
19
       </div>
19
       </div>
79
       return form;
79
       return form;
80
     },
80
     },
81
     itemClick: function(id) {
81
     itemClick: function(id) {
82
-      // if(id == -2){
83
-      //   this.visibility = false
84
-      // }
82
+      if(id == -2){
83
+        this.$emit("menu-empty", this.getValue());
84
+      }
85
       this.propsForm.selectId = id;
85
       this.propsForm.selectId = id;
86
       this.$emit("menu-comfirm", this.getValue());
86
       this.$emit("menu-comfirm", this.getValue());
87
     }
87
     }

+ 3 - 3
src/pages/main/today/dialysisComputer.vue 查看文件

16
                 <span class="content">{{stage}}</span>
16
                 <span class="content">{{stage}}</span>
17
             </li>
17
             </li>
18
           <li>
18
           <li>
19
-            <label>上机时间 : </label>
20
-            <span class="content">{{start_time}}</span>
21
-          </li>
19
+          <label>上机时间 : </label>
20
+          <span class="content">{{start_time}}</span>
21
+        </li>
22
         </ul>
22
         </ul>
23
     </div>
23
     </div>
24
     <!-- <div class="note">处方医生 : {{doctor}}</div> -->
24
     <!-- <div class="note">处方医生 : {{doctor}}</div> -->

+ 1 - 1
src/pages/main/today/dialysisPrescription.vue 查看文件

116
           <span class="content">{{special_medicine}}</span>
116
           <span class="content">{{special_medicine}}</span>
117
           <span class="unit"></span>
117
           <span class="unit"></span>
118
         </li>
118
         </li>
119
-        <li v-if="this.$store.getters.user.template_info.template_id == 2&&this.prescription.special_medicine == 4">
119
+        <li v-if="this.$store.getters.user.template_info.template_id == 2">
120
           <label>透析前使用其他特殊药物: </label>
120
           <label>透析前使用其他特殊药物: </label>
121
           <span class="content">{{special_medicine_other}}</span>
121
           <span class="content">{{special_medicine_other}}</span>
122
           <span class="unit"></span>
122
           <span class="unit"></span>

+ 0 - 1
src/store/modules/globalConfig.js 查看文件

550
       {id: 1, name: "无"},
550
       {id: 1, name: "无"},
551
       {id: 2, name: "降压药"},
551
       {id: 2, name: "降压药"},
552
       {id: 3, name: "抗凝"},
552
       {id: 3, name: "抗凝"},
553
-      {id: 4, name: "其他"},
554
     ],
553
     ],
555
     blood_access:[
554
     blood_access:[
556
       {id: 1, name: "内瘘"},
555
       {id: 1, name: "内瘘"},