fix: 装箱点位管理

This commit is contained in:
2026-08-18 15:13:25 +08:00
parent d3feb61e62
commit 5d988431a6
18 changed files with 234 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ export namespace LmsPackagePointApi {
colNum: string; // 列
depth: string; // 深浅位0浅位1深位
waitPointType: string; // 所属等待点类型
lockStatus: string; // 锁状态
updaterName?: string; // 更新者名称
updateTime?: string; // 更新时间
}
@@ -64,6 +65,11 @@ export function deletePackagePointList(ids: number[]) {
);
}
/** 批量解锁装箱区点位 */
export function unlockPackagePointList(ids: number[]) {
return requestClient.put('/lms/package-point/unlock-list', ids);
}
/** 导出装箱区点位库存 */
export function exportPackagePoint(params: any) {
return requestClient.download('/lms/package-point/export-excel', { params });

View File

@@ -15,6 +15,7 @@ import {
deletePackagePointList,
exportPackagePoint,
getPackagePointPage,
unlockPackagePointList,
} from '#/api/lms/packagepoint';
import { $t } from '#/locales';
@@ -73,6 +74,22 @@ async function handleDeleteBatch() {
}
}
/** 批量解锁装箱区点位 */
async function handleUnlockBatch() {
const hideLoading = message.loading({
content: '正在解锁选中点位',
duration: 0,
});
try {
await unlockPackagePointList(checkedIds.value);
checkedIds.value = [];
message.success('选中点位解锁成功');
handleRefresh();
} finally {
hideLoading();
}
}
const checkedIds = ref<number[]>([]);
function handleRowCheckboxChange({
records,
@@ -145,6 +162,13 @@ const [Grid, gridApi] = useVbenVxeGrid({
auth: ['lms:package-point:export'],
onClick: handleExport,
},
{
label: '一键解锁',
type: 'primary',
auth: ['lms:package-point:update'],
disabled: isEmpty(checkedIds),
onClick: handleUnlockBatch,
},
{
label: $t('ui.actionTitle.deleteBatch'),
type: 'primary',