|
@@ -2076,7 +2076,7 @@ func (c *HisApiController) setProjectWithJSON(project *models.HisPrescriptionPro
|
2076
|
2076
|
project.Checker = temp_project.Checker
|
2077
|
2077
|
project.CheckState = temp_project.CheckState
|
2078
|
2078
|
project.CheckTime = temp_project.CheckTime
|
2079
|
|
-
|
|
2079
|
+ project.TeamId = temp_project.TeamId
|
2080
|
2080
|
}
|
2081
|
2081
|
if json["type"] != nil || reflect.TypeOf(json["type"]).String() == "float64" {
|
2082
|
2082
|
types := int64(json["type"].(float64))
|
|
@@ -2088,12 +2088,13 @@ func (c *HisApiController) setProjectWithJSON(project *models.HisPrescriptionPro
|
2088
|
2088
|
fmt.Println(project_id)
|
2089
|
2089
|
fmt.Println(project.ProjectId)
|
2090
|
2090
|
}
|
2091
|
|
- // if json["price"] != nil || reflect.TypeOf(json["price"]).String() == "float64" {
|
2092
|
|
- // price := int64(json["price"].(float64))
|
2093
|
|
- // formatInt_price := strconv.FormatInt(price, 10)
|
2094
|
|
- // float_price, _ := strconv.ParseFloat(formatInt_price, 64)
|
2095
|
|
- // project.Price = float_price
|
2096
|
|
- // }
|
|
2091
|
+
|
|
2092
|
+ if json["team_id"] != nil && reflect.TypeOf(json["team_id"]).String() == "float64" {
|
|
2093
|
+ team_id := int64(json["team_id"].(float64))
|
|
2094
|
+ project.TeamId = team_id
|
|
2095
|
+
|
|
2096
|
+ }
|
|
2097
|
+
|
2097
|
2098
|
if json["price"] != nil || reflect.TypeOf(json["price"]).String() == "string" {
|
2098
|
2099
|
price, _ := strconv.ParseFloat(json["price"].(string), 64)
|
2099
|
2100
|
project.Price = price
|
|
@@ -3829,14 +3830,11 @@ func (c *HisApiController) GetFaPiaoData() {
|
3829
|
3830
|
decimal.DivisionPrecision = 2
|
3830
|
3831
|
|
3831
|
3832
|
if his.BalanceAccountsType == 2 {
|
3832
|
|
-
|
3833
|
3833
|
orderInfos_two, _ := service.GetHisOrderDetailByNumber(order.Number, adminUser.CurrentOrgId)
|
3834
|
|
-
|
3835
|
3834
|
for _, item := range orderInfos_two {
|
3836
|
3835
|
item.FulamtOwnpayAmt = item.DetItemFeeSumamt
|
3837
|
3836
|
if item.HisDoctorAdviceInfo.ID > 0 && item.HisPrescriptionProject.ID == 0 { //药品
|
3838
|
3837
|
item.MedChrgitmType = "09"
|
3839
|
|
-
|
3840
|
3838
|
}
|
3841
|
3839
|
if item.HisPrescriptionProject.ID > 0 && item.HisDoctorAdviceInfo.ID == 0 {
|
3842
|
3840
|
if item.HisPrescriptionProject.Type == 2 {
|