Browse Source

bug修复

csx 5 years ago
parent
commit
f668bd7629

+ 11 - 0
src/api/dialysis.js View File

233
 }
233
 }
234
 
234
 
235
 
235
 
236
+export function CreateDryWeight(params){
237
+  return request({
238
+    url:"/m/api/dryweight/commit",
239
+    method:'post',
240
+    params:params,
241
+  })
242
+
243
+}
244
+
245
+
246
+

+ 104 - 70
src/pages/main/WaitingArea.vue View File

176
         return this.processScheduals(scheduals);
176
         return this.processScheduals(scheduals);
177
       }
177
       }
178
       //
178
       //
179
-      // if (this.zone_selected != 0) {
180
-      //   var zone_name = this.zone_options[this.zone_selected].text
181
-      //   for (let index = 0; index < this.zone_scheduals.length; index++) {
182
-      //     const zone_scheduals = this.zone_scheduals[index]
183
-      //     if (zone_scheduals.zone_name == zone_name) {
184
-      //       return [zone_scheduals]
185
-      //     }
186
-      //   }
187
-      // }
188
-
189
-      // if (this.time_selected != 0) {
190
-      //   var zone_name = this.zone_options[this.zone_selected].text
191
-      //   console.log(zone_name)
192
-      //   var schedules = [];
193
-      //   for (let o_i = 0; o_i < this.zone_scheduals.length; o_i++) {
194
-      //     const scheduleInfo = this.zone_scheduals[o_i];
195
-      //     var originSchedules = scheduleInfo.scheduals;
196
-      //     var filtedSchedules = [];
197
-      //     for (let s_i = 0; s_i < originSchedules.length; s_i++) {
198
-      //       const schedule = originSchedules[s_i];
199
-      //       if(this.zone_selected == 0){
200
-      //         if (this.time_selected == 0 || schedule.schedule_type == this.time_selected) {
201
-      //           filtedSchedules.push(schedule);
202
-      //         }
203
-      //
204
-      //       }else{
205
-      //         console.log(zone_name)
206
-      //         console.log(schedule.device_number.zone.name)
207
-      //
208
-      //         if ((zone_name.length > 0 && zone_name == schedule.device_number.zone.name)) {
209
-      //           if (this.time_selected == 0 || schedule.schedule_type == this.time_selected) {
210
-      //             filtedSchedules.push(schedule);
211
-      //           }
212
-      //         }
213
-      //       }
214
-      //     }
215
-      //     if (filtedSchedules.length > 0) {
216
-      //       schedules.push({
217
-      //         zone_name: scheduleInfo.zone_name,
218
-      //         scheduals: filtedSchedules
219
-      //       });
220
-      //     }
221
-      //   }
222
-      //   return schedules
223
-      // }
224
-      
179
+      if (this.zone_selected != 0) {
180
+
181
+        // var zone_name = this.zone_options[this.zone_selected].text
182
+        // for (let index = 0; index < this.zone_scheduals.length; index++) {
183
+        //   const zone_scheduals = this.zone_scheduals[index]
184
+        //   if (zone_scheduals.zone_name == zone_name) {
185
+        //     return [zone_scheduals]
186
+        //   }
187
+        // }
188
+        var zone_name = this.zone_options[this.zone_selected].text
189
+        console.log(zone_name)
190
+        var schedules = [];
191
+        for (let o_i = 0; o_i < this.zone_scheduals.length; o_i++) {
192
+          const scheduleInfo = this.zone_scheduals[o_i];
193
+          var originSchedules = scheduleInfo.scheduals;
194
+          var filtedSchedules = [];
195
+          for (let s_i = 0; s_i < originSchedules.length; s_i++) {
196
+            const schedule = originSchedules[s_i];
197
+            if(this.zone_selected == 0){
198
+              if (this.time_selected == 0 || schedule.schedule_type == this.time_selected) {
199
+                filtedSchedules.push(schedule);
200
+              }
201
+
202
+            }else{
203
+              console.log(zone_name)
204
+              console.log(schedule.device_number.zone.name)
205
+
206
+              if ((zone_name.length > 0 && zone_name == schedule.device_number.zone.name)) {
207
+                if (this.time_selected == 0 || schedule.schedule_type == this.time_selected) {
208
+                  filtedSchedules.push(schedule);
209
+                }
210
+              }
211
+            }
212
+          }
213
+          if (filtedSchedules.length > 0) {
214
+            schedules.push({
215
+              zone_name: scheduleInfo.zone_name,
216
+              scheduals: filtedSchedules
217
+            });
218
+          }
219
+        }
220
+        return schedules
221
+      }
222
+
223
+      if (this.time_selected != 0) {
224
+        var zone_name = this.zone_options[this.zone_selected].text
225
+        console.log(zone_name)
226
+        var schedules = [];
227
+        for (let o_i = 0; o_i < this.zone_scheduals.length; o_i++) {
228
+          const scheduleInfo = this.zone_scheduals[o_i];
229
+          var originSchedules = scheduleInfo.scheduals;
230
+          var filtedSchedules = [];
231
+          for (let s_i = 0; s_i < originSchedules.length; s_i++) {
232
+            const schedule = originSchedules[s_i];
233
+            if(this.zone_selected == 0){
234
+              if (this.time_selected == 0 || schedule.schedule_type == this.time_selected) {
235
+                filtedSchedules.push(schedule);
236
+              }
237
+
238
+            }else{
239
+              console.log(zone_name)
240
+              console.log(schedule.device_number.zone.name)
241
+
242
+              if ((zone_name.length > 0 && zone_name == schedule.device_number.zone.name)) {
243
+                if (this.time_selected == 0 || schedule.schedule_type == this.time_selected) {
244
+                  filtedSchedules.push(schedule);
245
+                }
246
+              }
247
+            }
248
+          }
249
+          if (filtedSchedules.length > 0) {
250
+            schedules.push({
251
+              zone_name: scheduleInfo.zone_name,
252
+              scheduals: filtedSchedules
253
+            });
254
+          }
255
+        }
256
+        return schedules
257
+      }
258
+
225
       var zone_selected = this.zone_selected;
259
       var zone_selected = this.zone_selected;
226
       var timetype_selected = this.time_selected;
260
       var timetype_selected = this.time_selected;
227
       var assessment_before_dislysis_count = 0;
261
       var assessment_before_dislysis_count = 0;
228
       var prescription_count = 0;
262
       var prescription_count = 0;
