Bladeren bron

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx 3 jaren geleden
bovenliggende
commit
ce329a900e

+ 46 - 25
src/xt_pages/dialysis/batch_print/batch_print_order_fortyOne.vue Bestand weergeven

@@ -439,33 +439,53 @@
439 439
                                 L
440 440
                             </div>
441 441
                             </div>
442
-                            <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
443
-                            <div class="inline_block" style="flex:1.4">
442
+                            <div class="row" style="padding: 2px 0;line-height:23px;display:flex;" v-if="org_id == 10233">
443
+                              <div class="inline_block" style="flex:1">
444 444
                                 血管通路:
445
-                                <div class="under_line" style="width: 300px;text-align: center;">
446
-                                <!-- {{record.prescription.blood_access_part_opera_name}} -->
447
-                                {{ QueryPartById(record.prescription && record.prescription.blood_access ? record.prescription.blood_access : 0) }}
445
+                                <div class="under_line" style="width: 260px;text-align: center;">
446
+                                  {{ QueryPartById(record.assessment_before_dislysis && record.assessment_before_dislysis.blood_access_part_opera_id ? record.assessment_before_dislysis.blood_access_part_opera_id : 0)}}
448 447
                                 </div>
449
-                            </div>
450
-                            <div class="inline_block" style="flex:1">
451
-                                透析机型:
452
-                                <div class="under_line" style="width: 150px;text-align: center;">
453
-                                {{ record.assessment_before_dislysis.machine_type ? record.assessment_before_dislysis.machine_type : '' }}
454
-                                </div>
455
-                            </div>
456
-                            <div class="inline_block" style="flex:1">
457
-                                机号:
458
-                                <div class="under_line" style="width: 60px;text-align: center;">
459
-                                {{
460
-                                    record.dialysis_order &&
461
-                                    record.dialysis_order.device_number &&
462
-                                    record.dialysis_order.device_number.number.length >
463
-                                    0
464
-                                    ? record.dialysis_order.device_number.number
465
-                                    : record.device_number.number
466
-                                }}
448
+                              </div>
449
+                              <div class="inline_block" style="flex:1">
450
+                                血管通路部位:
451
+                                <div class="under_line" style="width: 160px;text-align: center;">
452
+                                  {{record.assessment_before_dislysis.blood_access_part_id}}
467 453
                                 </div>
454
+                              </div>
468 455
                             </div>
456
+                            <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
457
+                              <div class="inline_block" style="flex:1" v-if="org_id != 10233">
458
+                                  血管通路:
459
+                                  <div class="under_line" style="width: 260px;text-align: center;">
460
+                                  <!-- {{record.prescription.blood_access_part_opera_name}} -->
461
+                                  {{ QueryPartById(record.prescription && record.prescription.blood_access ? record.prescription.blood_access : 0) }}
462
+                                  </div>
463
+                              </div>
464
+                              <div class="inline_block" style="flex:1">
465
+                                  透析机型:
466
+                                  <div class="under_line" style="width: 150px;text-align: center;">
467
+                                  {{ record.assessment_before_dislysis.machine_type ? record.assessment_before_dislysis.machine_type : '' }}
468
+                                  </div>
469
+                              </div>
470
+                              <div class="inline_block" style="flex:1">
471
+                                  机号:
472
+                                  <div class="under_line" style="width: 60px;text-align: center;">
473
+                                  {{
474
+                                      record.dialysis_order &&
475
+                                      record.dialysis_order.device_number &&
476
+                                      record.dialysis_order.device_number.number.length >
477
+                                      0
478
+                                      ? record.dialysis_order.device_number.number
479
+                                      : record.device_number.number
480
+                                  }}
481
+                                  </div>
482
+                              </div>
483
+                              <div v-if="org_id == 10233" class="inline_block" style="flex:1;margin-left:10px;">
484
+                                透析器/灌流器:
485
+                                <div class="under_line" style="width: 120px;text-align: center;">
486
+                                  {{ record.prescription.dialyzer_perfusion_apparatus ? record.prescription.dialyzer_perfusion_apparatus : "" }}
487
+                                </div>
488
+                              </div>
469 489
                             </div>
