Pārlūkot izejas kodu

库存调拨修改

28169 2 gadus atpakaļ
vecāks
revīzija
91393f013a

+ 1 - 1
controllers/mobile_api_controllers/check_weight_api_controller.go Parādīt failu

@@ -269,7 +269,7 @@ func (c *CheckWeightApiController) SavePatientInfoDialysis() {
269 269
 
270 270
 	template, _ := service.GetOrgInfoTemplate(adminUserInfo.Org.Id)
271 271
 
272
-	if template.TemplateId == 22 || template.TemplateId == 17 || template.TemplateId == 21 || template.TemplateId == 26 || template.TemplateId == 27 || template.TemplateId == 34 || template.TemplateId == 30 || template.TemplateId == 32 || template.TemplateId == 36 || template.TemplateId == 40 || template.TemplateId == 38 || template.TemplateId == 43 || template.TemplateId == 46 || template.TemplateId == 53 || template.TemplateId == 48 || adminUserInfo.Org.Id == 10345 || adminUserInfo.Org.Id == 10432 || adminUserInfo.Org.Id == 10441 || adminUserInfo.Org.Id == 10445 {
272
+	if template.TemplateId == 22 || template.TemplateId == 17 || template.TemplateId == 21 || template.TemplateId == 26 || template.TemplateId == 27 || template.TemplateId == 34 || template.TemplateId == 30 || template.TemplateId == 32 || template.TemplateId == 36 || template.TemplateId == 40 || template.TemplateId == 38 || template.TemplateId == 43 || template.TemplateId == 46 || template.TemplateId == 53 || template.TemplateId == 48 || adminUserInfo.Org.Id == 10345 || adminUserInfo.Org.Id == 10432 || adminUserInfo.Org.Id == 10441 || adminUserInfo.Org.Id == 10445 || adminUserInfo.Org.Id == 10138 || adminUserInfo.Org.Id == 10278 {
273 273
 		dewater_amount = dewater_amount * 1000
274 274
 	}
275 275
 

+ 5 - 5
controllers/mobile_api_controllers/dialysis_api_controller.go Parādīt failu

@@ -3384,7 +3384,7 @@ func (this *DialysisAPIController) ModifyStartDialysisOrder() {
3384 3384
 		ScheduleRemark:         schedule_remark,
3385 3385
 	}
3386 3386
 
3387
-	if adminUserInfo.Org.Id == 9671 || adminUserInfo.Org.Id == 10340 {
3387
+	if adminUserInfo.Org.Id == 9671 || adminUserInfo.Org.Id == 10340 || adminUserInfo.Org.Id == 10445 {
3388 3388
 
3389 3389
 		if tempDialysisRecord.BedID != bedID {
3390 3390
 			service.UpdateDeviceInformation(tempDialysisRecord.PatientId, tempDialysisRecord.DialysisDate)
@@ -3709,7 +3709,7 @@ func (c *DialysisAPIController) GetLongAdviceOne() {
3709 3709
 		//开启推送提醒逻辑    提交长期处方的时候,弹起长期医嘱推送
3710 3710
 		var advice_three []*models.DoctorAdvice
3711 3711
 
3712
-		fmt.Println("theStartTime23434343433434433443434343434334", theStartTime)
3712
+		//fmt.Println("theStartTime23434343433434433443434343434334", theStartTime)
3713 3713
 		advices, err := service.GetLastLongAdviceByGroupNo(adminUserInfo.Org.Id, patient_id, theStartTime)
3714 3714
 		advices_two, err := service.GetLastLongAdviceByGroupNoThree(adminUserInfo.Org.Id, patient_id, theStartTime)
3715 3715
 		for _, advice := range advices {
@@ -6269,7 +6269,7 @@ func (c *DialysisAPIController) UpdateStockGoods() {
6269 6269
 	return
6270 6270
 }
6271 6271
 
6272
-//当前数据比上一次出库数据少
6272
+// 当前数据比上一次出库数据少
6273 6273
 func ConsumablesDeliveryTotalSeven(orgID int64, patient_id int64, record_time int64, goods []*models.DialysisBeforePrepareGoods, creater int64, count int64) (err error) {
6274 6274
 
6275 6275
 	//查询该患者当天已经出库的耗材信息
@@ -6322,7 +6322,7 @@ func ConsumablesDeliveryTotalSeven(orgID int64, patient_id int64, record_time in
6322 6322
 	return nil
6323 6323
 }
6324 6324
 
6325
-//耗材出库删除
6325
+// 耗材出库删除
6326 6326
 func ConsumablesDeliveryDeleteFour(orgID int64, record_time int64, good_yc *models.BloodAutomaticReduceDetail, warehouseOut *models.WarehouseOut, patient_id int64, creater int64, count int64) (err error) {
6327 6327
 
6328 6328
 	// 先根据相关信息查询当天该耗材的出库信息
@@ -6667,7 +6667,7 @@ func ConsumablesDeliveryTotalSix(orgID int64, patient_id int64, record_time int6
6667 6667
 	return nil
6668 6668
 }
6669 6669
 
6670
-//耗材出库删除
6670
+// 耗材出库删除
6671 6671
 func ConsumablesDeliveryDeleteThree(orgID int64, record_time int64, good_yc *models.BloodAutomaticReduceDetail, warehouseOut *models.WarehouseOut) (err error) {
6672 6672
 	// 先根据相关信息查询当天该耗材的出库信息
6673 6673
 	warehouseOutInfos, err := service.FindStockOutInfoByStockOne(orgID, good_yc.GoodTypeId, good_yc.GoodId, record_time)

+ 20 - 19
controllers/secondary_order_api_contorller.go Parādīt failu

@@ -54,7 +54,7 @@ func SecondaryOrderApiRegistRouters() {
54 54
 	beego.Router("/api/second/deletesecondorderinfo", &SecondaryOrderApiController{}, "Get:DeleteSecondOrderInfo")
55 55
 }
56 56
 
57
-//获取仓库编码
57
+// 获取仓库编码
58 58
 func (this *SecondaryOrderApiController) GetStoreCode() {
59 59
 	orgId := this.GetAdminUserInfo().CurrentOrgId
60 60
 	var code string
@@ -72,7 +72,7 @@ func (this *SecondaryOrderApiController) GetStoreCode() {
72 72
 	return
73 73
 }
74 74
 
75
-//修改仓库状态
75
+// 修改仓库状态
76 76
 func (this *SecondaryOrderApiController) UpdateStatus() {
77 77
 	orgId := this.GetAdminUserInfo().CurrentOrgId
78 78
 	check := map[string][]string{
@@ -108,7 +108,7 @@ func (this *SecondaryOrderApiController) UpdateStatus() {
108 108
 	return
109 109
 }
110 110
 
111
-//删除仓库
111
+// 删除仓库
112 112
 func (this *SecondaryOrderApiController) DeleteStorehouse() {
113 113
 	orgId := this.GetAdminUserInfo().CurrentOrgId
114 114
 	check := map[string][]string{
@@ -143,7 +143,7 @@ func (this *SecondaryOrderApiController) DeleteStorehouse() {
143 143
 	return
144 144
 }
145 145
 
146
-//仓库名称是否重复
146
+// 仓库名称是否重复
147 147
 func (this *SecondaryOrderApiController) IsStorehouseName() {
148 148
 	orgId := this.GetAdminUserInfo().CurrentOrgId
149 149
 	storehouse_name := this.GetString("storehouse_name")
@@ -168,7 +168,7 @@ func (this *SecondaryOrderApiController) IsStorehouseName() {
168 168
 
169 169
 }
170 170
 
171
-//仓库地址是否重复
171
+// 仓库地址是否重复
172 172
 func (this *SecondaryOrderApiController) IsStorehouseAddress() {
173 173
 	orgId := this.GetAdminUserInfo().CurrentOrgId
174 174
 	storehouse_address := this.GetString("storehouse_address")
@@ -193,7 +193,7 @@ func (this *SecondaryOrderApiController) IsStorehouseAddress() {
193 193
 
194 194
 }
195 195
 
196
-//分页
196
+// 分页
197 197
 func (this *SecondaryOrderApiController) StorehouseList() {
198 198
 	adminUserInfo := this.GetAdminUserInfo()
199 199
 	page, _ := this.GetInt64("page")   //页码
@@ -267,7 +267,7 @@ func (this *SecondaryOrderApiController) StorehouseList() {
267 267
 	})
268 268
 }
269 269
 
270
-//新增仓库
270
+// 新增仓库
271 271
 func (this *SecondaryOrderApiController) AddStorehouse() {
272 272
 	orgId := this.GetAdminUserInfo().CurrentOrgId
273 273
 	dataBody := make(map[string]interface{}, 0)
@@ -358,7 +358,7 @@ func (this *SecondaryOrderApiController) AddStorehouse() {
358 358
 
359 359
 }
360 360
 
361
-//修改仓库
361
+// 修改仓库
362 362
 func (this *SecondaryOrderApiController) UpdateStorehouse() {
363 363
 	orgId := this.GetAdminUserInfo().CurrentOrgId
364 364
 	dataBody := make(map[string]interface{}, 0)
@@ -1321,11 +1321,12 @@ func (this *SecondaryOrderApiController) CheckSecondOrer() {
1321 1321
 					}
1322 1322
 					//查询该调拨单是否有生成入库单
1323 1323
 					_, errcodess := service.GetWarehouseBySecondWarehouseId(12, item.WarehouseId, orgId, record_date)
1324
+					fmt.Println("ERRCODESSS-------------------", errcodess)
1324 1325
 					if errcodess == gorm.ErrRecordNotFound {
1325 1326
 						service.AddSigleWarehouse(&warehousing)
1326 1327
 					}
1327 1328
 					infoObj, _ := service.GetLastWarehouseById(12, item.WarehouseId, orgId, record_date)
1328
-
1329
+					fmt.Println("INFOR----------------------", infoObj.ID)
1329 1330
 					warehouseInfo := &models.WarehousingInfo{
1330 1331
 						WarehousingOrder:      infoObj.WarehousingOrder,
1331 1332
 						WarehousingId:         infoObj.ID,
@@ -2125,7 +2126,7 @@ func (this *SecondaryOrderApiController) DeleteSecondOrderInfo() {
2125 2126
 	}
2126 2127
 }
2127 2128
 
2128
-//查询一条仓库信息
2129
+// 查询一条仓库信息
2129 2130
 func (this *SecondaryOrderApiController) GetOneStorehouse() {
2130 2131
 	orgId := this.GetAdminUserInfo().CurrentOrgId
2131 2132
 	check := map[string][]string{
@@ -2149,7 +2150,7 @@ func (this *SecondaryOrderApiController) GetOneStorehouse() {
2149 2150
 	return
2150 2151
 }
2151 2152
 
2152
-//获取当前机构所有可用仓库的名字
2153
+// 获取当前机构所有可用仓库的名字
2153 2154
 func (this *SecondaryOrderApiController) GetAllStorehouseName() {
2154 2155
 	orgId := this.GetAdminUserInfo().CurrentOrgId
2155 2156
 	list, err := service.GetAllStorehouseName(orgId)
@@ -2163,7 +2164,7 @@ func (this *SecondaryOrderApiController) GetAllStorehouseName() {
2163 2164
 
2164 2165
 }
2165 2166
 
2166
-//根据机构id查询仓库配置
2167
+// 根据机构id查询仓库配置
2167 2168
 func (this *SecondaryOrderApiController) FindStorehouseConfig() {
2168 2169
 	orgId := this.GetAdminUserInfo().CurrentOrgId
2169 2170
 	storehouse, err := service.FindStorehouseConfig(orgId)
@@ -2214,7 +2215,7 @@ func (this *SecondaryOrderApiController) FindStorehouseConfig() {
2214 2215
 	return
2215 2216
 }
2216 2217
 
2217
-//更改耗材自动入库仓库
2218
+// 更改耗材自动入库仓库
2218 2219
 func (this *SecondaryOrderApiController) UpdateInfo() {
2219 2220
 	orgId := this.GetAdminUserInfo().CurrentOrgId
2220 2221
 	check := map[string][]string{
@@ -2254,7 +2255,7 @@ func (this *SecondaryOrderApiController) UpdateInfo() {
2254 2255
 
2255 2256
 }
2256 2257
 
2257
-//更改耗材自动出库仓库
2258
+// 更改耗材自动出库仓库
2258 2259
 func (this *SecondaryOrderApiController) UpdateOutInfo() {
2259 2260
 	orgId := this.GetAdminUserInfo().CurrentOrgId
2260 2261
 	check := map[string][]string{
@@ -2294,7 +2295,7 @@ func (this *SecondaryOrderApiController) UpdateOutInfo() {
2294 2295
 
2295 2296
 }
2296 2297
 
2297
-//更改药品自动入库仓库
2298
+// 更改药品自动入库仓库
2298 2299
 func (this *SecondaryOrderApiController) UpdateDrugInfo() {
2299 2300
 	orgId := this.GetAdminUserInfo().CurrentOrgId
2300 2301
 	check := map[string][]string{
@@ -2341,7 +2342,7 @@ func (this *SecondaryOrderApiController) UpdateDrugInfo() {
2341 2342
 
2342 2343
 }
2343 2344
 
2344
-//更改药品自动出库仓库
2345
+// 更改药品自动出库仓库
2345 2346
 func (this *SecondaryOrderApiController) UpdateDrugOut() {
2346 2347
 	orgId := this.GetAdminUserInfo().CurrentOrgId
2347 2348
 	check := map[string][]string{
@@ -2387,7 +2388,7 @@ func (this *SecondaryOrderApiController) UpdateDrugOut() {
2387 2388
 
2388 2389
 }
2389 2390
 
2390
-//判断前端参数是否为空
2391
+// 判断前端参数是否为空
2391 2392
 func checkParams(this *SecondaryOrderApiController, m *map[string][]string) (map[string]string, error) {
2392 2393
 	tmp := make(map[string]string)
2393 2394
 	for k, v := range *m {
@@ -2400,7 +2401,7 @@ func checkParams(this *SecondaryOrderApiController, m *map[string][]string) (map
2400 2401
 	return tmp, nil
2401 2402
 }
2402 2403
 
2403
-//兼容旧数据
2404
+// 兼容旧数据
2404 2405
 func (this *SecondaryOrderApiController) Byliinit() {
2405 2406
 	err := service.Byliinit()
2406 2407
 	if err != nil {
@@ -2413,7 +2414,7 @@ func (this *SecondaryOrderApiController) Byliinit() {
2413 2414
 	return
2414 2415
 }
2415 2416
 
2416
-//查询机构所属管理员
2417
+// 查询机构所属管理员
2417 2418
 func (this *SecondaryOrderApiController) GetuserName() {
2418 2419
 	adminUserInfo := this.GetAdminUserInfo()
2419 2420
 	viewModels, _, _ := service.GetAdminUsersAndLoginInfo(adminUserInfo.CurrentOrgId, adminUserInfo.CurrentAppId, 1, 100)

+ 1 - 1
service/mobile_dialysis_service.go Parādīt failu

@@ -795,7 +795,7 @@ func MobileGetDoctorAdvicesByGroups(orgID int64, patientID int64, recordDate int
795 795
 
796 796
 	// cur_date := time.Now().Format("2006-01-02")
797 797
 	key := strconv.FormatInt(orgID, 10) + ":" + strconv.FormatInt(patientID, 10) + ":" + strconv.FormatInt(recordDate, 10) + ":doctor_advices"
798
-	fmt.Println("key23233232323323wi", key)
798
+	//fmt.Println("key23233232323323wi", key)
799 799
 	doctor_advices_str, _ := redis.Get(key).Result()
800 800
 	redis.Set(doctor_advices_str, "", time.Second)
801 801
 	redis.Set(doctor_advices_str, "", time.Second)

+ 30 - 21
service/warhouse_service.go Parādīt failu

@@ -7457,7 +7457,7 @@ func ConsumablesDeliveryTotal(orgID int64, patient_id int64, record_time int64,
7457 7457
 	return nil
7458 7458
 }
7459 7459
 
7460
-//耗材出库
7460
+// 耗材出库
7461 7461
 func ConsumablesDelivery(orgID int64, patient_id int64, record_time int64, goods *models.DialysisBeforePrepare, warehouseOut *models.WarehouseOut, count int64) (err error) {
7462 7462
 
7463 7463
 	//开事务
@@ -7918,7 +7918,7 @@ func ConsumablesDelivery(orgID int64, patient_id int64, record_time int64, goods
7918 7918
 	return nil
7919 7919
 }
7920 7920
 
7921
-//耗材出库删除
7921
+// 耗材出库删除
7922 7922
 func ConsumablesDeliveryDelete(orgID int64, patient_id int64, record_time int64, good_yc *models.DialysisBeforePrepare, warehouseOut *models.WarehouseOut) (err error) {
7923 7923
 
7924 7924
 	// 先根据相关信息查询当天该耗材的出库信息
@@ -8049,7 +8049,7 @@ func GetWarehouseById(id int64) (models.WarehouseOut, error) {
8049 8049
 	return out, err
8050 8050
 }
8051 8051
 
8052
-//耗材出库
8052
+// 耗材出库
8053 8053
 func ConsumablesDeliveryOne(orgID int64, record_time int64, goods *models.WarehouseOutInfo, warehouseOut *models.WarehouseOut, count int64, creator int64) (err error) {
8054 8054
 
8055 8055
 	////开事务
@@ -8298,7 +8298,7 @@ func ConsumablesDeliveryOne(orgID int64, record_time int64, goods *models.Wareho
8298 8298
 	return nil
8299 8299
 }
8300 8300
 
8301
-//退库逻辑
8301
+// 退库逻辑
8302 8302
 func ConsumablesDeliveryTwo(orgID int64, goods *models.WarehouseOutInfo, count int64) (err error) {
8303 8303
 
8304 8304
 	////开事务
@@ -9354,7 +9354,7 @@ func HisAuToReduce(orgID int64, prescribingNumber float64, warehouseout *models.
9354 9354
 	return
9355 9355
 }
9356 9356
 
9357
-//采购管理耗材出库逻辑
9357
+// 采购管理耗材出库逻辑
9358 9358
 func ConsumablesDeliveryNight(orgID int64, record_time int64, goods *models.WarehouseOutInfo, warehouseOut *models.WarehouseOut, count int64, creator int64, warehouse_out_id int64, cancel_out_id int64) (err error) {
9359 9359
 
9360 9360
 	var deliver_number int64 = 0
@@ -9858,7 +9858,7 @@ func AutoDrugDeliverInfoNight(orgID int64, prescribingNumber int64, warehouseout
9858 9858
 	return
9859 9859
 }
9860 9860
 
9861
-//调拨出库逻辑
9861
+// 调拨出库逻辑
9862 9862
 func ConsumablesDeliveryTwelve(orgID int64, record_time int64, goods *models.WarehouseOutInfo, warehouseOut *models.WarehouseOut, count int64, creator int64, warehouseInfo *models.WarehousingInfo) (err error) {
9863 9863
 
9864 9864
 	var deliver_number int64 = 0
@@ -9880,11 +9880,16 @@ func ConsumablesDeliveryTwelve(orgID int64, record_time int64, goods *models.War
9880 9880
 
9881 9881
 	maxNumber = goods.Count
9882 9882
 
9883
-	if warehouse.StockCount < maxNumber {
9884
-		return errors.New("库存数量不足")
9883
+	//if warehouse.StockCount < maxNumber {
9884
+	//	return errors.New("库存数量不足")
9885
+	//}
9886
+
9887
+	if warehouse.StockCount-maxNumber > 0 {
9888
+		warehouse.StockCount = warehouse.StockCount - maxNumber
9889
+	} else {
9890
+		warehouse.StockCount = warehouse.StockCount
9885 9891
 	}
9886 9892
 
9887
-	warehouse.StockCount = warehouse.StockCount - maxNumber
9888 9893
 	warehouse.Mtime = time.Now().Unix()
9889 9894
 
9890 9895
 	//扣减库存
@@ -10090,7 +10095,7 @@ func ConsumablesDeliveryTwelve(orgID int64, record_time int64, goods *models.War
10090 10095
 			IsCheck:                 1,
10091 10096
 			OverCount:               sum_count,
10092 10097
 		}
10093
-		warehouseOutInfo.Count = warehouse.StockCount
10098
+		warehouseOutInfo.Count = stock_number
10094 10099
 
10095 10100
 		//查询是否已经生成出库单
10096 10101
 		info, errcodes := GetStockInRecoredByGoodIdOne(goods.GoodId, goods.GoodTypeId, goods.SysRecordTime, goods.OrgId)
@@ -10111,7 +10116,7 @@ func ConsumablesDeliveryTwelve(orgID int64, record_time int64, goods *models.War
10111 10116
 			GoodId:                  goods.GoodId,
10112 10117
 			Number:                  warehouse.Number,
10113 10118
 			LicenseNumber:           goods.LicenseNumber,
10114
-			Count:                   warehouse.StockCount,
10119
+			Count:                   stock_number,
10115 10120
 			UserOrgId:               goods.OrgId,
10116 10121
 			PatientId:               0,
10117 10122
 			SystemTime:              record_time,
@@ -10154,7 +10159,7 @@ func ConsumablesDeliveryTwelve(orgID int64, record_time int64, goods *models.War
10154 10159
 			GoodTypeId:            warehouse.GoodTypeId,
10155 10160
 			ProductDate:           warehouse.ProductDate,
10156 10161
 			ExpiryDate:            warehouse.ExpiryDate,
10157
-			WarehousingCount:      warehouse.StockCount,
10162
+			WarehousingCount:      stock_number,
10158 10163
 			Price:                 warehouse.Price,
10159 10164
 			TotalPrice:            0,
10160 10165
 			Status:                1,
@@ -10163,7 +10168,7 @@ func ConsumablesDeliveryTwelve(orgID int64, record_time int64, goods *models.War
10163 10168
 			OrgId:                 warehouse.OrgId,
10164 10169
 			Type:                  1,
10165 10170
 			Manufacturer:          warehouse.Manufacturer,
10166
-			StockCount:            warehouse.StockCount,
10171
+			StockCount:            stock_number,
10167 10172
 			Dealer:                warehouse.Dealer,
10168 10173
 			LicenseNumber:         "",
10169 10174
 			PackingPrice:          warehouse.PackingPrice,
@@ -10179,7 +10184,7 @@ func ConsumablesDeliveryTwelve(orgID int64, record_time int64, goods *models.War
10179 10184
 			GoodId:                  goods.GoodId,
10180 10185
 			Number:                  warehouse.Number,
10181 10186
 			LicenseNumber:           goods.LicenseNumber,
10182
-			Count:                   warehouse.StockCount,
10187
+			Count:                   stock_number,
10183 10188
 			UserOrgId:               goods.OrgId,
10184 10189
 			PatientId:               goods.PatientId,
10185 10190
 			SystemTime:              record_time,
@@ -10283,12 +10288,16 @@ func AutoDrugDeliverInfoTwelve(orgID int64, prescribingNumber int64, warehouseou
10283 10288
 
10284 10289
 	//fmt.Println("warehouse.StockMaxNumber",warehouse.StockMaxNumber)
10285 10290
 	//fmt.Println("maxNumber9899923323232wo",maxNumber)
10286
-	if warehouse.StockMaxNumber < maxNumber {
10287 10291
 
10288
-		return errors.New("库存数量不足")
10292
+	//if warehouse.StockMaxNumber < maxNumber {
10293
+	//
10294
+	//	return errors.New("库存数量不足")
10295
+	//}
10296
+
10297
+	if warehouse.StockMaxNumber-maxNumber > 0 {
10298
+		warehouse.StockMaxNumber = warehouse.StockMaxNumber - maxNumber
10289 10299
 	}
10290 10300
 
10291
-	warehouse.StockMaxNumber = warehouse.StockMaxNumber - maxNumber
10292 10301
 	warehouse.Mtime = time.Now().Unix()
10293 10302
 
10294 10303
 	if warehouse.StockMinNumber < minNumber {
@@ -11286,7 +11295,7 @@ func AutoDrugDeliverInfoTwentyOne(orgID int64, prescribingNumber int64, warehous
11286 11295
 	return
11287 11296
 }
11288 11297
 
11289
-//耗材手动出库
11298
+// 耗材手动出库
11290 11299
 func ConsumablesDeliveryThirty(orgID int64, record_time int64, goods *models.WarehouseOutInfo, warehouseOut *models.WarehouseOut, count int64, creator int64) (err error) {
11291 11300
 
11292 11301
 	var deliver_number int64 = 0
@@ -12205,7 +12214,7 @@ func FindDrugWarehouseInfoFlushCountByStorehouse(drug_id int64, orgid int64, sto
12205 12214
 	return info, err
12206 12215
 }
12207 12216
 
12208
-//结算出库
12217
+// 结算出库
12209 12218
 func HisSettleDrugsDelivery(orgID int64, creater int64, advice *models.HisDoctorAdviceInfo, order_id int64) (err error) {
12210 12219
 
12211 12220
 	// 1.判断药品是否来自专用字典的药品库
@@ -12286,7 +12295,7 @@ func HisSettleDrugsDelivery(orgID int64, creater int64, advice *models.HisDoctor
12286 12295
 	return
12287 12296
 }
12288 12297
 
12289
-//耗材结算出库
12298
+// 耗材结算出库
12290 12299
 func ConsumableSettleDelivery(orgID int64, patient_id int64, record_time int64, goods *models.DialysisBeforePrepare, warehouseOut *models.WarehouseOut, creator int64, order_id int64) (err error) {
12291 12300
 
12292 12301
 	var deliver_number int64 = 0
@@ -12713,7 +12722,7 @@ func ConsumableSettleDelivery(orgID int64, patient_id int64, record_time int64,
12713 12722
 	return nil
12714 12723
 }
12715 12724
 
12716
-//保存处方出库
12725
+// 保存处方出库
12717 12726
 func ConsumablePrescriptionDelivery(orgID int64, patient_id int64, record_time int64, goods *models.DialysisBeforePrepare, warehouseOut *models.WarehouseOut, creator int64, count int64) (err error) {
12718 12727
 
12719 12728
 	var deliver_number int64 = 0