|
@@ -1169,7 +1169,7 @@ export default {
|
1169
|
1169
|
if (this.curPrescriptions.type == 1) {
|
1170
|
1170
|
if (this.curPrescriptions.advices != null) {
|
1171
|
1171
|
for (let a = 0; a < this.curPrescriptions.advices.length; a++) {
|
1172
|
|
- total = parseFloat(total) + parseFloat(this.curPrescriptions.advices[a].retail_price * this.curPrescriptions.advices[a].prescribing_number)
|
|
1172
|
+ total = parseFloat(total) + parseFloat(this.curPrescriptions.advices[a].retail_price * this.curPrescriptions.advices[a].prescribing_number)
|
1173
|
1173
|
|
1174
|
1174
|
}
|
1175
|
1175
|
}
|
|
@@ -1190,14 +1190,14 @@ export default {
|
1190
|
1190
|
if (this.curMonthPrescriptions.type == 1) {
|
1191
|
1191
|
if (this.curMonthPrescriptions.advices != null) {
|
1192
|
1192
|
for (let a = 0; a < this.curMonthPrescriptions.advices.length; a++) {
|
1193
|
|
- total = parseFloat(total) + parseFloat(this.curMonthPrescriptions.advices[a].retail_price * this.curMonthPrescriptions.advices[a].prescribing_number)
|
|
1193
|
+ total = parseFloat(total) + parseFloat(this.curMonthPrescriptions.advices[a].retail_price* this.curMonthPrescriptions.advices[a].prescribing_number)
|
1194
|
1194
|
|
1195
|
1195
|
}
|
1196
|
1196
|
}
|
1197
|
1197
|
} else {
|
1198
|
1198
|
if (this.curMonthPrescriptions.project != null) {
|
1199
|
1199
|
for (let b = 0; b < this.curMonthPrescriptions.project.length; b++) {
|
1200
|
|
- total = parseFloat(total) + parseFloat(this.curMonthPrescriptions.project[b].price * this.curMonthPrescriptions.project[b].total)
|
|
1200
|
+ total = parseFloat(total) + parseFloat(this.curMonthPrescriptions.project[b].price * this.curMonthPrescriptions.project[b].total)
|
1201
|
1201
|
|
1202
|
1202
|
}
|
1203
|
1203
|
}
|
|
@@ -1218,7 +1218,7 @@ export default {
|
1218
|
1218
|
} else {
|
1219
|
1219
|
if (this.curSettlePrescriptions.project != null) {
|
1220
|
1220
|
for (let b = 0; b < this.curSettlePrescriptions.project.length; b++) {
|
1221
|
|
- total = parseFloat(total) + parseFloat(this.curSettlePrescriptions.project[b].price * this.curSettlePrescriptions.project[b].total)
|
|
1221
|
+ total = parseFloat(total) + parseFloat(this.curSettlePrescriptions.project[b].price * this.curSettlePrescriptions.project[b].total)
|
1222
|
1222
|
|
1223
|
1223
|
}
|
1224
|
1224
|
}
|
|
@@ -1228,22 +1228,28 @@ export default {
|
1228
|
1228
|
|
1229
|
1229
|
},
|
1230
|
1230
|
getSettleTotal() {
|
1231
|
|
- var total = 0
|
|
1231
|
+ var total = 0.0
|
1232
|
1232
|
for (let i = 0; i < this.settle_prescriptions.length; i++) {
|
1233
|
1233
|
if (this.settle_prescriptions[i].advices != null) {
|
1234
|
1234
|
for (let a = 0; a < this.settle_prescriptions[i].advices.length; a++) {
|
|
1235
|
+ // console.log(parseFloat(this.settle_prescriptions[i].advices[a].retail_price.toFixed(2)))
|
|
1236
|
+ // console.log(this.settle_prescriptions[i].advices[a].prescribing_number)
|
1235
|
1237
|
total = parseFloat(total) + parseFloat(this.settle_prescriptions[i].advices[a].retail_price * this.settle_prescriptions[i].advices[a].prescribing_number)
|
|
1238
|
+
|
|
1239
|
+ // console.log(parseFloat(this.settle_prescriptions[i].advices[a].retail_price.toFixed(2) * this.settle_prescriptions[i].advices[a].prescribing_number))
|
|
1240
|
+ // total = parseFloat(total) + parseFloat(this.settle_prescriptions[i].advices[a].retail_price).toFixed(2) * this.settle_prescriptions[i].advices[a].prescribing_number
|
1236
|
1241
|
}
|
1237
|
1242
|
}
|
1238
|
1243
|
if (this.settle_prescriptions[i].project != null) {
|
1239
|
1244
|
for (let b = 0; b < this.settle_prescriptions[i].project.length; b++) {
|
|
1245
|
+ total = parseFloat(total) + parseFloat(this.settle_prescriptions[i].project[b].price * this.settle_prescriptions[i].project[b].total)
|
1240
|
1246
|
|
1241
|
|
- total = parseFloat(total) + parseFloat(this.settle_prescriptions[i].project[b].price * this.settle_prescriptions[i].project[b].total)
|
|
1247
|
+ // total = parseFloat(total) + parseFloat(this.settle_prescriptions[i].project[b].price.toFixed(2))* this.settle_prescriptions[i].project[b].total
|
1242
|
1248
|
}
|
1243
|
1249
|
}
|
1244
|
1250
|
|
1245
|
1251
|
}
|
1246
|
|
- return total.toFixed(2)
|
|
1252
|
+ return total
|
1247
|
1253
|
|
1248
|
1254
|
},
|
1249
|
1255
|
getTotal() {
|
|
@@ -1257,7 +1263,7 @@ export default {
|
1257
|
1263
|
if (this.prescriptions[i].project != null) {
|
1258
|
1264
|
for (let b = 0; b < this.prescriptions[i].project.length; b++) {
|
1259
|
1265
|
|
1260
|
|
- total = parseFloat(total) + parseFloat(this.prescriptions[i].project[b].price * this.prescriptions[i].project[b].total)
|
|
1266
|
+ total = parseFloat(total) + parseFloat(this.prescriptions[i].project[b].price * this.prescriptions[i].project[b].total)
|
1261
|
1267
|
}
|
1262
|
1268
|
}
|
1263
|
1269
|
|
|
@@ -1276,7 +1282,7 @@ export default {
|
1276
|
1282
|
if (this.month_prescriptions[i].project != null) {
|
1277
|
1283
|
for (let a = 0; a < this.month_prescriptions[i].project.length; a++) {
|
1278
|
1284
|
|
1279
|
|
- total = parseFloat(total) + parseFloat(this.month_prescriptions[i].project[a].price * this.month_prescriptions[i].project[a].total)
|
|
1285
|
+ total = parseFloat(total) + parseFloat(this.month_prescriptions[i].project[a].price * this.month_prescriptions[i].project[a].total)
|
1280
|
1286
|
}
|
1281
|
1287
|
}
|
1282
|
1288
|
|
|
@@ -2637,7 +2643,113 @@ export default {
|
2637
|
2643
|
|
2638
|
2644
|
this.curMonthPrescriptions = this.month_prescriptions[0]
|
2639
|
2645
|
|
|
2646
|
+
|
|
2647
|
+ },
|
|
2648
|
+ setSettlePrescriptionTwo(month_prescriptions) {
|
|
2649
|
+ this.settle_prescriptions = []
|
|
2650
|
+
|
|
2651
|
+ for (let i = 0; i < month_prescriptions.length; i++) {
|
|
2652
|
+ var prescription = month_prescriptions[i]
|
|
2653
|
+ let tempAdvice = []
|
|
2654
|
+ let tempProject = []
|
|
2655
|
+ let tempAddition = []
|
|
2656
|
+ for (let b = 0; b < prescription.advices.length; b++) {
|
|
2657
|
+ let spec = prescription.advices[b].drug.dose + prescription.advices[b].drug.dose_unit + '*' + prescription.advices[b].drug.min_number + prescription.advices[b].drug.min_unit + '/' + prescription.advices[b].drug.max_unit
|
|
2658
|
+
|
|
2659
|
+ let obj = {
|
|
2660
|
+ advice_id: prescription.advices[b].id,
|
|
2661
|
+ drug_name: prescription.advices[b].advice_name,
|
|
2662
|
+ single_dose: prescription.advices[b].single_dose,
|
|
2663
|
+ delivery_way: prescription.advices[b].delivery_way,
|
|
2664
|
+ execution_frequency: prescription.advices[b].execution_frequency,
|
|
2665
|
+ retail_price: prescription.advices[b].price.toString(),
|
|
2666
|
+ remark: prescription.advices[b].remark,
|
|
2667
|
+ day: prescription.advices[b].day,
|
|
2668
|
+ prescribing_number: prescription.advices[b].prescribing_number.toString(),
|
|
2669
|
+ single_dose_unit: prescription.advices[b].single_dose_unit,
|
|
2670
|
+ prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
|
|
2671
|
+ medical_insurance_number: prescription.advices[b].med_list_codg,
|
|
2672
|
+
|
|
2673
|
+ code: prescription.advices[b].drug.medical_insurance_number,
|
|
2674
|
+ spec: spec,
|
|
2675
|
+ det_item_fee_sumamt: prescription.advices[b].order_info.det_item_fee_sumamt,
|
|
2676
|
+ name_id: prescription.advices[b].drug.manufacturer,
|
|
2677
|
+ fulamt_ownpay_amt: prescription.advices[b].order_info.fulamt_ownpay_amt,
|
|
2678
|
+ overlmt_amt: prescription.advices[b].order_info.overlmt_amt,
|
|
2679
|
+ preselfpay_amt: prescription.advices[b].order_info.preselfpay_amt,
|
|
2680
|
+ inscp_scp_amt: prescription.advices[b].order_info.inscp_scp_amt
|
|
2681
|
+
|
|
2682
|
+
|
|
2683
|
+
|
|
2684
|
+ }
|
|
2685
|
+ tempAdvice.push(obj)
|
|
2686
|
+ }
|
|
2687
|
+
|
|
2688
|
+ for (let b = 0; b < prescription.project.length; b++) {
|
|
2689
|
+ let obj = {
|
|
2690
|
+ id: prescription.project[b].id,
|
|
2691
|
+ project_id: prescription.project[b].project.id,
|
|
2692
|
+ // project_name: prescription.project[b].project.project_name,
|
|
2693
|
+ // statistical_classification: prescription.project[b].project.statistical_classification,
|
|
2694
|
+ single_dose: prescription.project[b].single_dose,
|
|
2695
|
+ delivery_way: prescription.project[b].delivery_way,
|
|
2696
|
+ execution_frequency: prescription.project[b].execution_frequency,
|
|
2697
|
+ number_days: prescription.project[b].day,
|
|
2698
|
+ total: prescription.project[b].count.toString(),
|
|
2699
|
+ price: prescription.project[b].price,
|
|
2700
|
+ remark: prescription.project[b].remark,
|
|
2701
|
+ // medical_code: prescription.project[b].project.medical_code,
|
|
2702
|
+ unit: prescription.project[b].project.unit,
|
|
2703
|
+ type: prescription.project[b].type,
|
|
2704
|
+ det_item_fee_sumamt: prescription.project[b].order_info.det_item_fee_sumamt,
|
|
2705
|
+ fulamt_ownpay_amt: prescription.project[b].order_info.fulamt_ownpay_amt,
|
|
2706
|
+ overlmt_amt: prescription.project[b].order_info.overlmt_amt,
|
|
2707
|
+ preselfpay_amt: prescription.project[b].order_info.preselfpay_amt,
|
|
2708
|
+ inscp_scp_amt: prescription.project[b].order_info.inscp_scp_amt
|
|
2709
|
+
|
|
2710
|
+ }
|
|
2711
|
+
|
|
2712
|
+ if (prescription.project[b].type == 2) {
|
|
2713
|
+ obj['statistical_classification'] = prescription.project[b].team.project_team
|
|
2714
|
+ obj['medical_code'] = prescription.project[b].project.medical_code
|
|
2715
|
+ obj['project_name'] = prescription.project[b].project.project_name
|
|
2716
|
+ obj['spec'] = ''
|
|
2717
|
+ obj['name_id'] = 0
|
|
2718
|
+
|
|
2719
|
+ } else if (prescription.project[b].type == 3) {
|
|
2720
|
+ obj['statistical_classification'] = prescription.project[b].team.project_team
|
|
2721
|
+ obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
|
|
2722
|
+ obj['project_name'] = prescription.project[b].good_info.good_name
|
|
2723
|
+ obj['spec'] = prescription.project[b].good_info.specification_name
|
|
2724
|
+ obj['name_id'] = prescription.project[b].good_info.manufacturer
|
|
2725
|
+
|
|
2726
|
+ }
|
|
2727
|
+
|
|
2728
|
+ tempProject.push(obj)
|
|
2729
|
+ }
|
|
2730
|
+
|
|
2731
|
+ let index = i + 1
|
|
2732
|
+ let obj = {
|
|
2733
|
+ id: prescription.id,
|
|
2734
|
+ name: '处方' + index,
|
|
2735
|
+ advices: tempAdvice,
|
|
2736
|
+ project: tempProject,
|
|
2737
|
+ addition: tempAddition,
|
|
2738
|
+ order_status: prescription.order_status,
|
|
2739
|
+ type: prescription.type
|
|
2740
|
+ }
|
|
2741
|
+ this.settle_prescriptions.push(obj)
|
|
2742
|
+ this.curSettlePrescriptions = this.settle_prescriptions[0]
|
|
2743
|
+ for (let i = 0; i < this.settle_prescriptions.length; i++) {
|
|
2744
|
+ if (this.settle_prescriptions[i].order_status != 4) {
|
|
2745
|
+ this.isShowUpload = 2
|
|
2746
|
+ }
|
|
2747
|
+
|
|
2748
|
+ }
|
|
2749
|
+
|
|
2750
|
+ }
|
2640
|
2751
|
},
|
|
2752
|
+
|
2641
|
2753
|
setSettlePrescription(month_prescriptions) {
|
2642
|
2754
|
this.settle_prescriptions = []
|
2643
|
2755
|
|