优化
This commit is contained in:
@@ -96,7 +96,7 @@ test('current recovery retains all independent-plan inbound facts while progress
|
||||
resetReceivingSession()
|
||||
})
|
||||
|
||||
test('container UI locks and signs once across independent plans, then renders only the scan-matched inbound', async () => {
|
||||
test('container UI locks and signs once, then renders the resolved destination group without customer scope', async () => {
|
||||
const [operation, summary, inboundApi] = await Promise.all([
|
||||
read('../src/pages/operation/operation.vue'),
|
||||
read('../src/components/ReceivingSessionSummary.vue'),
|
||||
@@ -107,9 +107,11 @@ test('container UI locks and signs once across independent plans, then renders o
|
||||
assert.match(summary, /inboundCodeCount[\s\S]*plannedPalletCount[\s\S]*totalPackages/)
|
||||
for (const fact of ['已分配', '未分配', '可合托·非强制', '不合托', '加急', '普通']) assert.match(summary, new RegExp(fact))
|
||||
assert.doesNotMatch(operation, /v-for="[^"]*inbound[^"]*"/)
|
||||
assert.match(operation, /v-if="activeInbound"[\s\S]*activeInbound\.inboundCode[\s\S]*activeInbound\.pendingPackages/)
|
||||
assert.match(operation, /activeInbound\.mergeAllowed[\s\S]*现场自选[\s\S]*activeInbound\.urgent/)
|
||||
assert.match(operation, /v-if="activeInbound"[\s\S]*activeInbound\.inboundCodes[\s\S]*activeInbound\.pendingPackages/)
|
||||
assert.match(operation, /activeInbound\.operationMode === 'FBA_GROUP'[\s\S]*按 FBA 仓成组收货/)
|
||||
assert.doesNotMatch(operation, /activeInbound\.customer|客户/)
|
||||
assert.match(operation, /resolveCurrentCarton\(cartonMark\)/)
|
||||
assert.match(operation, /operationMode !== 'DROPSHIP_PALLET'[\s\S]*receiveCurrentWholePallet/)
|
||||
assert.doesNotMatch(operation, /cartonMark\.split|\.split\([^\n]*['"]#['"]/)
|
||||
|
||||
assert.match(inboundApi, /\$\{RECEIVING_BASE\}\/\$\{encodeURIComponent\(containerNo\)\}\/prepare/)
|
||||
|
||||
Reference in New Issue
Block a user