229
       if (zone_selected != 0 || timetype_selected != 0) {
263
       if (zone_selected != 0 || timetype_selected != 0) {
230
-        // var zone_name = zone_selected == 0 ? "" : this.zone_options[zone_selected].text;
231
-        // var schedules = [];
232
-        // for (let o_i = 0; o_i < this.zone_scheduals.length; o_i++) {
233
-        //   const scheduleInfo = this.zone_scheduals[o_i];
234
-        //   var originSchedules = scheduleInfo.scheduals;
235
-        //   var filtedSchedules = [];
236
-        //   for (let s_i = 0; s_i < originSchedules.length; s_i++) {
237
-        //     const schedule = originSchedules[s_i];
238
-        //     if ( zone_name.length == 0 || (zone_name.length > 0 && zone_name == schedule.device_number.zone.name)) {
239
-        //       if ( timetype_selected == 0 ||  schedule.schedule_type == timetype_selected ) {
240
-        //         filtedSchedules.push(schedule);
241
-        //       }
242
-        //     }
243
-        //   }
244
-        //   if (filtedSchedules.length > 0) {
245
-        //     schedules.push({
246
-        //       zone_name: scheduleInfo.zone_name,
247
-        //       scheduals: filtedSchedules
248
-        //     });
249
-        //   }
250
-        // }
251
-       
252
-        // return schedules;
264
+        var zone_name = zone_selected == 0 ? "" : this.zone_options[zone_selected].text;
265
+        var schedules = [];
266
+        for (let o_i = 0; o_i < this.zone_scheduals.length; o_i++) {
267
+          const scheduleInfo = this.zone_scheduals[o_i];
268
+          var originSchedules = scheduleInfo.scheduals;
269
+          var filtedSchedules = [];
270
+          for (let s_i = 0; s_i < originSchedules.length; s_i++) {
271
+            const schedule = originSchedules[s_i];
272
+            if ( zone_name.length == 0 || (zone_name.length > 0 && zone_name == schedule.device_number.zone.name)) {
273
+              if ( timetype_selected == 0 ||  schedule.schedule_type == timetype_selected ) {
274
+                filtedSchedules.push(schedule);
275
+              }
276
+            }
277
+          }
278
+          if (filtedSchedules.length > 0) {
279
+            schedules.push({
280
+              zone_name: scheduleInfo.zone_name,
281
+              scheduals: filtedSchedules
282
+            });
283
+          }
284
+        }
285
+
286
+        return schedules;
253
         if (this.select_index == 2) {
287
         if (this.select_index == 2) {
254
           var scheduals = [];
288
           var scheduals = [];
255
           for (let index = 0; index < this.scheduals.length; index++) {
289
           for (let index = 0; index < this.scheduals.length; index++) {
406
       if (this.select_index == 2) {
440
       if (this.select_index == 2) {
407
         this.menuList[2].count = assessment_before_dislysis_count;
441
         this.menuList[2].count = assessment_before_dislysis_count;
408
       }
442
       }
409
-            
443
+
410
 
444
 
411
       var zones = [];
445
       var zones = [];
412
       // zones.push({ value: 0, text: "全部分区" })
446
       // zones.push({ value: 0, text: "全部分区" })

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

14
             <input type="tel" @focus="inputFocus" v-model="formValue.weight_before"/>
14
             <input type="tel" @focus="inputFocus" v-model="formValue.weight_before"/>
15
           </div>
15
           </div>
16
         </div>
16
         </div>
17
-        <div class="item" v-if="isShow('干体重')">
17
+
18
+
19
+        <div class="item" v-if="isShow('干体重')&&this.$store.getters.user.template_info.template_id == 6">
18
           <h2 class="name">干体重(kg)</h2>
20
           <h2 class="name">干体重(kg)</h2>
19
           <div class="content" @click="showDryWeight">
21
           <div class="content" @click="showDryWeight">
20
             <input type="tel" @focus="inputFocus" v-model="formValue.dry_weight" disabled="disabled"/>
22
             <input type="tel" @focus="inputFocus" v-model="formValue.dry_weight" disabled="disabled"/>
21
           </div>
23
           </div>
22
         </div>
24
         </div>
25
+
26
+        <div class="item" v-if="isShow('干体重')&& this.$store.getters.user.template_info.template_id != 6">
27
+          <h2 class="name">干体重(kg)</h2>
28
+          <div class="content">
29
+            <input type="tel" @focus="inputFocus" v-model="formValue.dry_weight" />
30
+          </div>
31
+        </div>
32
+
33
+
23
         <div class="item" v-if="isShow('衣物重')">
34
         <div class="item" v-if="isShow('衣物重')">
24
           <h2 class="name">衣物重(kg)</h2>
35
           <h2 class="name">衣物重(kg)</h2>
25
           <div class="content">
36
           <div class="content">
328
                     v-model="formValue.remark"></textarea>
339
                     v-model="formValue.remark"></textarea>
329
         </div>
340
         </div>
330
       </div>
341
       </div>
331
-
332
     </div>
342
     </div>
333
-    <!--<two-menu title="二级菜单" v-show="true" ></two-menu>-->
343
+
334
     <check-box-sub-menu :visibility="visibility" v-on:menu-cancle="menuCancle" v-on:menu-comfirm="menuComfirm" v-on:menu-empty="menuEmpty"
344
     <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>
345
                         :propsForm="propForm"></check-box-sub-menu>
336
 
346
 
347
+    <dry-weight-menu ref="dry"  v-on:menu-cancle-two="menuDryCancle" v-on:menu-comfirm-two="menuDryComfirm" :propsForm="propDryForm"></dry-weight-menu>
337
 
348
 
338
-    <check-box-sub-menu :visibility="visibility" v-on:menu-cancle="menuCancle" v-on:menu-comfirm="menuComfirm" v-on:menu-empty="menuEmpty"
339
-                        :propsForm="propForm"></check-box-sub-menu>
340
   </div>
349
   </div>
341
 </template>
350
 </template>
342
 
351
 
346
   import {EditAssessmentBeforeDislysis} from '@/api/patient'
355
   import {EditAssessmentBeforeDislysis} from '@/api/patient'
347
   import {Toast} from 'vant'
356
   import {Toast} from 'vant'
348
   import {getDataConfig} from '@/utils/data'
357
   import {getDataConfig} from '@/utils/data'
358
+  import DryWeightMenu from './subMenu/dryWeightMenu'
349
 
359
 
350
   export default {
360
   export default {
351
     name: 'PrescriptionDialog',
361
     name: 'PrescriptionDialog',
362
       },
372
       },
363
       last_predialysis: {
373
       last_predialysis: {
364
         type: Object,
374
         type: Object,
375
+      },  admin_users_prop: {
376
+        type: Array
365
       },
377
       },
366
     },
378
     },
367
     data () {
379
     data () {
368
       return {
380
       return {
381
+        propDryForm:{
382
+          weight:0,
383
+          doctor:[],
384
+        },
369
         isShowDialog: true,
385
         isShowDialog: true,
370
         //sub menu prop
386
         //sub menu prop
371
         visibility: false,
387
         visibility: false,
388
+        is_show_dry_weight: false,
372
         propForm: {
389
         propForm: {
373
           title: '',
390
           title: '',
374
           list: [],
391
           list: [],
441
       }
458
       }
442
     },
459
     },
443
     methods: {
460
     methods: {
461
+      menuDryComfirm(val){
462
+        console.log(val)
463
+        this.isShowDialog = true
464
+        this.$refs.dry.close()
465
+        this.formValue.dry_weight = val.dry_weight
466
+        this.propDryForm.weight = val.dry_weight
467
+        this.dry_weight = val
468
+        this.$emit("weight_update",this.dry_weight);
469
+
470
+      },
471
+      menuDryCancle(){
472
+        this.isShowDialog = true
473
+        this.$refs.dry.close()
474
+
475
+        // this.is_show_dry_weight = false
476
+
477
+
478
+      },
444
       isShow(name){
479
       isShow(name){
445
         var filedList = this.$store.getters.user.fileds
480
         var filedList = this.$store.getters.user.fileds
446
 
481
 
1113
       },
1148
       },
1114
       commitInfo: function () {
1149
       commitInfo: function () {
1115
         Toast.loading({forbidClick: true, duration: 0})
1150
         Toast.loading({forbidClick: true, duration: 0})
1116
-        console.log(this.formValue)
1151
+        if (this.formValue.dry_weight == undefined){
1152
+          this.formValue.dry_weight = "0"
1153
+        }else{
1154
+
1155
+          this.formValue.dry_weight = this.formValue.dry_weight.toString()
1156
+        }
1157
+
1158
+
1117
         EditAssessmentBeforeDislysis(this.$route.query.patient_id, this.record_date, this.formValue).then(response => {
1159
         EditAssessmentBeforeDislysis(this.$route.query.patient_id, this.record_date, this.formValue).then(response => {
1118
           if (response.data.state == 0) {
1160
           if (response.data.state == 0) {
1119
             Toast(response.data.msg)
1161
             Toast(response.data.msg)
1124
           }
1166
           }
1125
         })
1167
         })
1126
       },showDryWeight:function(){
1168
       },showDryWeight:function(){
1127
-
1128
-
1129
-
1130
-
1169
+        if(this.$store.getters.user.user.user_type == 3){
1170
+          return
1171
+        }
1172
+        this.isShowDialog = false
1173
+        this.$refs.dry.open()
1174
+        this.propDryForm.doctor=[]
1175
+        for (let i = 0; i < this.admin_users_prop.length;i++){
1176
+          if(this.admin_users_prop[i].user_type == 2 || this.admin_users_prop[i].user_type == 1){
1177
+            this.propDryForm.doctor.push(this.admin_users_prop[i])
1178
+          }
1179
+        }
1131
       },
1180
       },
1132
       close: function () {
1181
       close: function () {
1133
         this.$emit('close')
1182
         this.$emit('close')
1173
       }
1222
       }
1174
 
1223
 
1175
     }, components: {
1224
     }, components: {
1225
+      DryWeightMenu,
1176
       CheckBoxSubMenu,
1226
       CheckBoxSubMenu,
1177
 
1227
 
1178
     }, created () {
1228
     }, created () {
1191
         d = newDate.getDate()
1241
         d = newDate.getDate()
1192
       }
1242
       }
1193
       this.record_date = y + '-' + (m < 10 ? '0' + m : m) + '-' + (d < 10 ? '0' + d : d)
1243
       this.record_date = y + '-' + (m < 10 ? '0' + m : m) + '-' + (d < 10 ? '0' + d : d)
1194
-      // console.log(this.predialysis)
1195
       this.formValue = this.predialysis
1244
       this.formValue = this.predialysis
1245
+      console.log("3333333")
1246
+
1196
       if (this.predialysis.id == undefined && this.last_predialysis.id != undefined) {
1247
       if (this.predialysis.id == undefined && this.last_predialysis.id != undefined) {
1197
-        // this.$set(this.formValue, 'dry_weight', this.last_predialysis['dry_weight'].toString())
1248
+        console.log("111111")
1198
         this.$set(this.formValue, 'additional_weight', this.last_predialysis['additional_weight'].toString())
1249
         this.$set(this.formValue, 'additional_weight', this.last_predialysis['additional_weight'].toString())
1199
         this.$set(this.formValue, 'internal_fistula', this.last_predialysis['internal_fistula'])
1250
         this.$set(this.formValue, 'internal_fistula', this.last_predialysis['internal_fistula'])
1200
         this.$set(this.formValue, 'internal_fistula_skin', this.last_predialysis['internal_fistula_skin'])
1251
         this.$set(this.formValue, 'internal_fistula_skin', this.last_predialysis['internal_fistula_skin'])
1202
         this.$set(this.formValue, 'blood_access_part_opera_id', this.last_predialysis['blood_access_part_opera_id'])
1253
         this.$set(this.formValue, 'blood_access_part_opera_id', this.last_predialysis['blood_access_part_opera_id'])
1203
       }
1254
       }
1204
 
1255
 
1205
-      if (this.predialysis.id == undefined && this.dry_weight.id != undefined) {
1206
-        this.$set(this.formValue, 'dry_weight', this.dry_weight.adjusted_value.toString())
1256
+      if(this.$store.getters.user.template_info.template_id != 6 && this.predialysis.id == undefined && this.last_predialysis.id != undefined){
1257
+        console.log("222222")
1258
+
1259
+        this.$set(this.formValue, 'dry_weight', this.last_predialysis['dry_weight'].toString())
1207
       }
1260
       }
1208
 
1261
 
1262
+      if (this.$store.getters.user.template_info.template_id == 6 ) {
1263
+        console.log("333333333")
1264
+
1265
+        if(this.dry_weight != null && this.dry_weight.id != undefined){
1266
+          this.$set(this.formValue, 'dry_weight', this.dry_weight.dry_weight.toString())
1267
+          this.propDryForm.weight = this.dry_weight.dry_weight.toString()
1268
+        }else{
1269
+          if(this.predialysis.id == undefined && this.last_predialysis.id != undefined){
1270
+            this.$set(this.formValue, 'dry_weight', this.last_predialysis['dry_weight'].toString())
1271
+            this.propDryForm.weight = this.formValue.dry_weight
1272
+          }
1273
+        }
1274
+      }
1209
       this.hemorrhage_state = this.formValue.is_hemorrhage == 0
1275
       this.hemorrhage_state = this.formValue.is_hemorrhage == 0
1210
     }
1276
     }
1211
   }
1277
   }

+ 132 - 49
src/pages/main/dialog/PrescriptionDialog.vue View File

758
                 return false
758
                 return false
759
               } else {
759
               } else {
760
 
760
 
761
-                var d = new Date();
762
-                var year = d.getFullYear();
763
-                var month=d.getMonth()+1;
764
-                var day=d.getDate();
765
-                var hour=d.getHours();
766
-                var minute=d.getMinutes();
767
-                var time = year+'-'+month+'-'+day+' '+hour+':'+minute
761
+                var date = new Date();
762
+                var year = date.getFullYear();
763
+                var month = date.getMonth() + 1;
764
+                var day = date.getDate();
765
+
766
+                var hours = date.getHours();
767
+                var minites = date.getMinutes();
768
+
769
+                if (month < 10) {
770
+                  month = "0" + month;
771
+                }
772
+                if (day < 10) {
773
+                  day = "0" + day;
774
+                }
775
+                if (hours < 10) {
776
+                  hours = "0" + hours;
777
+                }
778
+                if (minites < 10) {
779
+                  minites = "0" + minites;
780
+                }
781
+                var nowDate = year + "-" + month + "-" + day +" " +hours+":"+ minites;
768
 
782
 
769
                 Toast.success('提交成功')
783
                 Toast.success('提交成功')
770
                 let params = {
784
                 let params = {
773
                   advice_doctor: targetAdvices[0].advice_doctor,
787
                   advice_doctor: targetAdvices[0].advice_doctor,
774
                   advice_type: targetAdvices[0].advice_type,
788
                   advice_type: targetAdvices[0].advice_type,
775
                   parent_id: this.$route.query.patient_id,
789
                   parent_id: this.$route.query.patient_id,
776
-                  start_time: time,
790
+                  start_time: nowDate,
777
                   remark: '',
791
                   remark: '',
778
                 }
792
                 }
779
 
793
 
802
                 return false
816
                 return false
803
               } else {
817
               } else {
804
                 Toast.success('提交成功')
818
                 Toast.success('提交成功')
805
-                var d=new Date();
806
-                var year=d.getFullYear();
807
-                var month=change(d.getMonth()+1);
808
-                var day=change(d.getDate());
809
-                var hour=change(d.getHours());
810
-                var minute=change(d.getMinutes());
811
-                var time=year+'-'+month+'-'+day+' '+hour+':'+minute
819
+                var date = new Date();
820
+                var year = date.getFullYear();
821
+                var month = date.getMonth() + 1;
822
+                var day = date.getDate();
823
+
824
+                var hours = date.getHours();
825
+                var minites = date.getMinutes();
826
+
827
+                if (month < 10) {
828
+                  month = "0" + month;
829
+                }
830
+                if (day < 10) {
831
+                  day = "0" + day;
832
+                }
833
+                if (hours < 10) {
834
+                  hours = "0" + hours;
835
+                }
836
+                if (minites < 10) {
837
+                  minites = "0" + minites;
838
+                }
839
+                var nowDate = year + "-" + month + "-" + day +" " +hours+":"+ minites;
840
+
841
+
812
                 let params = {
842
                 let params = {
813
                   advices: targetAdvices,
843
                   advices: targetAdvices,
814
                   advice_date: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
844
                   advice_date: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
815
                   advice_doctor: targetAdvices[0].advice_doctor,
845
                   advice_doctor: targetAdvices[0].advice_doctor,
816
                   advice_type: targetAdvices[0].advice_type,
846
                   advice_type: targetAdvices[0].advice_type,
817
                   parent_id: this.$route.query.patient_id,
847
                   parent_id: this.$route.query.patient_id,
818
-                  start_time: time,
848
+                  start_time: nowDate,
819
                   remark: '',
849
                   remark: '',
820
                 }
850
                 }
821
                 CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
851
                 CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
860
                 return false
890
                 return false
861
               } else {
891
               } else {
862
                 Toast.success('提交成功')
892
                 Toast.success('提交成功')
863
-
864
                 this.$emit('longSolution', response.data.data.solution, this.doctorAdvices)
893
                 this.$emit('longSolution', response.data.data.solution, this.doctorAdvices)
865
                 this.$emit('prescription', response.data.data.prescription, this.doctorAdvices)
894
                 this.$emit('prescription', response.data.data.prescription, this.doctorAdvices)
866
                 this.finish()
895
                 this.finish()
1065
                 } else {
1094
                 } else {
1066
                   Toast.success('提交成功')
1095
                   Toast.success('提交成功')
1067
 
1096
 
1068
-                  var d=new Date();
1069
-                  var year=d.getFullYear();
1070
-                  var month=change(d.getMonth()+1);
1071
-                  var day=change(d.getDate());
1072
-                  var hour=change(d.getHours());
1073
-                  var minute=change(d.getMinutes());
1074
-                  var time=year+'-'+month+'-'+day+' '+hour+':'+minute
1097
+                  var date = new Date();
1098
+                  var year = date.getFullYear();
1099
+                  var month = date.getMonth() + 1;
1100
+                  var day = date.getDate();
1101
+
1102
+                  var hours = date.getHours();
1103
+                  var minites = date.getMinutes();
1104
+
1105
+                  if (month < 10) {
1106
+                    month = "0" + month;
1107
+                  }
1108
+                  if (day < 10) {
1109
+                    day = "0" + day;
1110
+                  }
1111
+                  if (hours < 10) {
1112
+                    hours = "0" + hours;
1113
+                  }
1114
+                  if (minites < 10) {
1115
+                    minites = "0" + minites;
1116
+                  }
1117
+                  var nowDate = year + "-" + month + "-" + day +" " +hours+":"+ minites;
1075
 
1118
 
1076
                   let params = {
1119
                   let params = {
1077
                     advices: this.waitUploadAdvices,
1120
                     advices: this.waitUploadAdvices,
1079
                     advice_doctor: this.waitUploadAdvices[0].advice_doctor,
1122
                     advice_doctor: this.waitUploadAdvices[0].advice_doctor,
1080
                     advice_type: this.waitUploadAdvices[0].advice_type,
1123
                     advice_type: this.waitUploadAdvices[0].advice_type,
1081
                     parent_id: this.$route.query.patient_id,
1124
                     parent_id: this.$route.query.patient_id,
1082
-                    start_time: time,
1125
+                    start_time: nowDate,
1083
                     remark: '',
1126
                     remark: '',
1084
                   }
1127
                   }
1085
                   CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
1128
                   CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
1183
                     return false
1226
                     return false
1184
                   } else {
1227
                   } else {
1185
 
1228
 
1229
+                    var date = new Date();
1230
+                    var year = date.getFullYear();
1231
+                    var month = date.getMonth() + 1;
1232
+                    var day = date.getDate();
1186
 
1233
 
1187
-                    var d=new Date();
1188
-                    var year=d.getFullYear();
1189
-                    var month=change(d.getMonth()+1);
1190
-                    var day=change(d.getDate());
1191
-                    var hour=change(d.getHours());
1192
-                    var minute=change(d.getMinutes());
1193
-                    var time=year+'-'+month+'-'+day+' '+hour+':'+minute
1234
+                    var hours = date.getHours();
1235
+                    var minites = date.getMinutes();
1236
+
1237
+                    if (month < 10) {
1238
+                      month = "0" + month;
1239
+                    }
1240
+                    if (day < 10) {
1241
+                      day = "0" + day;
1242
+                    }
1243
+                    if (hours < 10) {
1244
+                      hours = "0" + hours;
1245
+                    }
1246
+                    if (minites < 10) {
1247
+                      minites = "0" + minites;
1248
+                    }
1249
+                    var nowDate = year + "-" + month + "-" + day +" " +hours+":"+ minites;
1194
 
1250
 
1195
 
1251
 
1196
                     let params = {
1252
                     let params = {
1199
                       advice_doctor: this.waitUploadAdvices[0].advice_doctor,
1255
                       advice_doctor: this.waitUploadAdvices[0].advice_doctor,
1200
                       advice_type: this.waitUploadAdvices[0].advice_type,
1256
                       advice_type: this.waitUploadAdvices[0].advice_type,
1201
                       parent_id: this.$route.query.patient_id,
1257
                       parent_id: this.$route.query.patient_id,
1202
-                      start_time: time,
1258
+                      start_time: nowDate,
1203
                       remark: '',
1259
                       remark: '',
1204
                     }
1260
                     }
1205
 
1261
 
1334
                 } else {
1390
                 } else {
1335
                   Toast.success('提交成功')
1391
                   Toast.success('提交成功')
1336
 
1392
 
1337
-                  var d=new Date();
1338
-                  var year=d.getFullYear();
1339
-                  var month=change(d.getMonth()+1);
1340
-                  var day=change(d.getDate());
1341
-                  var hour=change(d.getHours());
1342
-                  var minute=change(d.getMinutes());
1343
-                  var time=year+'-'+month+'-'+day+' '+hour+':'+minute
1393
+                  var date = new Date();
1394
+                  var year = date.getFullYear();
1395
+                  var month = date.getMonth() + 1;
1396
+                  var day = date.getDate();
1397
+
1398
+                  var hours = date.getHours();
1399
+                  var minites = date.getMinutes();
1400
+
1401
+                  if (month < 10) {
1402
+                    month = "0" + month;
1403
+                  }
1404
+                  if (day < 10) {
1405
+                    day = "0" + day;
1406
+                  }
1407
+                  if (hours < 10) {
1408
+                    hours = "0" + hours;
1409
+                  }
1410
+                  if (minites < 10) {
1411
+                    minites = "0" + minites;
1412
+                  }
1413
+                  var nowDate = year + "-" + month + "-" + day +" " +hours+":"+ minites;
1344
 
1414
 
1345
 
1415
 
1346
                   let params = {
1416
                   let params = {
1349
                     advice_doctor: this.waitUploadAdvices[0].advice_doctor,
1419
                     advice_doctor: this.waitUploadAdvices[0].advice_doctor,
1350
                     advice_type: this.waitUploadAdvices[0].advice_type,
1420
                     advice_type: this.waitUploadAdvices[0].advice_type,
1351
                     parent_id: this.$route.query.patient_id,
1421
                     parent_id: this.$route.query.patient_id,
1352
-                    start_time: time,
1422
+                    start_time: nowDate,
1353
                     remark: '',
1423
                     remark: '',
1354
                   }
1424
                   }
1355
                   CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
1425
                   CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
1463
                     this.advice_visibility = false
1533
                     this.advice_visibility = false
1464
 
1534
 
1465
 
1535
 
1466
-                    var d=new Date();
1467
-                    var year=d.getFullYear();
1468
-                    var month=change(d.getMonth()+1);
1469
-                    var day=change(d.getDate());
1470
-                    var hour=change(d.getHours());
1471
-                    var minute=change(d.getMinutes());
1472
-                    var time = year+'-'+month+'-'+day+' '+hour+':'+minute
1536
+                    var date = new Date();
1537
+                    var year = date.getFullYear();
1538
+                    var month = date.getMonth() + 1;
1539
+                    var day = date.getDate();
1540
+
1541
+                    var hours = date.getHours();
1542
+                    var minites = date.getMinutes();
1473
 
1543
 
1544
+                    if (month < 10) {
1545
+                      month = "0" + month;
1546
+                    }
1547
+                    if (day < 10) {
1548
+                      day = "0" + day;
1549
+                    }
1550
+                    if (hours < 10) {
1551
+                      hours = "0" + hours;
1552
+                    }
1553
+                    if (minites < 10) {
1554
+                      minites = "0" + minites;
1555
+                    }
1556
+                    var nowDate = year + "-" + month + "-" + day +" " +hours+":"+ minites;
1474
 
1557
 
1475
                     let params = {
1558
                     let params = {
1476
                       advices: this.waitUploadAdvices,
1559
                       advices: this.waitUploadAdvices,
1478
                       advice_doctor: this.waitUploadAdvices[0].advice_doctor,
1561
                       advice_doctor: this.waitUploadAdvices[0].advice_doctor,
1479
                       advice_type: this.waitUploadAdvices[0].advice_type,
1562
                       advice_type: this.waitUploadAdvices[0].advice_type,
1480
                       parent_id: this.$route.query.patient_id,
1563
                       parent_id: this.$route.query.patient_id,
1481
-                      start_time: time,
1564
+                      start_time: nowDate,
1482
                       remark: '',
1565
                       remark: '',
1483
                     }
1566
                     }
1484
                     CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
1567
                     CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {

+ 16 - 9
src/pages/main/dialog/ThorougDialog.vue View File

570
             this.propForm.title = '凝血'
570
             this.propForm.title = '凝血'
571
             this.propForm.isHasOther = 2
571
             this.propForm.isHasOther = 2
572
             this.visibility = true
572
             this.visibility = true
573
+            this.propForm.list = []
573
             this.propForm.list = getDataConfig("hemodialysis", "cruor");
574
             this.propForm.list = getDataConfig("hemodialysis", "cruor");
574
             this.propForm.optionList = []
575
             this.propForm.optionList = []
575
             this.propForm.isMultiple = 2
576
             this.propForm.isMultiple = 2
582
             } else {
583
             } else {
583
               this.propForm.result = []
584
               this.propForm.result = []
584
             }
585
             }
585
-
586
             this.propForm.click_ref = "cruor"
586
             this.propForm.click_ref = "cruor"
587
             break
587
             break
588
           case 'symptom_after_dialysis':
588
           case 'symptom_after_dialysis':
592
             this.propForm.isHasOther = 2
592
             this.propForm.isHasOther = 2
593
 
593
 
594
             this.visibility = true
594
             this.visibility = true
595
+            this.propForm.list = []
596
+
595
             this.propForm.list = getDataConfig('hemodialysis','symptoms');
597
             this.propForm.list = getDataConfig('hemodialysis','symptoms');
596
             this.propForm.optionList = []
598
             this.propForm.optionList = []
597
             this.propForm.isMultiple = 2
599
             this.propForm.isMultiple = 2
613
             this.propForm.title = '导管'
615
             this.propForm.title = '导管'
614
             this.visibility = true
616
             this.visibility = true
615
             this.propForm.isHasOther = 2
617
             this.propForm.isHasOther = 2
618
+            this.propForm.list = []
616
 
619
 
617
             this.propForm.list = getDataConfig('hemodialysis','catheter')
620
             this.propForm.list = getDataConfig('hemodialysis','catheter')
618
             this.propForm.optionList = []
621
             this.propForm.optionList = []
635
             this.propForm.isHasOther = 2
638
             this.propForm.isHasOther = 2
636
 
639
 
637
             this.visibility = true
640
             this.visibility = true
641
+            this.propForm.list = []
642
+
638
             this.propForm.list = getDataConfig('hemodialysis','complication')
643
             this.propForm.list = getDataConfig('hemodialysis','complication')
639
             this.propForm.optionList = []
644
             this.propForm.optionList = []
640
             this.propForm.isMultiple = 2
645
             this.propForm.isMultiple = 2
683
             this.isShowDialog = false
688
             this.isShowDialog = false
684
             this.propForm.title = '内瘘'
689
             this.propForm.title = '内瘘'
685
             this.visibility = true
690
             this.visibility = true
691
+            this.propForm.list = []
686
             this.propForm.list = getDataConfig('hemodialysis','internal_fistula')
692
             this.propForm.list = getDataConfig('hemodialysis','internal_fistula')
687
             this.propForm.optionList = []
693
             this.propForm.optionList = []
688
             this.propForm.isMultiple = 2
694
             this.propForm.isMultiple = 2
732
             this.propForm.title = '交待病房护士/患者/陪人观察内容'
738
             this.propForm.title = '交待病房护士/患者/陪人观察内容'
733
             this.visibility = true
739
             this.visibility = true
734
             this.propForm.isHasOther = 2
740
             this.propForm.isHasOther = 2
741
+            this.propForm.list = []
735
 
742
 
736
             this.propForm.list = this.$store.getters.observation_content
743
             this.propForm.list = this.$store.getters.observation_content
737
             this.propForm.optionList = []
744
             this.propForm.optionList = []
769
             this.propForm.title = '透析过程提前原因'
776
             this.propForm.title = '透析过程提前原因'
770
             this.visibility = true
777
             this.visibility = true
771
             this.propForm.isHasOther = 2
778
             this.propForm.isHasOther = 2
779
+            this.propForm.list = []
772
 
780
 
773
             this.propForm.list = this.$store.getters.in_advance_reason
781
             this.propForm.list = this.$store.getters.in_advance_reason
774
             this.propForm.optionList = []
782
             this.propForm.optionList = []
830
             this.propForm.title = '失衡综合症情况'
838
             this.propForm.title = '失衡综合症情况'
831
             this.visibility = true
839
             this.visibility = true
832
             this.propForm.isHasOther = 2
840
             this.propForm.isHasOther = 2
841
+            this.propForm.list = []
833
 
842
 
834
             this.propForm.list = this.$store.getters.disequilibrium_syndrome_option
843
             this.propForm.list = this.$store.getters.disequilibrium_syndrome_option
835
             this.propForm.optionList = []
844
             this.propForm.optionList = []
850
             this.isShowDialog = false
859
             this.isShowDialog = false
851
             this.propForm.title = '动脉管道'
860
             this.propForm.title = '动脉管道'
852
             this.propForm.isHasOther = 2
861
             this.propForm.isHasOther = 2
862
+            this.propForm.list = []
853
 
863
 
854
             this.visibility = true
864
             this.visibility = true
855
             this.propForm.list = []
865
             this.propForm.list = []
1249
       this.template_id = this.$store.getters.user.template_info.template_id
1259
       this.template_id = this.$store.getters.user.template_info.template_id
1250
 
1260
 
1251
       if (this.record != null && this.record.id != '' && this.record.assessment_doctor != 0) {
1261
       if (this.record != null && this.record.id != '' && this.record.assessment_doctor != 0) {
1262
+        console.log("111111111")
1252
         for (const key in this.formValue) {
1263
         for (const key in this.formValue) {
1253
           // console.log(key, this.record[key]);
1264
           // console.log(key, this.record[key]);
1254
           this.formValue[key] = this.record[key];
1265
           this.formValue[key] = this.record[key];
1255
         }
1266
         }
1256
       }else  {
1267
       }else  {
1257
-        // if (this.last_record != null && this.last_record.id != ""){
1258
-        //   for (const key in this.formValue) {
1259
-        //     // console.log(key, this.record[key]);
1260
-        //     this.formValue[key] = this.last_record[key];
1261
-        //   }
1262
-        // }
1268
+        console.log("2222222")
1269
+
1263
         if (this.record != null && this.record.id != '' && this.record.assessment_doctor == 0){
1270
         if (this.record != null && this.record.id != '' && this.record.assessment_doctor == 0){
1264
           this.$set(this.formValue, "actual_ultrafiltration", this.record.actual_ultrafiltration)
1271
           this.$set(this.formValue, "actual_ultrafiltration", this.record.actual_ultrafiltration)
1265
           this.$set(this.formValue, "weight_after", this.record.weight_after)
1272
           this.$set(this.formValue, "weight_after", this.record.weight_after)
1277
           this.$set(this.formValue, "actual_treatment_hour", '')
1284
           this.$set(this.formValue, "actual_treatment_hour", '')
1278
           this.$set(this.formValue, "actual_treatment_minute", '')
1285
           this.$set(this.formValue, "actual_treatment_minute", '')
1279
         }
1286
         }
1280
-      } 
1281
-  
1287
+      }
1288
+
1282
 
1289
 
1283
 
1290
 
1284
 
1291
 

+ 1 - 0
src/pages/main/dialog/TwoMenu.vue View File

104
       this.single.id_key = id_key;
104
       this.single.id_key = id_key;
105
       this.handle_select = handle_select;
105
       this.handle_select = handle_select;
106
       this.handle_hide = handle_hide;
106
       this.handle_hide = handle_hide;
107
+      console.log( this.single.cur_id )
107
     },
