Преглед изворни кода

Merge branch 'superman' of http://git.shengws.com/zhangbj/xt_vue into superman

csx пре 6 година
родитељ
комит
595b4a7bb9

+ 0 - 26
src/xt_pages/dialysis/batch_print/batch_print_order_other.vue Прегледај датотеку

@@ -1062,32 +1062,6 @@
1062 1062
               }
1063 1063
             }
1064 1064
 
1065
-            //
1066
-              if((this.records[recordIndex].assessment_before_dislysis&&this.records[recordIndex].assessment_before_dislysis.systolic_blood_pressure!= 0 && this.records[recordIndex].diastolic_blood_pressure != 0) || (this.records[recordIndex].assessment_before_dislysis && this.records[recordIndex].assessment_before_dislysis.remark.length > 0)) {
1067
-               let records = {
1068
-                   id : -1,
1069
-                  systolic_blood_pressure: this.records[recordIndex].assessment_before_dislysis.systolic_blood_pressure,
1070
-                  diastolic_blood_pressure: this.records[recordIndex].assessment_before_dislysis.diastolic_blood_pressure,
1071
-                  pulse_frequency: 0,
1072
-                  breathing_rate: 0,
1073
-                  venous_pressure: 0,
1074
-                  blood_flow_volume: 0,
1075
-                  ultrafiltration_volume: 0,
1076
-                  sodium_concentration: 0,
1077
-                  symptom: '',
1078
-                  dispose: '',
1079
-                  result:  this.records[recordIndex].assessment_before_dislysis.remark,
1080
-                 monitoring_nurse:this.records[recordIndex].assessment_before_dislysis.creater
1081
-
1082
-               }
1083
-
1084
-                this.records[recordIndex].monitor_records.splice(0,0,records)
1085
-
1086
-              }
1087
-
1088
-
1089
-
1090
-
1091 1065
             var childMap = {}
1092 1066
             for (const index in this.records[recordIndex].advices) {
1093 1067
               if (this.records[recordIndex].advices[index].parent_id == 0) {

+ 14 - 24
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue Прегледај датотеку

@@ -284,16 +284,12 @@
284 284
           <el-col :span="8">
285 285
             <el-form-item label="失衡综合症症状: ">
286 286
 
287
-              <!--<el-select v-model="form.disequilibrium_syndrome_option">-->
288
-                <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
289
-
290
-                <!--<el-option v-for="item in this.$store.getters.disequilibrium_syndrome_option" :label="item.name" :value="item.id"-->
291
-                           <!--:key="item.id"></el-option>-->
292
-              <!--</el-select>-->
293
-
294
-              <el-input v-model="form.disequilibrium_syndrome_option" readonly @focus="showDialog('8')"></el-input>
295
-
287
+              <el-select v-model="form.disequilibrium_syndrome_option">
288
+                <el-option :key="0" label="请选择" :value="0"></el-option>
296 289
 
290
+                <el-option v-for="item in this.$store.getters.disequilibrium_syndrome_option" :label="item.name" :value="item.id"
291
+                           :key="item.id"></el-option>
292
+              </el-select>
297 293
             </el-form-item>
298 294
           </el-col>
299 295
 
@@ -539,6 +535,11 @@
539 535
           this.loading = false
540 536
           return false
541 537
         }
538
+        if (this.record_date.length != 10) {
539
+          this.$message.error('无效的日期')
540
+          this.loading = false
541
+          return false
542
+        }
542 543
 
543 544
         ParamsQuery['patient'] = this.patient.id
544 545
         ParamsQuery['record_date'] = this.record_date
@@ -665,13 +666,6 @@
665 666
             this.InnerDialogProps.selected = this.form.in_advance_reason
666 667
             this.InnerDialogProps.isShowTextArea = false
667 668
             break
668
-          case '8':
669
-            this.InnerDialogProps.values = this.$store.getters.disequilibrium_syndrome_option
670
-            this.InnerDialogProps.titles = '失衡综合症症状'
671
-            this.InnerDialogProps.type = 'disequilibrium_syndrome_option'
672
-            this.InnerDialogProps.selected = this.form.disequilibrium_syndrome_option
673
-            this.InnerDialogProps.isShowTextArea = false
674
-            break
675 669
         }
