|
@@ -72,6 +72,8 @@ func StockManagerApiRegistRouters() {
|
72
|
72
|
beego.Router("/api/good/postgoodinformation", &StockManagerApiController{}, "Post:AddGoodInformation")
|
73
|
73
|
|
74
|
74
|
beego.Router("/api/good/postdruginformation", &StockManagerApiController{}, "Post:AddDrugInformation")
|
|
75
|
+
|
|
76
|
+ beego.Router("/api/good/initializtion", &StockManagerApiController{}, "Get:GetInitializtion")
|
75
|
77
|
}
|
76
|
78
|
|
77
|
79
|
func (c *StockManagerApiController) CreateWarehouse() {
|
|
@@ -2076,14 +2078,14 @@ func (this *StockManagerApiController) AddGoodInformation() {
|
2076
|
2078
|
|
2077
|
2079
|
if len(good_kind) != 0 {
|
2078
|
2080
|
_, errcodegoodkind := service.IsExistDicConfig(config.ID, good_kind, orgId)
|
2079
|
|
-
|
|
2081
|
+ lastConfig, _ := service.GetLastDicConfig(config.ID, orgId)
|
2080
|
2082
|
dataconfig := models.DictDataconfig{
|
2081
|
2083
|
ParentId: config.ID,
|
2082
|
2084
|
Module: "system",
|
2083
|
2085
|
OrgId: orgId,
|
2084
|
2086
|
Name: good_kind,
|
2085
|
2087
|
FieldName: "",
|
2086
|
|
- Value: index + 50,
|
|
2088
|
+ Value: lastConfig.Value + 1,
|
2087
|
2089
|
CreatedTime: "",
|
2088
|
2090
|
UpdatedTime: "",
|
2089
|
2091
|
CreateUserId: adminUserInfo.AdminUser.Id,
|
|
@@ -2175,13 +2177,14 @@ func (this *StockManagerApiController) AddGoodInformation() {
|
2175
|
2177
|
if len(medical_insurance_level) != 0 {
|
2176
|
2178
|
_, errcodemedicalInsurance := service.IsExistDicConfig(medicalInsuranceDataConfig.ID, medical_insurance_level, orgId)
|
2177
|
2179
|
if errcodemedicalInsurance == gorm.ErrRecordNotFound {
|
|
2180
|
+ mediConfigOne, _ := service.GetLastDicConfig(medicalInsuranceDataConfig.ID, orgId)
|
2178
|
2181
|
dataconfig := models.DictDataconfig{
|
2179
|
2182
|
ParentId: medicalInsuranceDataConfig.ID,
|
2180
|
2183
|
Module: "system",
|
2181
|
2184
|
OrgId: orgId,
|
2182
|
2185
|
Name: medical_insurance_level,
|
2183
|
2186
|
FieldName: "",
|
2184
|
|
- Value: index + 50,
|
|
2187
|
+ Value: mediConfigOne.Value + 1,
|
2185
|
2188
|
CreatedTime: "",
|
2186
|
2189
|
UpdatedTime: "",
|
2187
|
2190
|
CreateUserId: adminUserInfo.AdminUser.Id,
|
|
@@ -2329,7 +2332,8 @@ func (this *StockManagerApiController) AddGoodInformation() {
|
2329
|
2332
|
|
2330
|
2333
|
var dealer_id int64
|
2331
|
2334
|
dealerName := goodNameM["dealer"].(string)
|
2332
|
|
- fmt.Println("经销商33333333", dealerName)
|
|
2335
|
+
|
|
2336
|
+ fmt.Println("经销商", dealerName)
|
2333
|
2337
|
dealer := models.Dealer{
|
2334
|
2338
|
OrgId: orgId,
|
2335
|
2339
|
Status: 1,
|
|
@@ -2435,13 +2439,14 @@ func (this *StockManagerApiController) AddGoodInformation() {
|
2435
|
2439
|
_, errcodecagegory := service.IsExistDicConfig(drugDataConfig.ID, statistics_category, orgId)
|
2436
|
2440
|
|
2437
|
2441
|
if errcodecagegory == gorm.ErrRecordNotFound {
|
|
2442
|
+ dicConfigThree, _ := service.GetLastDicConfig(drugDataConfig.ID, orgId)
|
2438
|
2443
|
dataconfig := models.DictDataconfig{
|
2439
|
2444
|
ParentId: drugDataConfig.ID,
|
2440
|
2445
|
Module: "system",
|
2441
|
2446
|
OrgId: orgId,
|
2442
|
2447
|
Name: statistics_category,
|
2443
|
2448
|
FieldName: "",
|
2444
|
|
- Value: index + 50,
|
|
2449
|
+ Value: dicConfigThree.Value + 1,
|
2445
|
2450
|
CreatedTime: "",
|
2446
|
2451
|
UpdatedTime: "",
|
2447
|
2452
|
CreateUserId: adminUserInfo.AdminUser.Id,
|
|
@@ -2474,23 +2479,23 @@ func (this *StockManagerApiController) AddGoodInformation() {
|
2474
|
2479
|
}
|
2475
|
2480
|
|
2476
|
2481
|
export_time := time.Now().Unix()
|
2477
|
|
- errLogs, _ := service.FindPatientExportLog(this.GetAdminUserInfo().CurrentOrgId, export_time)
|
|
2482
|
+ errLogs, _ := service.FindPatientExportLogTwo(this.GetAdminUserInfo().CurrentOrgId, export_time)
|
2478
|
2483
|
if len(goods) > 0 {
|
2479
|
2484
|
|
2480
|
2485
|
for _, item := range goods {
|
2481
|
2486
|
|
2482
|
2487
|
goodInfo := models.GoodInfo{
|
2483
|
|
- GoodName: item.GoodName,
|
2484
|
|
- SpecificationName: item.SpecificationName,
|
2485
|
|
- GoodKind: item.GoodKind,
|
2486
|
|
- GoodTypeId: item.GoodTypeId,
|
2487
|
|
- Dealer: item.Dealer,
|
2488
|
|
- GoodUnit: item.GoodUnit,
|
2489
|
|
- IsRecord: item.IsRecord,
|
2490
|
|
- IsSpecialDiseases: item.IsSpecialDiseases,
|
2491
|
|
- Manufacturer: item.Manufacturer,
|
2492
|
|
- Pinyin: item.Pinyin,
|
2493
|
|
-
|
|
2488
|
+ GoodName: item.GoodName,
|
|
2489
|
+ SpecificationName: item.SpecificationName,
|
|
2490
|
+ GoodKind: item.GoodKind,
|
|
2491
|
+ GoodTypeId: item.GoodTypeId,
|
|
2492
|
+ Dealer: item.Dealer,
|
|
2493
|
+ GoodUnit: item.GoodUnit,
|
|
2494
|
+ IsRecord: item.IsRecord,
|
|
2495
|
+ IsSpecialDiseases: item.IsSpecialDiseases,
|
|
2496
|
+ Manufacturer: item.Manufacturer,
|
|
2497
|
+ Pinyin: item.Pinyin,
|
|
2498
|
+ GoodStatus: item.GoodStatus,
|
2494
|
2499
|
ProductionType: item.ProductionType,
|
2495
|
2500
|
Remark: item.Remark,
|
2496
|
2501
|
RetailPrice: item.RetailPrice,
|
|
@@ -2575,6 +2580,7 @@ func (this *StockManagerApiController) AddDrugInformation() {
|
2575
|
2580
|
|
2576
|
2581
|
total_goods = tempDrugs
|
2577
|
2582
|
for index, drugMap := range tempDrugs {
|
|
2583
|
+
|
2578
|
2584
|
goodNameM := drugMap.(map[string]interface{})
|
2579
|
2585
|
var drug models.BaseDrugLib
|
2580
|
2586
|
if goodNameM["drug_name"] == nil || reflect.TypeOf(goodNameM["drug_name"]).String() != "string" {
|
|
@@ -2644,16 +2650,19 @@ func (this *StockManagerApiController) AddDrugInformation() {
|
2644
|
2650
|
var drugType = "药品类型"
|
2645
|
2651
|
|
2646
|
2652
|
drugconfig, _ := service.GetDrugDataConfig(0, drugType)
|
2647
|
|
- if len(drug_type) == 0 {
|
2648
|
|
- _, errcodes := service.IsExistDicConfig(drugconfig.ParentId, drug_type, orgId)
|
|
2653
|
+ if len(drug_type) != 0 {
|
|
2654
|
+ _, errcodes := service.IsExistDicConfig(drugconfig.ID, drug_type, orgId)
|
2649
|
2655
|
if errcodes == gorm.ErrRecordNotFound {
|
|
2656
|
+ //获取该型号最后一条数据型号
|
|
2657
|
+ config, _ := service.GetLastDicConfig(drugconfig.ID, orgId)
|
|
2658
|
+
|
2650
|
2659
|
dataconfig := models.DictDataconfig{
|
2651
|
2660
|
ParentId: drugconfig.ID,
|
2652
|
2661
|
Module: "system",
|
2653
|
2662
|
OrgId: orgId,
|
2654
|
2663
|
Name: drug_type,
|
2655
|
2664
|
FieldName: "",
|
2656
|
|
- Value: index + 50,
|
|
2665
|
+ Value: config.Value + 1,
|
2657
|
2666
|
CreatedTime: "",
|
2658
|
2667
|
UpdatedTime: "",
|
2659
|
2668
|
CreateUserId: adminUser.AdminUser.Id,
|
|
@@ -2713,7 +2722,7 @@ func (this *StockManagerApiController) AddDrugInformation() {
|
2713
|
2722
|
drug.DrugOriginPlace = drug_origin_place
|
2714
|
2723
|
|
2715
|
2724
|
drug_dosage_form := goodNameM["drug_dosage_form"].(string)
|
2716
|
|
- fmt.Println("药品剂型2222222222", drug_dosage_form)
|
|
2725
|
+
|
2717
|
2726
|
if len(drug_dosage_form) == 0 {
|
2718
|
2727
|
err_log := models.ExportErrLog{
|
2719
|
2728
|
LogType: 4,
|
|
@@ -2734,13 +2743,14 @@ func (this *StockManagerApiController) AddDrugInformation() {
|
2734
|
2743
|
if len(drug_dosage_form) != 0 {
|
2735
|
2744
|
_, errcodess := service.IsExistDicConfig(drugDosageconfig.ID, drug_dosage_form, orgId)
|
2736
|
2745
|
if errcodess == gorm.ErrRecordNotFound {
|
|
2746
|
+ configOne, _ := service.GetLastDicConfig(drugDosageconfig.ID, orgId)
|
2737
|
2747
|
dataconfig := models.DictDataconfig{
|
2738
|
2748
|
ParentId: drugDosageconfig.ID,
|
2739
|
2749
|
Module: "system",
|
2740
|
2750
|
OrgId: orgId,
|
2741
|
|
- Name: drug_dosage,
|
|
2751
|
+ Name: drug_dosage_form,
|
2742
|
2752
|
FieldName: "",
|
2743
|
|
- Value: index + 50,
|
|
2753
|
+ Value: configOne.Value + 1,
|
2744
|
2754
|
CreatedTime: "",
|
2745
|
2755
|
UpdatedTime: "",
|
2746
|
2756
|
CreateUserId: adminUser.AdminUser.Id,
|
|
@@ -2762,12 +2772,12 @@ func (this *StockManagerApiController) AddDrugInformation() {
|
2762
|
2772
|
drug_dosage_form_id = int64(it.Value)
|
2763
|
2773
|
}
|
2764
|
2774
|
}
|
2765
|
|
- fmt.Println("hhhhhhh66666666666666", drug_dosage_form_id)
|
|
2775
|
+
|
2766
|
2776
|
drug.DrugDosageForm = drug_dosage_form_id
|
2767
|
2777
|
|
2768
|
2778
|
medical_insurance_level := goodNameM["medical_insurance_level"].(string)
|
2769
|
2779
|
var medical_insurance_level_id int64
|
2770
|
|
- if len(medical_insurance_level) <= 0 { //名字为空则生成一条导入错误日志
|
|
2780
|
+ if len(medical_insurance_level) == 0 { //名字为空则生成一条导入错误日志
|
2771
|
2781
|
err_log := models.ExportErrLog{
|
2772
|
2782
|
LogType: 4,
|
2773
|
2783
|
UserOrgId: this.GetAdminUserInfo().CurrentOrgId,
|
|
@@ -2785,13 +2795,14 @@ func (this *StockManagerApiController) AddDrugInformation() {
|
2785
|
2795
|
if len(medical_insurance_level) != 0 {
|
2786
|
2796
|
_, errcodemedical := service.IsExistDicConfig(medicalInsuranceConfig.ID, medical_insurance_level, orgId)
|
2787
|
2797
|
if errcodemedical == gorm.ErrRecordNotFound {
|
|
2798
|
+ medConfig, _ := service.GetLastDicConfig(medicalInsuranceConfig.ID, orgId)
|
2788
|
2799
|
dataconfig := models.DictDataconfig{
|
2789
|
2800
|
ParentId: medicalInsuranceConfig.ID,
|
2790
|
2801
|
Module: "system",
|
2791
|
2802
|
OrgId: orgId,
|
2792
|
2803
|
Name: medical_insurance_level,
|
2793
|
2804
|
FieldName: "",
|
2794
|
|
- Value: index + 50,
|
|
2805
|
+ Value: medConfig.Value + 1,
|
2795
|
2806
|
CreatedTime: "",
|
2796
|
2807
|
UpdatedTime: "",
|
2797
|
2808
|
CreateUserId: adminUser.AdminUser.Id,
|
|
@@ -2921,17 +2932,18 @@ func (this *StockManagerApiController) AddDrugInformation() {
|
2921
|
2932
|
var drugClassify = "药物分类"
|
2922
|
2933
|
var drug_classify_id int64
|
2923
|
2934
|
drugClassifyConfig, _ := service.GetDrugDataConfig(0, drugClassify)
|
2924
|
|
- fmt.Println("9999999999999999999", drugClassifyConfig)
|
|
2935
|
+
|
2925
|
2936
|
if len(drug_classify) != 0 {
|
2926
|
2937
|
_, errcodesClass := service.IsExistDicConfig(drugClassifyConfig.ID, drug_classify, orgId)
|
2927
|
2938
|
if errcodesClass == gorm.ErrRecordNotFound {
|
|
2939
|
+ drugClassConfig, _ := service.GetLastDicConfig(drugClassifyConfig.ID, orgId)
|
2928
|
2940
|
dataconfig := models.DictDataconfig{
|
2929
|
2941
|
ParentId: drugClassifyConfig.ID,
|
2930
|
2942
|
Module: "system",
|
2931
|
2943
|
OrgId: orgId,
|
2932
|
2944
|
Name: drug_classify,
|
2933
|
2945
|
FieldName: "",
|
2934
|
|
- Value: index + 50,
|
|
2946
|
+ Value: drugClassConfig.Value + 1,
|
2935
|
2947
|
CreatedTime: "",
|
2936
|
2948
|
UpdatedTime: "",
|
2937
|
2949
|
CreateUserId: adminUser.AdminUser.Id,
|
|
@@ -2996,17 +3008,20 @@ func (this *StockManagerApiController) AddDrugInformation() {
|
2996
|
3008
|
drug.Manufacturer = manufacturer_id
|
2997
|
3009
|
|
2998
|
3010
|
dealer := goodNameM["dealer"].(string)
|
2999
|
|
- _, errcodesdealer := service.GetDealerByName(orgId, dealer)
|
3000
|
|
- if errcodesdealer == gorm.ErrRecordNotFound {
|
3001
|
|
- dealerconfig := models.Dealer{
|
3002
|
|
- DealerName: dealer,
|
3003
|
|
- Status: 1,
|
3004
|
|
- OrgId: orgId,
|
3005
|
|
- Ctime: time.Now().Unix(),
|
3006
|
|
- Creater: adminUser.AdminUser.Id,
|
|
3011
|
+ if len(dealer) != 0 {
|
|
3012
|
+ _, errcodesdealer := service.GetDealerByName(orgId, dealer)
|
|
3013
|
+ if errcodesdealer == gorm.ErrRecordNotFound {
|
|
3014
|
+ dealerconfig := models.Dealer{
|
|
3015
|
+ DealerName: dealer,
|
|
3016
|
+ Status: 1,
|
|
3017
|
+ OrgId: orgId,
|
|
3018
|
+ Ctime: time.Now().Unix(),
|
|
3019
|
+ Creater: adminUser.AdminUser.Id,
|
|
3020
|
+ }
|
|
3021
|
+ service.CreateDealer(&dealerconfig)
|
3007
|
3022
|
}
|
3008
|
|
- service.CreateDealer(&dealerconfig)
|
3009
|
3023
|
}
|
|
3024
|
+
|
3010
|
3025
|
var dealer_id int64
|
3011
|
3026
|
dealerList, _ := service.GetAllDealerList(orgId)
|
3012
|
3027
|
for _, it := range dealerList {
|
|
@@ -3034,14 +3049,14 @@ func (this *StockManagerApiController) AddDrugInformation() {
|
3034
|
3049
|
if len(statistics_category) != 0 {
|
3035
|
3050
|
_, errcodestatistc := service.IsExistDicConfig(statistcConfig.ID, statistics_category, orgId)
|
3036
|
3051
|
if errcodestatistc == gorm.ErrRecordNotFound {
|
3037
|
|
-
|
|
3052
|
+ staConfig, _ := service.GetLastDicConfig(statistcConfig.ID, orgId)
|
3038
|
3053
|
dataconfig := models.DictDataconfig{
|
3039
|
3054
|
ParentId: statistcConfig.ID,
|
3040
|
3055
|
Module: "system",
|
3041
|
3056
|
OrgId: orgId,
|
3042
|
3057
|
Name: statistics_category,
|
3043
|
3058
|
FieldName: "",
|
3044
|
|
- Value: index + 50,
|
|
3059
|
+ Value: staConfig.Value + 1,
|
3045
|
3060
|
CreatedTime: "",
|
3046
|
3061
|
UpdatedTime: "",
|
3047
|
3062
|
CreateUserId: adminUser.AdminUser.Id,
|
|
@@ -3081,13 +3096,14 @@ func (this *StockManagerApiController) AddDrugInformation() {
|
3081
|
3096
|
if len(pharmacology_category) != 0 {
|
3082
|
3097
|
_, errcodespharmacology := service.IsExistDicConfig(pharmacologyConfig.ID, pharmacology_category, orgId)
|
3083
|
3098
|
if errcodespharmacology == gorm.ErrRecordNotFound {
|
|
3099
|
+ dicConfig, _ := service.GetLastDicConfig(pharmacologyConfig.ID, orgId)
|
3084
|
3100
|
dataconfig := models.DictDataconfig{
|
3085
|
3101
|
ParentId: pharmacologyConfig.ID,
|
3086
|
3102
|
Module: "system",
|
3087
|
3103
|
OrgId: orgId,
|
3088
|
3104
|
Name: pharmacology_category,
|
3089
|
3105
|
FieldName: "",
|
3090
|
|
- Value: index + 50,
|
|
3106
|
+ Value: dicConfig.Value + 1,
|
3091
|
3107
|
CreatedTime: "",
|
3092
|
3108
|
UpdatedTime: "",
|
3093
|
3109
|
CreateUserId: adminUser.AdminUser.Id,
|
|
@@ -3147,13 +3163,14 @@ func (this *StockManagerApiController) AddDrugInformation() {
|
3147
|
3163
|
if len(drug_control) != 0 {
|
3148
|
3164
|
_, errcodesdrugcontrol := service.IsExistDicConfig(drugContorlConfig.ID, drug_control, orgId)
|
3149
|
3165
|
if errcodesdrugcontrol == gorm.ErrRecordNotFound {
|
|
3166
|
+ drugContorlConfigOne, _ := service.GetLastDicConfig(drugContorlConfig.ID, orgId)
|
3150
|
3167
|
dataconfig := models.DictDataconfig{
|
3151
|
3168
|
ParentId: drugContorlConfig.ID,
|
3152
|
3169
|
Module: "system",
|
3153
|
3170
|
OrgId: orgId,
|
3154
|
3171
|
Name: drug_control,
|
3155
|
3172
|
FieldName: "",
|
3156
|
|
- Value: index + 50,
|
|
3173
|
+ Value: drugContorlConfigOne.Value + 1,
|
3157
|
3174
|
CreatedTime: "",
|
3158
|
3175
|
UpdatedTime: "",
|
3159
|
3176
|
CreateUserId: adminUser.AdminUser.Id,
|
|
@@ -3183,17 +3200,18 @@ func (this *StockManagerApiController) AddDrugInformation() {
|
3183
|
3200
|
var drug_category_id int64
|
3184
|
3201
|
|
3185
|
3202
|
drugCategoryConfig, _ := service.GetDrugDataConfig(0, drugCategory)
|
3186
|
|
- fmt.Println("33333drugCategoryConfig", drugCategoryConfig)
|
|
3203
|
+
|
3187
|
3204
|
if len(drug_category) != 0 {
|
3188
|
3205
|
_, drugcategoryerrcodes := service.IsExistDicConfig(drugCategoryConfig.ID, drug_category, orgId)
|
3189
|
3206
|
if drugcategoryerrcodes == gorm.ErrRecordNotFound {
|
|
3207
|
+ drugCategoryConfigSix, _ := service.GetLastDicConfig(drugCategoryConfig.ID, orgId)
|
3190
|
3208
|
dataconfig := models.DictDataconfig{
|
3191
|
3209
|
ParentId: drugCategoryConfig.ID,
|
3192
|
3210
|
Module: "system",
|
3193
|
3211
|
OrgId: orgId,
|
3194
|
3212
|
Name: drug_category,
|
3195
|
3213
|
FieldName: "",
|
3196
|
|
- Value: index + 50,
|
|
3214
|
+ Value: drugCategoryConfigSix.Value + 1,
|
3197
|
3215
|
CreatedTime: "",
|
3198
|
3216
|
UpdatedTime: "",
|
3199
|
3217
|
CreateUserId: adminUser.AdminUser.Id,
|
|
@@ -3259,13 +3277,14 @@ func (this *StockManagerApiController) AddDrugInformation() {
|
3259
|
3277
|
if len(drugDoseUnit) != 0 {
|
3260
|
3278
|
_, errcodedataconfig := service.GetChildeConfigIsExist(dataConfig.ID, drugDoseUnit, orgId)
|
3261
|
3279
|
if errcodedataconfig == gorm.ErrRecordNotFound {
|
|
3280
|
+ childConfig, _ := service.GetLastChildeConfig(dataConfig.ID, orgId)
|
3262
|
3281
|
dataconfig := models.Dataconfig{
|
3263
|
3282
|
ParentId: dataConfig.ID,
|
3264
|
3283
|
Module: "hemodialysis",
|
3265
|
3284
|
OrgId: orgId,
|
3266
|
3285
|
Name: drugDoseUnit,
|
3267
|
3286
|
FieldName: "",
|
3268
|
|
- Value: index + 50,
|
|
3287
|
+ Value: childConfig.Value + 1,
|
3269
|
3288
|
CreatedTime: "",
|
3270
|
3289
|
UpdatedTime: "",
|
3271
|
3290
|
CreateUserId: adminUser.AdminUser.Id,
|
|
@@ -3296,8 +3315,8 @@ func (this *StockManagerApiController) AddDrugInformation() {
|
3296
|
3315
|
}
|
3297
|
3316
|
|
3298
|
3317
|
export_time := time.Now().Unix()
|
3299
|
|
- errLogs, _ := service.FindPatientExportLog(this.GetAdminUserInfo().CurrentOrgId, export_time)
|
3300
|
|
- fmt.Println("数组", drugList)
|
|
3318
|
+ errLogs, _ := service.FindPatientExportLogOne(this.GetAdminUserInfo().CurrentOrgId, export_time)
|
|
3319
|
+
|
3301
|
3320
|
if len(drugList) > 0 {
|
3302
|
3321
|
for _, item := range drugList {
|
3303
|
3322
|
|
|
@@ -3395,3 +3414,64 @@ func (this *StockManagerApiController) AddDrugInformation() {
|
3395
|
3414
|
})
|
3396
|
3415
|
}
|
3397
|
3416
|
}
|
|
3417
|
+
|
|
3418
|
+func (this *StockManagerApiController) GetInitializtion() {
|
|
3419
|
+
|
|
3420
|
+ orgId := this.GetAdminUserInfo().CurrentOrgId
|
|
3421
|
+ var drugCategory = "药品类别"
|
|
3422
|
+ var drugType = "药品类型"
|
|
3423
|
+ var drugDosageForm = "药品剂型"
|
|
3424
|
+ var medicalInsuranceLevel = "医保等级"
|
|
3425
|
+ var drugControl = "开药控制"
|
|
3426
|
+ var drugClassify = "药物分类"
|
|
3427
|
+ var statisticsCategory = "统计分类"
|
|
3428
|
+ var pharmacologyCategory = "药理分类"
|
|
3429
|
+ var goodKind = "耗材种类"
|
|
3430
|
+ var tubeColor = "试管颜色"
|
|
3431
|
+ var costClassify = "费用类别"
|
|
3432
|
+ drugTypeParent, _ := service.GetDrugDataConfig(0, drugType)
|
|
3433
|
+ drugTypeList, _ := service.GetParentDataConfig(drugTypeParent.ID, orgId)
|
|
3434
|
+
|
|
3435
|
+ drugCategoryParent, _ := service.GetDrugDataConfig(0, drugCategory)
|
|
3436
|
+ drugCategoryList, _ := service.GetParentDataConfig(drugCategoryParent.ID, orgId)
|
|
3437
|
+
|
|
3438
|
+ drugDosageFormParent, _ := service.GetDrugDataConfig(0, drugDosageForm)
|
|
3439
|
+ drugDosageFormList, _ := service.GetParentDataConfig(drugDosageFormParent.ID, orgId)
|
|
3440
|
+
|
|
3441
|
+ medicalInsuranceLevelParent, _ := service.GetDrugDataConfig(0, medicalInsuranceLevel)
|
|
3442
|
+ medicalInsuranceLevelList, _ := service.GetParentDataConfig(medicalInsuranceLevelParent.ID, orgId)
|
|
3443
|
+
|
|
3444
|
+ drugControlParent, _ := service.GetDrugDataConfig(0, drugControl)
|
|
3445
|
+ drugControlList, _ := service.GetParentDataConfig(drugControlParent.ID, orgId)
|
|
3446
|
+
|
|
3447
|
+ drugClassifyParent, _ := service.GetDrugDataConfig(0, drugClassify)
|
|
3448
|
+ drugClassifyList, _ := service.GetParentDataConfig(drugClassifyParent.ID, orgId)
|
|
3449
|
+
|
|
3450
|
+ statisticsCategoryParent, _ := service.GetDrugDataConfig(0, statisticsCategory)
|
|
3451
|
+ statisticsCategoryList, _ := service.GetParentDataConfig(statisticsCategoryParent.ID, orgId)
|
|
3452
|
+
|
|
3453
|
+ pharmacologyCategoryParent, _ := service.GetDrugDataConfig(0, pharmacologyCategory)
|
|
3454
|
+ pharmacologyCategoryList, _ := service.GetParentDataConfig(pharmacologyCategoryParent.ID, orgId)
|
|
3455
|
+
|
|
3456
|
+ goodKindParent, _ := service.GetDrugDataConfig(0, goodKind)
|
|
3457
|
+ goodKindList, _ := service.GetParentDataConfig(goodKindParent.ID, orgId)
|
|
3458
|
+
|
|
3459
|
+ tubeColorParent, _ := service.GetDrugDataConfig(0, tubeColor)
|
|
3460
|
+ tubeColorList, _ := service.GetParentDataConfig(tubeColorParent.ID, orgId)
|
|
3461
|
+
|
|
3462
|
+ costClassifyParent, _ := service.GetDrugDataConfig(0, costClassify)
|
|
3463
|
+ costClassifyList, _ := service.GetParentDataConfig(costClassifyParent.ID, orgId)
|
|
3464
|
+ this.ServeSuccessJSON(map[string]interface{}{
|
|
3465
|
+ "drugCategoryList": drugCategoryList,
|
|
3466
|
+ "drugTypeList": drugTypeList,
|
|
3467
|
+ "drugDosageFormList": drugDosageFormList,
|
|
3468
|
+ "medicalInsuranceLevelList": medicalInsuranceLevelList,
|
|
3469
|
+ "drugControlList": drugControlList,
|
|
3470
|
+ "drugClassifyList": drugClassifyList,
|
|
3471
|
+ "statisticsCategoryList": statisticsCategoryList,
|
|
3472
|
+ "pharmacologyCategoryList": pharmacologyCategoryList,
|
|
3473
|
+ "goodKindList": goodKindList,
|
|
3474
|
+ "tubeColorList": tubeColorList,
|
|
3475
|
+ "costClassifyList": costClassifyList,
|
|
3476
|
+ })
|
|
3477
|
+}
|