108
     },
108
     // showMutableSelect(list_options, selected_values, title, show_key, id_key, handle_select) {
109
     // showMutableSelect(list_options, selected_values, title, show_key, id_key, handle_select) {
109
     //   this.show = true
110
     //   this.show = true

+ 62 - 19
src/pages/main/dialog/subMenu/dryWeightMenu.vue View File

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-
4
     <div class="Dialog" v-if="visibility">
3
     <div class="Dialog" v-if="visibility">
5
       <div class="DialogTit">
4
       <div class="DialogTit">
6
         <span class="iconfont" @click="closeDialog()">&#xe720; 返回</span>
5
         <span class="iconfont" @click="closeDialog()">&#xe720; 返回</span>
7
         <h1 class="name">干体重调整</h1>
6
         <h1 class="name">干体重调整</h1>
8
-        <span class="success" @click="commitDryWeight()"></span>
7
+        <span class="success" @click="commitDryWeight()">提交</span>
9
       </div>
8
       </div>
10
 
9
 
11
-      <div class="optionsBox">
10
+      <div class="DialogContent">
12
         <div class="item">
11
         <div class="item">
13
           <label class="name" for="xll">干体重</label>
12
           <label class="name" for="xll">干体重</label>
14
           <div class="content">
13
           <div class="content">
