Просмотр исходного кода

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

csx 3 лет назад
Родитель
Сommit
b6d9a228c1
1 измененных файлов: 5 добавлений и 76 удалений
  1. 5 76
      src/xt_pages/hospitalStation/outpatientChargesManagement.vue

+ 5 - 76
src/xt_pages/hospitalStation/outpatientChargesManagement.vue Просмотреть файл

1205
           }
1205
           }
1206
         }
1206
         }
1207
 
1207
 
1208
-        if (this.curPrescriptions.addition != null) {
1209
-          for (let b = 0; b < this.curPrescriptions.addition.length; b++) {
1210
-            total = parseFloat(total) + parseFloat(this.curPrescriptions.addition[b].price * this.curPrescriptions.addition[b].count)
1211
-          }
1212
-        }
1208
+
1213
         return total.toFixed(2)
1209
         return total.toFixed(2)
1214
 
1210
 
1215
       }, getMonthTotalOne() {
1211
       }, getMonthTotalOne() {
1230
           }
1226
           }
1231
         }
1227
         }
1232
 
1228
 
1233
-        if (this.curMonthPrescriptions.addition != null) {
1234
-          for (let b = 0; b < this.curMonthPrescriptions.addition.length; b++) {
1235
-            total = parseFloat(total) + parseFloat(this.curMonthPrescriptions.addition[b].price * this.curMonthPrescriptions.addition[b].count)
1236
-          }
1237
-        }
1238
         return total.toFixed(2)
1229
         return total.toFixed(2)
1239
 
1230
 
1240
       },
1231
       },
1252
               total = parseFloat(total) + parseFloat(this.prescriptions[i].project[b].price * this.prescriptions[i].project[b].total)
1243
               total = parseFloat(total) + parseFloat(this.prescriptions[i].project[b].price * this.prescriptions[i].project[b].total)
1253
             }
1244
             }
1254
           }
1245
           }
1255
-          if (this.prescriptions[i].addition != null) {
1256
-            for (let b = 0; b < this.prescriptions[i].addition.length; b++) {
1257
-              total = parseFloat(total) + parseFloat(this.prescriptions[i].addition[b].price * this.prescriptions[i].addition[b].count)
1258
-            }
1259
-          }
1246
+
1260
         }
1247
         }
1261
         return total.toFixed(2)
1248
         return total.toFixed(2)
1262
 
1249
 
1275
             }
1262
             }
1276
           }
1263
           }
1277
 
1264
 
1278
-          if (this.month_prescriptions[i].addition != null) {
1279
-            for (let b = 0; b < this.month_prescriptions[i].addition.length; b++) {
1280
-              total = parseFloat(total) + parseFloat(this.month_prescriptions[i].addition[a].price * this.month_prescriptions[i].addition[b].count)
1281
-            }
1282
-          }
1265
+
1283
         }
1266
         }
1284
         return total.toFixed(2)
1267
         return total.toFixed(2)
1285
 
1268
 
1374
               for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
1357
               for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
1375
                 ids.push(this.prescriptions[i].advices[a].id)
1358
                 ids.push(this.prescriptions[i].advices[a].id)
1376
               }
1359
               }
1377
-              for (let a = 0; a < this.prescriptions[i].addition.length; a++) {
1378
-                ids.push(this.prescriptions[i].addition[a].id)
1379
-              }
1360
+
1380
 
1361
 
1381
               for (let a = 0; a < this.prescriptions[i].project.length; a++) {
1362
               for (let a = 0; a < this.prescriptions[i].project.length; a++) {
1382
                 ids.push(this.prescriptions[i].project[a].id)
1363
                 ids.push(this.prescriptions[i].project[a].id)
1394
                 ids.push(this.month_prescriptions[i].advices[a].id)
1375
                 ids.push(this.month_prescriptions[i].advices[a].id)
1395
               }
1376
               }
1396
 
1377
 
1397
-              for (let a = 0; a < this.month_prescriptions[i].addition.length; a++) {
1398
-                ids.push(this.month_prescriptions[i].addition[a].id)
1399
-              }
1400
-
1401
               for (let a = 0; a < this.month_prescriptions[i].project.length; a++) {
1378
               for (let a = 0; a < this.month_prescriptions[i].project.length; a++) {
1402
                 ids.push(this.month_prescriptions[i].project[a].id)
1379
                 ids.push(this.month_prescriptions[i].project[a].id)
1403
               }
1380
               }
1832
               for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
1809
               for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
1833
                 ids.push(this.prescriptions[i].advices[a].id)
1810
                 ids.push(this.prescriptions[i].advices[a].id)
1834
               }
1811
               }
1835
-              for (let a = 0; a < this.prescriptions[i].addition.length; a++) {
1836
-                ids.push(this.prescriptions[i].addition[a].id)
1837
-              }
1838
 
1812
 
1839
               for (let a = 0; a < this.prescriptions[i].project.length; a++) {
1813
               for (let a = 0; a < this.prescriptions[i].project.length; a++) {
1840
                 ids.push(this.prescriptions[i].project[a].id)
1814
                 ids.push(this.prescriptions[i].project[a].id)
1850
                 ids.push(this.month_prescriptions[i].advices[a].id)
1824
                 ids.push(this.month_prescriptions[i].advices[a].id)
1851
               }
1825
               }
