优化
This commit is contained in:
@@ -29,16 +29,25 @@ test('仓储转运支持无目的地、FBA 仓和私人仓并显式选择是否
|
||||
assert.doesNotMatch(view, /relabelChargeAmount:/)
|
||||
})
|
||||
|
||||
test('仓储转运目的仓使用主单字段且 FBA 货件号选填', () => {
|
||||
assert.match(view, /props\.service === 'transfer' && transferDestinationType === 'FBA'[^\n]+目的 FBA 仓/)
|
||||
assert.match(view, /整张转运单统一使用该目的仓,换标明细自动继承/)
|
||||
test('仓储转运换标整票只允许一个目的仓', () => {
|
||||
assert.match(view, /props\.service === 'transfer' && transferDestinationType === 'FBA'[^\n]+未换标货物目的 FBA 仓/)
|
||||
assert.match(view, /此处只表示不换标箱子的去向/)
|
||||
assert.match(view, /FBA 货件编号<\/span><el-input v-model="form\.fbaShipmentNo" placeholder="选填,可后续补充"/)
|
||||
assert.match(view, /transferDestinationType\.value === 'FBA' && !form\.destination/)
|
||||
assert.match(view, /transferDestinationType\.value === 'PRIVATE'.*!form\.privateDestinationPostalCode/)
|
||||
assert.match(view, /destinationWarehouseCode: labelingMode\.value === 'sku' \? undefined : form\.destination \|\| undefined/)
|
||||
assert.match(view, /整票换标货物目的 FBA 仓/)
|
||||
assert.match(view, /暂不支持一票多个目的仓/)
|
||||
assert.match(view, /if \(!transferRelabelDefaultDestination\.value\) \{ ElMessage\.warning\('请选择整票换标货物的 FBA 目的仓'\)/)
|
||||
assert.match(view, /destinationWarehouseCode: transferRelabelDefaultDestination\.value \|\| undefined/)
|
||||
const transferRelabelSection = view.split('warehouse-transfer-relabel">')[1]?.split('warehouse-transfer-submit-bar')[0] || ''
|
||||
assert.doesNotMatch(transferRelabelSection, /v-model="row\.destinationWarehouseId"/)
|
||||
assert.doesNotMatch(transferRelabelSection, /<th>FBA 目的仓/)
|
||||
assert.doesNotMatch(transferRelabelSection, /<th>FBA 目的仓 \*<\/th>/)
|
||||
assert.doesNotMatch(view, /applyTransferRelabelDestination/)
|
||||
assert.match(view, /destinationWarehouseId: binding\.destinationWarehouseCode \|\| ''/)
|
||||
assert.match(view, /props\.service === 'transfer' \? '客户箱唛号' : '仓库唛头'/)
|
||||
assert.match(view, /已导入 \$\{importedRows\.length\} 条仓储转运换标明细/)
|
||||
assert.doesNotMatch(transferRelabelSection, /新 FBA 箱唛<\/th><th>FBA 目的仓<\/th>/)
|
||||
assert.match(view, /const includeDestination = false/)
|
||||
})
|
||||
|
||||
test('仓储转运不要求客户填写内部入仓号和我方箱唛,但换标时填写客户箱唛', () => {
|
||||
|
||||
Reference in New Issue
Block a user