优化
This commit is contained in:
@@ -126,7 +126,7 @@ export async function runMojiaMeasurementScenario(run, options = {}) {
|
||||
const boxCode = `${afterPrint.summary.inboundCode}#${printedTotal}-1`
|
||||
const scanPath = `/api/platform/v1/first-leg/inbounds/${inboundId}/measurement/carton-scans?tenantId=${resolvedTenantId}`
|
||||
const firstFields = {
|
||||
boxCode, length: 59.1, width: 40.2, height: 30.3, weight: 12.5,
|
||||
boxCode, length: 59.1, width: 40.2, height: 30.3,
|
||||
machineNo: 'MJ-ADMIN-E2E-01', measuredAt: '2026-08-08T10:00:00',
|
||||
}
|
||||
const firstResponse = await multipartRequest(run, scanPath, firstFields, imagePath)
|
||||
@@ -149,7 +149,7 @@ export async function runMojiaMeasurementScenario(run, options = {}) {
|
||||
}
|
||||
|
||||
const rescanResponse = await multipartRequest(run, scanPath, {
|
||||
boxCode, length: 59.5, width: 41.2, height: 31.3, weight: 13.5,
|
||||
boxCode, length: 59.5, width: 41.2, height: 31.3,
|
||||
machineNo: 'MJ-ADMIN-E2E-02', measuredAt: '2026-08-08T10:01:00',
|
||||
}, imagePath)
|
||||
const rescan = requireData(run, '墨家同箱复测覆盖', rescanResponse)
|
||||
@@ -174,7 +174,7 @@ export async function runMojiaMeasurementScenario(run, options = {}) {
|
||||
if (!submittedPassed) throw new Error('墨家测量提交后状态不正确')
|
||||
|
||||
const blockedResponse = await multipartRequest(run, scanPath, {
|
||||
boxCode, length: 99.1, width: 99.2, height: 99.3, weight: 99.4,
|
||||
boxCode, length: 99.1, width: 99.2, height: 99.3,
|
||||
machineNo: 'MJ-ADMIN-E2E-BLOCKED', measuredAt: '2026-08-08T10:02:00',
|
||||
}, imagePath)
|
||||
const blockedPassed = blockedResponse.body?.code === 'A0409'
|
||||
|
||||
Reference in New Issue
Block a user