Browse Source

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

csx 3 years ago
parent
commit
616e658367

+ 29 - 0
src/xt_pages/outpatientDoctorStation/components/callPrescription.vue View File

@@ -224,6 +224,12 @@
224 224
         let allPrescriptions = [];
225 225
         let targetPrescriptions = [];
226 226
         let prescriptions = [];
227
+
228
+
229
+
230
+
231
+
232
+
227 233
         for (let i = 0; i < this.allPrescription.length; i++) {
228 234
           for (let a = 0; a < this.allPrescription[i].check_group.length; a++) {
229 235
             checkGroup.push(this.allPrescription[i].check_group[a])
@@ -240,6 +246,29 @@
240 246
           }
241 247
         }
242 248
 
249
+        for (let i = 0; i < targetPrescriptions.length; i++) {
250
+          var prescription = targetPrescriptions[i];
251
+          for (let b = 0; b < prescription.doctor_advice.length; b++) {
252
+            console.log(prescription.doctor_advice[b].drug.is_special_diseases)
253
+            if (prescription.med_type == "14" && prescription.doctor_advice[b].drug.is_special_diseases != 1) {
254
+              prescription.doctor_advice.splice(b--,1)
255
+            }
256
+          }
257
+          for (let b = 0; b < prescription.project.length; b++) {
258
+            if(prescription.project[b].type == 2){
259
+              if (prescription.med_type == "14" && prescription.project[b].project.specail_project != 1) {
260
+                prescription.project.splice(b--,1)
261
+              }
262
+            }else if(prescription.project[b].type == 3){
263
+              if (prescription.med_type == "14" && prescription.project[b].good_info.is_special_diseases != 1) {
264
+                prescription.project.splice(b--,1)
265
+              }
266
+            }
267
+          }
268
+        }
269
+
270
+
271
+
243 272
         if (targetPrescriptions.length > 0) {
244 273
           for (let i = 0; i < targetPrescriptions.length; i++) {
245 274
             var prescription = targetPrescriptions[i];

+ 22 - 0
src/xt_pages/outpatientDoctorStation/components/nextOrLastPrescription.vue View File

@@ -297,6 +297,28 @@
297 297
           }
298 298
         }
299 299
 
300
+        for (let i = 0; i < targetPrescriptions.length; i++) {
301
+          var prescription = targetPrescriptions[i];
302
+          for (let b = 0; b < prescription.doctor_advice.length; b++) {
303
+            console.log(prescription.doctor_advice[b].drug.is_special_diseases)
304
+            if (prescription.med_type == "14" && prescription.doctor_advice[b].drug.is_special_diseases != 1) {
305
+              prescription.doctor_advice.splice(b--,1)
306
+            }
307
+          }
308
+          for (let b = 0; b < prescription.project.length; b++) {
309
+            if(prescription.project[b].type == 2){
310
+              if (prescription.med_type == "14" && prescription.project[b].project.specail_project != 1) {
311
+                prescription.project.splice(b--,1)
312
+              }
313
+            }else if(prescription.project[b].type == 3){
314
+              if (prescription.med_type == "14" && prescription.project[b].good_info.is_special_diseases != 1) {
315
+                prescription.project.splice(b--,1)
316
+              }
317
+            }
318
+          }
319
+        }
320
+
321
+
300 322
         if (targetPrescriptions.length > 0) {
301 323
           for (let i = 0; i < targetPrescriptions.length; i++) {
302 324
             var prescription = targetPrescriptions[i];

+ 129 - 0
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

@@ -1436,6 +1436,29 @@
1436 1436
             } else {
1437 1437
 
1438 1438
               if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
1439
+                for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
1440
+                  var prescription = response.data.data.sch_prescriptions[i];
1441
+                  for (let b = 0; b < prescription.advices.length; b++) {
1442
+                    console.log(prescription.advices[b].drug.is_special_diseases)
1443
+                    if (prescription.med_type == "14" && prescription.advices[b].drug.is_special_diseases != 1) {
1444
+                      prescription.advices.splice(b--,1)
1445
+                    }
1446
+                  }
1447
+                  for (let b = 0; b < prescription.project.length; b++) {
1448
+                    if(prescription.project[b].type == 2){
1449
+                      if (prescription.med_type == "14" && prescription.project[b].project.specail_project != 1) {
1450
+                        prescription.project.splice(b--,1)
1451
+                      }
1452
+                    }else if(prescription.project[b].type == 3){
1453
+                      if (prescription.med_type == "14" && prescription.project[b].good_info.is_special_diseases != 1) {
1454
+                        prescription.project.splice(b--,1)
1455
+                      }
1456
+                    }
1457
+                  }
1458
+                }
1459
+
1460
+
1461
+
1439 1462
 
1440 1463
                 for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
1441 1464
                   var prescription = response.data.data.sch_prescriptions[i]
@@ -1797,6 +1820,28 @@
1797 1820
 
1798 1821
                     if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
1799 1822
 
1823
+                      for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
1824
+                        var prescription = response.data.data.sch_prescriptions[i];
1825
+                        for (let b = 0; b < prescription.advices.length; b++) {
1826
+                          console.log(prescription.advices[b].drug.is_special_diseases)
1827
+                          if (prescription.med_type == "14" && prescription.advices[b].drug.is_special_diseases != 1) {
1828
+                            prescription.advices.splice(b--,1)
1829
+                          }
1830
+                        }
1831
+                        for (let b = 0; b < prescription.project.length; b++) {
1832
+                          if(prescription.project[b].type == 2){
1833
+                            if (prescription.med_type == "14" && prescription.project[b].project.specail_project != 1) {
1834
+                              prescription.project.splice(b--,1)
1835
+                            }
1836
+                          }else if(prescription.project[b].type == 3){
1837
+                            if (prescription.med_type == "14" && prescription.project[b].good_info.is_special_diseases != 1) {
1838
+                              prescription.project.splice(b--,1)
1839
+                            }
1840
+                          }
1841
+                        }
1842
+                      }
1843
+
1844
+
1800 1845
                       for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
