|
@@ -1205,11 +1205,7 @@
|
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
|
1209
|
return total.toFixed(2)
|
1214
|
1210
|
|
1215
|
1211
|
}, getMonthTotalOne() {
|
|
@@ -1230,11 +1226,6 @@
|
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
|
1229
|
return total.toFixed(2)
|
1239
|
1230
|
|
1240
|
1231
|
},
|
|
@@ -1252,11 +1243,7 @@
|
1252
|
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
|
1248
|
return total.toFixed(2)
|
1262
|
1249
|
|
|
@@ -1275,11 +1262,7 @@
|
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
|
1267
|
return total.toFixed(2)
|
1285
|
1268
|
|
|
@@ -1374,9 +1357,7 @@
|
1374
|
1357
|
for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
|
1375
|
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
|
1362
|
for (let a = 0; a < this.prescriptions[i].project.length; a++) {
|
1382
|
1363
|
ids.push(this.prescriptions[i].project[a].id)
|
|
@@ -1394,10 +1375,6 @@
|
1394
|
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
|
1378
|
for (let a = 0; a < this.month_prescriptions[i].project.length; a++) {
|
1402
|
1379
|
ids.push(this.month_prescriptions[i].project[a].id)
|
1403
|
1380
|
}
|
|
@@ -1832,9 +1809,6 @@
|
1832
|
1809
|
for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
|
1833
|
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
|
1813
|
for (let a = 0; a < this.prescriptions[i].project.length; a++) {
|
1840
|
1814
|
ids.push(this.prescriptions[i].project[a].id)
|
|
@@ -1850,9 +1824,6 @@
|
1850
|
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
|
1828
|
for (let a = 0; a < this.month_prescriptions[i].project.length; a++) {
|
1858
|
1829
|
ids.push(this.month_prescriptions[i].project[a].id)
|
|
@@ -1922,9 +1893,6 @@
|
1922
|
1893
|
for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
|
1923
|
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
|
1897
|
for (let a = 0; a < this.prescriptions[i].project.length; a++) {
|
1930
|
1898
|
ids.push(this.prescriptions[i].project[a].id)
|
|
@@ -1941,9 +1909,6 @@
|
1941
|
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
|
1913
|
for (let a = 0; a < this.month_prescriptions[i].project.length; a++) {
|
1949
|
1914
|
ids.push(this.month_prescriptions[i].project[a].id)
|
|
@@ -2545,17 +2510,7 @@
|
2545
|
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,23 +2586,6 @@
|
2631
|
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
|
2590
|
let p1 = {
|
2653
|
2591
|
name: '处方' + 1,
|
|
@@ -2843,16 +2781,7 @@
|
2843
|
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
|
2785
|
let index = i + 1
|
2857
|
2786
|
let obj = {
|
2858
|
2787
|
id: prescription.id,
|