676 670
       },
677 671
       selectActualTreatmentHour(val) {
@@ -703,9 +697,7 @@
703 697
           case 'in_advance_reason':
704 698
             this.form.in_advance_reason = val.value.join(',')
705 699
             break
706
-          case 'disequilibrium_syndrome_option':
707
-            this.form.disequilibrium_syndrome_option = val.value.join(',')
708
-            break
700
+
709 701
           default:
710 702
             break
711 703
         }
@@ -723,11 +715,7 @@
723 715
         this.isVisibility = false
724 716
       }
725 717
     },
726
-
727 718
     created() {
728
-      var date = this.$route.query && this.$route.query.date
729
-      console.log(date)
730
-      this.record_date = uParseTime(date, '{y}-{m}-{d}')
731 719
       this.cruorOptions = getDataConfig('hemodialysis', 'cruor')
732 720
       this.symptomsOptions = getDataConfig('hemodialysis', 'symptoms')
733 721
       this.internalFistulaOptions = getDataConfig('hemodialysis', 'internal_fistula')
@@ -739,8 +727,10 @@
739 727
       this.patientGoseOptions = this.$store.getters.patient_gose
740 728
       this.observationContentOptions = this.$store.getters.observation_content
741 729
 
730
+      console.log(this.patient)
742 731
 
743
-
732
+      var date = this.$route.query && this.$route.query.date
733
+      this.record_date = uParseTime(date, '{y}-{m}-{d}')
744 734
     },
745 735
     components: {
746 736
       MultiSelectBox

+ 1 - 25
src/xt_pages/dialysis/dialysisPrintOrder.vue Прегледај датотеку

@@ -16,7 +16,7 @@
16 16
       <!--<dialysis-print-order-two :patientInfo="patientInfo" :receiverTreatmentAccess="receiverTreatmentAccess" :predialysis="predialysis"></dialysis-print-order-two>-->
17 17
 
18 18
       <DialysisPrintOrderOne v-bind:childResponse="childResponse" v-if="org_template_info.template_id != 2"> </DialysisPrintOrderOne>
19
-
19
+      
20 20
       <DialysisPrintOrderTwo v-bind:childResponse="childResponse" v-if="org_template_info.template_id == 2"></DialysisPrintOrderTwo>
21 21
 
22 22
 
@@ -216,24 +216,6 @@
216 216
           return ''
217 217
         }
218 218
       },
219
-      getFloat: function(x) {
220
-        if (x != '.') {
221
-          var f = Math.round(x * 100) / 100;
222
-          var s = f.toString();
223
-          var rs = s.indexOf('.');
224
-          if (rs <= 0) {
225
-            rs = s.length;
226
-            s += '.';
227
-          }
228
-          while (s.length <= rs + 1) {
229
-            s += '0';
230
-          }
231
-          return s;
232
-        } else {
233
-          return '0.0';
234
-        }
235
-
236
-      },
237 219
       modeName(mode_id) {
238 220
         return typeof (this.modeOptions[mode_id]) !== 'undefined' && typeof (this.modeOptions[mode_id].name) !== 'undefined' ? this.modeOptions[mode_id].name : ''
239 221
       },
@@ -635,13 +617,7 @@
635 617
     text-align: center;
636 618
     margin-left: 2px;
637 619
 
638
-  }
639 620
 
640
-  .dialysis-print-order .under-line-two {
641
-    border-bottom: 1px solid #999;
642
-    width: 95%;
643
-    text-align: left;
644
-    margin-left: 2px;
645 621
 
646 622
   }
647 623
 

+ 3 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue Прегледај датотеку

@@ -1,4 +1,4 @@
1
-<template>
1
+<template>   
2 2
   <div id="dialysis-print-box">
3 3
         <div class="dialysis-print-order">
4 4
           <div class="order-yy-name">{{orgname}}</div>
@@ -1189,6 +1189,7 @@
1189 1189
         return name
1190 1190
       },
