|
@@ -73,7 +73,7 @@
|
73
|
73
|
<!-- 杏康 -->
|
74
|
74
|
<printSeventheen :info="info" v-if=" org_id == 10721"></printSeventheen>
|
75
|
75
|
<printeighteen :info="info" v-if=" org_id == 10726"></printeighteen>
|
76
|
|
- <printOne :info="info" v-if=" org_id != 9990 && org_id !=0 &&
|
|
76
|
+ <printOne :info="info" v-if=" org_id != 9990 &&
|
77
|
77
|
org_id != 10138 && org_id != 9504 && org_id != 10028 && org_id != 10744 &&
|
78
|
78
|
org_id != 10610 && org_id !=10537 && org_id !=10697 &&
|
79
|
79
|
org_id != 10278 && org_id != 10387 && org_id != 10191 &&
|
|
@@ -1164,7 +1164,7 @@ export default {
|
1164
|
1164
|
})
|
1165
|
1165
|
}
|
1166
|
1166
|
} else {
|
1167
|
|
- console.log('1111111',this.org_id)
|
|
1167
|
+
|
1168
|
1168
|
if (this.org_id == 1000000) {
|
1169
|
1169
|
let params = {
|
1170
|
1170
|
order_id: obj.order_id,
|
|
@@ -2011,8 +2011,6 @@ export default {
|
2011
|
2011
|
that.info['his'] = response.data.data.his
|
2012
|
2012
|
that.info['dia_config'] = response.data.data.dia_config
|
2013
|
2013
|
|
2014
|
|
- const jsonArr = JSON.parse(response.data.data.his.idetinfo);
|
2015
|
|
- that.info['psn_idet_type'] = jsonArr[0].psn_idet_type
|
2016
|
2014
|
|
2017
|
2015
|
|
2018
|
2016
|
const jsons = JSON.parse(response.data.data.his.iinfo);
|
|
@@ -2216,7 +2214,7 @@ export default {
|
2216
|
2214
|
|
2217
|
2215
|
|
2218
|
2216
|
|
2219
|
|
- } else if(this.org_id == 10633 || this.org_id == 0){
|
|
2217
|
+ } else if(this.org_id == 10633 ){
|
2220
|
2218
|
let params = {
|
2221
|
2219
|
order_id: obj.order_id,
|
2222
|
2220
|
admin_user_id: this.$store.getters.xt_user.user.id
|
|
@@ -2597,7 +2595,438 @@ export default {
|
2597
|
2595
|
|
2598
|
2596
|
|
2599
|
2597
|
|
2600
|
|
- }else {
|
|
2598
|
+ }else if(this.org_id == 9478 || this.org_id == 0 ){
|
|
2599
|
+
|
|
2600
|
+ let params = {
|
|
2601
|
+ order_id: obj.order_id,
|
|
2602
|
+ admin_user_id: this.$store.getters.xt_user.user.id
|
|
2603
|
+ }
|
|
2604
|
+ getPrivateExpensesOrder(params).then((response) => {
|
|
2605
|
+ if (response.data.state == 0) {
|
|
2606
|
+ // this.$message.error(response.data.msg)
|
|
2607
|
+
|
|
2608
|
+ return false
|
|
2609
|
+ } else {
|
|
2610
|
+ var that = this
|
|
2611
|
+ that.info = response.data.data.info
|
|
2612
|
+ that.p_admin = response.data.data.printor_admin
|
|
2613
|
+ that.charge_admin = response.data.data.charge_admin
|
|
2614
|
+ that.info['new_order'] = response.data.data.info
|
|
2615
|
+ that.info['p_admin'] = that.p_admin
|
|
2616
|
+ that.info['his'] = that.info.his
|
|
2617
|
+ that.info['charge_admin'] = that.charge_admin
|
|
2618
|
+ that.info['order_number'] = response.data.data.order_number
|
|
2619
|
+ that.info['patient'] = response.data.data.patient
|
|
2620
|
+ that.info['date'] = response.data.data.date
|
|
2621
|
+ that.info['number'] = response.data.data.number
|
|
2622
|
+ that.info['order_infos'] = response.data.data.order_infos
|
|
2623
|
+ that.info['diagnosis'] = response.data.data.diagnosis
|
|
2624
|
+
|
|
2625
|
+
|
|
2626
|
+ that.info['dise_name'] = "慢性肾脏病5期"
|
|
2627
|
+
|
|
2628
|
+
|
|
2629
|
+
|
|
2630
|
+ that.info['begndate'] = response.data.data.info.setl_time
|
|
2631
|
+ that.info['enddate'] = response.data.data.info.setl_time
|
|
2632
|
+
|
|
2633
|
+
|
|
2634
|
+ that.info['fixmedins_name'] = response.data.data.org_name
|
|
2635
|
+ that.info['fixmedins_code'] = response.data.data.org_code
|
|
2636
|
+ // that.info["doctor_code"] = response.data.data.doctor_code;
|
|
2637
|
+ // that.info["department"] = response.data.data.department;
|
|
2638
|
+ // that.info["health_card_no"] = response.data.data.health_card_no;
|
|
2639
|
+
|
|
2640
|
+ that.info['bed_cost_total'] = response.data.data.bedCostTotal
|
|
2641
|
+ that.info['bed_cost_self_total'] =
|
|
2642
|
+ response.data.data.bedCostSelfTotal
|
|
2643
|
+ that.info['bed_cost_part_self_total'] =
|
|
2644
|
+ response.data.data.bedCostPartSelfTotal
|
|
2645
|
+
|
|
2646
|
+ that.info['operation_cost_total'] =
|
|
2647
|
+ response.data.data.operationCostTotal
|
|
2648
|
+ that.info['operation_cost_self_total'] =
|
|
2649
|
+ response.data.data.operationCostSelfTotal
|
|
2650
|
+ that.info['operation_cost_part_self_total'] =
|
|
2651
|
+ response.data.data.operationCostPartSelfTotal
|
|
2652
|
+
|
|
2653
|
+ that.info['other_cost_total'] = response.data.data.otherCostTotal
|
|
2654
|
+ that.info['other_cost_self_total'] =
|
|
2655
|
+ response.data.data.otherCostSelfTotal
|
|
2656
|
+ that.info['other_cost_part_self_total'] =
|
|
2657
|
+ response.data.data.otherCostPartSelfTotal
|
|
2658
|
+
|
|
2659
|
+ that.info['material_cost_total'] =
|
|
2660
|
+ response.data.data.materialCostTotal
|
|
2661
|
+ that.info['material_cost_self_total'] =
|
|
2662
|
+ response.data.data.materialCostSelfTotal
|
|
2663
|
+ that.info['material_cost_part_self_total'] =
|
|
2664
|
+ response.data.data.materialCostPartSelfTotal
|
|
2665
|
+
|
|
2666
|
+ that.info['western_medicine_cost_total'] =
|
|
2667
|
+ response.data.data.westernMedicineCostTotal
|
|
2668
|
+ that.info['western_medicine_cost_self_total'] =
|
|
2669
|
+ response.data.data.westernMedicineCostSelfTotal
|
|
2670
|
+ that.info['western_medicine_cost_part_self_total'] =
|
|
2671
|
+ response.data.data.westernMedicineCostPartSelfTotal
|
|
2672
|
+
|
|
2673
|
+ that.info['chinese_traditional_medicine_cost_total'] =
|
|
2674
|
+ response.data.data.chineseTraditionalMedicineCostTotal
|
|
2675
|
+ that.info['chinese_traditional_medicine_cost_self_total'] =
|
|
2676
|
+ response.data.data.chineseTraditionalMedicineCostSelfTotal
|
|
2677
|
+ that.info['chinese_traditional_medicine_cost_part_self_total'] =
|
|
2678
|
+ response.data.data.chineseTraditionalMedicineCostPartSelfTotal
|
|
2679
|
+
|
|
2680
|
+ that.info['check_cost_total'] = response.data.data.checkCostTotal
|
|
2681
|
+ that.info['check_cost_self_total'] =
|
|
2682
|
+ response.data.data.checkCostSelfTotal
|
|
2683
|
+ that.info['check_cost_part_self_total'] =
|
|
2684
|
+ response.data.data.checkCostPartSelfTotal
|
|
2685
|
+
|
|
2686
|
+ that.info['laboratory_cost_total'] =
|
|
2687
|
+ response.data.data.laboratoryCostTotal
|
|
2688
|
+ that.info['laboratory_cost_self_total'] =
|
|
2689
|
+ response.data.data.laboratoryCostSelfTotal
|
|
2690
|
+ that.info['laboratory_cost_part_self_total'] =
|
|
2691
|
+ response.data.data.laboratoryCostPartSelfTotal
|
|
2692
|
+
|
|
2693
|
+ that.info['treat_cost_total'] = response.data.data.treatCostTotal
|
|
2694
|
+ that.info['treat_cost_self_total'] =
|
|
2695
|
+ response.data.data.treatCostSelfTotal
|
|
2696
|
+ that.info['treat_cost_part_self_total'] =
|
|
2697
|
+ response.data.data.treatCostPartSelfTotal
|
|
2698
|
+
|
|
2699
|
+
|
|
2700
|
+ that.info['bedInscpTotal'] =
|
|
2701
|
+ response.data.data.bedInscpTotal
|
|
2702
|
+ that.info['bedSelfTotal'] =
|
|
2703
|
+ response.data.data.bedSelfTotal
|
|
2704
|
+
|
|
2705
|
+ that.info['operationInscpTotal'] =
|
|
2706
|
+ response.data.data.operationInscpTotal
|
|
2707
|
+ that.info['operationSelfTotal'] =
|
|
2708
|
+ response.data.data.operationSelfTotal
|
|
2709
|
+
|
|
2710
|
+ that.info['checkInscpTotal'] =
|
|
2711
|
+ response.data.data.checkInscpTotal
|
|
2712
|
+ that.info['checkSelfTotal'] =
|
|
2713
|
+ response.data.data.checkSelfTotal
|
|
2714
|
+
|
|
2715
|
+ that.info['treatInscpTotal'] =
|
|
2716
|
+ response.data.data.treatInscpTotal
|
|
2717
|
+ that.info['treatSelfTotal'] =
|
|
2718
|
+ response.data.data.treatSelfTotal
|
|
2719
|
+
|
|
2720
|
+ that.info['laboratoryInscpTotal'] =
|
|
2721
|
+ response.data.data.laboratoryInscpTotal
|
|
2722
|
+ that.info['laboratorySelfTotal'] =
|
|
2723
|
+ response.data.data.laboratorySelfTotal
|
|
2724
|
+
|
|
2725
|
+ that.info['westernMedicineInscpTotal'] =
|
|
2726
|
+ response.data.data.westernMedicineInscpTotal
|
|
2727
|
+ that.info['westernMedicineSelfTotal'] =
|
|
2728
|
+ response.data.data.westernMedicineSelfTotal
|
|
2729
|
+
|
|
2730
|
+ that.info['materialInscpTotal'] =
|
|
2731
|
+ response.data.data.materialInscpTotal
|
|
2732
|
+ that.info['materialSelfTotal'] =
|
|
2733
|
+ response.data.data.materialSelfTotal
|
|
2734
|
+
|
|
2735
|
+ that.info['chineseTraditionalInscpTotal'] =
|
|
2736
|
+ response.data.data.chineseTraditionalInscpTotal
|
|
2737
|
+ that.info['chineseTraditionalSelfTotal'] =
|
|
2738
|
+ response.data.data.chineseTraditionalSelfTotal
|
|
2739
|
+
|
|
2740
|
+
|
|
2741
|
+
|
|
2742
|
+ if(response.data.data.zcCostTotal){
|
|
2743
|
+ that.info['zc_cost_total'] =
|
|
2744
|
+ response.data.data.zcCostTotal
|
|
2745
|
+ }else{
|
|
2746
|
+ that.info['zc_cost_total'] = 0
|
|
2747
|
+ }
|
|
2748
|
+
|
|
2749
|
+ if(response.data.data.zcCostSelfTotal){
|
|
2750
|
+ that.info['zc_cost_self_total'] =
|
|
2751
|
+ response.data.data.zcCostSelfTotal
|
|
2752
|
+ }else{
|
|
2753
|
+ that.info['zc_cost_self_total'] = 0
|
|
2754
|
+ }
|
|
2755
|
+
|
|
2756
|
+
|
|
2757
|
+
|
|
2758
|
+
|
|
2759
|
+ if(response.data.data.zcCostPartSelfTotal){
|
|
2760
|
+ that.info['zc_cost_part_self_total'] =
|
|
2761
|
+ response.data.data.zcCostPartSelfTotal
|
|
2762
|
+ }else{
|
|
2763
|
+ that.info['zc_cost_part_self_total'] = 0
|
|
2764
|
+ }
|
|
2765
|
+
|
|
2766
|
+ if(response.data.data.huliCostTotal){
|
|
2767
|
+ that.info['huli_cost_total'] =
|
|
2768
|
+ response.data.data.huliCostTotal
|
|
2769
|
+ }else{
|
|
2770
|
+ that.info['huli_cost_total'] = 0
|
|
2771
|
+ }
|
|
2772
|
+ if(response.data.data.huliCostSelfTotal){
|
|
2773
|
+ that.info['huli_cost_self_total'] =
|
|
2774
|
+ response.data.data.huliCostSelfTotal
|
|
2775
|
+ }else{
|
|
2776
|
+ that.info['huli_cost_self_total'] = 0
|
|
2777
|
+ }
|
|
2778
|
+ if(response.data.data.huliCostPartSelfTotal){
|
|
2779
|
+ that.info['huli_cost_part_self_total'] =
|
|
2780
|
+ response.data.data.huliCostPartSelfTotal
|
|
2781
|
+ }else{
|
|
2782
|
+ that.info['huli_cost_part_self_total'] = 0
|
|
2783
|
+ }
|
|
2784
|
+
|
|
2785
|
+ that.info['date'] = response.data.data.date
|
|
2786
|
+ that.info['number'] = response.data.data.number
|
|
2787
|
+ that.info['order_infos'] = response.data.data.order_infos
|
|
2788
|
+ that.info['diagnosis'] = response.data.data.diagnosis
|
|
2789
|
+ that.info['his'] = response.data.data.his
|
|
2790
|
+ that.info['dia_config'] = response.data.data.dia_config
|
|
2791
|
+
|
|
2792
|
+
|
|
2793
|
+ const jsons = JSON.parse(response.data.data.his.iinfo);
|
|
2794
|
+ that.info['emp_name'] = jsons[0].emp_name
|
|
2795
|
+
|
|
2796
|
+
|
|
2797
|
+
|
|
2798
|
+ for (let i = 0; i < response.data.data.order_infos.length; i++) {
|
|
2799
|
+ if (response.data.data.order_infos[i].advice_id > 0 && response.data.data.order_infos[i].project_id == 0) {
|
|
2800
|
+ response.data.data.order_infos[i].med_chrgitm_type = '09'
|
|
2801
|
+ }
|
|
2802
|
+ if (response.data.data.order_infos[i].advice_id == 0 && response.data.data.order_infos[i].project_id > 0) {
|
|
2803
|
+ if (response.data.data.order_infos[i].project.type == 2) { //项目
|
|
2804
|
+ if (response.data.data.order_infos[i].project.project.cost_classify == 2) {
|
|
2805
|
+ response.data.data.order_infos[i].med_chrgitm_type = '05'
|
|
2806
|
+ } else if (response.data.data.order_infos[i].project.project.cost_classify == 3) {
|
|
2807
|
+ response.data.data.order_infos[i].med_chrgitm_type = '04'
|
|
2808
|
+ } else {
|
|
2809
|
+ response.data.data.order_infos[i].med_chrgitm_type = '14'
|
|
2810
|
+ }
|
|
2811
|
+ } else if (response.data.data.order_infos[i].project.type == 3) { //耗材
|
|
2812
|
+ response.data.data.order_infos[i].med_chrgitm_type = '08'
|
|
2813
|
+ }
|
|
2814
|
+ }
|
|
2815
|
+ }
|
|
2816
|
+ console.log(response.data.data.order_infos)
|
|
2817
|
+ console.log(that.info)
|
|
2818
|
+
|
|
2819
|
+ let list = []
|
|
2820
|
+ for (let i = 0; i < response.data.data.order_infos.length; i++) {
|
|
2821
|
+ let order = response.data.data.order_infos[i]
|
|
2822
|
+ let obj = {
|
|
2823
|
+ name: '',
|
|
2824
|
+ spec: '',
|
|
2825
|
+ cnt: '',
|
|
2826
|
+ det_item_fee_sumamt: '',
|
|
2827
|
+ price:'',
|
|
2828
|
+ }
|
|
2829
|
+
|
|
2830
|
+ if (order.advice_id > 0 && order.project_id == 0) {
|
|
2831
|
+ obj.name = order.advice.advice_name
|
|
2832
|
+ let spec = order.advice.drug.dose + order.advice.drug.dose_unit + '*' + order.advice.drug.min_number + order.advice.drug.min_unit + '/' + order.advice.drug.max_unit
|
|
2833
|
+ obj.spec = spec
|
|
2834
|
+ obj.cnt = order.cnt
|
|
2835
|
+ obj.det_item_fee_sumamt = order.det_item_fee_sumamt
|
|
2836
|
+ obj.price = order.pric
|
|
2837
|
+ list.push(obj)
|
|
2838
|
+
|
|
2839
|
+ } else if (order.advice_id == 0 && order.project_id > 0) {
|
|
2840
|
+ if (order.project.type == 2) {
|
|
2841
|
+ obj.name = order.project.project.project_name
|
|
2842
|
+ obj.spec = ''
|
|
2843
|
+ obj.cnt = order.cnt
|
|
2844
|
+ obj.det_item_fee_sumamt = order.det_item_fee_sumamt
|
|
2845
|
+ obj.price = order.pric
|
|
2846
|
+ } else {
|
|
2847
|
+ obj.name = order.project.good_info.good_name
|
|
2848
|
+ obj.spec = order.project.good_info.specification_name
|
|
2849
|
+ obj.cnt = order.cnt
|
|
2850
|
+ obj.det_item_fee_sumamt = order.det_item_fee_sumamt
|
|
2851
|
+ obj.price = order.pric
|
|
2852
|
+ }
|
|
2853
|
+ list.push(obj)
|
|
2854
|
+ }
|
|
2855
|
+
|
|
2856
|
+ }
|
|
2857
|
+ that.info['Z_list'] = list
|
|
2858
|
+ console.log(" that.info")
|
|
2859
|
+ console.log(that.info.Z_list)
|
|
2860
|
+ console.log(" that.info")
|
|
2861
|
+
|
|
2862
|
+
|
|
2863
|
+ //获取所有项目类型进行去重
|
|
2864
|
+ let med_chrgitm_types = []
|
|
2865
|
+ for (let i = 0; i < response.data.data.order_infos.length; i++) {
|
|
2866
|
+ med_chrgitm_types.push(response.data.data.order_infos[i].med_chrgitm_type)
|
|
2867
|
+ }
|
|
2868
|
+ const obj10 = {}
|
|
2869
|
+ med_chrgitm_types = med_chrgitm_types.reduce((cur, next) => {
|
|
2870
|
+ obj10[next] ? '' : obj10[next] = true && cur.push(next)
|
|
2871
|
+ return cur
|
|
2872
|
+ }, []) // 设置cur默认类型为数组,并且初始值为空的数组
|
|
2873
|
+ let tempOrderInfo = []
|
|
2874
|
+ for (let i = 0; i < med_chrgitm_types.length; i++) {
|
|
2875
|
+
|
|
2876
|
+ let obj9 = {
|
|
2877
|
+ details: [],
|
|
2878
|
+ med_chrgitm_name: that.getType(med_chrgitm_types[i]),
|
|
2879
|
+ total:0,
|
|
2880
|
+ }
|
|
2881
|
+
|
|
2882
|
+ // if(med_chrgitm_types[i] == '09'){
|
|
2883
|
+ // obj.sort = 99
|
|
2884
|
+ // } else if(med_chrgitm_types[i] == '05'){
|
|
2885
|
+ // obj.sort = 98
|
|
2886
|
+ // } else if(med_chrgitm_types[i] == '08'){
|
|
2887
|
+ // obj.sort = 97
|
|
2888
|
+ // }else if(med_chrgitm_types[i] == '03'){
|
|
2889
|
+ // obj.sort = 96
|
|
2890
|
+ // }
|
|
2891
|
+
|
|
2892
|
+ let tempDetails = []
|
|
2893
|
+ for (let b = 0; b < response.data.data.order_infos.length; b++) {
|
|
2894
|
+ if (med_chrgitm_types[i] == response.data.data.order_infos[b].med_chrgitm_type) {
|
|
2895
|
+ tempDetails.push(response.data.data.order_infos[b])
|
|
2896
|
+ }
|
|
2897
|
+ }
|
|
2898
|
+ console.log(med_chrgitm_types[i])
|
|
2899
|
+ console.log(tempDetails)
|
|
2900
|
+ obj9.total = that.getTotal(tempDetails)
|
|
2901
|
+ obj9.details = that.set10265NewData(tempDetails)
|
|
2902
|
+ list.push(obj9)
|
|
2903
|
+ }
|
|
2904
|
+ that.info['new_list'] = list
|
|
2905
|
+ // list.sort((a,b) => a.sort < b.sort ? 1 : a.sort > b.sort ? -1 : 0)
|
|
2906
|
+
|
|
2907
|
+ let obj = {
|
|
2908
|
+ type: 1,
|
|
2909
|
+ details: [],
|
|
2910
|
+ total: 0
|
|
2911
|
+ }
|
|
2912
|
+ let obj2 = {
|
|
2913
|
+ type: 2,
|
|
2914
|
+ details: [],
|
|
2915
|
+ total: 0
|
|
2916
|
+ }
|
|
2917
|
+ let obj3 = {
|
|
2918
|
+ type: 3,
|
|
2919
|
+ details: [],
|
|
2920
|
+ total: 0
|
|
2921
|
+ }
|
|
2922
|
+
|
|
2923
|
+ let obj4 = {
|
|
2924
|
+ type: 4,
|
|
2925
|
+ details: [],
|
|
2926
|
+ total: 0
|
|
2927
|
+ }
|
|
2928
|
+ let num = 0
|
|
2929
|
+ that.info.order_infos.map((item) => {
|
|
2930
|
+ if (item.advice_id > 0) {
|
|
2931
|
+ obj.details.push(item)
|
|
2932
|
+ obj.total += item.pric * item.advice.prescribing_number
|
|
2933
|
+ num++
|
|
2934
|
+ } else {
|
|
2935
|
+ if (item.project.type == 2) {
|
|
2936
|
+ obj2.details.push(item)
|
|
2937
|
+ obj2.total += item.pric * item.project.count
|
|
2938
|
+ num++
|
|
2939
|
+ } else {
|
|
2940
|
+ obj3.details.push(item)
|
|
2941
|
+ obj3.total += item.pric * item.project.count
|
|
2942
|
+ num++
|
|
2943
|
+ }
|
|
2944
|
+ }
|
|
2945
|
+ })
|
|
2946
|
+
|
|
2947
|
+ // this.info.order_infos.map(item => {
|
|
2948
|
+ // obj4.total = item.Total
|
|
2949
|
+ // obj4.details.push(item)
|
|
2950
|
+ // num++
|
|
2951
|
+ //
|
|
2952
|
+ // })
|
|
2953
|
+ var funds = []
|
|
2954
|
+ for(let i = 0; i < response.data.data.funds.length; i++){
|
|
2955
|
+ var objs = {}
|
|
2956
|
+ objs["number"] = i + 1
|
|
2957
|
+ objs["fund_pay"] = response.data.data.funds[i].fund_payamt
|
|
2958
|
+ objs["limit_pay"] = response.data.data.funds[i].inscp_scp_amt
|
|
2959
|
+ objs["insp_pay"] = response.data.data.funds[i].inscp_scp_amt
|
|
2960
|
+ for(let b = 0; b < that.fundsArray.length; b++){
|
|
2961
|
+ if(response.data.data.funds[i].fund_pay_type == that.fundsArray[b].code){
|
|
2962
|
+ objs["name"] =that.fundsArray[b].name
|
|
2963
|
+ }
|
|
2964
|
+ }
|
|
2965
|
+ funds.push(objs)
|
|
2966
|
+ }
|
|
2967
|
+ that.info['funds'] = funds
|
|
2968
|
+ console.log(that.info)
|
|
2969
|
+
|
|
2970
|
+ that.info.new_detail_list = []
|
|
2971
|
+ that.info.new_detail_list.push(obj)
|
|
2972
|
+ that.info.new_detail_list.push(obj2)
|
|
2973
|
+ that.info.new_detail_list.push(obj3)
|
|
2974
|
+ // that.info.new_detail_list.push(obj4)
|
|
2975
|
+
|
|
2976
|
+ that.num = num
|
|
2977
|
+
|
|
2978
|
+ if (that.paramsObj.settle_type != 1) {
|
|
2979
|
+ that.info.begndate = that.getTimes(that.paramsObj.start_time)
|
|
2980
|
+ that.info.enddate = that.getTimes(that.paramsObj.end_time)
|
|
2981
|
+ }
|
|
2982
|
+
|
|
2983
|
+ that.info.order_infos.map((item) => {
|
|
2984
|
+
|
|
2985
|
+ })
|
|
2986
|
+
|
|
2987
|
+
|
|
2988
|
+ that.info["jia_drug"] = 0
|
|
2989
|
+ that.info["yi_drug"] = 0
|
|
2990
|
+ that.info["zifei_drug"] = 0
|
|
2991
|
+
|
|
2992
|
+
|
|
2993
|
+ that.info["jia_yiliao"] = 0
|
|
2994
|
+ that.info["yi_yiliao"] = 0
|
|
2995
|
+ that.info["zifei_yiliao"] = 0
|
|
2996
|
+
|
|
2997
|
+ for(let a = 0; a < response.data.data.order_infos.length; a++){
|
|
2998
|
+ if(response.data.data.order_infos[a].chrgitm_lv == "01" && response.data.data.order_infos[a].med_chrgitm_type == "09"){
|
|
2999
|
+ that.info["jia_drug"] = that.info["jia_drug"] + response.data.data.order_infos[a].det_item_fee_sumamt
|
|
3000
|
+ }
|
|
3001
|
+ if(response.data.data.order_infos[a].chrgitm_lv == "02" && response.data.data.order_infos[a].med_chrgitm_type == "09"){
|
|
3002
|
+ that.info["yi_drug"] = that.info["yi_drug"] + response.data.data.order_infos[a].det_item_fee_sumamt
|
|
3003
|
+ }
|
|
3004
|
+ if(response.data.data.order_infos[a].chrgitm_lv != "01" && response.data.data.order_infos[a].chrgitm_lv != "02" && response.data.data.order_infos[a].med_chrgitm_type == "09"){
|
|
3005
|
+ that.info["zifei_drug"] = that.info["zifei_drug"] + response.data.data.order_infos[a].det_item_fee_sumamt
|
|
3006
|
+ }
|
|
3007
|
+ }
|
|
3008
|
+
|
|
3009
|
+ for(let a = 0; a < response.data.data.order_infos.length; a++){
|
|
3010
|
+ if(response.data.data.order_infos[a].chrgitm_lv == "01" && response.data.data.order_infos[a].med_chrgitm_type != "09"){
|
|
3011
|
+ that.info["jia_yiliao"] = that.info["jia_yiliao"] + response.data.data.order_infos[a].det_item_fee_sumamt
|
|
3012
|
+ }
|
|
3013
|
+ if(response.data.data.order_infos[a].chrgitm_lv == "02" && response.data.data.order_infos[a].med_chrgitm_type != "09"){
|
|
3014
|
+ that.info["yi_yiliao"] = that.info["yi_yiliao"] + response.data.data.order_infos[a].det_item_fee_sumamt
|
|
3015
|
+ }
|
|
3016
|
+ if(response.data.data.order_infos[a].chrgitm_lv != "01" && response.data.data.order_infos[a].chrgitm_lv != "02" && response.data.data.order_infos[a].med_chrgitm_type != "09"){
|
|
3017
|
+ that.info["zifei_yiliao"] = that.info["zifei_yiliao"] + response.data.data.order_infos[a].det_item_fee_sumamt
|
|
3018
|
+ }
|
|
3019
|
+ }
|
|
3020
|
+
|
|
3021
|
+ }
|
|
3022
|
+ })
|
|
3023
|
+
|
|
3024
|
+
|
|
3025
|
+
|
|
3026
|
+
|
|
3027
|
+
|
|
3028
|
+
|
|
3029
|
+ } else {
|
2601
|
3030
|
var that = this
|
2602
|
3031
|
axios
|
2603
|
3032
|
.get('http://127.0.0.1:9532/api/settle/query', {
|
|
@@ -2617,6 +3046,7 @@ export default {
|
2617
|
3046
|
that.charge_admin = response.data.data.charge_admin
|
2618
|
3047
|
that.info['psn_cash_pay'] = response.data.data.psn_cash_pay
|
2619
|
3048
|
that.info['new_order'] = response.data.data.order
|
|
3049
|
+ that.info['his'] = response.data.data.his
|
2620
|
3050
|
that.info['p_admin'] = that.p_admin
|
2621
|
3051
|
that.info['charge_admin'] = that.charge_admin
|
2622
|
3052
|
that.info['order_number'] = response.data.data.order_number
|