ASSET1 统一电子资产与固定资产台账
这个提交包含在:
@@ -1,6 +1,8 @@
|
||||
import { apiRequestData } from "./http";
|
||||
|
||||
export type AssetStatus = "in_stock" | "in_use" | "under_repair" | "retired" | "archived";
|
||||
export type AssetType = "fixed_asset" | "electronic_document" | "electronic_system" | "code_repository" | "backup_media";
|
||||
export type AssetSensitivityLevel = "public_candidate" | "internal" | "confidential" | "strictly_confidential";
|
||||
|
||||
export type AssetCategoryItem = {
|
||||
id: string;
|
||||
@@ -33,6 +35,8 @@ export type AssetItem = {
|
||||
id: string;
|
||||
assetNo: string;
|
||||
name: string;
|
||||
assetType: AssetType;
|
||||
sensitivityLevel: AssetSensitivityLevel;
|
||||
categoryId: string;
|
||||
legalEntityId: string;
|
||||
costCenterId: string;
|
||||
@@ -41,6 +45,17 @@ export type AssetItem = {
|
||||
location: string | null;
|
||||
status: AssetStatus;
|
||||
assigneeEmployeeId: string | null;
|
||||
ownerEmployeeId: string | null;
|
||||
keeperEmployeeId: string | null;
|
||||
archiveLocation: string | null;
|
||||
externalRef: string | null;
|
||||
sourceHash: string | null;
|
||||
verificationNo: string | null;
|
||||
confidentialityNote: string | null;
|
||||
metadata: Record<string, unknown> | null;
|
||||
sensitiveFieldsRedacted?: boolean;
|
||||
lastVerifiedAt: string | null;
|
||||
expiresAt: string | null;
|
||||
activatedAt: string | null;
|
||||
retiredAt: string | null;
|
||||
createdAt: string | null;
|
||||
@@ -82,6 +97,8 @@ export type AssetItem = {
|
||||
name: string;
|
||||
} | null;
|
||||
} | null;
|
||||
owner: AssetAssigneeOption | null;
|
||||
keeper: AssetAssigneeOption | null;
|
||||
permissions: {
|
||||
canEdit: boolean;
|
||||
};
|
||||
@@ -99,8 +116,12 @@ export type AssetListResponse = {
|
||||
|
||||
export type AssetListQuery = {
|
||||
status?: AssetStatus;
|
||||
assetType?: AssetType;
|
||||
sensitivityLevel?: AssetSensitivityLevel;
|
||||
categoryId?: string;
|
||||
assigneeId?: string;
|
||||
ownerId?: string;
|
||||
keeperId?: string;
|
||||
legalEntityId?: string;
|
||||
costCenterId?: string;
|
||||
q?: string;
|
||||
@@ -109,6 +130,8 @@ export type AssetListQuery = {
|
||||
|
||||
export type CreateAssetPayload = {
|
||||
name: string;
|
||||
assetType?: AssetType;
|
||||
sensitivityLevel?: AssetSensitivityLevel;
|
||||
categoryId: string;
|
||||
legalEntityId: string;
|
||||
costCenterId: string;
|
||||
@@ -117,6 +140,16 @@ export type CreateAssetPayload = {
|
||||
location?: string | null;
|
||||
status?: AssetStatus;
|
||||
assigneeEmployeeId?: string | null;
|
||||
ownerEmployeeId?: string | null;
|
||||
keeperEmployeeId?: string | null;
|
||||
archiveLocation?: string | null;
|
||||
externalRef?: string | null;
|
||||
sourceHash?: string | null;
|
||||
verificationNo?: string | null;
|
||||
confidentialityNote?: string | null;
|
||||
metadata?: Record<string, unknown> | null;
|
||||
lastVerifiedAt?: string | null;
|
||||
expiresAt?: string | null;
|
||||
activatedAt?: string | null;
|
||||
retiredAt?: string | null;
|
||||
};
|
||||
|
||||
在新工单中引用
屏蔽一个用户