Browse Source

hah阿凡达

28169 2 months ago
parent
commit
2c648132e0

+ 7 - 4
src/api/dialysis.js View File

145
 }
145
 }
146
 
146
 
147
 export function postPrescription(params) {
147
 export function postPrescription(params) {
148
-  console.log('params', params)
148
+   if(params.patient > 0){
149
+       params.patient_id = params.patient
150
+   }
151
+  console.log('params+++++++++++++++++', params)
149
   return request({
152
   return request({
150
     url: '/api/dialysis/prescription',
153
     url: '/api/dialysis/prescription',
151
     method: 'Post',
154
     method: 'Post',
152
     params: params,
155
     params: params,
153
-    headers: {
154
-      'Permission': 2
155
-    }
156
+    // headers: {
157
+    //   'Permission': 2
158
+    // }
156
   })
159
   })
157
 }
160
 }
158
 
161
 

+ 4 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue View File

829
                         </div>
829
                         </div>
830
                         kg
830
                         kg
831
                       </div>
831
                       </div>
832
-                      <div class="inline_block" style="flex: 1" v-if="org_id != 10469 && org_id!=10745&& org_id!=9478">
832
+                      <div class="inline_block" style="flex: 1" v-if="org_id != 10469 && org_id!=10745&& org_id!=9478 && org_id!=10766">
833
                         <span v-if="org_id != 10683">计划超滤量:</span>
833
                         <span v-if="org_id != 10683">计划超滤量:</span>
834
                         <span v-if="org_id == 10683">预脱:</span>
834
                         <span v-if="org_id == 10683">预脱:</span>
835
                         <div class="under_line" style="width: 100px; text-align: center">
835
                         <div class="under_line" style="width: 100px; text-align: center">
846
                           v-if="org_id != 10395 && org_id != 9829 && org_id != 10440 && org_id != 10469 && org_id != 10460 && org_id != 10624 && org_id != 10644">L</span>
846
                           v-if="org_id != 10395 && org_id != 9829 && org_id != 10440 && org_id != 10469 && org_id != 10460 && org_id != 10624 && org_id != 10644">L</span>
847
                       </div>
847
                       </div>
848
 
848
 
849
-                      <div class="inline_block" style="flex: 1" v-if="org_id == 10469 || org_id == 10598 || org_id == 10745|| org_id == 9478">
849
+                      <div class="inline_block" style="flex: 1" v-if="org_id == 10469 || org_id == 10598 || org_id == 10745|| org_id == 9478 || org_id == 10766">
850
                         <span v-if="org_id != 10683 && org_id!=10745">计划超滤量:</span>
850
                         <span v-if="org_id != 10683 && org_id!=10745">计划超滤量:</span>
851
                         <span v-if="org_id == 10683">预脱:</span>
851
                         <span v-if="org_id == 10683">预脱:</span>
852
                         <span v-if="org_id == 10745 || org_id == 9478">处方脱水量</span>
852
                         <span v-if="org_id == 10745 || org_id == 9478">处方脱水量</span>
858
                               : "/"
858
                               : "/"
859
                           }}
859
                           }}
860
                         </div>
860
                         </div>
861
-                        <span v-if="org_id != 10598 && org_id != 10471 && org_id!=10745 && org_id!=9478"> ml</span>
862
-                        <span v-if="org_id == 10598 || org_id == 10471 || org_id == 10745 || org_id == 9478"> L</span>
861
+                        <span v-if="org_id != 10598 && org_id != 10471 && org_id!=10745 && org_id!=9478&& org_id!=10766"> ml</span>
862
+                        <span v-if="org_id == 10598 || org_id == 10471 || org_id == 10745 || org_id == 9478 || org_id == 10766"> L</span>
863
                       </div>
863
                       </div>
864
                       <div class="inline_block" style="flex: 1">
864
                       <div class="inline_block" style="flex: 1">
865
                         干体重:
865
                         干体重:

+ 2 - 2
src/xt_pages/dialysis/details/DialysisPrescription.vue View File

173
         </li> -->
173
         </li> -->
174
 
174
 
175
 
175
 
176
-        <li v-if="isShow('处方脱水量') && this.$store.getters.xt_user.template_info.org_id != 10597 && this.$store.getters.xt_user.template_info.org_id != 10571  && this.$store.getters.xt_user.template_info.org_id != 10612 && this.$store.getters.xt_user.template_info.org_id != 10598 && this.$store.getters.xt_user.template_info.org_id != 10677 && this.$store.getters.xt_user.template_info.org_id != 10679 && this.$store.getters.xt_user.template_info.org_id != 10702 && this.$store.getters.xt_user.template_info.org_id != 10635 && this.$store.getters.xt_user.template_info.org_id != 10721&& this.$store.getters.xt_user.template_info.org_id != 10752&& this.$store.getters.xt_user.template_info.org_id != 10757&& this.$store.getters.xt_user.template_info.org_id != 9478">
176
+        <li v-if="isShow('处方脱水量') && this.$store.getters.xt_user.template_info.org_id != 10597 && this.$store.getters.xt_user.template_info.org_id != 10571  && this.$store.getters.xt_user.template_info.org_id != 10612 && this.$store.getters.xt_user.template_info.org_id != 10598 && this.$store.getters.xt_user.template_info.org_id != 10677 && this.$store.getters.xt_user.template_info.org_id != 10679 && this.$store.getters.xt_user.template_info.org_id != 10702 && this.$store.getters.xt_user.template_info.org_id != 10635 && this.$store.getters.xt_user.template_info.org_id != 10721&& this.$store.getters.xt_user.template_info.org_id != 10752&& this.$store.getters.xt_user.template_info.org_id != 10757&& this.$store.getters.xt_user.template_info.org_id != 9478&& this.$store.getters.xt_user.template_info.org_id != 10766">
177
           <label>处方脱水量 : </label>
177
           <label>处方脱水量 : </label>
178
           <span class="content">{{ prescription_water != "0" ? prescription_water : "" }}</span>
178
           <span class="content">{{ prescription_water != "0" ? prescription_water : "" }}</span>
179
           <span class="unit">{{ prescription_water != "0" ? "ml" : "" }}</span>
179
           <span class="unit">{{ prescription_water != "0" ? "ml" : "" }}</span>
180
         </li>
180
         </li>
181
 
181
 
