优化
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user