|
@@ -662,7 +662,7 @@ export default {
|
662
|
662
|
|
663
|
663
|
}
|
664
|
664
|
});
|
665
|
|
- } else if (this.org_id == 10191 || this.org_id == 0) {
|
|
665
|
+ } else if (this.org_id == 0) {
|
666
|
666
|
|
667
|
667
|
getPrivateExpensesOrder(params).then((response) => {
|
668
|
668
|
if (response.data.state == 0) {
|
|
@@ -788,16 +788,22 @@ export default {
|
788
|
788
|
}
|
789
|
789
|
|
790
|
790
|
}
|
|
791
|
+ console.log(list)
|
791
|
792
|
let len = list.length / 2
|
792
|
793
|
let L_list = []
|
793
|
794
|
let R_list = []
|
794
|
|
-
|
|
795
|
+ len = Math.trunc(len)
|
795
|
796
|
for(let i = 0; i < len; i++){
|
796
|
797
|
L_list.push(list[i])
|
797
|
798
|
}
|
|
799
|
+ console.log(len)
|
798
|
800
|
for(let i = len; i < list.length; i++){
|
|
801
|
+ console.log(list[i])
|
799
|
802
|
R_list.push(list[i])
|
800
|
803
|
}
|
|
804
|
+ console.log(L_list)
|
|
805
|
+ console.log(R_list)
|
|
806
|
+
|
801
|
807
|
that.info["L_list"] = L_list
|
802
|
808
|
that.info["R_list"] = R_list
|
803
|
809
|
|
|
@@ -811,216 +817,369 @@ export default {
|
811
|
817
|
}
|
812
|
818
|
|
813
|
819
|
} else {
|
814
|
|
- var that = this;
|
815
|
|
- axios
|
816
|
|
- .get("http://127.0.0.1:9532/api/settle/query", {
|
817
|
|
- params: {
|
818
|
|
- order_id: order_id,
|
819
|
|
- admin_user_id: this.$store.getters.xt_user.user.id,
|
820
|
|
- },
|
821
|
|
- })
|
822
|
|
- .then(function (response) {
|
823
|
|
- if (response.data.state == 0) {
|
824
|
|
- this.$message.error(response.data.msg);
|
825
|
|
- return false;
|
826
|
|
- } else {
|
827
|
|
- console.log(response.data.data.info);
|
828
|
|
- that.info = response.data.data.info;
|
829
|
|
- that.p_admin = response.data.data.printor_admin;
|
830
|
|
- that.charge_admin = response.data.data.charge_admin;
|
831
|
|
-
|
832
|
|
- that.info["p_admin"] = that.p_admin;
|
833
|
|
- that.info["charge_admin"] = that.charge_admin;
|
834
|
|
-
|
835
|
|
- that.info["order_number"] = response.data.data.order_number;
|
836
|
|
- that.info["patient"] = response.data.data.patient;
|
837
|
|
- that.info["date"] = response.data.data.date;
|
838
|
|
- that.info["number"] = response.data.data.number;
|
839
|
|
- that.info["order_infos"] = response.data.data.order_infos;
|
840
|
|
- that.info["diagnosis"] = response.data.data.diagnosis;
|
841
|
|
- that.info["org_code"] = response.data.data.org_code;
|
842
|
|
- that.info["org_name"] = response.data.data.org_name;
|
843
|
|
- that.info["doctor_code"] = response.data.data.doctor_code;
|
844
|
|
- that.info["department"] = response.data.data.department;
|
845
|
|
- that.info["health_card_no"] = response.data.data.health_card_no;
|
846
|
|
-
|
847
|
|
- that.info["bed_cost_total"] = response.data.data.bedCostTotal;
|
848
|
|
- that.info["bed_cost_self_total"] =
|
849
|
|
- response.data.data.bedCostSelfTotal;
|
850
|
|
- that.info["bed_cost_part_self_total"] =
|
851
|
|
- response.data.data.bedCostPartSelfTotal;
|
852
|
|
-
|
853
|
|
- that.info["operation_cost_total"] =
|
854
|
|
- response.data.data.operationCostTotal;
|
855
|
|
- that.info["operation_cost_self_total"] =
|
856
|
|
- response.data.data.operationCostSelfTotal;
|
857
|
|
- that.info["operation_cost_part_self_total"] =
|
858
|
|
- response.data.data.operationCostPartSelfTotal;
|
859
|
|
-
|
860
|
|
- that.info["other_cost_total"] = response.data.data.otherCostTotal;
|
861
|
|
- that.info["other_cost_self_total"] =
|
862
|
|
- response.data.data.otherCostSelfTotal;
|
863
|
|
- that.info["other_cost_part_self_total"] =
|
864
|
|
- response.data.data.otherCostPartSelfTotal;
|
865
|
|
-
|
866
|
|
- that.info["material_cost_total"] =
|
867
|
|
- response.data.data.materialCostTotal;
|
868
|
|
- that.info["material_cost_self_total"] =
|
869
|
|
- response.data.data.materialCostSelfTotal;
|
870
|
|
- that.info["material_cost_part_self_total"] =
|
871
|
|
- response.data.data.materialCostPartSelfTotal;
|
872
|
|
-
|
873
|
|
- that.info["western_medicine_cost_total"] =
|
874
|
|
- response.data.data.westernMedicineCostTotal;
|
875
|
|
- that.info["western_medicine_cost_self_total"] =
|
876
|
|
- response.data.data.westernMedicineCostSelfTotal;
|
877
|
|
- that.info["western_medicine_cost_part_self_total"] =
|
878
|
|
- response.data.data.westernMedicineCostPartSelfTotal;
|
879
|
|
-
|
880
|
|
- that.info["chinese_traditional_medicine_cost_total"] =
|
881
|
|
- response.data.data.chineseTraditionalMedicineCostTotal;
|
882
|
|
- that.info["chinese_traditional_medicine_cost_self_total"] =
|
883
|
|
- response.data.data.chineseTraditionalMedicineCostSelfTotal;
|
884
|
|
- that.info["chinese_traditional_medicine_cost_part_self_total"] =
|
885
|
|
- response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
|
886
|
|
-
|
887
|
|
- that.info["check_cost_total"] = response.data.data.checkCostTotal;
|
888
|
|
- that.info["check_cost_self_total"] =
|
889
|
|
- response.data.data.checkCostSelfTotal;
|
890
|
|
- that.info["check_cost_part_self_total"] =
|
891
|
|
- response.data.data.checkCostPartSelfTotal;
|
892
|
|
-
|
893
|
|
- that.info["laboratory_cost_total"] =
|
894
|
|
- response.data.data.laboratoryCostTotal;
|
895
|
|
- that.info["laboratory_cost_self_total"] =
|
896
|
|
- response.data.data.laboratoryCostSelfTotal;
|
897
|
|
- that.info["laboratory_cost_part_self_total"] =
|
898
|
|
- response.data.data.laboratoryCostPartSelfTotal;
|
899
|
|
-
|
900
|
|
- that.info["treat_cost_total"] = response.data.data.treatCostTotal;
|
901
|
|
- that.info["treat_cost_self_total"] =
|
902
|
|
- response.data.data.treatCostSelfTotal;
|
903
|
|
- that.info["treat_cost_part_self_total"] =
|
904
|
|
- response.data.data.treatCostPartSelfTotal;
|
905
|
|
- that.info["date"] = response.data.data.date;
|
906
|
|
- that.info["number"] = response.data.data.number;
|
907
|
|
- that.info["order_infos"] = response.data.data.order_infos;
|
908
|
|
- that.info["diagnosis"] = response.data.data.diagnosis;
|
|
820
|
+ if (this.org_id == 10191) {
|
|
821
|
+ let params = {
|
|
822
|
+ his_patient_id: obj.his_patient_id,
|
|
823
|
+ id: obj.order_id,
|
|
824
|
+ order_id: obj.order_id,
|
|
825
|
+ admin_user_id: this.$store.getters.xt_user.user.id,
|
|
826
|
+ };
|
|
827
|
+ getPrivateExpensesOrder(params).then((response) => {
|
|
828
|
+ if (response.data.state == 0) {
|
|
829
|
+ // this.$message.error(response.data.msg)
|
909
|
830
|
|
910
|
|
- let obj = {
|
911
|
|
- type: 1,
|
912
|
|
- details: [],
|
913
|
|
- total: 0,
|
914
|
|
- };
|
915
|
|
- let obj2 = {
|
916
|
|
- type: 2,
|
917
|
|
- details: [],
|
918
|
|
- total: 0,
|
919
|
|
- };
|
920
|
|
- let obj3 = {
|
921
|
|
- type: 3,
|
922
|
|
- details: [],
|
923
|
|
- total: 0,
|
924
|
|
- };
|
925
|
|
-
|
926
|
|
- let obj4 = {
|
927
|
|
- type: 4,
|
928
|
|
- details: [],
|
929
|
|
- total: 0,
|
930
|
|
- };
|
931
|
|
- let num = 0;
|
932
|
|
- that.info.order_infos.map((item) => {
|
933
|
|
- if (item.advice_id > 0) {
|
934
|
|
- obj.details.push(item);
|
935
|
|
- obj.total += item.pric * item.advice.prescribing_number;
|
936
|
|
- num++;
|
937
|
|
- } else {
|
938
|
|
- if (item.project.type == 2) {
|
939
|
|
- obj2.details.push(item);
|
940
|
|
- obj2.total += item.pric * item.project.count;
|
941
|
|
- num++;
|
942
|
|
- } else {
|
943
|
|
- obj3.details.push(item);
|
944
|
|
- obj3.total += item.pric * item.project.count;
|
945
|
|
- num++;
|
946
|
|
- }
|
947
|
|
- }
|
948
|
|
- });
|
|
831
|
+ return false;
|
|
832
|
+ } else {
|
|
833
|
+ var that = this;
|
|
834
|
+ that.info = response.data.data.info;
|
|
835
|
+ that.p_admin = response.data.data.printor_admin;
|
|
836
|
+ that.charge_admin = response.data.data.charge_admin;
|
|
837
|
+
|
|
838
|
+ that.info["p_admin"] = that.p_admin;
|
|
839
|
+ that.info["charge_admin"] = that.charge_admin;
|
|
840
|
+ that.info["order_number"] = response.data.data.order_number;
|
|
841
|
+ that.info["patient"] = response.data.data.patient;
|
|
842
|
+ that.info["date"] = response.data.data.date;
|
|
843
|
+ that.info["number"] = response.data.data.number;
|
|
844
|
+ that.info["order_infos"] = response.data.data.order_infos;
|
|
845
|
+ that.info["diagnosis"] = response.data.data.diagnosis;
|
|
846
|
+ that.info["fixmedins_name"] = response.data.data.org_name;
|
|
847
|
+ that.info["fixmedins_code"] = response.data.data.org_code;
|
|
848
|
+ // that.info["doctor_code"] = response.data.data.doctor_code;
|
|
849
|
+ // that.info["department"] = response.data.data.department;
|
|
850
|
+ // that.info["health_card_no"] = response.data.data.health_card_no;
|
|
851
|
+
|
|
852
|
+ that.info["bed_cost_total"] = response.data.data.bedCostTotal;
|
|
853
|
+ that.info["bed_cost_self_total"] =
|
|
854
|
+ response.data.data.bedCostSelfTotal;
|
|
855
|
+ that.info["bed_cost_part_self_total"] =
|
|
856
|
+ response.data.data.bedCostPartSelfTotal;
|
949
|
857
|
|
950
|
|
- // this.info.order_infos.map(item => {
|
951
|
|
- // obj4.total = item.Total
|
952
|
|
- // obj4.details.push(item)
|
953
|
|
- // num++
|
954
|
|
- //
|
955
|
|
- // })
|
|
858
|
+ that.info["operation_cost_total"] =
|
|
859
|
+ response.data.data.operationCostTotal;
|
|
860
|
+ that.info["operation_cost_self_total"] =
|
|
861
|
+ response.data.data.operationCostSelfTotal;
|
|
862
|
+ that.info["operation_cost_part_self_total"] =
|
|
863
|
+ response.data.data.operationCostPartSelfTotal;
|
|
864
|
+
|
|
865
|
+ that.info["other_cost_total"] = response.data.data.otherCostTotal;
|
|
866
|
+ that.info["other_cost_self_total"] =
|
|
867
|
+ response.data.data.otherCostSelfTotal;
|
|
868
|
+ that.info["other_cost_part_self_total"] =
|
|
869
|
+ response.data.data.otherCostPartSelfTotal;
|
|
870
|
+
|
|
871
|
+ that.info["material_cost_total"] =
|
|
872
|
+ response.data.data.materialCostTotal;
|
|
873
|
+ that.info["material_cost_self_total"] =
|
|
874
|
+ response.data.data.materialCostSelfTotal;
|
|
875
|
+ that.info["material_cost_part_self_total"] =
|
|
876
|
+ response.data.data.materialCostPartSelfTotal;
|
|
877
|
+
|
|
878
|
+ that.info["western_medicine_cost_total"] =
|
|
879
|
+ response.data.data.westernMedicineCostTotal;
|
|
880
|
+ that.info["western_medicine_cost_self_total"] =
|
|
881
|
+ response.data.data.westernMedicineCostSelfTotal;
|
|
882
|
+ that.info["western_medicine_cost_part_self_total"] =
|
|
883
|
+ response.data.data.westernMedicineCostPartSelfTotal;
|
956
|
884
|
|
957
|
|
- that.info.new_detail_list = [];
|
958
|
|
- that.info.new_detail_list.push(obj);
|
959
|
|
- that.info.new_detail_list.push(obj2);
|
960
|
|
- that.info.new_detail_list.push(obj3);
|
961
|
|
- // that.info.new_detail_list.push(obj4)
|
|
885
|
+ that.info["chinese_traditional_medicine_cost_total"] =
|
|
886
|
+ response.data.data.chineseTraditionalMedicineCostTotal;
|
|
887
|
+ that.info["chinese_traditional_medicine_cost_self_total"] =
|
|
888
|
+ response.data.data.chineseTraditionalMedicineCostSelfTotal;
|
|
889
|
+ that.info["chinese_traditional_medicine_cost_part_self_total"] =
|
|
890
|
+ response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
|
962
|
891
|
|
963
|
|
- that.num = num;
|
|
892
|
+ that.info["check_cost_total"] = response.data.data.checkCostTotal;
|
|
893
|
+ that.info["check_cost_self_total"] =
|
|
894
|
+ response.data.data.checkCostSelfTotal;
|
|
895
|
+ that.info["check_cost_part_self_total"] =
|
|
896
|
+ response.data.data.checkCostPartSelfTotal;
|
964
|
897
|
|
965
|
|
- if (that.paramsObj.settle_type != 1) {
|
966
|
|
- that.info.begndate = that.getTimes(that.paramsObj.start_time);
|
967
|
|
- that.info.enddate = that.getTimes(that.paramsObj.end_time);
|
|
898
|
+ that.info["laboratory_cost_total"] =
|
|
899
|
+ response.data.data.laboratoryCostTotal;
|
|
900
|
+ that.info["laboratory_cost_self_total"] =
|
|
901
|
+ response.data.data.laboratoryCostSelfTotal;
|
|
902
|
+ that.info["laboratory_cost_part_self_total"] =
|
|
903
|
+ response.data.data.laboratoryCostPartSelfTotal;
|
|
904
|
+
|
|
905
|
+ that.info["treat_cost_total"] = response.data.data.treatCostTotal;
|
|
906
|
+ that.info["treat_cost_self_total"] =
|
|
907
|
+ response.data.data.treatCostSelfTotal;
|
|
908
|
+ that.info["treat_cost_part_self_total"] =
|
|
909
|
+ response.data.data.treatCostPartSelfTotal;
|
|
910
|
+ that.info["date"] = response.data.data.date;
|
|
911
|
+ // that.info["number"] = response.data.data.number;
|
|
912
|
+ that.info["order_infos"] = response.data.data.order_infos;
|
|
913
|
+ that.info["diagnosis"] = response.data.data.diagnosis;
|
|
914
|
+
|
|
915
|
+ let list = []
|
|
916
|
+ for (let i = 0; i < response.data.data.order_infos.length; i++) {
|
|
917
|
+ let order = response.data.data.order_infos[i]
|
|
918
|
+ let obj = {
|
|
919
|
+ name: "",
|
|
920
|
+ spec: "",
|
|
921
|
+ cnt: "",
|
|
922
|
+ det_item_fee_sumamt: "",
|
968
|
923
|
}
|
969
|
924
|
|
|
925
|
+ if (order.advice_id > 0 && order.project_id == 0) {
|
|
926
|
+ obj.name = order.advice.advice_name
|
|
927
|
+ 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
|
|
928
|
+ obj.spec = spec
|
|
929
|
+ obj.cnt = order.cnt
|
|
930
|
+ obj.det_item_fee_sumamt = order.det_item_fee_sumamt
|
|
931
|
+ list.push(obj)
|
970
|
932
|
|
|
933
|
+ } else if (order.advice_id == 0 && order.project_id > 0) {
|
|
934
|
+ if (order.project.type == 2) {
|
|
935
|
+ obj.name = order.project.project.project_name
|
|
936
|
+ obj.spec = ""
|
|
937
|
+ obj.cnt = order.cnt
|
|
938
|
+ obj.det_item_fee_sumamt = order.det_item_fee_sumamt
|
971
|
939
|
|
972
|
|
- let list = []
|
973
|
|
- for (let i = 0; i < response.data.data.order_infos.length; i++) {
|
974
|
|
- let order = response.data.data.order_infos[i]
|
975
|
|
- let obj = {
|
976
|
|
- name: "",
|
977
|
|
- spec: "",
|
978
|
|
- cnt: "",
|
979
|
|
- det_item_fee_sumamt: "",
|
|
940
|
+ } else {
|
|
941
|
+ obj.name = order.project.good_info.good_name
|
|
942
|
+ obj.spec = order.project.good_info.specification_name
|
|
943
|
+ obj.cnt = order.cnt
|
|
944
|
+ obj.det_item_fee_sumamt = order.det_item_fee_sumamt
|
980
|
945
|
}
|
|
946
|
+ list.push(obj)
|
|
947
|
+ }
|
981
|
948
|
|
982
|
|
- if (order.advice_id > 0 && order.project_id == 0) {
|
983
|
|
- obj.name = order.advice.advice_name
|
984
|
|
- 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
|
985
|
|
- obj.spec = spec
|
986
|
|
- obj.cnt = order.cnt
|
987
|
|
- obj.det_item_fee_sumamt =order.det_item_fee_sumamt
|
988
|
|
- list.push(obj)
|
|
949
|
+ }
|
|
950
|
+ console.log(list)
|
|
951
|
+ let len = list.length / 2
|
|
952
|
+ let L_list = []
|
|
953
|
+ let R_list = []
|
|
954
|
+ len = Math.trunc(len)
|
|
955
|
+ for (let i = 0; i < len; i++) {
|
|
956
|
+ L_list.push(list[i])
|
|
957
|
+ }
|
|
958
|
+ console.log(len)
|
|
959
|
+ for (let i = len; i < list.length; i++) {
|
|
960
|
+ console.log(list[i])
|
|
961
|
+ R_list.push(list[i])
|
|
962
|
+ }
|
|
963
|
+ console.log(L_list)
|
|
964
|
+ console.log(R_list)
|
989
|
965
|
|
990
|
|
- }else if (order.advice_id == 0 && order.project_id > 0) {
|
991
|
|
- if(order.project.type == 2){
|
992
|
|
- obj.name = order.project.project.project_name
|
993
|
|
- obj.spec = ""
|
994
|
|
- obj.cnt = order.cnt
|
995
|
|
- obj.det_item_fee_sumamt =order.det_item_fee_sumamt
|
|
966
|
+ that.info["L_list"] = L_list
|
|
967
|
+ that.info["R_list"] = R_list
|
|
968
|
+
|
|
969
|
+ }
|
|
970
|
+ });
|
|
971
|
+ } else {
|
|
972
|
+ var that = this;
|
|
973
|
+ axios
|
|
974
|
+ .get("http://127.0.0.1:9532/api/settle/query", {
|
|
975
|
+ params: {
|
|
976
|
+ order_id: order_id,
|
|
977
|
+ admin_user_id: this.$store.getters.xt_user.user.id,
|
|
978
|
+ },
|
|
979
|
+ })
|
|
980
|
+ .then(function (response) {
|
|
981
|
+ if (response.data.state == 0) {
|
|
982
|
+ this.$message.error(response.data.msg);
|
|
983
|
+ return false;
|
|
984
|
+ } else {
|
|
985
|
+ console.log(response.data.data.info);
|
|
986
|
+ that.info = response.data.data.info;
|
|
987
|
+ that.p_admin = response.data.data.printor_admin;
|
|
988
|
+ that.charge_admin = response.data.data.charge_admin;
|
|
989
|
+
|
|
990
|
+ that.info["p_admin"] = that.p_admin;
|
|
991
|
+ that.info["charge_admin"] = that.charge_admin;
|
|
992
|
+
|
|
993
|
+ that.info["order_number"] = response.data.data.order_number;
|
|
994
|
+ that.info["patient"] = response.data.data.patient;
|
|
995
|
+ that.info["date"] = response.data.data.date;
|
|
996
|
+ that.info["number"] = response.data.data.number;
|
|
997
|
+ that.info["order_infos"] = response.data.data.order_infos;
|
|
998
|
+ that.info["diagnosis"] = response.data.data.diagnosis;
|
|
999
|
+ that.info["org_code"] = response.data.data.org_code;
|
|
1000
|
+ that.info["org_name"] = response.data.data.org_name;
|
|
1001
|
+ that.info["doctor_code"] = response.data.data.doctor_code;
|
|
1002
|
+ that.info["department"] = response.data.data.department;
|
|
1003
|
+ that.info["health_card_no"] = response.data.data.health_card_no;
|
|
1004
|
+
|
|
1005
|
+ that.info["bed_cost_total"] = response.data.data.bedCostTotal;
|
|
1006
|
+ that.info["bed_cost_self_total"] =
|
|
1007
|
+ response.data.data.bedCostSelfTotal;
|
|
1008
|
+ that.info["bed_cost_part_self_total"] =
|
|
1009
|
+ response.data.data.bedCostPartSelfTotal;
|
|
1010
|
+
|
|
1011
|
+ that.info["operation_cost_total"] =
|
|
1012
|
+ response.data.data.operationCostTotal;
|
|
1013
|
+ that.info["operation_cost_self_total"] =
|
|
1014
|
+ response.data.data.operationCostSelfTotal;
|
|
1015
|
+ that.info["operation_cost_part_self_total"] =
|
|
1016
|
+ response.data.data.operationCostPartSelfTotal;
|
|
1017
|
+
|
|
1018
|
+ that.info["other_cost_total"] = response.data.data.otherCostTotal;
|
|
1019
|
+ that.info["other_cost_self_total"] =
|
|
1020
|
+ response.data.data.otherCostSelfTotal;
|
|
1021
|
+ that.info["other_cost_part_self_total"] =
|
|
1022
|
+ response.data.data.otherCostPartSelfTotal;
|
|
1023
|
+
|
|
1024
|
+ that.info["material_cost_total"] =
|
|
1025
|
+ response.data.data.materialCostTotal;
|
|
1026
|
+ that.info["material_cost_self_total"] =
|
|
1027
|
+ response.data.data.materialCostSelfTotal;
|
|
1028
|
+ that.info["material_cost_part_self_total"] =
|
|
1029
|
+ response.data.data.materialCostPartSelfTotal;
|
|
1030
|
+
|
|
1031
|
+ that.info["western_medicine_cost_total"] =
|
|
1032
|
+ response.data.data.westernMedicineCostTotal;
|
|
1033
|
+ that.info["western_medicine_cost_self_total"] =
|
|
1034
|
+ response.data.data.westernMedicineCostSelfTotal;
|
|
1035
|
+ that.info["western_medicine_cost_part_self_total"] =
|
|
1036
|
+ response.data.data.westernMedicineCostPartSelfTotal;
|
|
1037
|
+
|
|
1038
|
+ that.info["chinese_traditional_medicine_cost_total"] =
|
|
1039
|
+ response.data.data.chineseTraditionalMedicineCostTotal;
|
|
1040
|
+ that.info["chinese_traditional_medicine_cost_self_total"] =
|
|
1041
|
+ response.data.data.chineseTraditionalMedicineCostSelfTotal;
|
|
1042
|
+ that.info["chinese_traditional_medicine_cost_part_self_total"] =
|
|
1043
|
+ response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
|
|
1044
|
+
|
|
1045
|
+ that.info["check_cost_total"] = response.data.data.checkCostTotal;
|
|
1046
|
+ that.info["check_cost_self_total"] =
|
|
1047
|
+ response.data.data.checkCostSelfTotal;
|
|
1048
|
+ that.info["check_cost_part_self_total"] =
|
|
1049
|
+ response.data.data.checkCostPartSelfTotal;
|
|
1050
|
+
|
|
1051
|
+ that.info["laboratory_cost_total"] =
|
|
1052
|
+ response.data.data.laboratoryCostTotal;
|
|
1053
|
+ that.info["laboratory_cost_self_total"] =
|
|
1054
|
+ response.data.data.laboratoryCostSelfTotal;
|
|
1055
|
+ that.info["laboratory_cost_part_self_total"] =
|
|
1056
|
+ response.data.data.laboratoryCostPartSelfTotal;
|
|
1057
|
+
|
|
1058
|
+ that.info["treat_cost_total"] = response.data.data.treatCostTotal;
|
|
1059
|
+ that.info["treat_cost_self_total"] =
|
|
1060
|
+ response.data.data.treatCostSelfTotal;
|
|
1061
|
+ that.info["treat_cost_part_self_total"] =
|
|
1062
|
+ response.data.data.treatCostPartSelfTotal;
|
|
1063
|
+ that.info["date"] = response.data.data.date;
|
|
1064
|
+ that.info["number"] = response.data.data.number;
|
|
1065
|
+ that.info["order_infos"] = response.data.data.order_infos;
|
|
1066
|
+ that.info["diagnosis"] = response.data.data.diagnosis;
|
996
|
1067
|
|
997
|
|
- }else{
|
998
|
|
- obj.name = order.project.good_info.good_name
|
999
|
|
- obj.spec = order.project.good_info.specification_name
|
|
1068
|
+ let obj = {
|
|
1069
|
+ type: 1,
|
|
1070
|
+ details: [],
|
|
1071
|
+ total: 0,
|
|
1072
|
+ };
|
|
1073
|
+ let obj2 = {
|
|
1074
|
+ type: 2,
|
|
1075
|
+ details: [],
|
|
1076
|
+ total: 0,
|
|
1077
|
+ };
|
|
1078
|
+ let obj3 = {
|
|
1079
|
+ type: 3,
|
|
1080
|
+ details: [],
|
|
1081
|
+ total: 0,
|
|
1082
|
+ };
|
|
1083
|
+
|
|
1084
|
+ let obj4 = {
|
|
1085
|
+ type: 4,
|
|
1086
|
+ details: [],
|
|
1087
|
+ total: 0,
|
|
1088
|
+ };
|
|
1089
|
+ let num = 0;
|
|
1090
|
+ that.info.order_infos.map((item) => {
|
|
1091
|
+ if (item.advice_id > 0) {
|
|
1092
|
+ obj.details.push(item);
|
|
1093
|
+ obj.total += item.pric * item.advice.prescribing_number;
|
|
1094
|
+ num++;
|
|
1095
|
+ } else {
|
|
1096
|
+ if (item.project.type == 2) {
|
|
1097
|
+ obj2.details.push(item);
|
|
1098
|
+ obj2.total += item.pric * item.project.count;
|
|
1099
|
+ num++;
|
|
1100
|
+ } else {
|
|
1101
|
+ obj3.details.push(item);
|
|
1102
|
+ obj3.total += item.pric * item.project.count;
|
|
1103
|
+ num++;
|
|
1104
|
+ }
|
|
1105
|
+ }
|
|
1106
|
+ });
|
|
1107
|
+
|
|
1108
|
+ // this.info.order_infos.map(item => {
|
|
1109
|
+ // obj4.total = item.Total
|
|
1110
|
+ // obj4.details.push(item)
|
|
1111
|
+ // num++
|
|
1112
|
+ //
|
|
1113
|
+ // })
|
|
1114
|
+
|
|
1115
|
+ that.info.new_detail_list = [];
|
|
1116
|
+ that.info.new_detail_list.push(obj);
|
|
1117
|
+ that.info.new_detail_list.push(obj2);
|
|
1118
|
+ that.info.new_detail_list.push(obj3);
|
|
1119
|
+ // that.info.new_detail_list.push(obj4)
|
|
1120
|
+
|
|
1121
|
+ that.num = num;
|
|
1122
|
+
|
|
1123
|
+ if (that.paramsObj.settle_type != 1) {
|
|
1124
|
+ that.info.begndate = that.getTimes(that.paramsObj.start_time);
|
|
1125
|
+ that.info.enddate = that.getTimes(that.paramsObj.end_time);
|
|
1126
|
+ }
|
|
1127
|
+
|
|
1128
|
+ let list = []
|
|
1129
|
+ for (let i = 0; i < response.data.data.order_infos.length; i++) {
|
|
1130
|
+ let order = response.data.data.order_infos[i]
|
|
1131
|
+ let obj = {
|
|
1132
|
+ name: "",
|
|
1133
|
+ spec: "",
|
|
1134
|
+ cnt: "",
|
|
1135
|
+ det_item_fee_sumamt: "",
|
|
1136
|
+ }
|
|
1137
|
+
|
|
1138
|
+ if (order.advice_id > 0 && order.project_id == 0) {
|
|
1139
|
+ obj.name = order.advice.advice_name
|
|
1140
|
+ 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
|
|
1141
|
+ obj.spec = spec
|
1000
|
1142
|
obj.cnt = order.cnt
|
1001
|
|
- obj.det_item_fee_sumamt =order.det_item_fee_sumamt
|
|
1143
|
+ obj.det_item_fee_sumamt = order.det_item_fee_sumamt
|
|
1144
|
+ list.push(obj)
|
|
1145
|
+
|
|
1146
|
+ } else if (order.advice_id == 0 && order.project_id > 0) {
|
|
1147
|
+ if (order.project.type == 2) {
|
|
1148
|
+ obj.name = order.project.project.project_name
|
|
1149
|
+ obj.spec = ""
|
|
1150
|
+ obj.cnt = order.cnt
|
|
1151
|
+ obj.det_item_fee_sumamt = order.det_item_fee_sumamt
|
|
1152
|
+ list.push(obj)
|
|
1153
|
+
|
|
1154
|
+ } else {
|
|
1155
|
+ obj.name = order.project.good_info.good_name
|
|
1156
|
+ obj.spec = order.project.good_info.specification_name
|
|
1157
|
+ obj.cnt = order.cnt
|
|
1158
|
+ obj.det_item_fee_sumamt = order.det_item_fee_sumamt
|
|
1159
|
+ list.push(obj)
|
|
1160
|
+ }
|
1002
|
1161
|
}
|
1003
|
|
- list.push(obj)
|
1004
|
1162
|
}
|
1005
|
1163
|
|
1006
|
|
- }
|
1007
|
|
- let len = list.length / 2
|
1008
|
|
- let L_list = []
|
1009
|
|
- let R_list = []
|
|
1164
|
+ let len = list.length / 2
|
|
1165
|
+ let L_list = []
|
|
1166
|
+ let R_list = []
|
|
1167
|
+ len = Math.trunc(len)
|
1010
|
1168
|
|
1011
|
|
- for(let i = 0; i < len; i++){
|
1012
|
|
- L_list.push(list[i])
|
1013
|
|
- }
|
1014
|
|
- for(let i = len; i < list.length; i++){
|
1015
|
|
- R_list.push(list[i])
|
1016
|
|
- }
|
1017
|
|
- that.info["L_list"] = L_list
|
1018
|
|
- that.info["R_list"] = R_list
|
|
1169
|
+ for (let i = 0; i < len; i++) {
|
|
1170
|
+ L_list.push(list[i])
|
|
1171
|
+ }
|
|
1172
|
+ for (let i = len; i < list.length; i++) {
|
|
1173
|
+ R_list.push(list[i])
|
|
1174
|
+ }
|
|
1175
|
+ that.info["L_list"] = L_list
|
|
1176
|
+ that.info["R_list"] = R_list
|
1019
|
1177
|
|
1020
|
|
- }
|
1021
|
|
- })
|
1022
|
|
- .catch(function (error) {
|
1023
|
|
- });
|
|
1178
|
+ }
|
|
1179
|
+ })
|
|
1180
|
+ .catch(function (error) {
|
|
1181
|
+ });
|
|
1182
|
+ }
|
1024
|
1183
|
}
|
1025
|
1184
|
},
|
1026
|
1185
|
},
|