182
-        <li v-if="isShow('处方脱水量') && this.$store.getters.xt_user.template_info.org_id == 10597 ||  this.$store.getters.xt_user.template_info.org_id == 10571 || this.$store.getters.xt_user.template_info.org_id == 10612  || this.$store.getters.xt_user.template_info.org_id == 10598 || this.$store.getters.xt_user.template_info.org_id == 10677 || this.$store.getters.xt_user.template_info.org_id == 10679 || this.$store.getters.xt_user.template_info.org_id == 10702 || this.$store.getters.xt_user.template_info.org_id == 10635 || this.$store.getters.xt_user.template_info.org_id == 10721 || this.$store.getters.xt_user.template_info.org_id == 10752 || this.$store.getters.xt_user.template_info.org_id == 10757|| this.$store.getters.xt_user.template_info.org_id == 9478">
182
+        <li v-if="isShow('处方脱水量') && this.$store.getters.xt_user.template_info.org_id == 10597 ||  this.$store.getters.xt_user.template_info.org_id == 10571 || this.$store.getters.xt_user.template_info.org_id == 10612  || this.$store.getters.xt_user.template_info.org_id == 10598 || this.$store.getters.xt_user.template_info.org_id == 10677 || this.$store.getters.xt_user.template_info.org_id == 10679 || this.$store.getters.xt_user.template_info.org_id == 10702 || this.$store.getters.xt_user.template_info.org_id == 10635 || this.$store.getters.xt_user.template_info.org_id == 10721 || this.$store.getters.xt_user.template_info.org_id == 10752 || this.$store.getters.xt_user.template_info.org_id == 10757|| this.$store.getters.xt_user.template_info.org_id == 9478|| this.$store.getters.xt_user.template_info.org_id == 10766">
183
           <label>处方脱水量 : </label>
183
           <label>处方脱水量 : </label>
184
           <span class="content">{{ prescription_water != "0" ? prescription_water : "" }}</span>
184
           <span class="content">{{ prescription_water != "0" ? prescription_water : "" }}</span>
185
           <span class="unit">{{ prescription_water != "0" ? "L" : "" }}</span>
185
           <span class="unit">{{ prescription_water != "0" ? "L" : "" }}</span>

+ 102 - 0
src/xt_pages/dialysis/details/consumable/dialysisGather.vue View File

75
              </template>
75
              </template>
76
           </el-table-column>
76
           </el-table-column>
77
 
77
 
78
+          <el-table-column align="center" label="机号" v-if="gatherSetting.number==1">
79
+             <template slot-scope="scope">
80
+              {{scope.row.device_number.number}}
81
+             </template>
82
+          </el-table-column>
83
+
78
         
84
         
79
           <el-table-column align="center" label="住院(门诊)号"  v-if="gatherSetting.admission_number==1">
85
           <el-table-column align="center" label="住院(门诊)号"  v-if="gatherSetting.admission_number==1">
80
              <template slot-scope="scope">
86
              <template slot-scope="scope">
270
              </template>
276
              </template>
271
           </el-table-column>
277
           </el-table-column>
272
 
278
 
279
+          <el-table-column align="center" label="甲钴胺注射液" v-if="gatherSetting.jiaguan == 1">
280
+             <template slot-scope="scope">
281
+              <span v-if="scope.row.schedule_date <= timenow"> {{ scope.row.advice_spc_six }}</span>
282
+              <span v-if="scope.row.schedule_date > timenow">{{ getLongAdviceFive(scope.row.long_doctor_advice,scope.row.schedule_date) }}</span>
283
+             </template>
284
+          </el-table-column>
285
+
286
+          <el-table-column align="center" label="帕立骨化醇" v-if="gatherSetting.paligu == 1">
287
+             <template slot-scope="scope">
288
+              <span v-if="scope.row.schedule_date <= timenow"> {{ scope.row.advice_spc_seven }}</span>
289
+              <span v-if="scope.row.schedule_date > timenow">{{ getLongAdviceSix(scope.row.long_doctor_advice,scope.row.schedule_date) }}</span>
290
+             </template>
291
+          </el-table-column>
292
+
273
           <el-table-column align="center" label="肝素钠" v-if="org_id == 0 || org_id == 10683">
293
           <el-table-column align="center" label="肝素钠" v-if="org_id == 0 || org_id == 10683">
274
              <template slot-scope="scope">
294
              <template slot-scope="scope">
275
               <span v-if="scope.row.schedule_date <= timenow"> {{ scope.row.advice_spc_four }}</span>
295
               <span v-if="scope.row.schedule_date <= timenow"> {{ scope.row.advice_spc_four }}</span>
737
                   list[i].advice_spc_three = ""
757
                   list[i].advice_spc_three = ""
738
                   list[i].advice_spc_four = ""
758
                   list[i].advice_spc_four = ""
739
                   list[i].advice_spc_five = 0
759
                   list[i].advice_spc_five = 0
760
+                  list[i].advice_spc_six = 0
761
+                  list[i].advice_spc_seven = 0
740
                   for(let j=0;j<list[i].advice.length;j++){
762
                   for(let j=0;j<list[i].advice.length;j++){
741
                        if((list[i].advice[j].advice_name).indexOf("促红")!=-1){
763
                        if((list[i].advice[j].advice_name).indexOf("促红")!=-1){
742
                           list[i].advice_spc+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
764
                           list[i].advice_spc+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
754
                           list[i].advice_spc_three+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
776
                           list[i].advice_spc_three+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
755
                        }
777
                        }
756
 
778
 
779
+                       if((list[i].advice[j].advice_name).indexOf("甲钴胺")!=-1){
780
+                          list[i].advice_spc_six+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
781
+                       }
782
+
783
+                       if((list[i].advice[j].advice_name).indexOf("帕立骨")!=-1){
784
+                          list[i].advice_spc_seven+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
785
+                       }
786
+
757
                        if((list[i].advice[j].advice_name).indexOf("肝素钠")!=-1){
787
                        if((list[i].advice[j].advice_name).indexOf("肝素钠")!=-1){
758
                           // list[i].advice_spc_four+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
788
                           // list[i].advice_spc_four+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
759
                          
789
                          
2395
           return  advice_name
2425
           return  advice_name
2396
          }
2426
          }
2397
         
2427
         
2428
+       },
2429
+       getLongAdviceFive(val,schedule_date){
2430
+        var newArrList = []
2431
+        var newArr = []
2432
+        var advice_name = ""
2433
+        var count =0
2434
+         if(val!=null && val.length>0){
2435
+            for(let i=0;i<val.length;i++){
2436
+              if(val[i].advice_name.indexOf("甲钴胺")!=-1){
2437
+                newArrList.push(val[i])
2438
+              }
2439
+            }
2440
+         }
2441
+        
2442
+         if(newArrList!=null && newArrList.length>0){
2443
+           for(let i=0;i<newArrList.length;i++){
2444
+             if(newArrList[i].frequency_type == 1 || (newArrList[i].frequency_type == 2 && newArrList[i].day_count == 1) || (newArrList[i].frequency_type == 3 && newArrList[i].week_day.indexOf(this.getweekday(schedule_date))!=-1)){
2445
+                  
2446
+                  newArr.push(newArrList[i])
2447
+             }
2448
+           }
2449
+         }
2450
+       
2451
+         if(newArr!=null && newArr.length>0){
2452
+           for(let i=0;i<newArr.length;i++){
2453
+            //  
2454
+             count += newArr[i].prescribing_number
2455
+           }
2456
+         }
2457
+         if(count >0){
2458
+          return count +"支"
2459
+         }else{
2460
+          advice_name  += (newArr[i].single_dose + newArr[i].single_dose_unit+"/"+ newArr[i].prescribing_number_unit)+","
2461
+          return  advice_name
2462
+         }
2463
+        
2464
+       },
2465
+       getLongAdviceSix(val,schedule_date){
2466
+        var newArrList = []
2467
+        var newArr = []
2468
+        var advice_name = ""
2469
+        var count =0
2470
+         if(val!=null && val.length>0){
2471
+            for(let i=0;i<val.length;i++){
2472
+              if(val[i].advice_name.indexOf("帕立骨")!=-1){
2473
+                newArrList.push(val[i])
2474
+              }
2475
+            }
2476
+         }
2477
+        
2478
+         if(newArrList!=null && newArrList.length>0){
2479
+           for(let i=0;i<newArrList.length;i++){
2480
+             if(newArrList[i].frequency_type == 1 || (newArrList[i].frequency_type == 2 && newArrList[i].day_count == 1) || (newArrList[i].frequency_type == 3 && newArrList[i].week_day.indexOf(this.getweekday(schedule_date))!=-1)){
2481
+                  
2482
+                  newArr.push(newArrList[i])
2483
+             }
2484
+           }
2485
+         }
2486
+       
2487
+         if(newArr!=null && newArr.length>0){
2488
+           for(let i=0;i<newArr.length;i++){
2489
+            //  
2490
+             count += newArr[i].prescribing_number
2491
+           }
2492
+         }
2493
+         if(count >0){
2494
+          return count +"支"
2495
+         }else{
2496
+          advice_name  += (newArr[i].single_dose + newArr[i].single_dose_unit+"/"+ newArr[i].prescribing_number_unit)+","
2497
+          return  advice_name
2498
+         }
2499
+        
2398
        },
2500
        },