1801 1846
                         var prescription = response.data.data.sch_prescriptions[i]
1802 1847
                         let tempAdvice = []
@@ -2246,6 +2291,27 @@
2246 2291
                   } else {
2247 2292
 
2248 2293
                     if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
2294
+                      for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
2295
+                        var prescription = response.data.data.sch_prescriptions[i];
2296
+                        for (let b = 0; b < prescription.advices.length; b++) {
2297
+                          console.log(prescription.advices[b].drug.is_special_diseases)
2298
+                          if (prescription.med_type == "14" && prescription.advices[b].drug.is_special_diseases != 1) {
2299
+                            prescription.advices.splice(b--,1)
2300
+                          }
2301
+                        }
2302
+                        for (let b = 0; b < prescription.project.length; b++) {
2303
+                          if(prescription.project[b].type == 2){
2304
+                            if (prescription.med_type == "14" && prescription.project[b].project.specail_project != 1) {
2305
+                              prescription.project.splice(b--,1)
2306
+                            }
2307
+                          }else if(prescription.project[b].type == 3){
2308
+                            if (prescription.med_type == "14" && prescription.project[b].good_info.is_special_diseases != 1) {
2309
+                              prescription.project.splice(b--,1)
2310
+                            }
2311
+                          }
2312
+                        }
2313
+                      }
2314
+
2249 2315
 
2250 2316
                       for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
2251 2317
                         var prescription = response.data.data.sch_prescriptions[i]
@@ -2684,6 +2750,27 @@
2684 2750
                 } else {
2685 2751
 
2686 2752
                   if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
2753
+                    for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
2754
+                      var prescription = response.data.data.sch_prescriptions[i];
2755
+                      for (let b = 0; b < prescription.advices.length; b++) {
2756
+                        console.log(prescription.advices[b].drug.is_special_diseases)
2757
+                        if (prescription.med_type == "14" && prescription.advices[b].drug.is_special_diseases != 1) {
2758
+                          prescription.advices.splice(b--,1)
2759
+                        }
2760
+                      }
2761
+                      for (let b = 0; b < prescription.project.length; b++) {
2762
+                        if(prescription.project[b].type == 2){
2763
+                          if (prescription.med_type == "14" && prescription.project[b].project.specail_project != 1) {
2764
+                            prescription.project.splice(b--,1)
2765
+                          }
2766
+                        }else if(prescription.project[b].type == 3){
2767
+                          if (prescription.med_type == "14" && prescription.project[b].good_info.is_special_diseases != 1) {
2768
+                            prescription.project.splice(b--,1)
2769
+                          }
2770
+                        }
2771
+                      }
2772
+                    }
2773
+
2687 2774
 
2688 2775
                     for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
2689 2776
                       var prescription = response.data.data.sch_prescriptions[i]
@@ -3189,6 +3276,27 @@
3189 3276
                   } else {
3190 3277
 
3191 3278
                     if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
3279
+                      for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
3280
+                        var prescription = response.data.data.sch_prescriptions[i];
3281
+                        for (let b = 0; b < prescription.advices.length; b++) {
3282
+                          console.log(prescription.advices[b].drug.is_special_diseases)
3283
+                          if (prescription.med_type == "14" && prescription.advices[b].drug.is_special_diseases != 1) {
3284
+                            prescription.advices.splice(b--,1)
3285
+                          }
3286
+                        }
3287
+                        for (let b = 0; b < prescription.project.length; b++) {
3288
+                          if(prescription.project[b].type == 2){
3289
+                            if (prescription.med_type == "14" && prescription.project[b].project.specail_project != 1) {
3290
+                              prescription.project.splice(b--,1)
3291
+                            }
3292
+                          }else if(prescription.project[b].type == 3){
3293
+                            if (prescription.med_type == "14" && prescription.project[b].good_info.is_special_diseases != 1) {
3294
+                              prescription.project.splice(b--,1)
3295
+                            }
3296
+                          }
3297
+                        }
3298
+                      }
3299
+
3192 3300
 
3193 3301
                       for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
3194 3302
                         var prescription = response.data.data.sch_prescriptions[i]
@@ -3715,6 +3823,27 @@
3715 3823
                   } else {
3716 3824
 
3717 3825
                     if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
3826
+                      for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
3827
+                        var prescription = response.data.data.sch_prescriptions[i];
3828
+                        for (let b = 0; b < prescription.advices.length; b++) {
3829
+                          console.log(prescription.advices[b].drug.is_special_diseases)
3830
+                          if (prescription.med_type == "14" && prescription.advices[b].drug.is_special_diseases != 1) {
3831
+                            prescription.advices.splice(b--,1)
3832
+                          }
3833
+                        }
3834
+                        for (let b = 0; b < prescription.project.length; b++) {
3835
+                          if(prescription.project[b].type == 2){
3836
+                            if (prescription.med_type == "14" && prescription.project[b].project.specail_project != 1) {
3837
+                              prescription.project.splice(b--,1)
3838
+                            }
3839
+                          }else if(prescription.project[b].type == 3){
3840
+                            if (prescription.med_type == "14" && prescription.project[b].good_info.is_special_diseases != 1) {
3841
+                              prescription.project.splice(b--,1)
3842
+                            }
3843
+                          }
3844
+                        }
3845
+                      }
3846
+
3718 3847
 
3719 3848
                       for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
3720 3849
                         var prescription = response.data.data.sch_prescriptions[i]