Sfoglia il codice sorgente

11月9日库存管理

XMLWAN 2 anni fa
parent
commit
b84c065b35

File diff suppressed because it is too large
+ 639 - 108
controllers/mobile_api_controllers/dialysis_api_controller.go


+ 6 - 0
controllers/mobile_api_controllers/dialysis_api_controller_extend.go Vedi File

65
 	//breathingRated, _ := this.GetFloat("breathing_rated")
65
 	//breathingRated, _ := this.GetFloat("breathing_rated")
66
 	breathingRated := this.GetString("breathing_rated")
66
 	breathingRated := this.GetString("breathing_rated")
67
 	systolicBP, _ := this.GetFloat("systolic_bp")
67
 	systolicBP, _ := this.GetFloat("systolic_bp")
68
+	//breathingRated, _ := this.GetFloat("breathing_rated")
69
+	breathingRated := this.GetString("breathing_rated")
70
+	systolicBP, _ := this.GetFloat("systolic_bp")
68
 	diastolicBP, _ := this.GetFloat("diastolic_bp")
71
 	diastolicBP, _ := this.GetFloat("diastolic_bp")
69
 	BPType, _ := this.GetInt("bp_type")
72
 	BPType, _ := this.GetInt("bp_type")
70
 	bloodFlowVolume, _ := this.GetFloat("blood_flow_volume")
73
 	bloodFlowVolume, _ := this.GetFloat("blood_flow_volume")
243
 	//breathingRated, _ := this.GetFloat("breathing_rated")
246
 	//breathingRated, _ := this.GetFloat("breathing_rated")
244
 	breathingRated := this.GetString("breathing_rated")
247
 	breathingRated := this.GetString("breathing_rated")
245
 	systolicBP, _ := this.GetFloat("systolic_bp")
248
 	systolicBP, _ := this.GetFloat("systolic_bp")
249
+	//breathingRated, _ := this.GetFloat("breathing_rated")
250
+	breathingRated := this.GetString("breathing_rated")
251
+	systolicBP, _ := this.GetFloat("systolic_bp")
246
 	diastolicBP, _ := this.GetFloat("diastolic_bp")
252
 	diastolicBP, _ := this.GetFloat("diastolic_bp")
247
 	BPType, _ := this.GetInt("bp_type")
253
 	BPType, _ := this.GetInt("bp_type")
248
 	bloodFlowVolume, _ := this.GetFloat("blood_flow_volume")
254
 	bloodFlowVolume, _ := this.GetFloat("blood_flow_volume")

+ 0 - 1
controllers/mobile_api_controllers/mobile_api_router_register.go Vedi File

131
 	beego.Router("/m/api/dialysisbeforeprepare/edit", &DialysisAPIController{}, "Post:EditConsumables")
131
 	beego.Router("/m/api/dialysisbeforeprepare/edit", &DialysisAPIController{}, "Post:EditConsumables")
132
 
132
 
133
 	beego.Router("/m/api/stockout/create", &DialysisAPIController{}, "Post:CreateStockOutInfo")
133
 	beego.Router("/m/api/stockout/create", &DialysisAPIController{}, "Post:CreateStockOutInfo")
134
-	//beego.Router("/m/api/stockout/edit", &DialysisAPIController{}, "Post:EditStockOutInfo")
135
 
134
 
136
 	beego.Router("/m/api/otherstockout/create", &DialysisAPIController{}, "Post:CreateOtherStockOutInfo")
135
 	beego.Router("/m/api/otherstockout/create", &DialysisAPIController{}, "Post:CreateOtherStockOutInfo")
137
 
136
 

+ 2 - 0
controllers/mobile_api_controllers/patient_api_controller.go Vedi File

2458
 
2458
 
2459
 	if dataBody["breathing_rate"] != nil && reflect.TypeOf(dataBody["breathing_rate"]).String() == "string" {
2459
 	if dataBody["breathing_rate"] != nil && reflect.TypeOf(dataBody["breathing_rate"]).String() == "string" {
2460
 		breathingRate := dataBody["breathing_rate"].(string)
2460
 		breathingRate := dataBody["breathing_rate"].(string)
2461
+		//breathingRate, _ := strconv.ParseFloat(dataBody["breathing_rate"].(string), 64)
2462
+		breathingRate, _ := dataBody["breathing_rate"].(string)
2461
 		evaluation.BreathingRate = breathingRate
2463
 		evaluation.BreathingRate = breathingRate
2462
 	}
2464
 	}
2463
 
2465