2399
        getweekday(date){
2501
        getweekday(date){
2400
           var weekArray = new Array("周日", "周一", "周二", "周三", "周四", "周五", "周六");
2502
           var weekArray = new Array("周日", "周一", "周二", "周三", "周四", "周五", "周六");

+ 95 - 0
src/xt_pages/dialysis/details/consumable/dialysisGatherPrint.vue View File

29
                  
29
                  
30
                   <td width="100"  v-if="gatherSetting.name==1">姓名</td>
30
                   <td width="100"  v-if="gatherSetting.name==1">姓名</td>
31
                   <td width="100"  v-if="gatherSetting.dialysis_no==1">透析号</td>
31
                   <td width="100"  v-if="gatherSetting.dialysis_no==1">透析号</td>
32
+                  <td width="100"  v-if="gatherSetting.number==1">机号</td>
32
                   <td width="100"  v-if="gatherSetting.admission_number==1">住院(门诊)号</td>
33
                   <td width="100"  v-if="gatherSetting.admission_number==1">住院(门诊)号</td>
33
                   <td width="100" v-if="gatherSetting.mode_type==1">透析模式</td>
34
                   <td width="100" v-if="gatherSetting.mode_type==1">透析模式</td>
34
                   <td width="100" v-if="gatherSetting.dialysis_dialyszers == 1">透析器</td>
35
                   <td width="100" v-if="gatherSetting.dialysis_dialyszers == 1">透析器</td>
46
                   <td width="100" v-if="gatherSetting.putaosuangai == 1">葡萄糖酸钙</td>
47
                   <td width="100" v-if="gatherSetting.putaosuangai == 1">葡萄糖酸钙</td>
47
                   <td width="200" v-if="gatherSetting.tube==1">封管液</td>
48
                   <td width="200" v-if="gatherSetting.tube==1">封管液</td>
48
                   <td width="100" v-if="org_id == 0 || org_id ==10683">肝素钠</td>
49
                   <td width="100" v-if="org_id == 0 || org_id ==10683">肝素钠</td>
50
+                  <td width="100" v-if="gatherSetting.jiaguan == 1">甲钴胺注射液</td>
51
+                  <td width="100" v-if="gatherSetting.paligu == 1">帕立骨化醇</td>
49
                  
52
                  
50
                 </tr>
53
                 </tr>
51
                 </thead>
54
                 </thead>
59
                   <td width="100"  v-if="gatherSetting.dialysis_no==1">
62
                   <td width="100"  v-if="gatherSetting.dialysis_no==1">
60
                     {{item.patient.dialysis_no}}
63
                     {{item.patient.dialysis_no}}
61
                   </td>
64
                   </td>
65
+                  <td width="100"  v-if="gatherSetting.number==1">
66
+                    {{item.device_number.number}}
67
+                  </td>
62
                   <td width="100"  v-if="gatherSetting.admission_number==1">
68
                   <td width="100"  v-if="gatherSetting.admission_number==1">
63
                     {{item.patient.admission_number}}
69
                     {{item.patient.admission_number}}
64
                   </td>
70
                   </td>
194
                   <span v-if="item.schedule_date<=timenow">  {{ item.advice_spc_four }}</span>
200
                   <span v-if="item.schedule_date<=timenow">  {{ item.advice_spc_four }}</span>
195
                   <span v-if="item.schedule_date>timenow">{{ getLongAdviceFour(item.long_doctor_advice,item.schedule_date) }}</span>
201
                   <span v-if="item.schedule_date>timenow">{{ getLongAdviceFour(item.long_doctor_advice,item.schedule_date) }}</span>
196
                  </td>
202
                  </td>
203
+                 <td width="100" v-if="gatherSetting.jiaguan == 1">
204
+                  <span v-if="item.schedule_date<=timenow">  {{ item.advice_spc_six }}</span>
205
+                  <span v-if="item.schedule_date>timenow">{{ getLongAdviceFive(item.long_doctor_advice,item.schedule_date) }}</span>
206
+                 </td>
207
+                 <td width="100" v-if="gatherSetting.paligu == 1">
208
+                  <span v-if="item.schedule_date<=timenow">  {{ item.advice_spc_seven }}</span>
209
+                  <span v-if="item.schedule_date>timenow">{{ getLongAdviceSix(item.long_doctor_advice,item.schedule_date) }}</span>
210
+                 </td>
197
                  </tr>
211
                  </tr>
198
                 </tbody>
212
                 </tbody>
199
               </table>
213
               </table>
309
                   list[i].advice_spc_three = ""
323
                   list[i].advice_spc_three = ""
310
                    list[i].advice_spc_four = ""
324
                    list[i].advice_spc_four = ""
311
                    list[i].advice_spc_five = 0
325
                    list[i].advice_spc_five = 0
326
+                   list[i].advice_spc_six = 0
327
+                   list[i].advice_spc_seven = 0
312
                    for(let j=0;j<list[i].advice.length;j++){
328
                    for(let j=0;j<list[i].advice.length;j++){
313
                        if((list[i].advice[j].advice_name).indexOf("促红")!=-1){
329
                        if((list[i].advice[j].advice_name).indexOf("促红")!=-1){
314
                           list[i].advice_spc+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
330
                           list[i].advice_spc+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
325
                        if((list[i].advice[j].advice_name).indexOf("葡萄糖酸钙")!=-1){
341
                        if((list[i].advice[j].advice_name).indexOf("葡萄糖酸钙")!=-1){
326
                           list[i].advice_spc_three+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
342
                           list[i].advice_spc_three+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
327
                        }
343
                        }
344
+                       if((list[i].advice[j].advice_name).indexOf("甲钴胺")!=-1){
345
+                          list[i].advice_spc_six+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
346
+                       }
347
+
348
+                       if((list[i].advice[j].advice_name).indexOf("帕立骨")!=-1){
349
+                          list[i].advice_spc_seven+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
350
+                       }
328
 
351
 
329
                        if((list[i].advice[j].advice_name).indexOf("肝素钠")!=-1){
352
                        if((list[i].advice[j].advice_name).indexOf("肝素钠")!=-1){
330
                           // list[i].advice_spc_four+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
353
                           // list[i].advice_spc_four+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
610
           var week = weekArray[new Date(date).getDay()];//注意此处必须是先new一个Date
633
           var week = weekArray[new Date(date).getDay()];//注意此处必须是先new一个Date
611
          return week;
634
          return week;
612
       },
635
       },
636
+      getLongAdviceFive(val,schedule_date){
637
+        var newArrList = []
638
+        var newArr = []
639
+        var advice_name = ""
640
+        var count =0
641
+         if(val!=null && val.length>0){
642
+            for(let i=0;i<val.length;i++){
643
+              if(val[i].advice_name.indexOf("甲钴胺")!=-1){
644
+                newArrList.push(val[i])
645
+              }
646
+            }
647
+         }
648
+        
649
+         if(newArrList!=null && newArrList.length>0){
650
+           for(let i=0;i<newArrList.length;i++){
651
+             if(newArrList[i].frequency_type == 1 || (newArrList[i].frequency_type == 2 && newArrList[i].day_count == 1) || (newArrList[i].frequency_type == 3 && newArrList[i].week_day.indexOf(this.getweekday(schedule_date))!=-1)){
652
+                  
653
+                  newArr.push(newArrList[i])
654
+             }
655
+           }
656
+         }
657
+       
658
+         if(newArr!=null && newArr.length>0){
659
+           for(let i=0;i<newArr.length;i++){
660
+            //  
661
+             count += newArr[i].prescribing_number
662
+           }
663
+         }
664
+         if(count >0){
665
+          return count +"支"
666
+         }else{
667
+          advice_name  += (newArr[i].single_dose + newArr[i].single_dose_unit+"/"+ newArr[i].prescribing_number_unit)+","
668
+          return  advice_name
669
+         }
670
+        
671
+       },
672
+       getLongAdviceSix(val,schedule_date){
673
+        var newArrList = []
674
+        var newArr = []
675
+        var advice_name = ""
676
+        var count =0
677
+         if(val!=null && val.length>0){
678
+            for(let i=0;i<val.length;i++){
679
+              if(val[i].advice_name.indexOf("帕立骨")!=-1){
680
+                newArrList.push(val[i])
681
+              }
682
+            }
683
+         }
684
+        
685
+         if(newArrList!=null && newArrList.length>0){
686
+           for(let i=0;i<newArrList.length;i++){
687
+             if(newArrList[i].frequency_type == 1 || (newArrList[i].frequency_type == 2 && newArrList[i].day_count == 1) || (newArrList[i].frequency_type == 3 && newArrList[i].week_day.indexOf(this.getweekday(schedule_date))!=-1)){
688
+                  
689
+                  newArr.push(newArrList[i])
690
+             }
691
+           }
692
+         }
693
+       
694
+         if(newArr!=null && newArr.length>0){
695
+           for(let i=0;i<newArr.length;i++){
696
+            //  
697
+             count += newArr[i].prescribing_number
698
+           }
699
+         }
700
+         if(count >0){
701
+          return count +"支"
702
+         }else{
703
+          advice_name  += (newArr[i].single_dose + newArr[i].single_dose_unit+"/"+ newArr[i].prescribing_number_unit)+","
704
+          return  advice_name
705
+         }
706
+        
707
+       },
613
       
708
       
614
       }
709
       }
615
     }
710
     }

+ 1 - 1
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue View File

1778
           }
1778
           }
