Bläddra i källkod

Merge branch '20211122' of http://git.shengws.com/csx/XT_New into 20211122

XMLWAN 3 år sedan
förälder
incheckning
bbf3eca044
2 ändrade filer med 73 tillägg och 70 borttagningar
  1. 38 37
      controllers/his_api_controller.go
  2. 35 33
      models/self_drug_models.go

+ 38 - 37
controllers/his_api_controller.go Visa fil

@@ -5350,45 +5350,46 @@ func (c *HisApiController) GetFaPiaoData() {
5350 5350
 	admin, _ := service.GetAdminUserInfoByID(adminUser.CurrentOrgId, adminUser.AdminUser.Id)
5351 5351
 
5352 5352
 	c.ServeSuccessJSON(map[string]interface{}{
5353
-		"order_number":    order.Number,             //业务流水号
5354
-		"id_card_no":      his.IdCardNo,             //社会保障号
5355
-		"department_name": department.Name,          //科室
5356
-		"number":          his.Number,               //门诊号
5357
-		"date":            order.SettleAccountsDate, //结算日期
5358
-		"name":            order.PsnName,            //姓名
5359
-		"gender":          order.Gend,               //性别
5360
-		"psn_cash_money":  order.PsnCashPay,         //个人支付
5361
-		"pay_way":         "门诊",                     //结算方式
5362
-		"medfee_sumamt":   order.MedfeeSumamt,       //总费用
5363
-		"admin_user_name": admin.UserName,           //收款员
5364
-
5365
-		"bedCostTotal":                                bedCostTotal,
5366
-		"bedCostSelfTotal":                            bedCostSelfTotal,
5367
-		"bedCostPartSelfTotal":                        bedCostPartSelfTotal,
5368
-		"operationCostTotal":                          operationCostTotal,
5369
-		"operationCostSelfTotal":                      operationCostSelfTotal,
5370
-		"operationCostPartSelfTotal":                  operationCostPartSelfTotal,
5371
-		"otherCostTotal":                              otherCostTotal,
5372
-		"otherCostSelfTotal":                          otherCostSelfTotal,
5373
-		"otherCostPartSelfTotal":                      otherCostPartSelfTotal,
5374
-		"materialCostTotal":                           materialCostTotal,
5375
-		"materialCostSelfTotal":                       materialCostSelfTotal,
5376
-		"materialCostPartSelfTotal":                   materialCostPartSelfTotal,
5377
-		"westernMedicineCostTotal":                    westernMedicineCostTotal,
5378
-		"westernMedicineCostSelfTotal":                westernMedicineCostSelfTotal,
5379
-		"westernMedicineCostPartSelfTotal":            westernMedicineCostPartSelfTotal,
5380
-		"chineseTraditionalMedicineCostTotal":         chineseTraditionalMedicineCostTotal,
5353
+		"order_number":                        order.Number,             //业务流水号
5354
+		"id_card_no":                          his.IdCardNo,             //社会保障号
5355
+		"department_name":                     department.Name,          //科室
5356
+		"number":                              his.Number,               //门诊号
5357
+		"date":                                order.SettleAccountsDate, //结算日期
5358
+		"name":                                order.PsnName,            //姓名
5359
+		"gender":                              order.Gend,               //性别
5360
+		"psn_cash_money":                      order.PsnCashPay,         //个人支付
5361
+		"pay_way":                             "门诊",                     //结算方式
5362
+		"medfee_sumamt":                       order.MedfeeSumamt,       //总费用
5363
+		"admin_user_name":                     admin.UserName,           //收款员
5364
+		"order":                               order,
5365
+		"his":                                 his,
5366
+		"bedCostTotal":                        bedCostTotal,
5367
+		"bedCostSelfTotal":                    bedCostSelfTotal,
5368
+		"bedCostPartSelfTotal":                bedCostPartSelfTotal,
5369
+		"operationCostTotal":                  operationCostTotal,
5370
+		"operationCostSelfTotal":              operationCostSelfTotal,
5371
+		"operationCostPartSelfTotal":          operationCostPartSelfTotal,
5372
+		"otherCostTotal":                      otherCostTotal,
5373
+		"otherCostSelfTotal":                  otherCostSelfTotal,
5374
+		"otherCostPartSelfTotal":              otherCostPartSelfTotal,
5375
+		"materialCostTotal":                   materialCostTotal,
5376
+		"materialCostSelfTotal":               materialCostSelfTotal,
5377
+		"materialCostPartSelfTotal":           materialCostPartSelfTotal,
5378
+		"westernMedicineCostTotal":            westernMedicineCostTotal,
5379
+		"westernMedicineCostSelfTotal":        westernMedicineCostSelfTotal,
5380
+		"westernMedicineCostPartSelfTotal":    westernMedicineCostPartSelfTotal,
5381
+		"chineseTraditionalMedicineCostTotal": chineseTraditionalMedicineCostTotal,
5381 5382
 		"chineseTraditionalMedicineCostSelfTotal":     chineseTraditionalMedicineCostSelfTotal,
5382 5383
 		"chineseTraditionalMedicineCostPartSelfTotal": chineseTraditionalMedicineCostPartSelfTotal,
5383
-		"checkCostTotal":                              checkCostTotal,
5384
-		"checkCostSelfTotal":                          checkCostSelfTotal,
5385
-		"checkCostPartSelfTotal":                      checkCostPartSelfTotal,
5386
-		"laboratoryCostTotal":                         laboratoryCostTotal,
5387
-		"laboratoryCostSelfTotal":                     laboratoryCostSelfTotal,
5388
-		"laboratoryCostPartSelfTotal":                 laboratoryCostPartSelfTotal,
5389
-		"treatCostTotal":                              treatCostTotal,
5390
-		"treatCostSelfTotal":                          treatCostSelfTotal,
5391
-		"treatCostPartSelfTotal":                      treatCostPartSelfTotal,
5384
+		"checkCostTotal":              checkCostTotal,
5385
+		"checkCostSelfTotal":          checkCostSelfTotal,
5386
+		"checkCostPartSelfTotal":      checkCostPartSelfTotal,
5387
+		"laboratoryCostTotal":         laboratoryCostTotal,
5388
+		"laboratoryCostSelfTotal":     laboratoryCostSelfTotal,
5389
+		"laboratoryCostPartSelfTotal": laboratoryCostPartSelfTotal,
5390
+		"treatCostTotal":              treatCostTotal,
5391
+		"treatCostSelfTotal":          treatCostSelfTotal,
5392
+		"treatCostPartSelfTotal":      treatCostPartSelfTotal,
5392 5393
 	})
5393 5394
 
5394 5395
 }