15
-            <input type="tel" id="xll" v-model="dry_weight"/>
14
+            <input autofocus placeholder="请输入干体重" type="tel" id="xll" v-model="dry_weight"/>
16
           </div>
15
           </div>
17
         </div>
16
         </div>
18
 
17
 
19
         <div class="item" @click="select_nurse">
18
         <div class="item" @click="select_nurse">
20
           <h2 class="name">医生</h2>
19
           <h2 class="name">医生</h2>
21
           <div class="content">
20
           <div class="content">
22
-            <span class="text" style="width: 100px">{{ admin_map[nurse_id].name }}</span>
21
+            <span class="text" style="width: 100px">{{getDoctorName(this.creator)}}</span>
23
             <span class="iconfont">&#xe6f9;</span>
22
             <span class="iconfont">&#xe6f9;</span>
24
           </div>
23
           </div>
25
         </div>
24
         </div>
32
         </div>
31
         </div>
33
       </div>
32
       </div>
34
     </div>
33
     </div>
35
-
34
+    <!--<two-menu ref="selector">-->
35
+    <!--</two-menu>-->
36
     <two-menu ref="selector"></two-menu>
36
     <two-menu ref="selector"></two-menu>
37
-
38
   </div>
37
   </div>
39
-
40
-
41
 </template>