1779
       }
1779
       }
1780
 
1780
 
1781
-      if(this.$store.getters.xt_user.org.id == 10579  || this.$store.getters.xt_user.org.id == 10585 || this.$store.getters.xt_user.org.id == 10587 || this.$store.getters.xt_user.org.id == 10597 || this.$store.getters.xt_user.org.id == 10551 || this.$store.getters.xt_user.org.id == 10679 || this.$store.getters.xt_user.org.id == 10693 ||  this.$store.getters.xt_user.org.id == 10694 || this.$store.getters.xt_user.org.id == 10702 || this.$store.getters.xt_user.org.id == 10495 || this.$store.getters.xt_user.org.id == 10742){
1781
+      if(this.$store.getters.xt_user.org.id == 10579  || this.$store.getters.xt_user.org.id == 10585 || this.$store.getters.xt_user.org.id == 10587 || this.$store.getters.xt_user.org.id == 10597 || this.$store.getters.xt_user.org.id == 10551 || this.$store.getters.xt_user.org.id == 10679 || this.$store.getters.xt_user.org.id == 10693 ||  this.$store.getters.xt_user.org.id == 10694 || this.$store.getters.xt_user.org.id == 10702 || this.$store.getters.xt_user.org.id == 10495 || this.$store.getters.xt_user.org.id == 10742|| this.$store.getters.xt_user.org.id == 10766){
1782
         var date = new Date()
1782
         var date = new Date()
1783
           var year = date.getFullYear()
1783
           var year = date.getFullYear()
1784
           var month = date.getMonth() + 1
1784
           var month = date.getMonth() + 1

+ 27 - 4
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

161
                     </el-col>
161
                     </el-col>
162
 
162
 
163
                     <el-col :span="8"
163
                     <el-col :span="8"
164
-                            v-if="isShows('处方脱水量') && this.$store.getters.xt_user.template_info.org_id != 10597&& this.$store.getters.xt_user.template_info.org_id != 10571 && this.$store.getters.xt_user.template_info.org_id != 10612 && this.$store.getters.xt_user.template_info.org_id != 10598 && this.$store.getters.xt_user.template_info.org_id != 10677 && this.$store.getters.xt_user.template_info.org_id != 10679 && this.$store.getters.xt_user.template_info.org_id != 10702 && this.$store.getters.xt_user.template_info.org_id != 10635 && this.$store.getters.xt_user.template_info.org_id != 10721 && this.$store.getters.xt_user.template_info.org_id != 10742 && this.$store.getters.xt_user.template_info.org_id != 10740 && this.$store.getters.xt_user.template_info.org_id != 10745 && this.$store.getters.xt_user.template_info.org_id != 10752&& this.$store.getters.xt_user.template_info.org_id != 10752&& this.$store.getters.xt_user.template_info.org_id != 10757&& this.$store.getters.xt_user.template_info.org_id != 9478">
164
+                            v-if="isShows('处方脱水量') && this.$store.getters.xt_user.template_info.org_id != 10597&& this.$store.getters.xt_user.template_info.org_id != 10571 && this.$store.getters.xt_user.template_info.org_id != 10612 && this.$store.getters.xt_user.template_info.org_id != 10598 && this.$store.getters.xt_user.template_info.org_id != 10677 && this.$store.getters.xt_user.template_info.org_id != 10679 && this.$store.getters.xt_user.template_info.org_id != 10702 && this.$store.getters.xt_user.template_info.org_id != 10635 && this.$store.getters.xt_user.template_info.org_id != 10721 && this.$store.getters.xt_user.template_info.org_id != 10742 && this.$store.getters.xt_user.template_info.org_id != 10740 && this.$store.getters.xt_user.template_info.org_id != 10745 && this.$store.getters.xt_user.template_info.org_id != 10752&& this.$store.getters.xt_user.template_info.org_id != 10752&& this.$store.getters.xt_user.template_info.org_id != 10757&& this.$store.getters.xt_user.template_info.org_id != 9478&& this.$store.getters.xt_user.template_info.org_id != 10766">
165
                         <el-form-item label="处方脱水量(ml):" prop="prescription_water" :rules="isCheckmust('处方脱水量')">
165
                         <el-form-item label="处方脱水量(ml):" prop="prescription_water" :rules="isCheckmust('处方脱水量')">
166
                             <el-input
166
                             <el-input
167
                                     type="number"
167
                                     type="number"
171
                     </el-col>
171
                     </el-col>
172
 
172
 
173
                     <el-col :span="8"
173
                     <el-col :span="8"
174
-                            v-if="isShows('处方脱水量') && this.$store.getters.xt_user.template_info.org_id == 10597 || this.$store.getters.xt_user.template_info.org_id ==10571 || this.$store.getters.xt_user.template_info.org_id ==10612 || this.$store.getters.xt_user.template_info.org_id ==10598 || this.$store.getters.xt_user.template_info.org_id ==10612 || this.$store.getters.xt_user.template_info.org_id ==10677 || this.$store.getters.xt_user.template_info.org_id==10679 || this.$store.getters.xt_user.template_info.org_id==10702 || this.$store.getters.xt_user.template_info.org_id==10635 || this.$store.getters.xt_user.template_info.org_id==10721 || this.$store.getters.xt_user.template_info.org_id==10740 || this.$store.getters.xt_user.template_info.org_id==10742  || this.$store.getters.xt_user.template_info.org_id==10745 || this.$store.getters.xt_user.template_info.org_id==10752|| this.$store.getters.xt_user.template_info.org_id==10757|| this.$store.getters.xt_user.template_info.org_id==9478">
174
+                            v-if="isShows('处方脱水量') && this.$store.getters.xt_user.template_info.org_id == 10597 || this.$store.getters.xt_user.template_info.org_id ==10571 || this.$store.getters.xt_user.template_info.org_id ==10612 || this.$store.getters.xt_user.template_info.org_id ==10598 || this.$store.getters.xt_user.template_info.org_id ==10612 || this.$store.getters.xt_user.template_info.org_id ==10677 || this.$store.getters.xt_user.template_info.org_id==10679 || this.$store.getters.xt_user.template_info.org_id==10702 || this.$store.getters.xt_user.template_info.org_id==10635 || this.$store.getters.xt_user.template_info.org_id==10721 || this.$store.getters.xt_user.template_info.org_id==10740 || this.$store.getters.xt_user.template_info.org_id==10742  || this.$store.getters.xt_user.template_info.org_id==10745 || this.$store.getters.xt_user.template_info.org_id==10752|| this.$store.getters.xt_user.template_info.org_id==10757|| this.$store.getters.xt_user.template_info.org_id==9478|| this.$store.getters.xt_user.template_info.org_id==10766">
175
                         <el-form-item label="处方脱水量(L):" prop="prescription_water" :rules="isCheckmust('处方脱水量')">
175
                         <el-form-item label="处方脱水量(L):" prop="prescription_water" :rules="isCheckmust('处方脱水量')">
176
                             <el-input
176
                             <el-input
177
                                     type="number"
177
                                     type="number"
2511
                 ParamsQuery['patient'] = this.patient.id
2511
                 ParamsQuery['patient'] = this.patient.id
2512
                 ParamsQuery['record_date'] = this.record_date
2512
                 ParamsQuery['record_date'] = this.record_date
2513
                 ParamsQuery['patient_id'] = this.$route.query.patient_id
2513
                 ParamsQuery['patient_id'] = this.$route.query.patient_id
2514
+                console.log("param-----------------",ParamsQuery)
2514
                 if(this.$route.query.patient_id ==undefined){
2515
                 if(this.$route.query.patient_id ==undefined){
2515
                   ParamsQuery['patient_id'] = this.patient.id
2516
                   ParamsQuery['patient_id'] = this.patient.id
2516
                 }
2517
                 }
2527
                 }
2528
                 }
