优化仓库和库区管理功能,将状态字段类型从number改为string,移除编辑表单中的状态选择项,在列表页面将状态标签改为开关组件支持直接切换状态,新增updateWarehouseStatus和updateZoneStatus接口用于批量更新状态,同时在操作列新增日志按钮并集成操作日志对话框组件,在列表中添加修改时间列,优化查询参数将name改为keyword统一搜索字段命名
This commit is contained in:
@@ -17,7 +17,7 @@ export interface ZoneData {
|
||||
zoneType?: string;
|
||||
warehouseId: string;
|
||||
capacity?: number;
|
||||
status?: number;
|
||||
status?: string;
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
@@ -65,3 +65,12 @@ export function deleteZone(id: string) {
|
||||
params: { id },
|
||||
});
|
||||
}
|
||||
|
||||
// 更新库区状态
|
||||
export function updateZoneStatus(data: { id: string[]; status: string }) {
|
||||
return newService({
|
||||
url: '/assets/zone/updateZoneStatus',
|
||||
method: 'put',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user