采购入库

This commit is contained in:
Zhang.WH
2025-03-07 17:44:20 +08:00
parent 046884e0fb
commit 93ae75b915
38 changed files with 1516 additions and 531 deletions

View File

@@ -42,11 +42,21 @@ public class CommonConstants {
*/
String MED_MEDICATION_DEFINITION = "med_medication_definition";
/**
* 药品信息
*/
String MED_MEDICATION = "med_medication";
/**
* 器材定义
*/
String ADM_DEVICE_DEFINITION = "adm_device_definition";
/**
* 器材信息
*/
String ADM_DEVICE = "adm_device";
/**
* 活动定义
*/

View File

@@ -58,4 +58,16 @@ public class PromptMsgConstant {
String M00010 = "apl.common.M00010";
}
/**
* 库存
*/
public interface Inventory {
/**
* {0}添加成功
*/
String M00001 = "apl.inventory.M00001";
}
}

View File

@@ -1,24 +1,71 @@
package com.openhis.common.enums;
import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 事件状态
*
* @author lyx
* @date 2025-03-05
*/
@Getter
@AllArgsConstructor
public enum EventStatus {
PREPARATION(1, "PREP", "Preparation stage, gathering resources and planning."),
IN_PROGRESS(2, "IP", "Task is currently being worked on."),
NOT_DONE(3, "ND", "Task has not been completed."),
ON_HOLD(4, "OH", "Task is temporarily paused."),
STOPPED(5, "ST", "Task has been stopped."),
COMPLETED(6, "CMP", "Task has been completed."),
ENTERED_IN_ERROR(7, "EIE", "Task status was entered in error."),
UNKNOWN(8, "UNK", "Task status is unknown.");
/**
* 草稿
*/
PREPARATION(1, "PREP", "草稿"),
@EnumValue
private final Integer value;
private final String code;
private final String info;
/**
* 进行中
*/
IN_PROGRESS(2, "IP", "进行中"),
/**
* 未完成
*/
NOT_DONE(3, "ND", "未完成"),
/**
* 暂停
*/
ON_HOLD(4, "OH", "暂停"),
/**
* 停止
*/
STOPPED(5, "ST", "停止"),
/**
* 已完成
*/
COMPLETED(6, "CMP", "已完成"),
/**
* 录入错误
*/
ENTERED_IN_ERROR(7, "EIE", "录入错误"),
/**
* 未知
*/
UNKNOWN(8, "UNK", "未知");
private Integer value;
private String code;
private String info;
public static EventStatus getByValue(Integer value) {
if (value == null) {
return null;
}
for (EventStatus val : values()) {
if (val.getValue().equals(value)) {
return val;
}
}
return null;
}
}

View File

@@ -0,0 +1,43 @@
/*
* Copyright ©2023 CJB-CNIT Team. All rights reserved
*/
package com.openhis.common.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 单据类别
*
* @author zwh
* @date 2025-03-05
*/
@Getter
@AllArgsConstructor
public enum SupplyCategory {
/**
* 库存供应
*/
STOCK_SUPPLY(1, "库存供应"),
/**
* 非库存供应
*/
NON_STOCK(2, "非库存供应");
private Integer value;
private String info;
public static SupplyCategory getByValue(Integer value) {
if (value == null) {
return null;
}
for (SupplyCategory val : values()) {
if (val.getValue().equals(value)) {
return val;
}
}
return null;
}
}

View File

@@ -0,0 +1,58 @@
/*
* Copyright ©2023 CJB-CNIT Team. All rights reserved
*/
package com.openhis.common.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 单据状态
*
* @author zwh
* @date 2025-03-05
*/
@Getter
@AllArgsConstructor
public enum SupplyStatus {
/**
* 待审核
*/
PENDING_APPROVAL(1, "待审核"),
/**
* 审核中
*/
APPROVAL(2, "审核中"),
/**
* 同意
*/
AGREE(3, "同意"),
/**
* 驳回
*/
REJECT(4, "驳回"),
/**
* 已撤回
*/
WITHDRAW(9, "已撤回");
private Integer value;
private String info;
public static SupplyStatus getByValue(Integer value) {
if (value == null) {
return null;
}
for (SupplyStatus val : values()) {
if (val.getValue().equals(value)) {
return val;
}
}
return null;
}
}

View File

@@ -0,0 +1,48 @@
/*
* Copyright ©2023 CJB-CNIT Team. All rights reserved
*/
package com.openhis.common.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 单据类型
*
* @author zwh
* @date 2025-03-05
*/
@Getter
@AllArgsConstructor
public enum SupplyType {
/**
* 采购入库
*/
PURCHASE_INVENTORY(1, "采购入库"),
/**
* 商品调拨
*/
PRODUCT_ALLOCATION(2, "商品调拨"),
/**
* 汇总发药
*/
DISPENSING_AGGREGATION(3, "汇总发药");
private Integer value;
private String info;
public static SupplyType getByValue(Integer value) {
if (value == null) {
return null;
}
for (SupplyType val : values()) {
if (val.getValue().equals(value)) {
return val;
}
}
return null;
}
}

View File

@@ -0,0 +1,43 @@
/*
* Copyright ©2023 CJB-CNIT Team. All rights reserved
*/
package com.openhis.common.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 是否标识
*
* @author zwh
* @date 2025-03-05
*/
@Getter
@AllArgsConstructor
public enum Whether {
/**
* 否
*/
NO(0, ""),
/**
* 是
*/
YES(1, "");
private Integer value;
private String info;
public static Whether getByValue(Integer value) {
if (value == null) {
return null;
}
for (Whether val : values()) {
if (val.getValue().equals(value)) {
return val;
}
}
return null;
}
}