2528
                 this.isLoading = true
2529
                 this.isLoading = true
2529
                 console.log("ParamsQuery233232322323322332232323",ParamsQuery)
2530
                 console.log("ParamsQuery233232322323322332232323",ParamsQuery)
2530
-
2531
+                
2531
                 postPrescription(ParamsQuery).then(response => {
2532
                 postPrescription(ParamsQuery).then(response => {
2532
                   if (response.data.state == 0) {
2533
                   if (response.data.state == 0) {
2533
                     this.$message.error(response.data.msg)
2534
                     this.$message.error(response.data.msg)
3054
             var hours = date.getHours()
3055
             var hours = date.getHours()
3055
             var minites = date.getMinutes()
3056
             var minites = date.getMinutes()
3056
 
3057
 
3058
+            if (month < 10) {
3059
+              month = '0' + month
3060
+            }
3061
+            if (day < 10) {
3062
+              day = '0' + day
3063
+            }
3064
+            if (hours < 10) {
3065
+              hours = '0' + hours
3066
+            }
3067
+            if (minites < 10) {
3068
+              minites = '0' + minites
3069
+            }
3070
+            this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
3071
+           }else if (this.$store.getters.xt_user.org.id == 10766){
3072
+            var date = new Date()
3073
+            var year = date.getFullYear()
3074
+            var month = date.getMonth() + 1
3075
+            var day = date.getDate()
3076
+
3077
+            var hours = date.getHours()
3078
+            var minites = date.getMinutes()
3079
+
3057
             if (month < 10) {
3080
             if (month < 10) {
3058
               month = '0' + month
3081
               month = '0' + month
3059
             }
3082
             }
3617
             //   }
3640
             //   }
3618
 
3641
 
3619
             // }
3642
             // }
3620
-            if(this.dialysisPrescription.mode_id!=2 && this.dialysisPrescription.mode_id!=5 && this.dialysisPrescription.mode_id!=12 && this.dialysisPrescription.mode_id!=10 && this.dialysisPrescription.mode_id!=34 && this.dialysisPrescription.mode_id!=35  && this.dialysisPrescription.mode_id!=36 && this.dialysisPrescription.mode_id!=37 && this.dialysisPrescription.mode_id!=41){
3643
+            if(this.dialysisPrescription.mode_id!=2 && this.dialysisPrescription.mode_id!=5&& this.dialysisPrescription.mode_id!=13 && this.dialysisPrescription.mode_id!=12 && this.dialysisPrescription.mode_id!=10 && this.dialysisPrescription.mode_id!=34 && this.dialysisPrescription.mode_id!=35  && this.dialysisPrescription.mode_id!=36 && this.dialysisPrescription.mode_id!=37 && this.dialysisPrescription.mode_id!=41){
3621
               this.dialysisPrescription.displace_liqui_part = 0
3644
               this.dialysisPrescription.displace_liqui_part = 0
3622
               this.dialysisPrescription.displace_liqui_value = 0
3645
               this.dialysisPrescription.displace_liqui_value = 0
3623
               this.dialysisPrescription.replacement_total = 0
3646
               this.dialysisPrescription.replacement_total = 0

+ 4 - 4
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

784
                 org_id!=10558 &&
784
                 org_id!=10558 &&
785
                 org_id!=10517 && 
785
                 org_id!=10517 && 
786
                 org_id!=10414 && 
786
                 org_id!=10414 && 
787
-                org_id!=10598 && org_id!=10694 && org_id!=10697 && org_id!=10567 && org_id!=10644 && org_id!=10721 && org_id!=10731 && org_id!=10744) ||
787
+                org_id!=10598 && org_id!=10694 && org_id!=10697 && org_id!=10567 && org_id!=10644 && org_id!=10721 && org_id!=10731 && org_id!=10744&& org_id!=10766) ||
788
                 org_id == 9779 ||
788
                 org_id == 9779 ||
789
                 template_id == 11 ||
789
                 template_id == 11 ||
790
                 template_id == 20 ||
790
                 template_id == 20 ||
820
             width="100"
820
             width="100"
821
             v-if="
821
             v-if="
822
               isShow('置换量') &&
822
               isShow('置换量') &&
823
-              (template_id != 6 || org_id == 9919 || org_id == 10191 || org_id == 10478 || org_id == 10551 || org_id ==10558 || org_id ==10517 || org_id ==10598 || org_id ==10414 || org_id == 10694 || org_id == 10697 || org_id ==10567 || org_id == 10644 || org_id == 10721 || org_id == 10731 || org_id == 10731 || org_id == 10744) &&
823
+              (template_id != 6 || org_id == 9919 || org_id == 10191 || org_id == 10478 || org_id == 10551 || org_id ==10558 || org_id ==10517 || org_id ==10598 || org_id ==10414 || org_id == 10694 || org_id == 10697 || org_id ==10567 || org_id == 10644 || org_id == 10721 || org_id == 10731 || org_id == 10731 || org_id == 10744 || org_id == 10766) &&
824
               template_id != 9779 &&
824
               template_id != 9779 &&
825
               template_id != 11 &&
825
               template_id != 11 &&
826
               template_id != 20 &&
826
               template_id != 20 &&
2014
             :span="8"
2014
             :span="8"
2015
             v-if="
2015
             v-if="
2016
               isShow('置换量') &&
2016
               isShow('置换量') &&
2017
-              (template_id != 6 || org_id == 9919 || org_id == 10191 || org_id ==10551 || org_id ==10558 || org_id ==10346 || org_id ==10598 || org_id == 10694 || org_id == 10697 || org_id ==10567 || org_id ==10644 || org_id == 10721 || org_id ==10727 || org_id ==10206 || org_id == 10731 || org_id == 10744) &&
2017
+              (template_id != 6 || org_id == 9919 || org_id == 10191 || org_id ==10551 || org_id ==10558 || org_id ==10346 || org_id ==10598 || org_id == 10694 || org_id == 10697 || org_id ==10567 || org_id ==10644 || org_id == 10721 || org_id ==10727 || org_id ==10206 || org_id == 10731 || org_id == 10744 || org_id == 10766) &&
2018
               org_id != 9779 &&
2018
               org_id != 9779 &&
2019
               template_id != 11 &&
2019
               template_id != 11 &&
2020
               template_id != 20 &&
2020
               template_id != 20 &&
2048
                 org_id != 9919 &&
2048
                 org_id != 9919 &&
2049
                 org_id != 10191 &&
2049
                 org_id != 10191 &&
2050
                 org_id != 10551 &&
2050
                 org_id != 10551 &&
2051
-                template_id != 43 && org_id!=10558 && org_id!=10346 && org_id!=10598 && org_id!=10414 && org_id !=10694 && org_id != 10697&& org_id != 10567 && org_id!=10644 && org_id!=10206 && org_id!=10731 && org_id!=10744) ||
2051
+                template_id != 43 && org_id!=10558 && org_id!=10346 && org_id!=10598 && org_id!=10414 && org_id !=10694 && org_id != 10697&& org_id != 10567 && org_id!=10644 && org_id!=10206 && org_id!=10731 && org_id!=10744&& org_id!=10766) ||
2052
                 org_id == 9779 ||
2052
                 org_id == 9779 ||
2053
                 template_id == 11 ||
2053
                 template_id == 11 ||
2054
                 template_id == 20 ||
2054
                 template_id == 20 ||

+ 2 - 2
src/xt_pages/dialysis/details/dialysisMonitoring.vue View File

34
           <th v-if=" isShow('置换率') && (template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56 && org_id!=10432 && org_id!=10445 && org_id!=10410 && org_id!=10617  && org_id!=10677 && org_id !=10702 && org_id !=10721 && org_id !=10727 && org_id !=10206 && org_id!=10751&& org_id!=10752 && org_id!=10766) || org_id == 10558 || org_id ==10598 || org_id ==10414 " width="92px" > 置换率(L/h)  </th>
34
           <th v-if=" isShow('置换率') && (template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56 && org_id!=10432 && org_id!=10445 && org_id!=10410 && org_id!=10617  && org_id!=10677 && org_id !=10702 && org_id !=10721 && org_id !=10727 && org_id !=10206 && org_id!=10751&& org_id!=10752 && org_id!=10766) || org_id == 10558 || org_id ==10598 || org_id ==10414 " width="92px" > 置换率(L/h)  </th>
35
           <th v-if=" isShow('置换率1')" width="92px" > 置换率(ml/min) </th>
35
           <th v-if=" isShow('置换率1')" width="92px" > 置换率(ml/min) </th>
36
           <th v-if=" isShow('置换量') && (template_id == 43)" width="92px"> 置换量(ml/h)  </th>
36
           <th v-if=" isShow('置换量') && (template_id == 43)" width="92px"> 置换量(ml/h)  </th>
37
-          <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id !=10191 && org_id!=10478 && org_id!=10346 && org_id!=10517) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46 || template_id == 48 || template_id == 53 || template_id == 54 || template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10432  || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10751|| this.$store.getters.xt_user.template_info.org_id == 10752 ) && org_id!=10558 && org_id!=10598  && org_id!=10414 && org_id!=10694 && org_id!=10697 && org_id!=10567 && org_id!=10644 && org_id!=10731 && org_id!=10744" width="92px"  > 置换量(ml)  </th>
38
-          <th v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919 || org_id == 10191 || org_id == 10478 || org_id ==10346 || org_id ==10517) && org_id != 9779 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432  && this.$store.getters.xt_user.template_info.org_id != 10445  && this.$store.getters.xt_user.template_info.org_id != 10751&& this.$store.getters.xt_user.template_info.org_id != 10752) || org_id == 10558 || org_id ==10598 || org_id ==10414 || org_id == 10694 || org_id == 10697 || org_id == 10567 || org_id == 10644 || org_id == 10731 || org_id == 10744" width="92px" > 置换量(L) </th>
37
+          <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id !=10191 && org_id!=10478 && org_id!=10346 && org_id!=10517) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46 || template_id == 48 || template_id == 53 || template_id == 54 || template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10432  || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10751|| this.$store.getters.xt_user.template_info.org_id == 10752 ) && org_id!=10558 && org_id!=10598  && org_id!=10414 && org_id!=10694 && org_id!=10697 && org_id!=10567 && org_id!=10644 && org_id!=10731 && org_id!=10744 && org_id!=10766" width="92px"  > 置换量(ml)  </th>
38
+          <th v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919 || org_id == 10191 || org_id == 10478 || org_id ==10346 || org_id ==10517) && org_id != 9779 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432  && this.$store.getters.xt_user.template_info.org_id != 10445  && this.$store.getters.xt_user.template_info.org_id != 10751&& this.$store.getters.xt_user.template_info.org_id != 10752) || org_id == 10558 || org_id ==10598 || org_id ==10414 || org_id == 10694 || org_id == 10697 || org_id == 10567 || org_id == 10644 || org_id == 10731 || org_id == 10744 || org_id == 10766" width="92px" > 置换量(L) </th>
39
           <th v-if=" isShow('置换量1')" width="92px"  > 置换量(L)  </th>