1852
 
1826
 
1853
-              for (let a = 0; a < this.month_prescriptions[i].addition.length; a++) {
1854
-                ids.push(this.month_prescriptions[i].addition[a].id)
1855
-              }
1856
 
1827
 
1857
               for (let a = 0; a < this.month_prescriptions[i].project.length; a++) {
1828
               for (let a = 0; a < this.month_prescriptions[i].project.length; a++) {
1858
                 ids.push(this.month_prescriptions[i].project[a].id)
1829
                 ids.push(this.month_prescriptions[i].project[a].id)
1922
               for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
1893
               for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
1923
                 ids.push(this.prescriptions[i].advices[a].id)
1894
                 ids.push(this.prescriptions[i].advices[a].id)
1924
               }
1895
               }
1925
-              for (let a = 0; a < this.prescriptions[i].addition.length; a++) {
1926
-                ids.push(this.prescriptions[i].addition[a].id)
1927
-              }
1928
 
1896
 
1929
               for (let a = 0; a < this.prescriptions[i].project.length; a++) {
1897
               for (let a = 0; a < this.prescriptions[i].project.length; a++) {
1930
                 ids.push(this.prescriptions[i].project[a].id)
1898
                 ids.push(this.prescriptions[i].project[a].id)
1941
                 ids.push(this.month_prescriptions[i].advices[a].id)
1909
                 ids.push(this.month_prescriptions[i].advices[a].id)
1942
               }
1910
               }
1943
 
1911
 
1944
-              for (let a = 0; a < this.month_prescriptions[i].addition.length; a++) {
1945
-                ids.push(this.month_prescriptions[i].addition[a].id)
1946
-              }
1947
 
1912
 
1948
               for (let a = 0; a < this.month_prescriptions[i].project.length; a++) {
1913
               for (let a = 0; a < this.month_prescriptions[i].project.length; a++) {
1949
                 ids.push(this.month_prescriptions[i].project[a].id)
1914
                 ids.push(this.month_prescriptions[i].project[a].id)
2545
               project_month_prescriptions.project.push(month_prescriptions[i].project[a])
2510
               project_month_prescriptions.project.push(month_prescriptions[i].project[a])
2546
             }
2511
             }
2547
           }
2512
           }
2548
-          //附加收费
2549
-          for (let a = 0; a < month_prescriptions[i].addition.length; a++) {
2550
-            let obj = {
2551
-              id: month_prescriptions[i].addition[a].item_id,
2552
-              price: month_prescriptions[i].addition[a].price
2553
-
2554
-            }
2555
-            additions_ids.push(obj)
2556
-            addition_month_prescriptions.addition.push(month_prescriptions[i].addition[a])
2557
 
2513
 
2558
-          }
2559
 
2514
 
2560
         }
2515
         }
2561
 
2516
 
2631
           projects.push(obj)
2586
           projects.push(obj)
2632
         }
2587
         }
2633
 
2588
 
2634
-        for (let i = 0; i < additions_ids.length; i++) {
2635
-          let obj = {}
2636
-          let count = 0
2637
-          if (addition_month_prescriptions.addition) {
2638
-            for (let a = 0; a < addition_month_prescriptions.addition.length; a++) {
2639
-              if (additions_ids[i].price == addition_month_prescriptions.addition[a].price && additions_ids[i].id == addition_month_prescriptions.addition[a].item_id) {
2640
-                obj['item_name'] = addition_month_prescriptions.addition[a].item_name
2641
-                obj['id'] = addition_month_prescriptions.addition[a].id
2642
-                obj['item_id'] = addition_month_prescriptions.addition[a].item_id
2643
-                count = count + addition_month_prescriptions.addition[a].count
2644
-                obj['price'] = parseFloat(addition_month_prescriptions.addition[a].price)
2645
-              }
2646
-            }
2647
-            obj['count'] = count
2648
-            additions.push(obj)
2649
-          }
2650
-        }
2651
 
2589
 
2652
         let p1 = {
2590
         let p1 = {
2653
           name: '处方' + 1,
2591
           name: '处方' + 1,
2843
                 tempProject.push(obj)
2781
                 tempProject.push(obj)
2844
               }
2782
               }
2845
 
2783
 
2846
-              for (let b = 0; b < prescription.addition.length; b++) {
2847
-                let obj = {
2848
-                  id: prescription.addition[b].id,
2849
-                  item_name: prescription.addition[b].item_name,
2850
-                  price: prescription.addition[b].price,
2851
-                  count: prescription.addition[b].count,
2852
-                  item_id: prescription.addition[b].item_id
2853
-                }
2854
-                tempAddition.push(obj)
2855
-              }
2784
+
2856
               let index = i + 1
2785
               let index = i + 1
2857
               let obj = {
2786
               let obj = {
2858
                 id: prescription.id,
2787
                 id: prescription.id,