Browse Source

11月8日库存管理

XMLWAN 3 years ago
parent
commit
e7968e32ec
2 changed files with 14 additions and 1 deletions
  1. 13 0
      controllers/stock_in_api_controller.go
  2. 1 1
      service/doctor_schedule_service.go

+ 13 - 0
controllers/stock_in_api_controller.go View File

@@ -131,6 +131,7 @@ func StockManagerApiRegistRouters() {
131 131
 	beego.Router("/api/stock/getgoodinventorywarehouselist", &StockManagerApiController{}, "Get:GetGoodInventoryWarehouseList")
132 132
 	beego.Router("/api/stock/savestockinentorylist", &StockManagerApiController{}, "Post:SaveStockInventoryList")
133 133
 	beego.Router("/api/sotck/getdamagedetailbygoodid", &StockManagerApiController{}, "Get:GetDamageDetailByGoodId")
134
+	beego.Router("/api/stock/getinventoryexportlist", &StockManagerApiController{}, "Get:GetInventoryExportList")
134 135
 }
135 136
 
136 137
 func (c *StockManagerApiController) CreateWarehouse() {
@@ -6498,3 +6499,15 @@ func (this *StockManagerApiController) GetDamageDetailByGoodId() {
6498 6499
 		"damageList": damageList,
6499 6500
 	})
6500 6501
 }
6502
+
6503
+func (this *StockManagerApiController) GetInventoryExportList() {
6504
+
6505
+	orgId := this.GetAdminUserInfo().CurrentOrgId
6506
+
6507
+	list, _ := service.GetInventoryExportList(orgId)
6508
+	manufacturerList, _ := service.GetAllManufacturerList(orgId)
6509
+	this.ServeSuccessJSON(map[string]interface{}{
6510
+		"list":             list,
6511
+		"manufacturerList": manufacturerList,
6512
+	})
6513
+}

+ 1 - 1
service/doctor_schedule_service.go View File

@@ -718,6 +718,6 @@ func CreateDialysisPrescription(prescription models.DialysisPrescription) error
718 718
 
719 719
 func UpdateDialysisPrescriptionOne(prescription models.DialysisPrescription, patientid int64, recordate int64) error {
720 720
 
721
-	err := XTReadDB().Model(&prescription).Where("patient_id = ? and record_date = ? and status = 1", patientid, recordate).Updates(map[string]interface{}{"dialyzers": prescription.Dialyzer, "dialyzer_perfusion_apparatus": prescription.DialyzerPerfusionApparatus}).Error
721
+	err := XTReadDB().Model(&prescription).Where("patient_id = ? and record_date = ? and status = 1", patientid, recordate).Updates(map[string]interface{}{"dialysis_dialyszers": prescription.DialysisDialyszers, "dialyzer_perfusion_apparatus": prescription.DialyzerPerfusionApparatus}).Error
722 722
 	return err
723 723
 }