38
 </template>
42
 
39
 
43
 <script>
40
 <script>
41
+
44
   import TwoMenu from '../TwoMenu'
42
   import TwoMenu from '../TwoMenu'
43
+  import {CreateDryWeight} from '@/api/dialysis'
45
 
44
 
46
   export default {
45
   export default {
46
+
47
     name: 'dryWeightMenu',
47
     name: 'dryWeightMenu',
48
     components: {TwoMenu},
48
     components: {TwoMenu},
49
+    data () {
50
+      return {
51
+        dry_weight: 0,
52
+        remark: '',
53
+        creator: 0,
54
+        visibility: false
55
+
56
+      }
57
+    },
49
     props: {
58
     props: {
50
-      title: '',
51
-      dry_weight: 0,
52
-      remark: '',
53
-      index: 0,
54
-      visibility: false,
59
+      propsForm: {
60
+        type: Object
61
+      },
55
     },
62
     },
56
     methods: {
63
     methods: {
64
+      open () {
65
+        this.creator = this.$store.getters.user.user.id
66
+        this.dry_weight =  this.propsForm.weight
67
+        this.visibility = true
68
+      },
69
+      close () {
70
+        this.visibility = false
71
+      },
57
       closeDialog () {
72
       closeDialog () {
58
         this.$emit('menu-cancle-two')
73
         this.$emit('menu-cancle-two')
74
+
59
       }, commitDryWeight () {
75
       }, commitDryWeight () {
76
+        let params = {
77
+          id: this.$route.query.patient_id,
78
+          dry_weight: this.dry_weight,
79
+          remark: this.remark,
80
+          doctor_id: this.creator,
81
+        }
82
+        CreateDryWeight(params).then(rs => {
83
+          var res = rs.data
84
+          if (res.state == 1) {
85
+            this.$message.success("提交成功");
86
+            this.$emit('menu-comfirm-two',res.data.weight)
60
 
87
 
61
-        this.$emit('menu-cancle-two')
62
-      },
88
+          }
89
+        })
90
+      }, select_nurse () {
91
+        this.close()
92
+        var _this = this
93
+        if (this.$store.getters.user.user.user_type = 2) {
94
+          this.$refs.selector.showSingleSelect(this.propsForm.doctor, _this.creator, '选择医生', 'name', 'id', function (select_id) {
95
+            _this.visibility = true
96
+            _this.creator = select_id
97
+          }, function () {
98
+            _this.visibility = true
99
+          })
100
+        }
101
+      }, getDoctorName (id) {
102
+        for (let i = 0; i < this.propsForm.doctor.length; i++) {
103
+          if (this.propsForm.doctor[i].id == id) {
104
+            return this.propsForm.doctor[i].name
105
+          }
106
+        }
107
+
108
+      }
63
     },
109
     },
64
-    data () {
65
-      return {}
66
-    }
67
   }
110
   }