470 490
                             <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
471 491
                             <div class="inline_block" style="flex:1;">
@@ -695,8 +715,8 @@
695 715
                                 <td style="line-height:16px;padding:0px;">
696 716
                                     <div style="min-height:20px;line-height:20px; overflow:hidden;">
697 717
                                     <span v-if="getTime(monitor.operate_time, '{h}:{i}')" style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">
698
-                                        <template v-if="(record.dialysis_order && monitor.operate_time == record.dialysis_order.start_time)">【开始透析】引血100ml/min</template>
699
-                                        <span v-if="record.dialysis_order && monitor.operate_time == record.dialysis_order.end_time">【结束透析】回血100ml/min</span> 
718
+                                        <template v-if="(record.dialysis_order && monitor.operate_time == record.dialysis_order.start_time)">【开始透析】<span v-if="org_id != 10233"> 引血100ml/min</span></template>
719
+                                        <span v-if="record.dialysis_order && monitor.operate_time == record.dialysis_order.end_time">【结束透析】<span v-if="org_id != 10233"> 回血100ml/min</span></span> 
700 720
                                         {{ monitor.symptom }} &nbsp;{{ monitor.dispose }} &nbsp;{{ monitor.result }}
701 721
                                     </span>
702 722
                                     </div>
@@ -894,6 +914,7 @@ export default {
894 914
     var xtuser = this.$store.getters.xt_user
895 915
     // console.log('xtuser', xtuser)
896 916
     this.orgname = xtuser.org.org_name
917
+    this.org_id = this.$store.getters.xt_user.org.id
897 918
     //   this.orgname = "遂溪方济医院";
898 919
     this.modeOptions = this.$store.getters.treatment_mode
899 920
     //   this.replacementWays = this.$store.getters.replacement_ways;

+ 1 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Bestand weergeven

@@ -1969,7 +1969,7 @@
1969 1969
           this.is_open = 0
1970 1970
         }
1971 1971
         
