This commit is contained in:
2026-10-19 14:53:57 +08:00
parent f7dd39c7ed
commit 9a24e0c83d
6 changed files with 46 additions and 11 deletions
@@ -31,6 +31,13 @@ test('退货箱明细与来源下拉使用同一份逐箱库存,不请求普
assert.equal(ctx.transferSourceLoading.value, false)
})
test('选择库存来源时隐藏保存草稿并阻止草稿动作', () => {
assert.match(view, /props\.service === 'transfer' && !inventoryTransfer/)
assert.match(view, /保存草稿/)
assert.match(view, /props\.service === 'transfer' && inventoryTransfer\.value && action === 'draft'/)
assert.match(view, /选择库存来源后不能保存草稿,请直接提交订单/)
})
test('来源库存发往FBA默认开启贴标,清除来源或切换私人仓后恢复选项', () => {
const source = ref(''), destination = ref('NONE'), form = reactive({ relabel: false })
const inventoryTransfer = computed(() => Boolean(source.value))