|
@@ -266,8 +266,10 @@ func (this *PharmacyController) WaitingDrug() {
|
266
|
266
|
this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
|
267
|
267
|
return
|
268
|
268
|
}
|
|
269
|
+ baseList, _ := service.GetAllBaseDrugListTwo(orgid)
|
269
|
270
|
this.ServeSuccessJSON(map[string]interface{}{
|
270
|
|
- "list": listt,
|
|
271
|
+ "list": listt,
|
|
272
|
+ "baseList": baseList,
|
271
|
273
|
})
|
272
|
274
|
return
|
273
|
275
|
}
|
|
@@ -291,8 +293,10 @@ func (this *PharmacyController) WaitingDrug() {
|
291
|
293
|
flist = append(flist, patientlist)
|
292
|
294
|
}
|
293
|
295
|
}
|
|
296
|
+ baseList, _ := service.GetAllBaseDrugListTwo(orgid)
|
294
|
297
|
this.ServeSuccessJSON(map[string]interface{}{
|
295
|
|
- "list": flist,
|
|
298
|
+ "list": flist,
|
|
299
|
+ "baseList": baseList,
|
296
|
300
|
})
|
297
|
301
|
return
|
298
|
302
|
}
|
|
@@ -325,7 +329,7 @@ func (this *PharmacyController) GetPharmacyContent() {
|
325
|
329
|
}
|
326
|
330
|
var list []*models.PharmacyContent
|
327
|
331
|
list, err = service.GetPatientMedication(orgid, patient_id, stime, etime, is_medicine)
|
328
|
|
-
|
|
332
|
+ baseList, _ := service.GetAllBaseDrugListTwo(orgid)
|
329
|
333
|
if err != nil {
|
330
|
334
|
utils.ErrorLog(err.Error())
|
331
|
335
|
this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
|
|
@@ -333,6 +337,7 @@ func (this *PharmacyController) GetPharmacyContent() {
|
333
|
337
|
}
|
334
|
338
|
return_value := make(map[string]interface{})
|
335
|
339
|
return_value["list"] = list
|
|
340
|
+ return_value["baseList"] = baseList
|
336
|
341
|
//if is_medicine == 1{发药时间先不展示
|
337
|
342
|
// return_value["time"] = time
|
338
|
343
|
//}
|