|
@@ -921,6 +921,12 @@ func (c *HisApiController) GetTestOrder() {
|
921
|
921
|
|
922
|
922
|
}
|
923
|
923
|
|
|
924
|
+type CustomFundPay struct {
|
|
925
|
+ FundPayType string `json:"fund_pay_type"`
|
|
926
|
+ FundPayamt float64 `json:"fund_payamt"`
|
|
927
|
+ InscpScpAmt float64 `json:"inscp_scp_amt"`
|
|
928
|
+}
|
|
929
|
+
|
924
|
930
|
func (c *PublicApiController) GetBaiLinExportData() {
|
925
|
931
|
data := service.GetBaiLinOrderData()
|
926
|
932
|
fmt.Println(len(data))
|
|
@@ -1252,9 +1258,25 @@ func (c *HisApiController) GetPrivateExpensesOrder() {
|
1252
|
1258
|
org, _ := service.GetOrgById(adminUser.CurrentOrgId)
|
1253
|
1259
|
printor_admin, _ := service.GetAdminUserInfoByID(adminUser.CurrentOrgId, admin_user_id)
|
1254
|
1260
|
charge_admin, _ := service.GetAdminUserInfoByID(adminUser.CurrentOrgId, order.Creator)
|
|
1261
|
+ var dia_config []*models.HisXtDiagnoseConfig
|
|
1262
|
+ var diagnosis_ids []string
|
|
1263
|
+ if his.ID > 0 {
|
|
1264
|
+ diagnosis_ids = strings.Split(his.Diagnosis, ",")
|
1255
|
1265
|
|
1256
|
|
- patient, _ := service.GetFaPiaoPatientByID(order.UserOrgId, order.PatientId)
|
|
1266
|
+ } else {
|
|
1267
|
+ diagnosis_ids = strings.Split(his_hospital.Diagnosis, ",")
|
1257
|
1268
|
|
|
1269
|
+ }
|
|
1270
|
+
|
|
1271
|
+ for _, item := range diagnosis_ids {
|
|
1272
|
+ id, _ := strconv.ParseInt(item, 10, 64)
|
|
1273
|
+ diagnosisConfig, _ := service.FindDiagnoseById(id)
|
|
1274
|
+ dia_config = append(dia_config, diagnosisConfig)
|
|
1275
|
+ }
|
|
1276
|
+
|
|
1277
|
+ var rf []CustomFundPay
|
|
1278
|
+ json.Unmarshal([]byte(order.SetlDetail), &rf)
|
|
1279
|
+ patient, _ := service.GetFaPiaoPatientByID(order.UserOrgId, order.PatientId)
|
1258
|
1280
|
c.ServeSuccessJSON(map[string]interface{}{
|
1259
|
1281
|
"patient": patient,
|
1260
|
1282
|
"order_infos": orderInfos,
|
|
@@ -1296,8 +1318,11 @@ func (c *HisApiController) GetPrivateExpensesOrder() {
|
1296
|
1318
|
"number": order.MdtrtId,
|
1297
|
1319
|
"date": order.SettleAccountsDate,
|
1298
|
1320
|
"info": order,
|
|
1321
|
+ "new_order": order,
|
1299
|
1322
|
"his_hospital": his_hospital,
|
1300
|
1323
|
"his": his,
|
|
1324
|
+ "funds": rf,
|
|
1325
|
+ "dia_config": dia_config,
|
1301
|
1326
|
})
|
1302
|
1327
|
|
1303
|
1328
|
}
|