diff --git a/src/apis/bussiness/index.ts b/src/apis/bussiness/index.ts index a28311e..8e9ab09 100644 --- a/src/apis/bussiness/index.ts +++ b/src/apis/bussiness/index.ts @@ -1,4 +1,4 @@ -// @/apis/bussiness/index.ts - 商务数据库信息模块API +// @/apis/bussiness/index.ts - 智能商务API import http from '@/utils/http' import type { FolderInfo, @@ -59,7 +59,9 @@ export function getFilesApi(params?: FileListParams) { page: params?.page || 1, pageSize: params?.pageSize || 10, folderId: params?.folderId || '0', - fileName: params?.fileName + fileName: params?.fileName, + sortField: params?.sortField, + sortOrder: params?.sortOrder } }) } diff --git a/src/apis/bussiness/type.ts b/src/apis/bussiness/type.ts index 6fa269a..8d6f0e7 100644 --- a/src/apis/bussiness/type.ts +++ b/src/apis/bussiness/type.ts @@ -31,6 +31,8 @@ export interface FileListParams { pageSize?: number folderId?: string fileName?: string + sortField?: string + sortOrder?: string } /** 文件夹列表响应 */ diff --git a/src/apis/equipment/type.ts b/src/apis/equipment/type.ts index 854fa3c..2bd5a1e 100644 --- a/src/apis/equipment/type.ts +++ b/src/apis/equipment/type.ts @@ -194,6 +194,12 @@ export interface EquipmentResp { inventoryBasis?: string /** 动态记录 */ dynamicRecord?: string + + /** 采购状态 */ + procurementStatus?: string + + /** 审批状态 */ + approvalStatus?: string } /** @@ -294,6 +300,17 @@ export enum BusinessType { RETURN = 'RETURN' } +/** + * 设备采购状态枚举 + */ +export enum ProcurementStatus { + NOT_STARTED = 'NOT_STARTED', + PENDING_APPROVAL = 'PENDING_APPROVAL', + APPROVED = 'APPROVED', + REJECTED = 'REJECTED', + COMPLETED = 'COMPLETED' +} + /** * 设备审批列表查询请求 */ diff --git a/src/components/NotificationCenter/ApprovalMessageItem.vue b/src/components/NotificationCenter/ApprovalMessageItem.vue new file mode 100644 index 0000000..bd8a07b --- /dev/null +++ b/src/components/NotificationCenter/ApprovalMessageItem.vue @@ -0,0 +1,297 @@ + + + + + diff --git a/src/components/NotificationCenter/index.vue b/src/components/NotificationCenter/index.vue index 948be76..7fb4ccf 100644 --- a/src/components/NotificationCenter/index.vue +++ b/src/components/NotificationCenter/index.vue @@ -1,15 +1,13 @@ + + +