This commit is contained in:
2026-09-24 08:54:26 +08:00
parent 66c2651be7
commit 49e63eca9f
10 changed files with 23 additions and 20 deletions
@@ -210,7 +210,7 @@ async function verifyLocationLifecycle(context, warehouseId) {
try {
const created = await overseasMutation(context, 'POST', '创建本轮公共库位',
`/api/platform/v1/warehouse-admin/${encodeURIComponent(warehouseId)}/locations`, {
zoneCode: 'ACC', locationCode, locationType: 'STORAGE', maxLoadKg: 1000,
locationCode, locationType: 'STORAGE', maxLoadKg: 1000,
status: 'ACTIVE', remark: context.marker,
})
locationId = id(created.data)
@@ -225,7 +225,7 @@ async function verifyLocationLifecycle(context, warehouseId) {
&& detail.data?.locationCode === locationCode && detail.data?.remark === context.marker,
`locationId=${id(detail.data?.id) || 'missing'}, code=${detail.data?.locationCode || 'missing'}; ${trace(detail.response)}`, OPTIONS)
const updated = await overseasMutation(context, 'PUT', '编辑本轮公共库位', detailPath, {
zoneCode: 'ACC', locationCode, locationType: 'STORAGE', maxLoadKg: 1200,
locationCode, locationType: 'STORAGE', maxLoadKg: 1200,
status: 'ACTIVE', remark: `${context.marker}-edited`,
})
context.assert(MODULE, '公共库位编辑成功', updated.response, voidMutationSucceeded(updated),