1972
-        if(this.$store.getters.xt_user.org.id == 10101){
1972
+        if(this.$store.getters.xt_user.org.id == 10101 || this.$store.getters.xt_user.org.id == 10233){
1973 1973
           if (this.predialysis.id > 0 && this.predialysis.created_time > 0) {
1974 1974
             var date = new Date(this.predialysis.created_time * 1000)
1975 1975
             var year = date.getFullYear()

+ 16 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderFortyOne.vue Bestand weergeven

@@ -416,8 +416,22 @@
416 416
                     L
417 417
                   </div>
418 418
                 </div>
419
+                <div class="row" style="padding: 2px 0;line-height:23px;display:flex;" v-if="org_id == 10233">
420
+                  <div class="inline_block" style="flex:1">
421
+                    血管通路:
422
+                    <div class="under_line" style="width: 260px;text-align: center;">
423
+                      {{predialysis.blood_access_part_opera_name}}
424
+                    </div>
425
+                  </div>
426
+                  <div class="inline_block" style="flex:1" v-if="org_id == 0">
427
+                    血管通路部位:
428
+                    <div class="under_line" style="width: 120px;text-align: center;">
429
+                      {{predialysis.blood_access_part_id}}
430
+                    </div>
431
+                  </div>
432
+                </div>
419 433
                 <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
420
-                  <div class="inline_block" style="flex:1.5">
434
+                  <div class="inline_block" style="flex:1.5" v-if="org_id != 10233">
421 435
                     血管通路:
422 436
                     <div class="under_line" style="width: 260px;text-align: center;">
423 437
                       {{prescription.blood_access_part_opera_name}}
@@ -1059,7 +1073,7 @@ export default {
1059 1073
         this.check = response.data.data.check
1060 1074
         this.xtdate = response.data.data.xtdate
1061 1075
         this.predialysis = response.data.data.PredialysisEvaluation
1062
-        // console.log("透前评估",this.predialysis)
1076
+        console.log("透前评估",this.predialysis)
1063 1077
         this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
1064 1078
           this.predialysis.blood_access_part_opera_id
1065 1079
         )

+ 1 - 2
src/xt_pages/stock/drugs/components/drugOutDetail.vue Bestand weergeven

@@ -179,7 +179,7 @@
179 179
             {{scope.row.count}}
180 180
           </template>
181 181
         </el-table-column>
182
-        <el-table-column label="总价5555" align="center">
182
+        <el-table-column label="总价" align="center">
183 183
           <template slot-scope="scope">
184 184
             <!-- {{scope.row.price * scope.row.count}} -->
185 185
             {{scope.row.total_price}}
@@ -233,7 +233,6 @@ export default {
233 233
       "-" +
234 234
       (nowDay < 10 ? "0" + nowDay : nowDay);
235 235
     var start_time = window.sessionStorage.getItem('start_out_time')
236
-    console.log("start",start)
237 236
      var end_time =  window.sessionStorage.getItem('end_out_time')
238 237
     if(start_time!=null){
239 238
        this.start_time = start_time   

+ 11 - 11
src/xt_pages/workforce/components/nextTableWeeks.vue Bestand weergeven

@@ -148,7 +148,7 @@
148 148
           <span v-if="org_id!=9987" >
149 149
              <span v-if="scope.row.dialysissolution.dialyzer_perfusion_apparatus!=''">
150 150
                 <span v-if="org_id!=10131&& org_id !=10215">{{ scope.row.dialysissolution.dialyzer_perfusion_apparatus }}</span>
151
-                <span v-if="org_id==10131 || org_id == 10215">{{ scope.row.dialysissolution.dialyzer_perfusion_apparatus }}</span>
151
+                <span v-if="org_id==10131 || org_id == 10215">{{getDialysisDialyszerPerfusionOne(scope.row.patient_id,scope.row.mode_id,scope.row.solution)  }}</span>
152 152
               
153 153
               </span>
154 154
              <span v-if="scope.row.dialysissolution.dialyzer_perfusion_apparatus =='' && scope.row.dialysissolution.length>0 ">{{ getDialysisDialyszerPerfusion(scope.row.patient_id) }}</span>
@@ -629,18 +629,18 @@ export default {
629 629
         }
630 630
        return name
631 631
     },
632
-     getDialysisDialyszerPerfusionOne(patient_id){
633
-        var name = ""
634
-        for(let i=0;i<this.scheduleData.length;i++){
635
-          if(patient_id == this.scheduleData[i].patient_id){
636
-            var arrLength = this.scheduleData[i].dialysissolution.length
637
-            if(arrLength > 0){
638
-               name = this.scheduleData[i].dialysissolution[arrLength - 1].dialyzer_perfusion_apparatus
639
-            }
632
+    getDialysisDialyszerPerfusionOne(patient_id,mode_id,solution) {
633
+        var name = ''
634
+        for (let i = 0; i < solution.length; i++) {
635
+          if (mode_id == solution[i].mode_id) {
636
+         
637
+            name = solution[i].dialyzer_perfusion_apparatus
638
+            
640 639
           }
641 640
         }
642
-       return name
643
-    },
641
+        console.log('name', name)
642
+        return name
643
+      },
644 644
     changeZone(val){
645 645
       this.zone = val
646 646
       this.getNextScheduleWeekDay()

+ 8 - 11
src/xt_pages/workforce/components/tableWeeks.vue Bestand weergeven

@@ -226,7 +226,7 @@
226 226
 
227 227
           <span v-if="scope.row.prescription.dialyzer_perfusion_apparatus==''&& scope.row.dialysissolution.id > 0 ">{{getDialysisDialyszerPerfusion(scope.row.patient_id)}}</span>
228 228
           </span>
229
-                    <span v-if="org_id==10131 || org_id == 10215">{{getDialysisDialyszerPerfusionOne(scope.row.patient_id)}}</span>
229
+                    <span v-if="org_id==10131 || org_id == 10215">{{getDialysisDialyszerPerfusionOne(scope.row.patient_id,scope.row.mode_id,scope.row.solution)}}</span>
230 230
                     {{scope.row.prescription.dialysis_dialyszers}}
231 231
                     <span v-if="scope.row.prescription.dialysis_dialyszers!='' && scope.row.prescription.dialysis_irrigation!=''">/</span>
232 232
                     <span v-if="scope.row.prescription.dialysis_irrigation!=''">{{scope.row.prescription.dialysis_irrigation}}</span>
@@ -1503,17 +1503,14 @@
1503 1503
           }
1504 1504
         }
1505 1505
         return name
1506
-      }
1507
-      ,
1508
-      getDialysisDialyszerPerfusionOne(patient_id) {
1506
+      },
1507
+      getDialysisDialyszerPerfusionOne(patient_id,mode_id,solution) {
1509 1508
         var name = ''
1510
-        for (let i = 0; i < this.scheduleData.length; i++) {
1511
-          if (patient_id == this.scheduleData[i].patient_id) {
1512
-            // var arrLength = this.scheduleData[i].dialysissolution
1513
-            // console.log('病人ID', patient_id, '数组', this.scheduleData[i].dialysissolution)
1514
-            // if (arrLength > 0) {
1515
-            name = this.scheduleData[i].dialysissolution.dialyzer_perfusion_apparatus
1516
-            // }
1509
+        for (let i = 0; i < solution.length; i++) {
1510
+          if (mode_id == solution[i].mode_id) {
1511
+         
1512
+            name = solution[i].dialyzer_perfusion_apparatus
1513
+            
1517 1514
           }
1518 1515
         }
1519 1516
         console.log('name', name)

+ 11 - 11
src/xt_pages/workforce/next_remind_print.vue Bestand weergeven

@@ -64,7 +64,7 @@
64 64
                  <span v-if="org_id!=9987">
65 65
                      <span v-if="main_collection.prescription.dialyzer_perfusion_apparatus!=''">
66 66
                         <span v-if="org_id!=10131 && org_id!=10215">{{main_collection.prescription.dialyzer_perfusion_apparatus}}</span>
67
-                         <span v-if="org_id==10131 || org_id==9671 || org_id == 10215">{{main_collection.dialysissolution.dialyzer_perfusion_apparatus}}</span>
67
+                         <span v-if="org_id==10131 || org_id==9671 || org_id == 10215">{{getDialysisDialyszerPerfusionOne(main_collection.patient_id,main_collection.mode_id,main_collection.solution)  }}</span>
68 68
                      </span>
69 69
                      <span v-if="main_collection.prescription.dialyzer_perfusion_apparatus ==''&& main_collection.dialysissolution.length>0">{{getDialysisDialyszerPerfusion(main_collection.patient_id)}}</span>
70 70
                   </span>
@@ -417,18 +417,18 @@
417 417
         }
418 418
        return name
419 419
      },
420
-     getDialysisDialyszerPerfusionOne(patient_id){
421
-        var name = ""
422
-        for(let i=0;i<this.scheduleData.length;i++){
423
-          if(patient_id == this.scheduleData[i].patient_id){
424
-            var arrLength = this.scheduleData[i].dialysissolution.length
425
-            if(arrLength > 0){
426
-               name = this.scheduleData[i].dialysissolution[arrLength - 1].dialyzer_perfusion_apparatus
427
-            }
420
+     getDialysisDialyszerPerfusionOne(patient_id,mode_id,solution) {
421
+        var name = ''
422
+        for (let i = 0; i < solution.length; i++) {
423
+          if (mode_id == solution[i].mode_id) {
424
+         
425
+            name = solution[i].dialyzer_perfusion_apparatus
426
+            
428 427
           }
429 428
         }
430
-       return name
431
-     }
429
+        console.log('name', name)
430
+        return name
431
+      },
432 432
     }
433 433
   }
434 434
 </script>

+ 21 - 24
src/xt_pages/workforce/remind_print.vue Bestand weergeven

@@ -1,4 +1,3 @@
1
-
2 1
 <template>
3 2
   <div class="main-contain">
4 3
     <div class="position">
@@ -63,12 +62,12 @@
63 62
 
64 63
                 <td :width="td_1_width" v-if="printObj.dialyzers == 1 && printObj.perfusion_apparatus ==1">
65 64
                   <span v-if="org_id!=9987">
66
-                     <span >
67
-                       <span v-if="org_id!=10131 && org_id!=10215 && main_collection.prescription.dialyzer_perfusion_apparatus!=''">{{main_collection.prescription.dialyzer_perfusion_apparatus}}</span>
68
-
69
-                       <span v-if="org_id==10131 || org_id==9671 || org_id == 10215">{{main_collection.dialysissolution.dialyzer_perfusion_apparatus}}</span>
65
+                     <span > 
66
+                       <span v-if="org_id!=10131 && org_id!=10215 && main_collection.prescription.dialyzer_perfusion_apparatus!=''">{{main_collection.prescription.dialyzer_perfusion_apparatus}}</span> 
67
+                     
68
+                       <span v-if="org_id==10131 || org_id==9671 || org_id == 10215">{{getDialysisDialyszerPerfusionOne(main_collection.patient_id,main_collection.mode_id,main_collection.solution)}}</span>
70 69
                       </span>
71
-                     <span v-if="main_collection.prescription.dialyzer_perfusion_apparatus ==''&& main_collection.dialysissolution.length>0">{{getDialysisDialyszerPerfusion(main_collection.patient_id)}}</span>
70
+                     <span v-if="main_collection.prescription.dialyzer_perfusion_apparatus ==''&& main_collection.dialysissolution.length>0">{{getDialysisDialyszerPerfusion(main_collection.patient_id)}}</span> 
72 71
                   </span>
73 72
                     {{main_collection.prescription.dialysis_dialyszers}}
74 73
                   <span v-if="main_collection.prescription.dialysis_dialyszers!=''&& main_collection.prescription.dialysis_irrigation!='' ">/</span>
@@ -165,9 +164,9 @@
165 164
               list[i].sort = list[i].number.sort
166 165
            }
167 166
            var arr = list.sort(this.compare('sort'))
168
-
167
+            
169 168
              this.scheduleData = arr
170
-
169
+            
171 170
              let a = response.data.data.day
172 171
               console.log("a",a)
173 172
               var myDate = new Date(a);
@@ -202,8 +201,8 @@
202 201
           this.currentDate = str
203 202
           }
204 203
        })
205
-
206
-
204
+       
205
+      
207 206
     },
