Commit 0cdc5171 by 杨子

fix(出库单): 修复修改出库单时数据加载问题

修改出库单时不再直接使用行数据,而是通过接口获取完整数据以确保表单显示正确
parent d9355415
......@@ -354,10 +354,18 @@ function handleCustomerConfirm(selectedCustomers) {
/** 修改按钮操作 */
function handleUpdate(row) {
reset()
form.value = row
form.value.warehouseName = row.warehouse?.warehouseName
form.value.customerName = row.customerUser?.customerName
form.value.applicantName = row.applicantUser?.nickName
getWmsOutboundOrder(row.orderId).then(response => {
form.value = {
...row,
...response.data,
}
form.value.warehouseName = row.warehouse?.warehouseName
form.value.customerName = row.customerUser?.customerName
form.value.applicantName = row.applicantUser?.nickName
})
open.value = true
title.value = "修改出库单"
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment