|
@@ -1057,7 +1057,7 @@ func (c *HisApiController) GetPrivateExpensesOrder() {
|
1057
|
1057
|
printor_admin, _ := service.GetAdminUserInfoByID(adminUser.CurrentOrgId, admin_user_id)
|
1058
|
1058
|
charge_admin, _ := service.GetAdminUserInfoByID(adminUser.CurrentOrgId, order.Creator)
|
1059
|
1059
|
|
1060
|
|
- patient, _ := service.GetPatientByID(order.UserOrgId, order.PatientId)
|
|
1060
|
+ patient, _ := service.GetFaPiaoPatientByID(order.UserOrgId, order.PatientId)
|
1061
|
1061
|
|
1062
|
1062
|
c.ServeSuccessJSON(map[string]interface{}{
|
1063
|
1063
|
"patient": patient,
|
|
@@ -7718,7 +7718,7 @@ func (c *HisApiController) GetAllOrderDetail() {
|
7718
|
7718
|
record, _ := service.GetInHospitalRecordByNumber(order.MdtrtId)
|
7719
|
7719
|
org_id := c.GetAdminUserInfo().CurrentOrgId
|
7720
|
7720
|
adminInfo, _ := service.GetAdminUserInfoByID(org_id, order.Creator)
|
7721
|
|
- patient, _ := service.GetPatientByID(org_id, order.PatientId)
|
|
7721
|
+ patient, _ := service.GetFaPiaoPatientByID(org_id, order.PatientId)
|
7722
|
7722
|
order_info, _ := service.GetHisOrderDetailByNumber(order.Number, org_id)
|
7723
|
7723
|
c.ServeSuccessJSON(map[string]interface{}{
|
7724
|
7724
|
"order": order,
|
|
@@ -7743,7 +7743,7 @@ func (c *HisApiController) GetAllOrderDetailCollect() {
|
7743
|
7743
|
org_id := c.GetAdminUserInfo().CurrentOrgId
|
7744
|
7744
|
adminInfo, _ := service.GetAdminUserInfoByID(org_id, order.Creator)
|
7745
|
7745
|
order_info, _ := service.GetHisOrderDetailByNumber(order.Number, org_id)
|
7746
|
|
- patient, _ := service.GetPatientByID(org_id, order.PatientId)
|
|
7746
|
+ patient, _ := service.GetFaPiaoPatientByID(org_id, order.PatientId)
|
7747
|
7747
|
|
7748
|
7748
|
his, _ := service.GetHisPatientInfoThree(order.UserOrgId, order.MdtrtId)
|
7749
|
7749
|
//his, _ := service.Get(order.UserOrgId, order.MdtrtId)
|
|
@@ -8386,7 +8386,7 @@ func (c *HisApiController) GetFaPiaoData() {
|
8386
|
8386
|
|
8387
|
8387
|
his_hospital_record, _ := service.GetInHospitalRecordByNumber(order.MdtrtId)
|
8388
|
8388
|
|
8389
|
|
- patient, _ := service.GetPatientByID(adminUser.CurrentOrgId, patient_id)
|
|
8389
|
+ patient, _ := service.GetFaPiaoPatientByID(adminUser.CurrentOrgId, patient_id)
|
8390
|
8390
|
|
8391
|
8391
|
var bedCostTotal float64 = 0 //床位总费
|
8392
|
8392
|
var bedCostSelfTotal float64 = 0 //床位自费
|
|
@@ -9860,23 +9860,23 @@ func (c *HisApiController) GetPrivateExpensesInfo() {
|
9860
|
9860
|
|
9861
|
9861
|
orderInfos, _ := service.GetHisOrderInfoByNumberOne(order.Number)
|
9862
|
9862
|
orderInfos_two, _ := service.GetHisOrderInfoByNumberTwo(order.Number)
|
9863
|
|
- orderInfos_three, _ := service.GetHisOrderInfoByNumberThree(order.Number)
|
|
9863
|
+ //orderInfos_three, _ := service.GetHisOrderInfoByNumberThree(order.Number)
|
9864
|
9864
|
|
9865
|
|
- var orderInfos_four []*models.HisOrderInfoTwo
|
9866
|
|
- for _, item := range orderInfos_three {
|
9867
|
|
- if item.HisPrescriptionProject.HisProject.CostClassify == 3 {
|
9868
|
|
- item.HisPrescriptionProject.IsCheckTeam = 1
|
9869
|
|
- orderInfos_four = append(orderInfos_four, item)
|
9870
|
|
-
|
9871
|
|
- }
|
9872
|
|
- if item.HisPrescriptionProject.HisProject.CostClassify != 3 {
|
9873
|
|
- item.HisPrescriptionProject.IsCheckTeam = 2
|
9874
|
|
- orderInfos_two = append(orderInfos_two, item)
|
9875
|
|
- }
|
9876
|
|
- }
|
|
9865
|
+ //var orderInfos_four []*models.HisOrderInfoTwo
|
|
9866
|
+ //for _, item := range orderInfos_three {
|
|
9867
|
+ // if item.HisPrescriptionProject.HisProject.CostClassify == 3 {
|
|
9868
|
+ // item.HisPrescriptionProject.IsCheckTeam = 1
|
|
9869
|
+ // orderInfos_four = append(orderInfos_four, item)
|
|
9870
|
+ //
|
|
9871
|
+ // }
|
|
9872
|
+ // if item.HisPrescriptionProject.HisProject.CostClassify != 3 {
|
|
9873
|
+ // item.HisPrescriptionProject.IsCheckTeam = 2
|
|
9874
|
+ // orderInfos_two = append(orderInfos_two, item)
|
|
9875
|
+ // }
|
|
9876
|
+ //}
|
9877
|
9877
|
|
9878
|
9878
|
//new_order_info := RemoveRepeatedTeam(orderInfos_four)
|
9879
|
|
- var cus_slice []CustomOrderInfo
|
|
9879
|
+ //var cus_slice []CustomOrderInfo
|
9880
|
9880
|
//for _, item := range new_order_info {
|
9881
|
9881
|
// var cus CustomOrderInfo
|
9882
|
9882
|
// cus.Name = item.HisPrescriptionProject.XtHisProjectTeam.ProjectTeam
|
|
@@ -9896,20 +9896,20 @@ func (c *HisApiController) GetPrivateExpensesInfo() {
|
9896
|
9896
|
|
9897
|
9897
|
orderInfos = append(orderInfos, orderInfos_two...)
|
9898
|
9898
|
//if c.GetAdminUserInfo().CurrentOrgId != 10138 || c.GetAdminUserInfo().CurrentOrgId != 10278 {
|
9899
|
|
- orderInfos = append(orderInfos, orderInfos_three...)
|
|
9899
|
+ //orderInfos = append(orderInfos, orderInfos_three...)
|
9900
|
9900
|
|
9901
|
9901
|
//}/**/
|
9902
|
9902
|
|
9903
|
|
- patient, _ := service.GetPatientByID(org_id, order.PatientId)
|
|
9903
|
+ patient, _ := service.GetFaPiaoPatientByID(org_id, order.PatientId)
|
9904
|
9904
|
c.ServeSuccessJSON(map[string]interface{}{
|
9905
|
|
- "order": order,
|
9906
|
|
- "order_info": orderInfos,
|
9907
|
|
- "patient": patient,
|
9908
|
|
- "admin_info": adminInfo,
|
9909
|
|
- "his": his,
|
9910
|
|
- "current_admin": role,
|
9911
|
|
- "org_config": miConfig,
|
9912
|
|
- "new_order_info": cus_slice,
|
|
9905
|
+ "order": order,
|
|
9906
|
+ "order_info": orderInfos,
|
|
9907
|
+ "patient": patient,
|
|
9908
|
+ "admin_info": adminInfo,
|
|
9909
|
+ "his": his,
|
|
9910
|
+ "current_admin": role,
|
|
9911
|
+ "org_config": miConfig,
|
|
9912
|
+ //"new_order_info": cus_slice,
|
9913
|
9913
|
})
|
9914
|
9914
|
|
9915
|
9915
|
}
|