Commit 1d16f089 authored by shenshaokai's avatar shenshaokai

fix: bugID=36137 下单数量回显undefined

parent c1bdd2e6
...@@ -233,7 +233,7 @@ const OrderMaterialsDrawer: React.ForwardRefRenderFunction<OrderMaterialsDrawerR ...@@ -233,7 +233,7 @@ const OrderMaterialsDrawer: React.ForwardRefRenderFunction<OrderMaterialsDrawerR
const requisitionValue: { [key: string]: string } = {}; const requisitionValue: { [key: string]: string } = {};
dataSource.forEach(({ children }) => { dataSource.forEach(({ children }) => {
children?.forEach(child => { children?.forEach(child => {
requisitionValue[child.key] = requisitionListValue.current[child.key] as string || child?.purchaseProductSalesManResponse?.purchaseRemainingQuantity + '' requisitionValue[child.key] = requisitionListValue.current[child.key] as string || (child?.purchaseProductSalesManResponse?.purchaseRemainingQuantity || 0) + ''
}) })
}) })
......
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