feat: 更新采购计划和出入库管理功能

添加清除所有草稿功能
扩展采购计划和出入库接口类型定义
新增出入库统计和产品列表接口
重写计划详情页面数据展示逻辑
改进数据分析组件支持动态数据
优化库存管理页面查询和展示逻辑
完善详情信息组件展示和文件预览功能
This commit is contained in:
re-JZzzz
2025-09-28 20:04:30 +08:00
parent 11f9433ba7
commit 321c3fce49
12 changed files with 856 additions and 674 deletions

View File

@ -70,11 +70,18 @@ export const useProcurementDraftStore = defineStore('procurementDraft', () => {
return false;
};
// 清除所有草稿
const clearAllDrafts = (): void => {
draftList.value = [];
saveDraftsToStorage(draftList.value);
};
return {
draftList,
saveDraft,
getDraftList,
getDraft,
deleteDraft
deleteDraft,
clearAllDrafts
};
});