68
 </script>
111
 </script>
69
 
112
 

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

384
                   <td>{{monitor.transmembrane_pressure?monitor.transmembrane_pressure:0}}</td>
384
                   <td>{{monitor.transmembrane_pressure?monitor.transmembrane_pressure:0}}</td>
385
                   <td>{{monitor.dialysate_temperature?monitor.dialysate_temperature:''}}</td>
385
                   <td>{{monitor.dialysate_temperature?monitor.dialysate_temperature:''}}</td>
386
                   <td>{{monitor.sodium_concentration?monitor.sodium_concentration:''}}</td>
386
                   <td>{{monitor.sodium_concentration?monitor.sodium_concentration:''}}</td>
387
-                  <td v-if="monitor.systolic_blood_pressure  > 0">{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:0}}</td>
388
-                  <td v-else> </td>
387
+                  <td>{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:0}}</td>
388
+
389
                   <td style="line-height:16px;padding:0px;">
389
                   <td style="line-height:16px;padding:0px;">
390
                     <div style="height:40px;line-height:40px; overflow:hidden;">
390
                     <div style="height:40px;line-height:40px; overflow:hidden;">
391
                         <span style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">
391
                         <span style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">

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

71
 
71
 
72
     <div class="blueBorder"></div>
72
     <div class="blueBorder"></div>
