Browse Source

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

XMLWAN 3 years ago
parent
commit
82cf5605ab
1 changed files with 27 additions and 27 deletions
  1. 27 27
      src/xt_pages/outpatientCharges/summaryDetail.vue

+ 27 - 27
src/xt_pages/outpatientCharges/summaryDetail.vue View File

@@ -364,16 +364,16 @@ export default {
364 364
           }
365 365
         }
366 366
         //附加收费
367
-        for (let a = 0; a < month_prescriptions[i].addition.length; a++) {
368
-          let obj = {
369
-            id: month_prescriptions[i].addition[a].item_id,
370
-            price: month_prescriptions[i].addition[a].price
371
-
372
-          }
373
-          additions_ids.push(obj)
374
-          addition_month_prescriptions.addition.push(month_prescriptions[i].addition[a])
375
-
376
-        }
367
+        // for (let a = 0; a < month_prescriptions[i].addition.length; a++) {
368
+        //   let obj = {
369
+        //     id: month_prescriptions[i].addition[a].item_id,
370
+        //     price: month_prescriptions[i].addition[a].price
371
+        //
372
+        //   }
373
+        //   additions_ids.push(obj)
374
+        //   addition_month_prescriptions.addition.push(month_prescriptions[i].addition[a])
375
+        //
376
+        // }
377 377
 
378 378
       }
379 379
 
@@ -444,23 +444,23 @@ export default {
444 444
 
445 445
       }
446 446
 
447
-      for (let i = 0; i < additions_ids.length; i++) {
448
-        let obj = {}
449
-        let count = 0
450
-        console.log(addition_month_prescriptions.addition)
451
-        if (addition_month_prescriptions.addition) {
452
-          for (let a = 0; a < addition_month_prescriptions.addition.length; a++) {
453
-            if (additions_ids[i].price == addition_month_prescriptions.addition[a].price &&additions_ids[i].id == addition_month_prescriptions.addition[a].item_id) {
454
-              obj['item_name'] = addition_month_prescriptions.addition[a].item_name
455
-              count = count + addition_month_prescriptions.addition[a].count
456
-              obj['price'] = parseFloat(addition_month_prescriptions.addition[a].price)
457
-            }
458
-          }
459
-          obj['count'] = count
460
-          this.additions.push(obj)
461
-
462
-        }
463
-      }
447
+      // for (let i = 0; i < additions_ids.length; i++) {
448
+      //   let obj = {}
449
+      //   let count = 0
450
+      //   console.log(addition_month_prescriptions.addition)
451
+      //   if (addition_month_prescriptions.addition) {
452
+      //     for (let a = 0; a < addition_month_prescriptions.addition.length; a++) {
453
+      //       if (additions_ids[i].price == addition_month_prescriptions.addition[a].price &&additions_ids[i].id == addition_month_prescriptions.addition[a].item_id) {
454
+      //         obj['item_name'] = addition_month_prescriptions.addition[a].item_name
455
+      //         count = count + addition_month_prescriptions.addition[a].count
456
+      //         obj['price'] = parseFloat(addition_month_prescriptions.addition[a].price)
457
+      //       }
458
+      //     }
459
+      //     obj['count'] = count
460
+      //     this.additions.push(obj)
461
+      //
462
+      //   }
463
+      // }
464 464
 
465 465
     },
466 466