This commit is contained in:
2026-09-10 15:56:39 +08:00
parent 56398e98eb
commit 5c4578ce00
4 changed files with 82 additions and 10 deletions
@@ -23,3 +23,19 @@ test('仓储转运允许暂未确定 FBA 去向并显式选择是否换标', ()
assert.match(api, /fbaWarehouseCode\?: string/)
assert.match(api, /fbaShipmentNo\?: string/)
})
test('仓储转运不要求客户填写内部入仓号和箱唛', () => {
const transferConfig = view.match(/transfer:\s*\{[^\n]+/)?.[0] || ''
const transferSubmit = view.match(/await createTransfer\(\{[^\n]+/)?.[0] || ''
const transferCargoTable = view.match(/<template v-else>[\s\S]*?<\/template>\s*<\/div>\s*<div class="warehouse-submit-bar"/)?.[0] || ''
assert.doesNotMatch(transferConfig, /进仓编号/)
assert.doesNotMatch(transferSubmit, /inboundCode|sourceLastlegOrderIds|shippingMark/)
assert.match(transferCargoTable, /预计箱数/)
assert.doesNotMatch(transferCargoTable, /props\.service === 'transfer'.*FNSKU \/ 箱唛/)
})
test('上门提货不提交物流号,需要换标仅提示入库后绑定', () => {
assert.match(view, /trackingNo:\s*form\.deliveryMethod === 'CUSTOMER_DELIVERY'\s*\?[^:]+:\s*undefined/)
assert.match(view, /完成入库后再绑定换标单/)
assert.match(view, /form\.deliveryMethod === 'CUSTOMER_DELIVERY'.*物流跟踪号/s)
})