73
     <assessment-before id="assessment_before" :record="predialysis_evaluation" ref="assessment_before"
73
     <assessment-before id="assessment_before" :record="predialysis_evaluation" ref="assessment_before"
74
-                       title="透前评估"></assessment-before>
74
+                       title="透前评估" :dry_weights="dryWeight"  :last_predialysis="last_predialysis_evaluation" ></assessment-before>
75
 
75
 
76
     <div class="blueBorder"></div>
76
     <div class="blueBorder"></div>
77
     <stat-order id="stat_order" ref="stat_order" title="临时医嘱" :doctor_map="admin_user_map"
77
     <stat-order id="stat_order" ref="stat_order" title="临时医嘱" :doctor_map="admin_user_map"
127
 
127
 
128
     <van-popup title="透前评估" v-model="menuList[3].showPopup" :overlay="true" :close-on-click-overlay="false">
128
     <van-popup title="透前评估" v-model="menuList[3].showPopup" :overlay="true" :close-on-click-overlay="false">
129
       <assessment-dialog :predialysis="predialysis_evaluation" :last_predialysis="last_predialysis_evaluation" :dry_weight="dryWeight"
129
       <assessment-dialog :predialysis="predialysis_evaluation" :last_predialysis="last_predialysis_evaluation" :dry_weight="dryWeight"
