refactor(order): 优化一键出库功能
- 移除了 location.reload() 方法 - 添加了对 API 返回值的判断 - 成功出库后显示成功消息 - 关闭出库对话框 - 调用 getLists() 方法更新列表
This commit is contained in:
parent
33ef6c3e29
commit
d3000ab6e8
|
@ -218,7 +218,11 @@ const resetWarehouseData = ref({
|
|||
})
|
||||
const oneClickStorage = () => {
|
||||
apiBeforehandOrderCreateOutboundOrder(one_click_storage.value).then((res) => {
|
||||
location.reload()
|
||||
if (res.code == 1) {
|
||||
ElMessage.success('出库成功')
|
||||
dialogBuyer.value = false
|
||||
getLists()
|
||||
}
|
||||
})
|
||||
}
|
||||
const OclickDialogBuyer = () => {
|
||||
|
|
Loading…
Reference in New Issue