|
@@ -127,58 +127,69 @@ func (c *ManagerCenterApiController) CreateBaseDrugLib() {
|
127
|
127
|
is_statistics_work, _ := c.GetInt64("is_statistics_work")
|
128
|
128
|
is_charge_use, _ := c.GetInt64("is_charge_use")
|
129
|
129
|
dealer, _ := c.GetInt64("dealer")
|
|
130
|
+ prescription_mark, _ := c.GetInt64("prescription_mark")
|
|
131
|
+ social_security_directory_code := c.GetString("social_security_directory_code")
|
|
132
|
+ record_date := c.GetString("record_date")
|
|
133
|
+ timeLayout := "2006-01-02"
|
|
134
|
+ loc, _ := time.LoadLocation("Local")
|
|
135
|
+ theTime, _ := time.ParseInLocation(timeLayout+" 15:04:05", record_date+" 00:00:00", loc)
|
|
136
|
+ drug_remark := c.GetString("drug_remark")
|
130
|
137
|
adminInfo := c.GetAdminUserInfo()
|
131
|
138
|
|
132
|
139
|
drugLib := &models.BaseDrugLib{
|
133
|
|
- DrugName: drug_name,
|
134
|
|
- Pinyin: pinyin,
|
135
|
|
- Wubi: wubi,
|
136
|
|
- DrugAlias: drug_alias,
|
137
|
|
- DrugAliasPinyin: drug_alias_pinyin,
|
138
|
|
- DrugAliasWubi: drug_alias_wubi,
|
139
|
|
- DrugCategory: drug_category,
|
140
|
|
- DrugSpec: drug_spec,
|
141
|
|
- DrugType: drug_type,
|
142
|
|
- DrugStockLimit: drug_stock_limit,
|
143
|
|
- DrugOriginPlace: drug_origin_place,
|
144
|
|
- MedicalInsuranceLevel: medical_insurance_level,
|
145
|
|
- DrugDosageForm: drug_dosage_form,
|
146
|
|
- MaxUnit: max_unit,
|
147
|
|
- MinUnit: min_unit,
|
148
|
|
- UnitMatrixing: unit_matrixing,
|
149
|
|
- RetailPrice: retail_price,
|
150
|
|
- LastPrice: last_price,
|
151
|
|
- DrugControl: drug_control,
|
152
|
|
- Number: number,
|
153
|
|
- DrugClassify: drug_classify,
|
154
|
|
- DrugDose: drug_dose,
|
155
|
|
- DrugDoseUnit: drug_dose_unit,
|
156
|
|
- MedicalInsuranceNumber: medical_insurance_number,
|
157
|
|
- Manufacturer: manufacturer,
|
158
|
|
- PharmacologyCategory: pharmacology_category,
|
159
|
|
- StatisticsCategory: statistics_category,
|
160
|
|
- Code: code,
|
161
|
|
- IsSpecialDiseases: is_special_diseases,
|
162
|
|
- IsRecord: is_record,
|
163
|
|
- Agent: agent,
|
164
|
|
- DrugStatus: drug_status,
|
165
|
|
- LimitRemark: limit_remark,
|
166
|
|
- DeliveryWay: delivery_way,
|
167
|
|
- ExecutionFrequency: execution_frequency,
|
168
|
|
- SingleDose: single_dose,
|
169
|
|
- PrescribingNumber: prescribing_number,
|
170
|
|
- Label: label,
|
171
|
|
- Sort: sort,
|
172
|
|
- IsUseDoctorAdvice: is_use_doctor_advice,
|
173
|
|
- IsDefault: is_default,
|
174
|
|
- IsChargePredict: is_charge_predict,
|
175
|
|
- IsStatisticsWork: is_statistics_work,
|
176
|
|
- IsChargeUse: is_charge_use,
|
177
|
|
- OrgId: adminInfo.CurrentOrgId,
|
178
|
|
- Status: 1,
|
179
|
|
- Ctime: time.Now().Unix(),
|
180
|
|
- Mtime: time.Now().Unix(),
|
181
|
|
- Dealer: dealer,
|
|
140
|
+ DrugName: drug_name,
|
|
141
|
+ Pinyin: pinyin,
|
|
142
|
+ Wubi: wubi,
|
|
143
|
+ DrugAlias: drug_alias,
|
|
144
|
+ DrugAliasPinyin: drug_alias_pinyin,
|
|
145
|
+ DrugAliasWubi: drug_alias_wubi,
|
|
146
|
+ DrugCategory: drug_category,
|
|
147
|
+ DrugSpec: drug_spec,
|
|
148
|
+ DrugType: drug_type,
|
|
149
|
+ DrugStockLimit: drug_stock_limit,
|
|
150
|
+ DrugOriginPlace: drug_origin_place,
|
|
151
|
+ MedicalInsuranceLevel: medical_insurance_level,
|
|
152
|
+ DrugDosageForm: drug_dosage_form,
|
|
153
|
+ MaxUnit: max_unit,
|
|
154
|
+ MinUnit: min_unit,
|
|
155
|
+ UnitMatrixing: unit_matrixing,
|
|
156
|
+ RetailPrice: retail_price,
|
|
157
|
+ LastPrice: last_price,
|
|
158
|
+ DrugControl: drug_control,
|
|
159
|
+ Number: number,
|
|
160
|
+ DrugClassify: drug_classify,
|
|
161
|
+ DrugDose: drug_dose,
|
|
162
|
+ DrugDoseUnit: drug_dose_unit,
|
|
163
|
+ MedicalInsuranceNumber: medical_insurance_number,
|
|
164
|
+ Manufacturer: manufacturer,
|
|
165
|
+ PharmacologyCategory: pharmacology_category,
|
|
166
|
+ StatisticsCategory: statistics_category,
|
|
167
|
+ Code: code,
|
|
168
|
+ IsSpecialDiseases: is_special_diseases,
|
|
169
|
+ IsRecord: is_record,
|
|
170
|
+ Agent: agent,
|
|
171
|
+ DrugStatus: drug_status,
|
|
172
|
+ LimitRemark: limit_remark,
|
|
173
|
+ DeliveryWay: delivery_way,
|
|
174
|
+ ExecutionFrequency: execution_frequency,
|
|
175
|
+ SingleDose: single_dose,
|
|
176
|
+ PrescribingNumber: prescribing_number,
|
|
177
|
+ Label: label,
|
|
178
|
+ Sort: sort,
|
|
179
|
+ IsUseDoctorAdvice: is_use_doctor_advice,
|
|
180
|
+ IsDefault: is_default,
|
|
181
|
+ IsChargePredict: is_charge_predict,
|
|
182
|
+ IsStatisticsWork: is_statistics_work,
|
|
183
|
+ IsChargeUse: is_charge_use,
|
|
184
|
+ OrgId: adminInfo.CurrentOrgId,
|
|
185
|
+ Status: 1,
|
|
186
|
+ Ctime: time.Now().Unix(),
|
|
187
|
+ Mtime: time.Now().Unix(),
|
|
188
|
+ Dealer: dealer,
|
|
189
|
+ PrescriptionMark: prescription_mark,
|
|
190
|
+ SocialSecurityDirectoryCode: social_security_directory_code,
|
|
191
|
+ RecordDate: theTime.Unix(),
|
|
192
|
+ DrugRemark: drug_remark,
|
182
|
193
|
}
|
183
|
194
|
|
184
|
195
|
total := service.FindAllDrugLibRecordTotal(adminInfo.CurrentOrgId)
|
|
@@ -257,61 +268,72 @@ func (c *ManagerCenterApiController) EditBaseDrugLib() {
|
257
|
268
|
drug_code := c.GetString("drug_code")
|
258
|
269
|
//unit := c.GetString("unit")
|
259
|
270
|
dealer, _ := c.GetInt64("dealer")
|
|
271
|
+ prescription_mark, _ := c.GetInt64("prescription_mark")
|
|
272
|
+ social_security_directory_code := c.GetString("social_security_directory_code")
|
|
273
|
+ record_date := c.GetString("record_date")
|
|
274
|
+ timeLayout := "2006-01-02"
|
|
275
|
+ loc, _ := time.LoadLocation("Local")
|
|
276
|
+ theTime, _ := time.ParseInLocation(timeLayout+" 15:04:05", record_date+" 00:00:00", loc)
|
|
277
|
+ drug_remark := c.GetString("drug_remark")
|
260
|
278
|
adminInfo := c.GetAdminUserInfo()
|
261
|
279
|
drug, _ := service.FindBaseDrugLibRecord(adminInfo.CurrentOrgId, id)
|
262
|
280
|
|
263
|
281
|
drugLib := &models.BaseDrugLib{
|
264
|
|
- ID: id,
|
265
|
|
- DrugName: drug_name,
|
266
|
|
- Pinyin: pinyin,
|
267
|
|
- Wubi: wubi,
|
268
|
|
- DrugAlias: drug_alias,
|
269
|
|
- DrugAliasPinyin: drug_alias_pinyin,
|
270
|
|
- DrugAliasWubi: drug_alias_wubi,
|
271
|
|
- DrugCategory: drug_category,
|
272
|
|
- DrugSpec: drug_spec,
|
273
|
|
- DrugType: drug_type,
|
274
|
|
- DrugStockLimit: drug_stock_limit,
|
275
|
|
- DrugOriginPlace: drug_origin_place,
|
276
|
|
- MedicalInsuranceLevel: medical_insurance_level,
|
277
|
|
- DrugDosageForm: drug_dosage_form,
|
278
|
|
- MaxUnit: max_unit,
|
279
|
|
- MinUnit: min_unit,
|
280
|
|
- UnitMatrixing: unit_matrixing,
|
281
|
|
- RetailPrice: retail_price,
|
282
|
|
- LastPrice: last_price,
|
283
|
|
- DrugControl: drug_control,
|
284
|
|
- Number: number,
|
285
|
|
- DrugClassify: drug_classify,
|
286
|
|
- DrugDose: drug_dose,
|
287
|
|
- DrugDoseUnit: drug_dose_unit,
|
288
|
|
- MedicalInsuranceNumber: medical_insurance_number,
|
289
|
|
- Manufacturer: manufacturer,
|
290
|
|
- PharmacologyCategory: pharmacology_category,
|
291
|
|
- StatisticsCategory: statistics_category,
|
292
|
|
- Code: code,
|
293
|
|
- IsSpecialDiseases: is_special_diseases,
|
294
|
|
- IsRecord: is_record,
|
295
|
|
- Agent: agent,
|
296
|
|
- DrugStatus: drug_status,
|
297
|
|
- LimitRemark: limit_remark,
|
298
|
|
- DeliveryWay: delivery_way,
|
299
|
|
- ExecutionFrequency: execution_frequency,
|
300
|
|
- SingleDose: single_dose,
|
301
|
|
- PrescribingNumber: prescribing_number,
|
302
|
|
- Label: label,
|
303
|
|
- Sort: sort,
|
304
|
|
- IsUseDoctorAdvice: is_use_doctor_advice,
|
305
|
|
- IsDefault: is_default,
|
306
|
|
- IsChargePredict: is_charge_predict,
|
307
|
|
- IsStatisticsWork: is_statistics_work,
|
308
|
|
- IsChargeUse: is_charge_use,
|
309
|
|
- OrgId: adminInfo.CurrentOrgId,
|
310
|
|
- Status: 1,
|
311
|
|
- Ctime: drug.Ctime,
|
312
|
|
- Mtime: time.Now().Unix(),
|
313
|
|
- DrugCode: drug_code,
|
314
|
|
- Dealer: dealer,
|
|
282
|
+ ID: id,
|
|
283
|
+ DrugName: drug_name,
|
|
284
|
+ Pinyin: pinyin,
|
|
285
|
+ Wubi: wubi,
|
|
286
|
+ DrugAlias: drug_alias,
|
|
287
|
+ DrugAliasPinyin: drug_alias_pinyin,
|
|
288
|
+ DrugAliasWubi: drug_alias_wubi,
|
|
289
|
+ DrugCategory: drug_category,
|
|
290
|
+ DrugSpec: drug_spec,
|
|
291
|
+ DrugType: drug_type,
|
|
292
|
+ DrugStockLimit: drug_stock_limit,
|
|
293
|
+ DrugOriginPlace: drug_origin_place,
|
|
294
|
+ MedicalInsuranceLevel: medical_insurance_level,
|
|
295
|
+ DrugDosageForm: drug_dosage_form,
|
|
296
|
+ MaxUnit: max_unit,
|
|
297
|
+ MinUnit: min_unit,
|
|
298
|
+ UnitMatrixing: unit_matrixing,
|
|
299
|
+ RetailPrice: retail_price,
|
|
300
|
+ LastPrice: last_price,
|
|
301
|
+ DrugControl: drug_control,
|
|
302
|
+ Number: number,
|
|
303
|
+ DrugClassify: drug_classify,
|
|
304
|
+ DrugDose: drug_dose,
|
|
305
|
+ DrugDoseUnit: drug_dose_unit,
|
|
306
|
+ MedicalInsuranceNumber: medical_insurance_number,
|
|
307
|
+ Manufacturer: manufacturer,
|
|
308
|
+ PharmacologyCategory: pharmacology_category,
|
|
309
|
+ StatisticsCategory: statistics_category,
|
|
310
|
+ Code: code,
|
|
311
|
+ IsSpecialDiseases: is_special_diseases,
|
|
312
|
+ IsRecord: is_record,
|
|
313
|
+ Agent: agent,
|
|
314
|
+ DrugStatus: drug_status,
|
|
315
|
+ LimitRemark: limit_remark,
|
|
316
|
+ DeliveryWay: delivery_way,
|
|
317
|
+ ExecutionFrequency: execution_frequency,
|
|
318
|
+ SingleDose: single_dose,
|
|
319
|
+ PrescribingNumber: prescribing_number,
|
|
320
|
+ Label: label,
|
|
321
|
+ Sort: sort,
|
|
322
|
+ IsUseDoctorAdvice: is_use_doctor_advice,
|
|
323
|
+ IsDefault: is_default,
|
|
324
|
+ IsChargePredict: is_charge_predict,
|
|
325
|
+ IsStatisticsWork: is_statistics_work,
|
|
326
|
+ IsChargeUse: is_charge_use,
|
|
327
|
+ OrgId: adminInfo.CurrentOrgId,
|
|
328
|
+ Status: 1,
|
|
329
|
+ Ctime: drug.Ctime,
|
|
330
|
+ Mtime: time.Now().Unix(),
|
|
331
|
+ DrugCode: drug_code,
|
|
332
|
+ Dealer: dealer,
|
|
333
|
+ PrescriptionMark: prescription_mark,
|
|
334
|
+ SocialSecurityDirectoryCode: social_security_directory_code,
|
|
335
|
+ RecordDate: theTime.Unix(),
|
|
336
|
+ DrugRemark: drug_remark,
|
315
|
337
|
}
|
316
|
338
|
|
317
|
339
|
err := service.UpdateBaseDrugLib(drugLib)
|
|
@@ -484,6 +506,9 @@ func (c *ManagerCenterApiController) GetBaseDrugLibList() {
|
484
|
506
|
is_use, _ := c.GetInt64("is_use", 0)
|
485
|
507
|
is_charge, _ := c.GetInt64("is_charge", 0)
|
486
|
508
|
is_inject, _ := c.GetInt64("is_inject", 0)
|
|
509
|
+ manufacturer, _ := c.GetInt64("manufacturer")
|
|
510
|
+ is_record, _ := c.GetInt64("is_record")
|
|
511
|
+
|
487
|
512
|
keyword := c.GetString("keyword")
|
488
|
513
|
adminInfo := c.GetAdminUserInfo()
|
489
|
514
|
|
|
@@ -493,7 +518,7 @@ func (c *ManagerCenterApiController) GetBaseDrugLibList() {
|
493
|
518
|
if limit <= 0 {
|
494
|
519
|
limit = 10
|
495
|
520
|
}
|
496
|
|
- list, total, _ := service.GetBaseDrugLibList(adminInfo.CurrentOrgId, keyword, page, limit, is_use, is_charge, is_inject)
|
|
521
|
+ list, total, _ := service.GetBaseDrugLibList(adminInfo.CurrentOrgId, keyword, page, limit, is_use, is_charge, is_inject, manufacturer, is_record)
|
497
|
522
|
|
498
|
523
|
c.ServeSuccessJSON(map[string]interface{}{
|
499
|
524
|
"list": list,
|
|
@@ -742,6 +767,7 @@ func (c *ManagerCenterApiController) UpdateChildConfig() {
|
742
|
767
|
dataconfig.UpdatedTime = time.Now().Format("2006-01-02 15:04:05")
|
743
|
768
|
dataconfig.Remark = string(dataBody["remark"].(string))
|
744
|
769
|
dataconfig.Order = int64(dataBody["orders"].(float64))
|
|
770
|
+ dataconfig.Code = string(dataBody["code"].(string))
|
745
|
771
|
fmt.Println("dataconfitg------", dataconfig.Order)
|
746
|
772
|
//if dataBody["orders"] != nil {
|
747
|
773
|
// dataconfig.Order = int64(dataBody["orders"].(float64))
|
|
@@ -859,6 +885,8 @@ func (c *ManagerCenterApiController) CreateChildConfig() {
|
859
|
885
|
dataconfig.CreatedTime = time.Now().Format("2006-01-02 15:04:05")
|
860
|
886
|
dataconfig.UpdatedTime = time.Now().Format("2006-01-02 15:04:05")
|
861
|
887
|
dataconfig.Remark = string(dataBody["remark"].(string))
|
|
888
|
+ dataconfig.Code = string(dataBody["code"].(string))
|
|
889
|
+ fmt.Println("3444444444", dataconfig.Code)
|
862
|
890
|
if dataBody["order"] != nil {
|
863
|
891
|
dataconfig.Order = int64(dataBody["order"].(float64))
|
864
|
892
|
} else {
|
|
@@ -1015,6 +1043,7 @@ func dictionaryConfigChildFormData(dataconfig *models.DictionaryDataconfig, data
|
1015
|
1043
|
return
|
1016
|
1044
|
}
|
1017
|
1045
|
dataconfig.Content = content
|
|
1046
|
+
|
1018
|
1047
|
} else {
|
1019
|
1048
|
if configBody["parent_id"] == nil || reflect.TypeOf(configBody["parent_id"]).String() != "float64" {
|
1020
|
1049
|
utils.ErrorLog("module")
|
|
@@ -1041,6 +1070,7 @@ func dictionaryConfigChildFormData(dataconfig *models.DictionaryDataconfig, data
|
1041
|
1070
|
return
|
1042
|
1071
|
}
|
1043
|
1072
|
dataconfig.Name = name
|
|
1073
|
+
|
1044
|
1074
|
}
|
1045
|
1075
|
return
|
1046
|
1076
|
}
|
|
@@ -1407,6 +1437,9 @@ func (c *ManagerCenterApiController) CreateGoodInfo() {
|
1407
|
1437
|
agent := c.GetString("agent")
|
1408
|
1438
|
good_number := c.GetString("good_number")
|
1409
|
1439
|
|
|
1440
|
+ social_security_directory_code := c.GetString("social_security_directory_code")
|
|
1441
|
+ production_type := c.GetString("production_type")
|
|
1442
|
+ special_medical := c.GetString("special_medical")
|
1410
|
1443
|
adminUserInfo := c.GetAdminUserInfo()
|
1411
|
1444
|
|
1412
|
1445
|
totals := service.FindGoodInfoByName(specification_name, adminUserInfo.CurrentOrgId, good_id)
|
|
@@ -1420,43 +1453,46 @@ func (c *ManagerCenterApiController) CreateGoodInfo() {
|
1420
|
1453
|
code = "24000000" + code
|
1421
|
1454
|
|
1422
|
1455
|
goodInfo := models.GoodInfo{
|
1423
|
|
- GoodCode: code,
|
1424
|
|
- SpecificationName: specification_name,
|
1425
|
|
- GoodTypeId: good_id,
|
1426
|
|
- GoodUnit: good_unit,
|
1427
|
|
- BuyPrice: buy_price,
|
1428
|
|
- SellPrice: sell_price,
|
1429
|
|
- Remark: remark,
|
1430
|
|
- Ctime: time.Now().Unix(),
|
1431
|
|
- Manufacturer: manufacturer,
|
1432
|
|
- Dealer: dealer,
|
1433
|
|
- ExpiryDateWarnDayCount: expiry_date_warn_day_count,
|
1434
|
|
- StockWarnCount: stock_warn_count,
|
1435
|
|
- IsReuse: is_reuse,
|
1436
|
|
- Status: 1,
|
1437
|
|
- OrgId: adminUserInfo.CurrentOrgId,
|
1438
|
|
- Creater: adminUserInfo.AdminUser.Id,
|
1439
|
|
- GoodName: good_name,
|
1440
|
|
- Pinyin: pinyin,
|
1441
|
|
- Wubi: wubi,
|
1442
|
|
- GoodKind: good_kind,
|
1443
|
|
- MedicalInsuranceNumber: medical_insurance_number,
|
1444
|
|
- IsSpecialDiseases: is_special_diseases,
|
1445
|
|
- IsRecord: is_record,
|
1446
|
|
- StatisticsCategory: statistics_category,
|
1447
|
|
- GoodStatus: good_status,
|
1448
|
|
- DefaultCount: default_count,
|
1449
|
|
- Sign: sign,
|
1450
|
|
- IsDefault: is_default,
|
1451
|
|
- IsChargeUse: is_charge_use,
|
1452
|
|
- IsChargePredict: is_charge_predict,
|
1453
|
|
- IsStatisticsWork: is_statistics_work,
|
1454
|
|
- Sort: sort,
|
1455
|
|
- IsDoctorUse: is_doctor_use,
|
1456
|
|
- Agent: agent,
|
1457
|
|
- GoodNumber: good_number,
|
1458
|
|
- MedicalInsuranceLevel: medical_insurance_level,
|
1459
|
|
- RetailPrice: retail_price,
|
|
1456
|
+ GoodCode: code,
|
|
1457
|
+ SpecificationName: specification_name,
|
|
1458
|
+ GoodTypeId: good_id,
|
|
1459
|
+ GoodUnit: good_unit,
|
|
1460
|
+ BuyPrice: buy_price,
|
|
1461
|
+ SellPrice: sell_price,
|
|
1462
|
+ Remark: remark,
|
|
1463
|
+ Ctime: time.Now().Unix(),
|
|
1464
|
+ Manufacturer: manufacturer,
|
|
1465
|
+ Dealer: dealer,
|
|
1466
|
+ ExpiryDateWarnDayCount: expiry_date_warn_day_count,
|
|
1467
|
+ StockWarnCount: stock_warn_count,
|
|
1468
|
+ IsReuse: is_reuse,
|
|
1469
|
+ Status: 1,
|
|
1470
|
+ OrgId: adminUserInfo.CurrentOrgId,
|
|
1471
|
+ Creater: adminUserInfo.AdminUser.Id,
|
|
1472
|
+ GoodName: good_name,
|
|
1473
|
+ Pinyin: pinyin,
|
|
1474
|
+ Wubi: wubi,
|
|
1475
|
+ GoodKind: good_kind,
|
|
1476
|
+ MedicalInsuranceNumber: medical_insurance_number,
|
|
1477
|
+ IsSpecialDiseases: is_special_diseases,
|
|
1478
|
+ IsRecord: is_record,
|
|
1479
|
+ StatisticsCategory: statistics_category,
|
|
1480
|
+ GoodStatus: good_status,
|
|
1481
|
+ DefaultCount: default_count,
|
|
1482
|
+ Sign: sign,
|
|
1483
|
+ IsDefault: is_default,
|
|
1484
|
+ IsChargeUse: is_charge_use,
|
|
1485
|
+ IsChargePredict: is_charge_predict,
|
|
1486
|
+ IsStatisticsWork: is_statistics_work,
|
|
1487
|
+ Sort: sort,
|
|
1488
|
+ IsDoctorUse: is_doctor_use,
|
|
1489
|
+ Agent: agent,
|
|
1490
|
+ GoodNumber: good_number,
|
|
1491
|
+ MedicalInsuranceLevel: medical_insurance_level,
|
|
1492
|
+ RetailPrice: retail_price,
|
|
1493
|
+ SocialSecurityDirectoryCode: social_security_directory_code,
|
|
1494
|
+ ProductionType: production_type,
|
|
1495
|
+ SpecialMedical: special_medical,
|
1460
|
1496
|
}
|
1461
|
1497
|
err, goodInfos := service.AddSigleGoodInfo(&goodInfo)
|
1462
|
1498
|
if err == nil {
|
|
@@ -1507,47 +1543,53 @@ func (c *ManagerCenterApiController) ModifyGoodInfo() {
|
1507
|
1543
|
agent := c.GetString("agent")
|
1508
|
1544
|
good_number := c.GetString("good_number")
|
1509
|
1545
|
|
|
1546
|
+ social_security_directory_code := c.GetString("social_security_directory_code")
|
|
1547
|
+ production_type := c.GetString("production_type")
|
|
1548
|
+ special_medical := c.GetString("special_medical")
|
1510
|
1549
|
adminUserInfo := c.GetAdminUserInfo()
|
1511
|
1550
|
|
1512
|
1551
|
goodInfo := models.GoodInfo{
|
1513
|
|
- ID: id,
|
1514
|
|
- GoodCode: code,
|
1515
|
|
- SpecificationName: specification_name,
|
1516
|
|
- GoodTypeId: good_id,
|
1517
|
|
- GoodUnit: good_unit,
|
1518
|
|
- BuyPrice: buy_price,
|
1519
|
|
- SellPrice: sell_price,
|
1520
|
|
- Remark: remark,
|
1521
|
|
- Mtime: time.Now().Unix(),
|
1522
|
|
- Manufacturer: manufacturer,
|
1523
|
|
- Dealer: dealer,
|
1524
|
|
- ExpiryDateWarnDayCount: expiry_date_warn_day_count,
|
1525
|
|
- StockWarnCount: stock_warn_count,
|
1526
|
|
- IsReuse: is_reuse,
|
1527
|
|
- Status: 1,
|
1528
|
|
- OrgId: adminUserInfo.CurrentOrgId,
|
1529
|
|
- Modifier: adminUserInfo.AdminUser.Id,
|
1530
|
|
- GoodName: good_name,
|
1531
|
|
- Pinyin: pinyin,
|
1532
|
|
- Wubi: wubi,
|
1533
|
|
- GoodKind: good_kind,
|
1534
|
|
- MedicalInsuranceNumber: medical_insurance_number,
|
1535
|
|
- IsSpecialDiseases: is_special_diseases,
|
1536
|
|
- IsRecord: is_record,
|
1537
|
|
- StatisticsCategory: statistics_category,
|
1538
|
|
- GoodStatus: good_status,
|
1539
|
|
- DefaultCount: default_count,
|
1540
|
|
- Sign: sign,
|
1541
|
|
- IsDefault: is_default,
|
1542
|
|
- IsChargeUse: is_charge_use,
|
1543
|
|
- IsChargePredict: is_charge_predict,
|
1544
|
|
- IsStatisticsWork: is_statistics_work,
|
1545
|
|
- Sort: sort,
|
1546
|
|
- IsDoctorUse: is_doctor_use,
|
1547
|
|
- Agent: agent,
|
1548
|
|
- GoodNumber: good_number,
|
1549
|
|
- MedicalInsuranceLevel: medical_insurance_level,
|
1550
|
|
- RetailPrice: retail_price,
|
|
1552
|
+ ID: id,
|
|
1553
|
+ GoodCode: code,
|
|
1554
|
+ SpecificationName: specification_name,
|
|
1555
|
+ GoodTypeId: good_id,
|
|
1556
|
+ GoodUnit: good_unit,
|
|
1557
|
+ BuyPrice: buy_price,
|
|
1558
|
+ SellPrice: sell_price,
|
|
1559
|
+ Remark: remark,
|
|
1560
|
+ Mtime: time.Now().Unix(),
|
|
1561
|
+ Manufacturer: manufacturer,
|
|
1562
|
+ Dealer: dealer,
|
|
1563
|
+ ExpiryDateWarnDayCount: expiry_date_warn_day_count,
|
|
1564
|
+ StockWarnCount: stock_warn_count,
|
|
1565
|
+ IsReuse: is_reuse,
|
|
1566
|
+ Status: 1,
|
|
1567
|
+ OrgId: adminUserInfo.CurrentOrgId,
|
|
1568
|
+ Modifier: adminUserInfo.AdminUser.Id,
|
|
1569
|
+ GoodName: good_name,
|
|
1570
|
+ Pinyin: pinyin,
|
|
1571
|
+ Wubi: wubi,
|
|
1572
|
+ GoodKind: good_kind,
|
|
1573
|
+ MedicalInsuranceNumber: medical_insurance_number,
|
|
1574
|
+ IsSpecialDiseases: is_special_diseases,
|
|
1575
|
+ IsRecord: is_record,
|
|
1576
|
+ StatisticsCategory: statistics_category,
|
|
1577
|
+ GoodStatus: good_status,
|
|
1578
|
+ DefaultCount: default_count,
|
|
1579
|
+ Sign: sign,
|
|
1580
|
+ IsDefault: is_default,
|
|
1581
|
+ IsChargeUse: is_charge_use,
|
|
1582
|
+ IsChargePredict: is_charge_predict,
|
|
1583
|
+ IsStatisticsWork: is_statistics_work,
|
|
1584
|
+ Sort: sort,
|
|
1585
|
+ IsDoctorUse: is_doctor_use,
|
|
1586
|
+ Agent: agent,
|
|
1587
|
+ GoodNumber: good_number,
|
|
1588
|
+ MedicalInsuranceLevel: medical_insurance_level,
|
|
1589
|
+ RetailPrice: retail_price,
|
|
1590
|
+ SpecialMedical: special_medical,
|
|
1591
|
+ SocialSecurityDirectoryCode: social_security_directory_code,
|
|
1592
|
+ ProductionType: production_type,
|
1551
|
1593
|
}
|
1552
|
1594
|
|
1553
|
1595
|
totals := service.FindGoodInfoByNameOne(specification_name, adminUserInfo.CurrentOrgId, good_id, id)
|
|
@@ -1572,9 +1614,10 @@ func (c *ManagerCenterApiController) GetGoodInfoList() {
|
1572
|
1614
|
is_use, _ := c.GetInt64("is_use")
|
1573
|
1615
|
is_charge, _ := c.GetInt64("is_charge")
|
1574
|
1616
|
good_kind, _ := c.GetInt64("good_kind")
|
1575
|
|
-
|
|
1617
|
+ is_mark, _ := c.GetInt64("is_mark")
|
|
1618
|
+ manufacturer, _ := c.GetInt64("manufacturer")
|
1576
|
1619
|
adminUserInfo := c.GetAdminUserInfo()
|
1577
|
|
- goodInfos, total, err := service.FindGoodInfoList(adminUserInfo.CurrentOrgId, page, limit, keyword, is_use, is_charge, good_kind)
|
|
1620
|
+ goodInfos, total, err := service.FindGoodInfoList(adminUserInfo.CurrentOrgId, page, limit, keyword, is_use, is_charge, good_kind, is_mark, manufacturer)
|
1578
|
1621
|
if err == nil {
|
1579
|
1622
|
c.ServeSuccessJSON(map[string]interface{}{
|
1580
|
1623
|
"list": goodInfos,
|