+ 35 - 33
models/self_drug_models.go Visa fil

@@ -39,39 +39,41 @@ type XtBaseDrug struct {
39 39
 	DrugDose               float64 `gorm:"column:drug_dose" json:"drug_dose" form:"drug_dose"`
40 40
 	DrugDoseUnit           int64   `gorm:"column:drug_dose_unit" json:"drug_dose_unit" form:"drug_dose_unit"`
41 41
 	MedicalInsuranceNumber string  `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
42
-	Manufacturer           int64   `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
43
-	PharmacologyCategory   int64   `gorm:"column:pharmacology_category" json:"pharmacology_category" form:"pharmacology_category"`
44
-	StatisticsCategory     int64   `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
45
-	Code                   string  `gorm:"column:code" json:"code" form:"code"`
46
-	IsSpecialDiseases      int64   `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
47
-	IsRecord               int64   `gorm:"column:is_record" json:"is_record" form:"is_record"`
48
-	Agent                  string  `gorm:"column:agent" json:"agent" form:"agent"`
49
-	DrugStatus             string  `gorm:"column:drug_status" json:"drug_status" form:"drug_status"`
50
-	LimitRemark            string  `gorm:"column:limit_remark" json:"limit_remark" form:"limit_remark"`
51
-	DeliveryWay            string  `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
52
-	ExecutionFrequency     string  `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
53
-	SingleDose             float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
54
-	PrescribingNumber      float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
55
-	Label                  int64   `gorm:"column:label" json:"label" form:"label"`
56
-	Sort                   int64   `gorm:"column:sort" json:"sort" form:"sort"`
57
-	IsUseDoctorAdvice      int64   `gorm:"column:is_use_doctor_advice" json:"is_use_doctor_advice" form:"is_use_doctor_advice"`
58
-	IsDefault              int64   `gorm:"column:is_default" json:"is_default" form:"is_default"`
59
-	IsChargePredict        int64   `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
60
-	IsStatisticsWork       int64   `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
61
-	IsChargeUse            int64   `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
62
-	Status                 int64   `gorm:"column:status" json:"status" form:"status"`
63
-	Ctime                  int64   `gorm:"column:ctime" json:"ctime" form:"ctime"`
64
-	Mtime                  int64   `gorm:"column:mtime" json:"mtime" form:"mtime"`
65
-	OrgId                  int64   `gorm:"column:org_id" json:"org_id" form:"org_id"`
66
-	HospApprFlag           int64   `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
67
-	LmtUsedFlag            int64   `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
68
-	Total                  float64 `gorm:"column:total" json:"total" form:"total"`
69
-	PrescribingNumberUnit  string  `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
70
-	MinNumber              int64   `gorm:"column:min_number" json:"min_number" form:"min_number"`
71
-	Dose                   float64 `gorm:"column:dose" json:"dose" form:"dose"`
72
-	DoseUnit               string  `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
73
-	DrugDay                string  `gorm:"column:drug_day" json:"drug_day" form:"drug_day"`
74
-	MinPrice               float64 `gorm:"column:min_price" json:"min_price" form:"min_price"`
42
+	ProvincesCode          string  `gorm:"column:provinces_code" json:"provinces_code" form:"provinces_code"`
43
+
44
+	Manufacturer          int64   `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
45
+	PharmacologyCategory  int64   `gorm:"column:pharmacology_category" json:"pharmacology_category" form:"pharmacology_category"`
46
+	StatisticsCategory    int64   `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
47
+	Code                  string  `gorm:"column:code" json:"code" form:"code"`
48
+	IsSpecialDiseases     int64   `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
49
+	IsRecord              int64   `gorm:"column:is_record" json:"is_record" form:"is_record"`
50
+	Agent                 string  `gorm:"column:agent" json:"agent" form:"agent"`
51
+	DrugStatus            string  `gorm:"column:drug_status" json:"drug_status" form:"drug_status"`
52
+	LimitRemark           string  `gorm:"column:limit_remark" json:"limit_remark" form:"limit_remark"`
53
+	DeliveryWay           string  `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
54
+	ExecutionFrequency    string  `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
55
+	SingleDose            float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
56
+	PrescribingNumber     float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
57
+	Label                 int64   `gorm:"column:label" json:"label" form:"label"`
58
+	Sort                  int64   `gorm:"column:sort" json:"sort" form:"sort"`
59
+	IsUseDoctorAdvice     int64   `gorm:"column:is_use_doctor_advice" json:"is_use_doctor_advice" form:"is_use_doctor_advice"`
60
+	IsDefault             int64   `gorm:"column:is_default" json:"is_default" form:"is_default"`
61
+	IsChargePredict       int64   `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
62
+	IsStatisticsWork      int64   `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
63
+	IsChargeUse           int64   `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
64
+	Status                int64   `gorm:"column:status" json:"status" form:"status"`
65
+	Ctime                 int64   `gorm:"column:ctime" json:"ctime" form:"ctime"`
66
+	Mtime                 int64   `gorm:"column:mtime" json:"mtime" form:"mtime"`
67
+	OrgId                 int64   `gorm:"column:org_id" json:"org_id" form:"org_id"`
68
+	HospApprFlag          int64   `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
69
+	LmtUsedFlag           int64   `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
70
+	Total                 float64 `gorm:"column:total" json:"total" form:"total"`
71
+	PrescribingNumberUnit string  `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
72
+	MinNumber             int64   `gorm:"column:min_number" json:"min_number" form:"min_number"`
73
+	Dose                  float64 `gorm:"column:dose" json:"dose" form:"dose"`
74
+	DoseUnit              string  `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
75
+	DrugDay               string  `gorm:"column:drug_day" json:"drug_day" form:"drug_day"`
76
+	MinPrice              float64 `gorm:"column:min_price" json:"min_price" form:"min_price"`
75 77
 }
76 78
 
77 79
 func (XtBaseDrug) TableName() string {