39
           <th v-if=" isShow('置换量1')" width="92px"  > 置换量(L)  </th>
40
           <th v-if=" isShow('SpO₂') && template_id != 6 && template_id != 10 && template_id != 11  " width="92px" > SpO₂(%) </th>
40
           <th v-if=" isShow('SpO₂') && template_id != 6 && template_id != 10 && template_id != 11  " width="92px" > SpO₂(%) </th>
41
           <th v-if=" isShow('SpO₂') && org_id == 9829" width="92px" > SpO₂(%) </th>
41
           <th v-if=" isShow('SpO₂') && org_id == 9829" width="92px" > SpO₂(%) </th>

+ 76 - 4
src/xt_pages/dialysis/details/index.vue View File

111
               @row-click="changePatient"
111
               @row-click="changePatient"
112
               highlight-current-row
112
               highlight-current-row
113
               :data="tableData"
113
               :data="tableData"
114
-              height="500"
114
+              height="600"
115
               border
115
               border
116
               style="width: 100%">
116
               style="width: 100%">
117
               <el-table-column
117
               <el-table-column
213
               @row-click="changePatient"
213
               @row-click="changePatient"
214
               highlight-current-row
214
               highlight-current-row
215
               :data="tableData1"
215
               :data="tableData1"
216
-              height="500"
216
+              height="600"
217
               border