130
-                         :patient_prop="patient" @evaluation="update_evaluation" @close="closeAssessmentBefore"
131
-                         ref="assessment_dialog"></assessment-dialog>
130
+                         :patient_prop="patient" @evaluation="update_evaluation" @close="closeAssessmentBefore"  :admin_users_prop="admin_users"
131
+                         ref="assessment_dialog" @weight_update="weightFunc"></assessment-dialog>
132
     </van-popup>
132
     </van-popup>
133
 
133
 
134
     <van-popup title="临时医嘱" v-model="menuList[4].showPopup" :overlay="true" :close-on-click-overlay="false">
134
     <van-popup title="临时医嘱" v-model="menuList[4].showPopup" :overlay="true" :close-on-click-overlay="false">
333
           {title: '治疗小结', name: 'treatment_of', value: 0}
333
           {title: '治疗小结', name: 'treatment_of', value: 0}
334
         ]
334
         ]
335
 
335
 
336
+
336
         if (!isNaN(this.prescription.id) && this.prescription.id > 0 && this.prescription.creater> 0) {
337
         if (!isNaN(this.prescription.id) && this.prescription.id > 0 && this.prescription.creater> 0) {
337
           steps[0].value = 1
338
           steps[0].value = 1
338
         }
339
         }
342
         ) {
343
         ) {
343
           steps[1].value = 1
344
           steps[1].value = 1
344
         }
345
         }
346
+
345
         if ( typeof this.predialysis_evaluation.id != 'undefined' && !isNaN(this.predialysis_evaluation.id) && this.predialysis_evaluation.id > 0  && this.predialysis_evaluation.creater > 0) {
347
         if ( typeof this.predialysis_evaluation.id != 'undefined' && !isNaN(this.predialysis_evaluation.id) && this.predialysis_evaluation.id > 0  && this.predialysis_evaluation.creater > 0) {
346
           steps[2].value = 1
348
           steps[2].value = 1
347
         }
349
         }
350
+
348
         if (this.advice_groups.length > 0) {
351
         if (this.advice_groups.length > 0) {
349
           steps[3].value = 1
352
           steps[3].value = 1
350
         }
353
         }
742
             this.loading = false
745
             this.loading = false
743
           }
746
           }
744
         })
747
         })
745
-      },
748
+      },weightFunc(val){
749
+
750
+        this.dryWeight = val
746
 
751
 
747
-      requestDialysisRecord () {
752
+      }, requestDialysisRecord () {
748
         var dateStr = parseTime(this.date, '{y}-{m}-{d}')
753
         var dateStr = parseTime(this.date, '{y}-{m}-{d}')
749
         var params = {
754
         var params = {
750
           patient_id: this.patient_id,
755
           patient_id: this.patient_id,
751
           date: dateStr
756
           date: dateStr
752
         }
757
         }
753
         this.advice_groups = []
758
         this.advice_groups = []
759
+        this.doctor_advices = []
754
 
760
 
755
         getDialysisRecord(params).then(rs => {
761
         getDialysisRecord(params).then(rs => {
756
           var resp = rs.data
762
           var resp = rs.data

+ 22 - 3
src/pages/main/today/assessmentBefore.vue View File

212
     props: {
212
     props: {
213
       record: {
213
       record: {
214
         type: Object
214
         type: Object
215
+      },dry_weights:{
216
+        type: Object
215
       }
217
       }
216
     },
218
     },
217
     created () {
219
     created () {
251
       },
253
       },
252
 
254
 
253
       dry_weight: function () {
255
       dry_weight: function () {
254
-        if (this.record == null || this.record.id == '') {
255
-          return '-'
256
+        if (this.$store.getters.user.template_info.template_id == 6){
257
+          if(this.dry_weights != null && this.dry_weights.id > 0 ){
258
+            return this.dry_weights.dry_weight
259
+          }else{
260
+            if (this.record == null || this.record.id == '') {
261
+              return '-'
262
+            }
263
+            return this.record.dry_weight
264
+          }
265
+
266
+        }else{
267
+
268
+          if (this.record == null || this.record.id == '') {
269
+
270
+            return '-'
271
+          }
272
+
273
+          return this.record.dry_weight
256
         }
274
         }
257
-        return this.record.dry_weight
275
+
276
+
258
       },
277
       },
259
       diastolic_blood_pressure: function () {
278
       diastolic_blood_pressure: function () {
260
         if (this.record == null || this.record.id == '') {
279
         if (this.record == null || this.record.id == '') {