feat(P18B-1,P18B-2): 新增资产流转模型与受控接口
这个提交包含在:
@@ -50,6 +50,17 @@ const DOCUMENT_TYPE_CONFIG = {
|
||||
resetPeriod: "yearly",
|
||||
},
|
||||
},
|
||||
inventory_check: {
|
||||
defaultCategoryCode: null,
|
||||
preferLegacySequence: false,
|
||||
fallback: {
|
||||
prefix: "PD",
|
||||
dateFormat: "YYYYMMDD",
|
||||
separator: "-",
|
||||
numberLength: 4,
|
||||
resetPeriod: "yearly",
|
||||
},
|
||||
},
|
||||
general: {
|
||||
defaultCategoryCode: "general_record",
|
||||
preferLegacySequence: false,
|
||||
@@ -193,6 +204,10 @@ async function findDocumentCategory(prisma, { documentType, documentCategoryCode
|
||||
}
|
||||
}
|
||||
|
||||
if (normalizedDocumentType === "inventory_check") {
|
||||
return null;
|
||||
}
|
||||
|
||||
return prisma.documentCategory.findFirst({
|
||||
where: {
|
||||
entity_type: normalizedDocumentType,
|
||||
|
||||
在新工单中引用
屏蔽一个用户