217
               border
218
               style="width: 100%">
218
               style="width: 100%">
219
               <el-table-column
219
               <el-table-column
1783
     }
1783
     }
1784
   },
1784
   },
1785
   mounted() {
1785
   mounted() {
1786
+    this.scrollToCurrentRow()
1786
     const timer = setInterval(() => {
1787
     const timer = setInterval(() => {
1787
       // this.getInitData();
1788
       // this.getInitData();
1788
       this.requestDialysisSchedules()
1789
       this.requestDialysisSchedules()
1810
     this.websocketSend(unObj)
1811
     this.websocketSend(unObj)
1811
   },
1812
   },
1812
   methods: {
1813
   methods: {
1814
+    scrollToCurrentRow() {
1815
+      this.$nextTick(() => {
1816
+        const tableRef = this.activeName === 'first' ? 'tab' : 'tab1'
1817
+        const tableData = this.activeName === 'first' ? this.tableData : this.tableData1
1818
+        const currentPatientId = this.$route.query.patient_id
1819
+        
1820
+        if (!currentPatientId || !tableData || !this.$refs[tableRef]) return
1821
+        
1822
+        const index = tableData.findIndex(item => item.patient_id == currentPatientId)
1823
+        if (index !== -1) {
1824
+          // 先设置当前行高亮
1825
+          this.$refs[tableRef].setCurrentRow(tableData[index])
1826
+          // 然后滚动到该行
1827
+          this.$refs[tableRef].scrollToRow(tableData[index])
1828
+        }
1829
+      })
1830
+    },
1813
     getDisplaceLiquiPart: function (val) {
1831
     getDisplaceLiquiPart: function (val) {
1814
       let displace_liqui_part_name = "/";
1832
       let displace_liqui_part_name = "/";
1815
       const displace_liqui_part = this.displaceLiquiPartOptions;
1833
       const displace_liqui_part = this.displaceLiquiPartOptions;
2459
         // console.log('schedual',schedual);
2477
         // console.log('schedual',schedual);
2460
         //this.getLongAdvice();
2478
         //this.getLongAdvice();
2461
 
2479
 
2480
+        this.$nextTick(() => {
2481
+          if (this.activeName === 'first') {
2482
+            const index = this.tableData.findIndex(item => item.patient_id === schedual.patient_id)
2483
+            if (index !== -1) {
2484
+              this.$refs.tab.setCurrentRow(this.tableData[index])
2485
+            }
2486
+          } else if (this.activeName === 'second') {
2487
+            const index = this.tableData1.findIndex(item => item.patient_id === schedual.patient_id)
2488
+            if (index !== -1) {
2489
+              this.$refs.tab1.setCurrentRow(this.tableData1[index])
2490
+            }
2491
+          }
2492
+       })
2493
+
2462
         var patient_id = schedual.patient_id
2494
         var patient_id = schedual.patient_id
2463
         var date = schedual.schedule_date
2495
         var date = schedual.schedule_date
2464
         this.$router.push({
2496
         this.$router.push({
2470
             mode_id:schedual.mode_id
2502
             mode_id:schedual.mode_id
2471
           }
2503
           }
2472
         })
2504
         })
2505
+        // 滚动到当前行
2506
+        this.scrollToCurrentRow()
2473
     },
2507
     },
2474
     handleClick(type) {
2508
     handleClick(type) {
2509
+      this.activeName = type.name
2510
+      this.$nextTick(() => {
2511
+        this.scrollToCurrentRow()
2512
+     })
2475
       sessionStorage.setItem('nameActive', type.name);
2513
       sessionStorage.setItem('nameActive', type.name);
2476
       this.getData()
2514
       this.getData()
2477
     },
2515
     },
2602
           newArr.sort(this.compare('created_time'))
2640
           newArr.sort(this.compare('created_time'))
2603
         }
2641
         }
2604
 
2642
 
2605
-        if(this.org_id ==10579 || this.org_id == 0 || this.org_id ==10587 || this.org_id ==10571 || this.org_id ==10679 || this.org_id==10702 || this.org_id==10721 || this.org_id == 10635){
2643
+        if(this.org_id ==10579 || this.org_id == 0 || this.org_id ==10587 || this.org_id ==10571 || this.org_id ==10679 || this.org_id==10702 || this.org_id==10721 || this.org_id == 10635|| this.org_id == 10766){
2606
           if(newArr!=null && newArr.length>0){
2644
           if(newArr!=null && newArr.length>0){
2607
             for(let i=0;i<newArr.length;i++){
2645
             for(let i=0;i<newArr.length;i++){
2608
               newArr[i].sort =0
2646
               newArr[i].sort =0
2781
           newArr.sort(this.compare('created_time'))
2819
           newArr.sort(this.compare('created_time'))
2782
         }
2820
         }
2783
 
2821
 
2784
-        if(this.org_id == 0 || this.org_id == 10579 || this.org_id ==10587 || this.org_id == 10679 || this.org_id == 10702 || this.org_id == 10721 || this.org_id == 10635){
2822
+        if(this.org_id == 0 || this.org_id == 10579 || this.org_id ==10587 || this.org_id == 10679 || this.org_id == 10702 || this.org_id == 10721 || this.org_id == 10635|| this.org_id == 10766){
2785
           if(newArr!=null && newArr.length>0){
2823
           if(newArr!=null && newArr.length>0){
2786
             for(let i=0;i<newArr.length;i++){
2824
             for(let i=0;i<newArr.length;i++){
2787
               newArr[i].sort =0
2825
               newArr[i].sort =0
2808
           }
2846
           }
2809
         })
2847
         })
2810
       }
2848
       }
2849
+      const name = this.$route.query.patient_id
2850
+        if (this.activeName == 'first') {
2851
+          this.tableData.map((item, index) => {
2852
+            if (name == item.patient.id) {
2853
+              this.$nextTick(() => {
2854
+                this.$refs.tab.setCurrentRow(this.tableData[index])
2855
+              })
2856
+            }
2857
+          })
2858
+        } else if (this.activeName == 'second') {
2859
+          this.tableData1.map((item, index) => {
2860
+            if (name == item.patient.id) {
2861
+              this.$nextTick(() => {
2862
+                this.$refs.tab1.setCurrentRow(this.tableData1[index])
2863
+              })
2864
+            }
2865
+          })
2866
+        }
2867
+      
2868
+      this.scrollToCurrentRow() 
2811
     },
2869
     },
2812
     compare(property){
2870
     compare(property){
2813
       return function(a,b){
2871
       return function(a,b){
3345
         // console.log('rrrrr',this.start_time,this.end_time);
3403
         // console.log('rrrrr',this.start_time,this.end_time);
3346
         // this.end_time =   moment(oldValue).format('YYYY-MM-DD')
3404
         // this.end_time =   moment(oldValue).format('YYYY-MM-DD')
3347
       }
3405
       }
3406
+    },
3407
+    '$route.query.patient_id'(newVal) {
3408
+       if (newVal) {
3409
+        this.scrollToCurrentRow()
3410
+      }
3411
+    },
3412
+  
3413
+    tableData() {
3414
+      this.scrollToCurrentRow()
3415
+    },
3416
+      
3417
+   tableData1() {
3418
+     this.scrollToCurrentRow()
3348
     }
3419
     }
3349
   }
3420
   }
