优化
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user