|
@@ -189,11 +189,16 @@ func (this *PharmacyController) IssuedDrug() {
|
189
|
189
|
fmt.Println(partition)
|
190
|
190
|
w_his_advice_patient, _ := service.GetWaitPharmacyHISAdvicePatient(partition, shift, stime, orgid, keyword, is_medicine)
|
191
|
191
|
w_xt_advice_patient, _ := service.GetWaitPharmacyXTPatient(partition, shift, stime, orgid, keyword, is_medicine)
|
192
|
|
- w_his_goods_patient, _ := service.GetWaitPharmacyHISGoodsPatient(partition, shift, stime, orgid, keyword, is_medicine)
|
193
|
192
|
var patients []*models.PharmacyPatients
|
194
|
193
|
patients = append(patients, w_his_advice_patient...)
|
195
|
194
|
patients = append(patients, w_xt_advice_patient...)
|
196
|
|
- patients = append(patients, w_his_goods_patient...)
|
|
195
|
+
|
|
196
|
+ //good_info,_ := service.GetGoodCodeOpen(orgid)
|
|
197
|
+ good_info, _ := service.GetGoodCodeOpen(orgid)
|
|
198
|
+ if good_info.IsOpen == 1 {
|
|
199
|
+ w_his_goods_patient, _ := service.GetWaitPharmacyHISGoodsPatient(partition, shift, stime, orgid, keyword, is_medicine)
|
|
200
|
+ patients = append(patients, w_his_goods_patient...)
|
|
201
|
+ }
|
197
|
202
|
patients = RemoveRepeatedPurviewElement(patients)
|
198
|
203
|
|
199
|
204
|
this.ServeSuccessJSON(map[string]interface{}{
|
|
@@ -273,11 +278,16 @@ func (this *PharmacyController) WaitingDrug() {
|
273
|
278
|
is_medicine := 0
|
274
|
279
|
w_his_advice_patient, _ := service.GetWaitPharmacyHISAdvicePatient(partition, shift, stime, orgid, keyword, is_medicine)
|
275
|
280
|
w_xt_advice_patient, _ := service.GetWaitPharmacyXTPatient(partition, shift, stime, orgid, keyword, is_medicine)
|
276
|
|
- w_his_goods_patient, _ := service.GetWaitPharmacyHISGoodsPatient(partition, shift, stime, orgid, keyword, is_medicine)
|
|
281
|
+
|
277
|
282
|
var patients []*models.PharmacyPatients
|
278
|
283
|
patients = append(patients, w_his_advice_patient...)
|
279
|
284
|
patients = append(patients, w_xt_advice_patient...)
|
280
|
|
- patients = append(patients, w_his_goods_patient...)
|
|
285
|
+
|
|
286
|
+ good_info, _ := service.GetGoodCodeOpen(orgid)
|
|
287
|
+ if good_info.IsOpen == 1 {
|
|
288
|
+ w_his_goods_patient, _ := service.GetWaitPharmacyHISGoodsPatient(partition, shift, stime, orgid, keyword, is_medicine)
|
|
289
|
+ patients = append(patients, w_his_goods_patient...)
|
|
290
|
+ }
|
281
|
291
|
patients = RemoveRepeatedPurviewElement(patients)
|
282
|
292
|
|
283
|
293
|
this.ServeSuccessJSON(map[string]interface{}{
|
|
@@ -1416,7 +1426,6 @@ func (this *PharmacyController) ChangeDrugCode() {
|
1416
|
1426
|
orgId := this.GetAdminUserInfo().CurrentOrgId
|
1417
|
1427
|
data_source, _ := this.GetInt64("data_source")
|
1418
|
1428
|
drug_code := this.GetString("drug_code")
|
1419
|
|
- //item_type := this.GetString("type")
|
1420
|
1429
|
|
1421
|
1430
|
str := strings.Replace(drug_code, " ", "", -1)
|
1422
|
1431
|
// 去除换行符
|