1191 1191
       setAdminUserES(id) {
1192
+        console.log(id)
1192 1193
         if (id == 0) {
1193 1194
           return ''
1194 1195
         }
@@ -1437,6 +1438,7 @@
1437 1438
                 this.advice_groups.push(group)
1438 1439
               }
1439 1440
             }
1441
+            console.log(this.advice_groups)
1440 1442
           } else {
1441 1443
             this.loading = false
1442 1444
             this.$message.error('请求数据失败')

+ 9 - 26
src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue Прегледај датотеку

@@ -239,7 +239,7 @@
239 239
                     </tr>
240 240
 
241 241
                     <tr v-if="this.predialysis.systolic_blood_pressure != 0&&this.predialysis.diastolic_blood_pressure != 0||this.predialysis.remark.length > 0">
242
-                      <td>{{透析前}}</td>
242
+                      <td>{{'透析前'}}</td>
243 243
                       <td>{{predialysis.systolic_blood_pressure?predialysis.systolic_blood_pressure:''}}/{{predialysis.diastolic_blood_pressure?predialysis.diastolic_blood_pressure:''}}</td>
244 244
                       <td>{{''}}</td>
245 245
                       <td>{{''}}</td>
@@ -337,8 +337,7 @@
337 337
                       <td  width="100">护士签名</td>
338 338
                     </tr>
339 339
                     <tr v-for="(monitor,index) in monitors2" :key="index">
340
-
341
-                      <td >{{getRecordTime(monitor,'{h}:{i}',index)}}</td>
340
+                      <td>{{getTime(monitor.operate_time,'{h}:{i}')}}</td>
342 341
                       <td>{{monitor.systolic_blood_pressure?monitor.systolic_blood_pressure:''}}/{{monitor.diastolic_blood_pressure?monitor.diastolic_blood_pressure:''}}</td>
343 342
                       <td>{{monitor.pulse_frequency?monitor.pulse_frequency:''}}</td>
344 343
                       <td>{{monitor.breathing_rate?monitor.breathing_rate:''}}</td>
@@ -461,9 +460,9 @@
461 460
             <tr>
462 461
               <td colspan="2">
463 462
                 <div class="row" style="padding: 2px 0;line-height:19px;">
464
-                    <div class="inline_block" >
463
+                    <div class="inline_block" style="float: left;">
465 464
                       责任护士:
466
-                      <div class="under_line" style="width: 100px;">
465
+                      <div class="under-line">
467 466
                         <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.start_nurse)}}</span>
468 467
                         <img class="es-img" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse)" alt="" srcset="" v-else>
469 468
                       </div>
@@ -1021,28 +1020,8 @@
1021 1020
             return this.adminUser[i].name
1022 1021
           }
1023 1022
         }
1024
-      }, getRecordTime(monitor, temp,index) {
1025
-
1026
-        if (index == 0 && monitor.systolic_blood_pressure != 0 && monitor.diastolic_blood_pressure != 0 || monitor.result.length > 0){
1027
-          return "透析前"
1028
-        }else{
1029
-          if (monitor.operate_time == 0) {
1030
-            return ''
1031
-          }
1032
-          if (monitor.operate_time != undefined) {
1033
-            return uParseTime(monitor.operate_time, temp)
1034
-          }
1035
-          return ''
1036
-
1037
-        }
1038
-
1039
-
1040 1023
       },
1041 1024
       getTime(value, temp) {
1042
-
1043
-
1044
-
1045
-
1046 1025
         if (value == 0) {
1047 1026
           return ''
1048 1027
         }
@@ -1318,7 +1297,11 @@
1318 1297
                     id: this.doctor_advices[index].id,
1319 1298
                     parent_id: this.doctor_advices[index].parent_id,
1320 1299
                     children: this.doctor_advices[index].children,
1321
-                    remark: this.doctor_advices[index].remark
1300
+                    remark: this.doctor_advices[index].remark,
1301
+                    execution_staff: this.doctor_advices[index].execution_staff,
1302
+                    checker: this.doctor_advices[index].checker,
1303
+                    execution_time: this.doctor_advices[index].execution_time,
1304
+                    advice_doctor: this.doctor_advices[index].advice_doctor,
1322 1305
 
1323 1306
                   }
1324 1307
                   doctor_advice['isShow'] = 1