3350
 }
3421
 }
3351
 </script>
3422
 </script>
3352
 
3423
 
3353
 <style style="stylesheet/scss" lang="scss" scoped>
3424
 <style style="stylesheet/scss" lang="scss" scoped>
3425
+
3354
 .details-bg {
3426
 .details-bg {
3355
   background: #fff;
3427
   background: #fff;
3356
   margin: 0 15px;
3428
   margin: 0 15px;

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

919
                         </div>
919
                         </div>
920
                         kg
920
                         kg
921
                       </div>
921
                       </div>
922
-                      <div class="inline_block" style="flex: 1" v-if="org_id != 10469 && org_id!=10745&& org_id!=9478">
922
+                      <div class="inline_block" style="flex: 1" v-if="org_id != 10469 && org_id!=10745&& org_id!=9478&& org_id!=10766">
923
                         <span v-if="org_id != 10683">计划超滤量:</span>
923
                         <span v-if="org_id != 10683">计划超滤量:</span>
924
                         <span v-if="org_id == 10683">预脱:</span>
924
                         <span v-if="org_id == 10683">预脱:</span>
925
                         <div class="under_line" style="width: 100px; text-align: center">
925
                         <div class="under_line" style="width: 100px; text-align: center">
936
                       </div>
936
                       </div>
937
 
937
 
938
 
938
 
939
-                      <div class="inline_block" style="flex: 1" v-if="org_id == 10469 || org_id == 10598 || org_id== 10745 || org_id == 9478">
939
+                      <div class="inline_block" style="flex: 1" v-if="org_id == 10469 || org_id == 10598 || org_id== 10745 || org_id == 9478 || org_id == 10766">
940
                         处方脱水量:
940
                         处方脱水量:
941
                         <div class="under_line" style="width: 100px; text-align: center">
941
                         <div class="under_line" style="width: 100px; text-align: center">
942
                           {{
942
                           {{

+ 8 - 0
src/xt_pages/dialysis/template/DialysisPrintOrdereightytwo.vue View File

1164
           var doctorAdevieInfo = response.data.data.advices
1164
           var doctorAdevieInfo = response.data.data.advices
1165
           console.log('var tableAdvice',tableAdvice);
1165
           console.log('var tableAdvice',tableAdvice);
1166
           var tableAdvice = []
1166
           var tableAdvice = []
1167
+          if(this.org_id == 10751 || this.org_id == 0){
1168
+            if (response.data.data.doctorAdevieInfo != null && response.data.data.doctorAdevieInfo.length > 0) {
1169
+              for (let i = 0; i < response.data.data.doctorAdevieInfo.length; i++) {
1170
+                tableAdvice.push(response.data.data.doctorAdevieInfo[i])
1171
+              }
1172
+           }
1173
+          }
1174
+          
1167
           if(this.org_id!=10727){
1175
           if(this.org_id!=10727){
1168
            for(let i in doctorAdevieInfo){
1176
            for(let i in doctorAdevieInfo){
1169
             if(doctorAdevieInfo[i].delivery_way != '口服' && 
1177
             if(doctorAdevieInfo[i].delivery_way != '口服' &&