208 207
     methods: {
209 208
       getAdvice:function(doctor_advice) {
@@ -283,7 +282,7 @@
283 282
 
284 283
           name = name + doctor_advice[i].advice_name + " " + drug_spec + " " + prescribing_number + " " + single_dose + " " + doctor_advice[i].delivery_way + " " + doctor_advice[i].execution_frequency + " " + doctor_advice[i].remark + "\n"
285 284
 
286
-
285
+        
287 286
         }
288 287
           return name
289 288
 
@@ -291,7 +290,7 @@
291 290
         }
292 291
 
293 292
       },
294
-
293
+     
295 294
       printAction: function() {
296 295
         const style = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }'
297 296
 
@@ -392,20 +391,18 @@
392 391
         }
393 392
        return name
394 393
      },
395
-
396
-     getDialysisDialyszerPerfusionOne(patient_id){
397
-        var name = ""
398
-        for(let i=0;i<this.scheduleData.length;i++){
399
-          if(patient_id == this.scheduleData[i].patient_id){
400
-            var arrLength = this.scheduleData[i].dialysissolution.length
401
-            if(arrLength > 0){
402
-               name = this.scheduleData[i].dialysissolution[arrLength - 1].dialyzer_perfusion_apparatus
403
-            }
394
+    getDialysisDialyszerPerfusionOne(patient_id,mode_id,solution) {
395
+        var name = ''
396
+        for (let i = 0; i < solution.length; i++) {
397
+          if (mode_id == solution[i].mode_id) {
398
+         
399
+            name = solution[i].dialyzer_perfusion_apparatus
400
+            
404 401
           }
405 402
         }
406
-        console.log("name232333223",name)
407
-       return name
408
-     }
403
+        console.log('name', name)
404
+        return name
405
+      },
409 406
     },
410 407
   }
411 408
 </script>