feat(钢卷分条): 添加分条表单暂存功能

- 新增钢卷缓存API模块,提供暂存数据的增删改查功能
- 在分条表单中添加暂存按钮和恢复缓存数据功能
- 增加缓存数据展示弹窗,支持恢复或删除暂存数据
- 优化表格显示,添加序号列和高亮当前行
This commit is contained in:
2026-04-24 16:32:41 +08:00
parent 2aaa991516
commit e4028effc7
3 changed files with 177 additions and 3 deletions

View File

@@ -0,0 +1,61 @@
import request from '@/utils/request'
// 查询钢卷缓存列表
export function listCoilCache(query) {
return request({
url: '/wms/coilCache/list',
method: 'get',
params: query
})
}
// 查询钢卷缓存详细
export function getCoilCache(cacheId) {
return request({
url: '/wms/coilCache/' + cacheId,
method: 'get'
})
}
// 新增钢卷缓存
export function addCoilCache(data) {
return request({
url: '/wms/coilCache',
method: 'post',
data: data
})
}
// 修改钢卷缓存
export function updateCoilCache(data) {
return request({
url: '/wms/coilCache',
method: 'put',
data: data
})
}
// 删除钢卷缓存
export function delCoilCache(cacheId) {
return request({
url: '/wms/coilCache/' + cacheId,
method: 'delete'
})
}
// 存储缓存
export function saveCoilCache(data) {
return request({
url: '/wms/coilCache/save',
method: 'post',
data: data
})
}
// 获取缓存
export function getCoilCacheByCoilId(coilId) {
return request({
url: '/wms/coilCache/getByCoilId/' + coilId,
method: 'get'
})
}